more AC_CHECK_HEADERS fixes
[wxWidgets.git] / configure
1 #! /bin/sh
2 # From configure.in Id: configure.in 47596 2007-07-20 17:59:45Z DE .
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
21207 for ac_header in wcstr.h
21208 do
21209 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21210 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21212 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21213   echo $ECHO_N "(cached) $ECHO_C" >&6
21214 else
21215   cat >conftest.$ac_ext <<_ACEOF
21216 /* confdefs.h.  */
21217 _ACEOF
21218 cat confdefs.h >>conftest.$ac_ext
21219 cat >>conftest.$ac_ext <<_ACEOF
21220 /* end confdefs.h.  */
21221 $ac_includes_default
21222
21223 #include <$ac_header>
21224 _ACEOF
21225 rm -f conftest.$ac_objext
21226 if { (ac_try="$ac_compile"
21227 case "(($ac_try" in
21228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21229   *) ac_try_echo=$ac_try;;
21230 esac
21231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21232   (eval "$ac_compile") 2>conftest.er1
21233   ac_status=$?
21234   grep -v '^ *+' conftest.er1 >conftest.err
21235   rm -f conftest.er1
21236   cat conftest.err >&5
21237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21238   (exit $ac_status); } && {
21239          test -z "$ac_c_werror_flag" ||
21240          test ! -s conftest.err
21241        } && test -s conftest.$ac_objext; then
21242   eval "$as_ac_Header=yes"
21243 else
21244   echo "$as_me: failed program was:" >&5
21245 sed 's/^/| /' conftest.$ac_ext >&5
21246
21247         eval "$as_ac_Header=no"
21248 fi
21249
21250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21251 fi
21252 ac_res=`eval echo '${'$as_ac_Header'}'`
21253                { echo "$as_me:$LINENO: result: $ac_res" >&5
21254 echo "${ECHO_T}$ac_res" >&6; }
21255 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21256   cat >>confdefs.h <<_ACEOF
21257 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21258 _ACEOF
21259
21260 fi
21261
21262 done
21263
21264 fi
21265
21266 case "${host}" in
21267   *-pc-os2_emx | *-pc-os2-emx )
21268                   if test $ac_cv_header_langinfo_h = "yes" \
21269                 -a \(   "$wx_cv_gccversion" = "EMX2" \
21270                      -o "$wx_cv_gccversion" = "EMX3" \
21271                      -o "$wx_cv_gccversion" = "Innotek5" \); then
21272           LIBS="$LIBS -lintl"
21273       fi
21274   ;;
21275 esac
21276
21277 if test "$USE_UNIX" = 1 ; then
21278
21279 for ac_header in sys/select.h
21280 do
21281 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21282 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21284 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21285   echo $ECHO_N "(cached) $ECHO_C" >&6
21286 else
21287   cat >conftest.$ac_ext <<_ACEOF
21288 /* confdefs.h.  */
21289 _ACEOF
21290 cat confdefs.h >>conftest.$ac_ext
21291 cat >>conftest.$ac_ext <<_ACEOF
21292 /* end confdefs.h.  */
21293 $ac_includes_default
21294
21295 #include <$ac_header>
21296 _ACEOF
21297 rm -f conftest.$ac_objext
21298 if { (ac_try="$ac_compile"
21299 case "(($ac_try" in
21300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21301   *) ac_try_echo=$ac_try;;
21302 esac
21303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21304   (eval "$ac_compile") 2>conftest.er1
21305   ac_status=$?
21306   grep -v '^ *+' conftest.er1 >conftest.err
21307   rm -f conftest.er1
21308   cat conftest.err >&5
21309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21310   (exit $ac_status); } && {
21311          test -z "$ac_c_werror_flag" ||
21312          test ! -s conftest.err
21313        } && test -s conftest.$ac_objext; then
21314   eval "$as_ac_Header=yes"
21315 else
21316   echo "$as_me: failed program was:" >&5
21317 sed 's/^/| /' conftest.$ac_ext >&5
21318
21319         eval "$as_ac_Header=no"
21320 fi
21321
21322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21323 fi
21324 ac_res=`eval echo '${'$as_ac_Header'}'`
21325                { echo "$as_me:$LINENO: result: $ac_res" >&5
21326 echo "${ECHO_T}$ac_res" >&6; }
21327 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21328   cat >>confdefs.h <<_ACEOF
21329 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21330 _ACEOF
21331
21332 fi
21333
21334 done
21335
21336 fi
21337
21338
21339 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21340 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21341 if test "${ac_cv_c_const+set}" = set; then
21342   echo $ECHO_N "(cached) $ECHO_C" >&6
21343 else
21344   cat >conftest.$ac_ext <<_ACEOF
21345 /* confdefs.h.  */
21346 _ACEOF
21347 cat confdefs.h >>conftest.$ac_ext
21348 cat >>conftest.$ac_ext <<_ACEOF
21349 /* end confdefs.h.  */
21350
21351 int
21352 main ()
21353 {
21354 /* FIXME: Include the comments suggested by Paul. */
21355 #ifndef __cplusplus
21356   /* Ultrix mips cc rejects this.  */
21357   typedef int charset[2];
21358   const charset cs;
21359   /* SunOS 4.1.1 cc rejects this.  */
21360   char const *const *pcpcc;
21361   char **ppc;
21362   /* NEC SVR4.0.2 mips cc rejects this.  */
21363   struct point {int x, y;};
21364   static struct point const zero = {0,0};
21365   /* AIX XL C 1.02.0.0 rejects this.
21366      It does not let you subtract one const X* pointer from another in
21367      an arm of an if-expression whose if-part is not a constant
21368      expression */
21369   const char *g = "string";
21370   pcpcc = &g + (g ? g-g : 0);
21371   /* HPUX 7.0 cc rejects these. */
21372   ++pcpcc;
21373   ppc = (char**) pcpcc;
21374   pcpcc = (char const *const *) ppc;
21375   { /* SCO 3.2v4 cc rejects this.  */
21376     char *t;
21377     char const *s = 0 ? (char *) 0 : (char const *) 0;
21378
21379     *t++ = 0;
21380     if (s) return 0;
21381   }
21382   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21383     int x[] = {25, 17};
21384     const int *foo = &x[0];
21385     ++foo;
21386   }
21387   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21388     typedef const int *iptr;
21389     iptr p = 0;
21390     ++p;
21391   }
21392   { /* AIX XL C 1.02.0.0 rejects this saying
21393        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21394     struct s { int j; const int *ap[3]; };
21395     struct s *b; b->j = 5;
21396   }
21397   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21398     const int foo = 10;
21399     if (!foo) return 0;
21400   }
21401   return !cs[0] && !zero.x;
21402 #endif
21403
21404   ;
21405   return 0;
21406 }
21407 _ACEOF
21408 rm -f conftest.$ac_objext
21409 if { (ac_try="$ac_compile"
21410 case "(($ac_try" in
21411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21412   *) ac_try_echo=$ac_try;;
21413 esac
21414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21415   (eval "$ac_compile") 2>conftest.er1
21416   ac_status=$?
21417   grep -v '^ *+' conftest.er1 >conftest.err
21418   rm -f conftest.er1
21419   cat conftest.err >&5
21420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21421   (exit $ac_status); } && {
21422          test -z "$ac_c_werror_flag" ||
21423          test ! -s conftest.err
21424        } && test -s conftest.$ac_objext; then
21425   ac_cv_c_const=yes
21426 else
21427   echo "$as_me: failed program was:" >&5
21428 sed 's/^/| /' conftest.$ac_ext >&5
21429
21430         ac_cv_c_const=no
21431 fi
21432
21433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21434 fi
21435 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21436 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21437 if test $ac_cv_c_const = no; then
21438
21439 cat >>confdefs.h <<\_ACEOF
21440 #define const
21441 _ACEOF
21442
21443 fi
21444
21445 { echo "$as_me:$LINENO: checking for inline" >&5
21446 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
21447 if test "${ac_cv_c_inline+set}" = set; then
21448   echo $ECHO_N "(cached) $ECHO_C" >&6
21449 else
21450   ac_cv_c_inline=no
21451 for ac_kw in inline __inline__ __inline; do
21452   cat >conftest.$ac_ext <<_ACEOF
21453 /* confdefs.h.  */
21454 _ACEOF
21455 cat confdefs.h >>conftest.$ac_ext
21456 cat >>conftest.$ac_ext <<_ACEOF
21457 /* end confdefs.h.  */
21458 #ifndef __cplusplus
21459 typedef int foo_t;
21460 static $ac_kw foo_t static_foo () {return 0; }
21461 $ac_kw foo_t foo () {return 0; }
21462 #endif
21463
21464 _ACEOF
21465 rm -f conftest.$ac_objext
21466 if { (ac_try="$ac_compile"
21467 case "(($ac_try" in
21468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21469   *) ac_try_echo=$ac_try;;
21470 esac
21471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21472   (eval "$ac_compile") 2>conftest.er1
21473   ac_status=$?
21474   grep -v '^ *+' conftest.er1 >conftest.err
21475   rm -f conftest.er1
21476   cat conftest.err >&5
21477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21478   (exit $ac_status); } && {
21479          test -z "$ac_c_werror_flag" ||
21480          test ! -s conftest.err
21481        } && test -s conftest.$ac_objext; then
21482   ac_cv_c_inline=$ac_kw
21483 else
21484   echo "$as_me: failed program was:" >&5
21485 sed 's/^/| /' conftest.$ac_ext >&5
21486
21487
21488 fi
21489
21490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21491   test "$ac_cv_c_inline" != no && break
21492 done
21493
21494 fi
21495 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21496 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
21497
21498
21499 case $ac_cv_c_inline in
21500   inline | yes) ;;
21501   *)
21502     case $ac_cv_c_inline in
21503       no) ac_val=;;
21504       *) ac_val=$ac_cv_c_inline;;
21505     esac
21506     cat >>confdefs.h <<_ACEOF
21507 #ifndef __cplusplus
21508 #define inline $ac_val
21509 #endif
21510 _ACEOF
21511     ;;
21512 esac
21513
21514
21515 { echo "$as_me:$LINENO: checking for short" >&5
21516 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
21517 if test "${ac_cv_type_short+set}" = set; then
21518   echo $ECHO_N "(cached) $ECHO_C" >&6
21519 else
21520   cat >conftest.$ac_ext <<_ACEOF
21521 /* confdefs.h.  */
21522 _ACEOF
21523 cat confdefs.h >>conftest.$ac_ext
21524 cat >>conftest.$ac_ext <<_ACEOF
21525 /* end confdefs.h.  */
21526 $ac_includes_default
21527 typedef short ac__type_new_;
21528 int
21529 main ()
21530 {
21531 if ((ac__type_new_ *) 0)
21532   return 0;
21533 if (sizeof (ac__type_new_))
21534   return 0;
21535   ;
21536   return 0;
21537 }
21538 _ACEOF
21539 rm -f conftest.$ac_objext
21540 if { (ac_try="$ac_compile"
21541 case "(($ac_try" in
21542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21543   *) ac_try_echo=$ac_try;;
21544 esac
21545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21546   (eval "$ac_compile") 2>conftest.er1
21547   ac_status=$?
21548   grep -v '^ *+' conftest.er1 >conftest.err
21549   rm -f conftest.er1
21550   cat conftest.err >&5
21551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21552   (exit $ac_status); } && {
21553          test -z "$ac_c_werror_flag" ||
21554          test ! -s conftest.err
21555        } && test -s conftest.$ac_objext; then
21556   ac_cv_type_short=yes
21557 else
21558   echo "$as_me: failed program was:" >&5
21559 sed 's/^/| /' conftest.$ac_ext >&5
21560
21561         ac_cv_type_short=no
21562 fi
21563
21564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21565 fi
21566 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
21567 echo "${ECHO_T}$ac_cv_type_short" >&6; }
21568
21569 # The cast to long int works around a bug in the HP C Compiler
21570 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21571 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21572 # This bug is HP SR number 8606223364.
21573 { echo "$as_me:$LINENO: checking size of short" >&5
21574 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
21575 if test "${ac_cv_sizeof_short+set}" = set; then
21576   echo $ECHO_N "(cached) $ECHO_C" >&6
21577 else
21578   if test "$cross_compiling" = yes; then
21579   # Depending upon the size, compute the lo and hi bounds.
21580 cat >conftest.$ac_ext <<_ACEOF
21581 /* confdefs.h.  */
21582 _ACEOF
21583 cat confdefs.h >>conftest.$ac_ext
21584 cat >>conftest.$ac_ext <<_ACEOF
21585 /* end confdefs.h.  */
21586 $ac_includes_default
21587    typedef short ac__type_sizeof_;
21588 int
21589 main ()
21590 {
21591 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21592 test_array [0] = 0
21593
21594   ;
21595   return 0;
21596 }
21597 _ACEOF
21598 rm -f conftest.$ac_objext
21599 if { (ac_try="$ac_compile"
21600 case "(($ac_try" in
21601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21602   *) ac_try_echo=$ac_try;;
21603 esac
21604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21605   (eval "$ac_compile") 2>conftest.er1
21606   ac_status=$?
21607   grep -v '^ *+' conftest.er1 >conftest.err
21608   rm -f conftest.er1
21609   cat conftest.err >&5
21610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21611   (exit $ac_status); } && {
21612          test -z "$ac_c_werror_flag" ||
21613          test ! -s conftest.err
21614        } && test -s conftest.$ac_objext; then
21615   ac_lo=0 ac_mid=0
21616   while :; do
21617     cat >conftest.$ac_ext <<_ACEOF
21618 /* confdefs.h.  */
21619 _ACEOF
21620 cat confdefs.h >>conftest.$ac_ext
21621 cat >>conftest.$ac_ext <<_ACEOF
21622 /* end confdefs.h.  */
21623 $ac_includes_default
21624    typedef short ac__type_sizeof_;
21625 int
21626 main ()
21627 {
21628 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21629 test_array [0] = 0
21630
21631   ;
21632   return 0;
21633 }
21634 _ACEOF
21635 rm -f conftest.$ac_objext
21636 if { (ac_try="$ac_compile"
21637 case "(($ac_try" in
21638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21639   *) ac_try_echo=$ac_try;;
21640 esac
21641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21642   (eval "$ac_compile") 2>conftest.er1
21643   ac_status=$?
21644   grep -v '^ *+' conftest.er1 >conftest.err
21645   rm -f conftest.er1
21646   cat conftest.err >&5
21647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21648   (exit $ac_status); } && {
21649          test -z "$ac_c_werror_flag" ||
21650          test ! -s conftest.err
21651        } && test -s conftest.$ac_objext; then
21652   ac_hi=$ac_mid; break
21653 else
21654   echo "$as_me: failed program was:" >&5
21655 sed 's/^/| /' conftest.$ac_ext >&5
21656
21657         ac_lo=`expr $ac_mid + 1`
21658                         if test $ac_lo -le $ac_mid; then
21659                           ac_lo= ac_hi=
21660                           break
21661                         fi
21662                         ac_mid=`expr 2 '*' $ac_mid + 1`
21663 fi
21664
21665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21666   done
21667 else
21668   echo "$as_me: failed program was:" >&5
21669 sed 's/^/| /' conftest.$ac_ext >&5
21670
21671         cat >conftest.$ac_ext <<_ACEOF
21672 /* confdefs.h.  */
21673 _ACEOF
21674 cat confdefs.h >>conftest.$ac_ext
21675 cat >>conftest.$ac_ext <<_ACEOF
21676 /* end confdefs.h.  */
21677 $ac_includes_default
21678    typedef short ac__type_sizeof_;
21679 int
21680 main ()
21681 {
21682 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21683 test_array [0] = 0
21684
21685   ;
21686   return 0;
21687 }
21688 _ACEOF
21689 rm -f conftest.$ac_objext
21690 if { (ac_try="$ac_compile"
21691 case "(($ac_try" in
21692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21693   *) ac_try_echo=$ac_try;;
21694 esac
21695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21696   (eval "$ac_compile") 2>conftest.er1
21697   ac_status=$?
21698   grep -v '^ *+' conftest.er1 >conftest.err
21699   rm -f conftest.er1
21700   cat conftest.err >&5
21701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21702   (exit $ac_status); } && {
21703          test -z "$ac_c_werror_flag" ||
21704          test ! -s conftest.err
21705        } && test -s conftest.$ac_objext; then
21706   ac_hi=-1 ac_mid=-1
21707   while :; do
21708     cat >conftest.$ac_ext <<_ACEOF
21709 /* confdefs.h.  */
21710 _ACEOF
21711 cat confdefs.h >>conftest.$ac_ext
21712 cat >>conftest.$ac_ext <<_ACEOF
21713 /* end confdefs.h.  */
21714 $ac_includes_default
21715    typedef short ac__type_sizeof_;
21716 int
21717 main ()
21718 {
21719 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21720 test_array [0] = 0
21721
21722   ;
21723   return 0;
21724 }
21725 _ACEOF
21726 rm -f conftest.$ac_objext
21727 if { (ac_try="$ac_compile"
21728 case "(($ac_try" in
21729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21730   *) ac_try_echo=$ac_try;;
21731 esac
21732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21733   (eval "$ac_compile") 2>conftest.er1
21734   ac_status=$?
21735   grep -v '^ *+' conftest.er1 >conftest.err
21736   rm -f conftest.er1
21737   cat conftest.err >&5
21738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21739   (exit $ac_status); } && {
21740          test -z "$ac_c_werror_flag" ||
21741          test ! -s conftest.err
21742        } && test -s conftest.$ac_objext; then
21743   ac_lo=$ac_mid; break
21744 else
21745   echo "$as_me: failed program was:" >&5
21746 sed 's/^/| /' conftest.$ac_ext >&5
21747
21748         ac_hi=`expr '(' $ac_mid ')' - 1`
21749                         if test $ac_mid -le $ac_hi; then
21750                           ac_lo= ac_hi=
21751                           break
21752                         fi
21753                         ac_mid=`expr 2 '*' $ac_mid`
21754 fi
21755
21756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21757   done
21758 else
21759   echo "$as_me: failed program was:" >&5
21760 sed 's/^/| /' conftest.$ac_ext >&5
21761
21762         ac_lo= ac_hi=
21763 fi
21764
21765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21766 fi
21767
21768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21769 # Binary search between lo and hi bounds.
21770 while test "x$ac_lo" != "x$ac_hi"; do
21771   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21772   cat >conftest.$ac_ext <<_ACEOF
21773 /* confdefs.h.  */
21774 _ACEOF
21775 cat confdefs.h >>conftest.$ac_ext
21776 cat >>conftest.$ac_ext <<_ACEOF
21777 /* end confdefs.h.  */
21778 $ac_includes_default
21779    typedef short ac__type_sizeof_;
21780 int
21781 main ()
21782 {
21783 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21784 test_array [0] = 0
21785
21786   ;
21787   return 0;
21788 }
21789 _ACEOF
21790 rm -f conftest.$ac_objext
21791 if { (ac_try="$ac_compile"
21792 case "(($ac_try" in
21793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21794   *) ac_try_echo=$ac_try;;
21795 esac
21796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21797   (eval "$ac_compile") 2>conftest.er1
21798   ac_status=$?
21799   grep -v '^ *+' conftest.er1 >conftest.err
21800   rm -f conftest.er1
21801   cat conftest.err >&5
21802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21803   (exit $ac_status); } && {
21804          test -z "$ac_c_werror_flag" ||
21805          test ! -s conftest.err
21806        } && test -s conftest.$ac_objext; then
21807   ac_hi=$ac_mid
21808 else
21809   echo "$as_me: failed program was:" >&5
21810 sed 's/^/| /' conftest.$ac_ext >&5
21811
21812         ac_lo=`expr '(' $ac_mid ')' + 1`
21813 fi
21814
21815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21816 done
21817 case $ac_lo in
21818 ?*) ac_cv_sizeof_short=$ac_lo;;
21819 '') if test "$ac_cv_type_short" = yes; then
21820      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
21821 See \`config.log' for more details." >&5
21822 echo "$as_me: error: cannot compute sizeof (short)
21823 See \`config.log' for more details." >&2;}
21824    { (exit 77); exit 77; }; }
21825    else
21826      ac_cv_sizeof_short=0
21827    fi ;;
21828 esac
21829 else
21830   cat >conftest.$ac_ext <<_ACEOF
21831 /* confdefs.h.  */
21832 _ACEOF
21833 cat confdefs.h >>conftest.$ac_ext
21834 cat >>conftest.$ac_ext <<_ACEOF
21835 /* end confdefs.h.  */
21836 $ac_includes_default
21837    typedef short ac__type_sizeof_;
21838 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21839 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21840 #include <stdio.h>
21841 #include <stdlib.h>
21842 int
21843 main ()
21844 {
21845
21846   FILE *f = fopen ("conftest.val", "w");
21847   if (! f)
21848     return 1;
21849   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21850     {
21851       long int i = longval ();
21852       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21853         return 1;
21854       fprintf (f, "%ld\n", i);
21855     }
21856   else
21857     {
21858       unsigned long int i = ulongval ();
21859       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21860         return 1;
21861       fprintf (f, "%lu\n", i);
21862     }
21863   return ferror (f) || fclose (f) != 0;
21864
21865   ;
21866   return 0;
21867 }
21868 _ACEOF
21869 rm -f conftest$ac_exeext
21870 if { (ac_try="$ac_link"
21871 case "(($ac_try" in
21872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21873   *) ac_try_echo=$ac_try;;
21874 esac
21875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21876   (eval "$ac_link") 2>&5
21877   ac_status=$?
21878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21879   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21880   { (case "(($ac_try" in
21881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21882   *) ac_try_echo=$ac_try;;
21883 esac
21884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21885   (eval "$ac_try") 2>&5
21886   ac_status=$?
21887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21888   (exit $ac_status); }; }; then
21889   ac_cv_sizeof_short=`cat conftest.val`
21890 else
21891   echo "$as_me: program exited with status $ac_status" >&5
21892 echo "$as_me: failed program was:" >&5
21893 sed 's/^/| /' conftest.$ac_ext >&5
21894
21895 ( exit $ac_status )
21896 if test "$ac_cv_type_short" = yes; then
21897      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
21898 See \`config.log' for more details." >&5
21899 echo "$as_me: error: cannot compute sizeof (short)
21900 See \`config.log' for more details." >&2;}
21901    { (exit 77); exit 77; }; }
21902    else
21903      ac_cv_sizeof_short=0
21904    fi
21905 fi
21906 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21907 fi
21908 rm -f conftest.val
21909 fi
21910 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
21911 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
21912
21913
21914
21915 cat >>confdefs.h <<_ACEOF
21916 #define SIZEOF_SHORT $ac_cv_sizeof_short
21917 _ACEOF
21918
21919
21920 { echo "$as_me:$LINENO: checking for void *" >&5
21921 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
21922 if test "${ac_cv_type_void_p+set}" = set; then
21923   echo $ECHO_N "(cached) $ECHO_C" >&6
21924 else
21925   cat >conftest.$ac_ext <<_ACEOF
21926 /* confdefs.h.  */
21927 _ACEOF
21928 cat confdefs.h >>conftest.$ac_ext
21929 cat >>conftest.$ac_ext <<_ACEOF
21930 /* end confdefs.h.  */
21931 $ac_includes_default
21932 typedef void * ac__type_new_;
21933 int
21934 main ()
21935 {
21936 if ((ac__type_new_ *) 0)
21937   return 0;
21938 if (sizeof (ac__type_new_))
21939   return 0;
21940   ;
21941   return 0;
21942 }
21943 _ACEOF
21944 rm -f conftest.$ac_objext
21945 if { (ac_try="$ac_compile"
21946 case "(($ac_try" in
21947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21948   *) ac_try_echo=$ac_try;;
21949 esac
21950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21951   (eval "$ac_compile") 2>conftest.er1
21952   ac_status=$?
21953   grep -v '^ *+' conftest.er1 >conftest.err
21954   rm -f conftest.er1
21955   cat conftest.err >&5
21956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21957   (exit $ac_status); } && {
21958          test -z "$ac_c_werror_flag" ||
21959          test ! -s conftest.err
21960        } && test -s conftest.$ac_objext; then
21961   ac_cv_type_void_p=yes
21962 else
21963   echo "$as_me: failed program was:" >&5
21964 sed 's/^/| /' conftest.$ac_ext >&5
21965
21966         ac_cv_type_void_p=no
21967 fi
21968
21969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21970 fi
21971 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
21972 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
21973
21974 # The cast to long int works around a bug in the HP C Compiler
21975 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21976 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21977 # This bug is HP SR number 8606223364.
21978 { echo "$as_me:$LINENO: checking size of void *" >&5
21979 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
21980 if test "${ac_cv_sizeof_void_p+set}" = set; then
21981   echo $ECHO_N "(cached) $ECHO_C" >&6
21982 else
21983   if test "$cross_compiling" = yes; then
21984   # Depending upon the size, compute the lo and hi bounds.
21985 cat >conftest.$ac_ext <<_ACEOF
21986 /* confdefs.h.  */
21987 _ACEOF
21988 cat confdefs.h >>conftest.$ac_ext
21989 cat >>conftest.$ac_ext <<_ACEOF
21990 /* end confdefs.h.  */
21991 $ac_includes_default
21992    typedef void * ac__type_sizeof_;
21993 int
21994 main ()
21995 {
21996 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21997 test_array [0] = 0
21998
21999   ;
22000   return 0;
22001 }
22002 _ACEOF
22003 rm -f conftest.$ac_objext
22004 if { (ac_try="$ac_compile"
22005 case "(($ac_try" in
22006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22007   *) ac_try_echo=$ac_try;;
22008 esac
22009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22010   (eval "$ac_compile") 2>conftest.er1
22011   ac_status=$?
22012   grep -v '^ *+' conftest.er1 >conftest.err
22013   rm -f conftest.er1
22014   cat conftest.err >&5
22015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22016   (exit $ac_status); } && {
22017          test -z "$ac_c_werror_flag" ||
22018          test ! -s conftest.err
22019        } && test -s conftest.$ac_objext; then
22020   ac_lo=0 ac_mid=0
22021   while :; do
22022     cat >conftest.$ac_ext <<_ACEOF
22023 /* confdefs.h.  */
22024 _ACEOF
22025 cat confdefs.h >>conftest.$ac_ext
22026 cat >>conftest.$ac_ext <<_ACEOF
22027 /* end confdefs.h.  */
22028 $ac_includes_default
22029    typedef void * ac__type_sizeof_;
22030 int
22031 main ()
22032 {
22033 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22034 test_array [0] = 0
22035
22036   ;
22037   return 0;
22038 }
22039 _ACEOF
22040 rm -f conftest.$ac_objext
22041 if { (ac_try="$ac_compile"
22042 case "(($ac_try" in
22043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22044   *) ac_try_echo=$ac_try;;
22045 esac
22046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22047   (eval "$ac_compile") 2>conftest.er1
22048   ac_status=$?
22049   grep -v '^ *+' conftest.er1 >conftest.err
22050   rm -f conftest.er1
22051   cat conftest.err >&5
22052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22053   (exit $ac_status); } && {
22054          test -z "$ac_c_werror_flag" ||
22055          test ! -s conftest.err
22056        } && test -s conftest.$ac_objext; then
22057   ac_hi=$ac_mid; break
22058 else
22059   echo "$as_me: failed program was:" >&5
22060 sed 's/^/| /' conftest.$ac_ext >&5
22061
22062         ac_lo=`expr $ac_mid + 1`
22063                         if test $ac_lo -le $ac_mid; then
22064                           ac_lo= ac_hi=
22065                           break
22066                         fi
22067                         ac_mid=`expr 2 '*' $ac_mid + 1`
22068 fi
22069
22070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22071   done
22072 else
22073   echo "$as_me: failed program was:" >&5
22074 sed 's/^/| /' conftest.$ac_ext >&5
22075
22076         cat >conftest.$ac_ext <<_ACEOF
22077 /* confdefs.h.  */
22078 _ACEOF
22079 cat confdefs.h >>conftest.$ac_ext
22080 cat >>conftest.$ac_ext <<_ACEOF
22081 /* end confdefs.h.  */
22082 $ac_includes_default
22083    typedef void * ac__type_sizeof_;
22084 int
22085 main ()
22086 {
22087 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22088 test_array [0] = 0
22089
22090   ;
22091   return 0;
22092 }
22093 _ACEOF
22094 rm -f conftest.$ac_objext
22095 if { (ac_try="$ac_compile"
22096 case "(($ac_try" in
22097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22098   *) ac_try_echo=$ac_try;;
22099 esac
22100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22101   (eval "$ac_compile") 2>conftest.er1
22102   ac_status=$?
22103   grep -v '^ *+' conftest.er1 >conftest.err
22104   rm -f conftest.er1
22105   cat conftest.err >&5
22106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22107   (exit $ac_status); } && {
22108          test -z "$ac_c_werror_flag" ||
22109          test ! -s conftest.err
22110        } && test -s conftest.$ac_objext; then
22111   ac_hi=-1 ac_mid=-1
22112   while :; do
22113     cat >conftest.$ac_ext <<_ACEOF
22114 /* confdefs.h.  */
22115 _ACEOF
22116 cat confdefs.h >>conftest.$ac_ext
22117 cat >>conftest.$ac_ext <<_ACEOF
22118 /* end confdefs.h.  */
22119 $ac_includes_default
22120    typedef void * ac__type_sizeof_;
22121 int
22122 main ()
22123 {
22124 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22125 test_array [0] = 0
22126
22127   ;
22128   return 0;
22129 }
22130 _ACEOF
22131 rm -f conftest.$ac_objext
22132 if { (ac_try="$ac_compile"
22133 case "(($ac_try" in
22134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22135   *) ac_try_echo=$ac_try;;
22136 esac
22137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22138   (eval "$ac_compile") 2>conftest.er1
22139   ac_status=$?
22140   grep -v '^ *+' conftest.er1 >conftest.err
22141   rm -f conftest.er1
22142   cat conftest.err >&5
22143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22144   (exit $ac_status); } && {
22145          test -z "$ac_c_werror_flag" ||
22146          test ! -s conftest.err
22147        } && test -s conftest.$ac_objext; then
22148   ac_lo=$ac_mid; break
22149 else
22150   echo "$as_me: failed program was:" >&5
22151 sed 's/^/| /' conftest.$ac_ext >&5
22152
22153         ac_hi=`expr '(' $ac_mid ')' - 1`
22154                         if test $ac_mid -le $ac_hi; then
22155                           ac_lo= ac_hi=
22156                           break
22157                         fi
22158                         ac_mid=`expr 2 '*' $ac_mid`
22159 fi
22160
22161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22162   done
22163 else
22164   echo "$as_me: failed program was:" >&5
22165 sed 's/^/| /' conftest.$ac_ext >&5
22166
22167         ac_lo= ac_hi=
22168 fi
22169
22170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22171 fi
22172
22173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22174 # Binary search between lo and hi bounds.
22175 while test "x$ac_lo" != "x$ac_hi"; do
22176   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22177   cat >conftest.$ac_ext <<_ACEOF
22178 /* confdefs.h.  */
22179 _ACEOF
22180 cat confdefs.h >>conftest.$ac_ext
22181 cat >>conftest.$ac_ext <<_ACEOF
22182 /* end confdefs.h.  */
22183 $ac_includes_default
22184    typedef void * ac__type_sizeof_;
22185 int
22186 main ()
22187 {
22188 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22189 test_array [0] = 0
22190
22191   ;
22192   return 0;
22193 }
22194 _ACEOF
22195 rm -f conftest.$ac_objext
22196 if { (ac_try="$ac_compile"
22197 case "(($ac_try" in
22198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22199   *) ac_try_echo=$ac_try;;
22200 esac
22201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22202   (eval "$ac_compile") 2>conftest.er1
22203   ac_status=$?
22204   grep -v '^ *+' conftest.er1 >conftest.err
22205   rm -f conftest.er1
22206   cat conftest.err >&5
22207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22208   (exit $ac_status); } && {
22209          test -z "$ac_c_werror_flag" ||
22210          test ! -s conftest.err
22211        } && test -s conftest.$ac_objext; then
22212   ac_hi=$ac_mid
22213 else
22214   echo "$as_me: failed program was:" >&5
22215 sed 's/^/| /' conftest.$ac_ext >&5
22216
22217         ac_lo=`expr '(' $ac_mid ')' + 1`
22218 fi
22219
22220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22221 done
22222 case $ac_lo in
22223 ?*) ac_cv_sizeof_void_p=$ac_lo;;
22224 '') if test "$ac_cv_type_void_p" = yes; then
22225      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
22226 See \`config.log' for more details." >&5
22227 echo "$as_me: error: cannot compute sizeof (void *)
22228 See \`config.log' for more details." >&2;}
22229    { (exit 77); exit 77; }; }
22230    else
22231      ac_cv_sizeof_void_p=0
22232    fi ;;
22233 esac
22234 else
22235   cat >conftest.$ac_ext <<_ACEOF
22236 /* confdefs.h.  */
22237 _ACEOF
22238 cat confdefs.h >>conftest.$ac_ext
22239 cat >>conftest.$ac_ext <<_ACEOF
22240 /* end confdefs.h.  */
22241 $ac_includes_default
22242    typedef void * ac__type_sizeof_;
22243 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22244 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22245 #include <stdio.h>
22246 #include <stdlib.h>
22247 int
22248 main ()
22249 {
22250
22251   FILE *f = fopen ("conftest.val", "w");
22252   if (! f)
22253     return 1;
22254   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22255     {
22256       long int i = longval ();
22257       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22258         return 1;
22259       fprintf (f, "%ld\n", i);
22260     }
22261   else
22262     {
22263       unsigned long int i = ulongval ();
22264       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22265         return 1;
22266       fprintf (f, "%lu\n", i);
22267     }
22268   return ferror (f) || fclose (f) != 0;
22269
22270   ;
22271   return 0;
22272 }
22273 _ACEOF
22274 rm -f conftest$ac_exeext
22275 if { (ac_try="$ac_link"
22276 case "(($ac_try" in
22277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22278   *) ac_try_echo=$ac_try;;
22279 esac
22280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22281   (eval "$ac_link") 2>&5
22282   ac_status=$?
22283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22284   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22285   { (case "(($ac_try" in
22286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22287   *) ac_try_echo=$ac_try;;
22288 esac
22289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22290   (eval "$ac_try") 2>&5
22291   ac_status=$?
22292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22293   (exit $ac_status); }; }; then
22294   ac_cv_sizeof_void_p=`cat conftest.val`
22295 else
22296   echo "$as_me: program exited with status $ac_status" >&5
22297 echo "$as_me: failed program was:" >&5
22298 sed 's/^/| /' conftest.$ac_ext >&5
22299
22300 ( exit $ac_status )
22301 if test "$ac_cv_type_void_p" = yes; then
22302      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
22303 See \`config.log' for more details." >&5
22304 echo "$as_me: error: cannot compute sizeof (void *)
22305 See \`config.log' for more details." >&2;}
22306    { (exit 77); exit 77; }; }
22307    else
22308      ac_cv_sizeof_void_p=0
22309    fi
22310 fi
22311 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22312 fi
22313 rm -f conftest.val
22314 fi
22315 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
22316 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
22317
22318
22319
22320 cat >>confdefs.h <<_ACEOF
22321 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
22322 _ACEOF
22323
22324
22325 { echo "$as_me:$LINENO: checking for int" >&5
22326 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
22327 if test "${ac_cv_type_int+set}" = set; then
22328   echo $ECHO_N "(cached) $ECHO_C" >&6
22329 else
22330   cat >conftest.$ac_ext <<_ACEOF
22331 /* confdefs.h.  */
22332 _ACEOF
22333 cat confdefs.h >>conftest.$ac_ext
22334 cat >>conftest.$ac_ext <<_ACEOF
22335 /* end confdefs.h.  */
22336 $ac_includes_default
22337 typedef int ac__type_new_;
22338 int
22339 main ()
22340 {
22341 if ((ac__type_new_ *) 0)
22342   return 0;
22343 if (sizeof (ac__type_new_))
22344   return 0;
22345   ;
22346   return 0;
22347 }
22348 _ACEOF
22349 rm -f conftest.$ac_objext
22350 if { (ac_try="$ac_compile"
22351 case "(($ac_try" in
22352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22353   *) ac_try_echo=$ac_try;;
22354 esac
22355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22356   (eval "$ac_compile") 2>conftest.er1
22357   ac_status=$?
22358   grep -v '^ *+' conftest.er1 >conftest.err
22359   rm -f conftest.er1
22360   cat conftest.err >&5
22361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22362   (exit $ac_status); } && {
22363          test -z "$ac_c_werror_flag" ||
22364          test ! -s conftest.err
22365        } && test -s conftest.$ac_objext; then
22366   ac_cv_type_int=yes
22367 else
22368   echo "$as_me: failed program was:" >&5
22369 sed 's/^/| /' conftest.$ac_ext >&5
22370
22371         ac_cv_type_int=no
22372 fi
22373
22374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22375 fi
22376 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
22377 echo "${ECHO_T}$ac_cv_type_int" >&6; }
22378
22379 # The cast to long int works around a bug in the HP C Compiler
22380 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22381 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22382 # This bug is HP SR number 8606223364.
22383 { echo "$as_me:$LINENO: checking size of int" >&5
22384 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
22385 if test "${ac_cv_sizeof_int+set}" = set; then
22386   echo $ECHO_N "(cached) $ECHO_C" >&6
22387 else
22388   if test "$cross_compiling" = yes; then
22389   # Depending upon the size, compute the lo and hi bounds.
22390 cat >conftest.$ac_ext <<_ACEOF
22391 /* confdefs.h.  */
22392 _ACEOF
22393 cat confdefs.h >>conftest.$ac_ext
22394 cat >>conftest.$ac_ext <<_ACEOF
22395 /* end confdefs.h.  */
22396 $ac_includes_default
22397    typedef int ac__type_sizeof_;
22398 int
22399 main ()
22400 {
22401 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22402 test_array [0] = 0
22403
22404   ;
22405   return 0;
22406 }
22407 _ACEOF
22408 rm -f conftest.$ac_objext
22409 if { (ac_try="$ac_compile"
22410 case "(($ac_try" in
22411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22412   *) ac_try_echo=$ac_try;;
22413 esac
22414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22415   (eval "$ac_compile") 2>conftest.er1
22416   ac_status=$?
22417   grep -v '^ *+' conftest.er1 >conftest.err
22418   rm -f conftest.er1
22419   cat conftest.err >&5
22420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22421   (exit $ac_status); } && {
22422          test -z "$ac_c_werror_flag" ||
22423          test ! -s conftest.err
22424        } && test -s conftest.$ac_objext; then
22425   ac_lo=0 ac_mid=0
22426   while :; do
22427     cat >conftest.$ac_ext <<_ACEOF
22428 /* confdefs.h.  */
22429 _ACEOF
22430 cat confdefs.h >>conftest.$ac_ext
22431 cat >>conftest.$ac_ext <<_ACEOF
22432 /* end confdefs.h.  */
22433 $ac_includes_default
22434    typedef int ac__type_sizeof_;
22435 int
22436 main ()
22437 {
22438 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22439 test_array [0] = 0
22440
22441   ;
22442   return 0;
22443 }
22444 _ACEOF
22445 rm -f conftest.$ac_objext
22446 if { (ac_try="$ac_compile"
22447 case "(($ac_try" in
22448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22449   *) ac_try_echo=$ac_try;;
22450 esac
22451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22452   (eval "$ac_compile") 2>conftest.er1
22453   ac_status=$?
22454   grep -v '^ *+' conftest.er1 >conftest.err
22455   rm -f conftest.er1
22456   cat conftest.err >&5
22457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22458   (exit $ac_status); } && {
22459          test -z "$ac_c_werror_flag" ||
22460          test ! -s conftest.err
22461        } && test -s conftest.$ac_objext; then
22462   ac_hi=$ac_mid; break
22463 else
22464   echo "$as_me: failed program was:" >&5
22465 sed 's/^/| /' conftest.$ac_ext >&5
22466
22467         ac_lo=`expr $ac_mid + 1`
22468                         if test $ac_lo -le $ac_mid; then
22469                           ac_lo= ac_hi=
22470                           break
22471                         fi
22472                         ac_mid=`expr 2 '*' $ac_mid + 1`
22473 fi
22474
22475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22476   done
22477 else
22478   echo "$as_me: failed program was:" >&5
22479 sed 's/^/| /' conftest.$ac_ext >&5
22480
22481         cat >conftest.$ac_ext <<_ACEOF
22482 /* confdefs.h.  */
22483 _ACEOF
22484 cat confdefs.h >>conftest.$ac_ext
22485 cat >>conftest.$ac_ext <<_ACEOF
22486 /* end confdefs.h.  */
22487 $ac_includes_default
22488    typedef int ac__type_sizeof_;
22489 int
22490 main ()
22491 {
22492 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22493 test_array [0] = 0
22494
22495   ;
22496   return 0;
22497 }
22498 _ACEOF
22499 rm -f conftest.$ac_objext
22500 if { (ac_try="$ac_compile"
22501 case "(($ac_try" in
22502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22503   *) ac_try_echo=$ac_try;;
22504 esac
22505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22506   (eval "$ac_compile") 2>conftest.er1
22507   ac_status=$?
22508   grep -v '^ *+' conftest.er1 >conftest.err
22509   rm -f conftest.er1
22510   cat conftest.err >&5
22511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22512   (exit $ac_status); } && {
22513          test -z "$ac_c_werror_flag" ||
22514          test ! -s conftest.err
22515        } && test -s conftest.$ac_objext; then
22516   ac_hi=-1 ac_mid=-1
22517   while :; do
22518     cat >conftest.$ac_ext <<_ACEOF
22519 /* confdefs.h.  */
22520 _ACEOF
22521 cat confdefs.h >>conftest.$ac_ext
22522 cat >>conftest.$ac_ext <<_ACEOF
22523 /* end confdefs.h.  */
22524 $ac_includes_default
22525    typedef int ac__type_sizeof_;
22526 int
22527 main ()
22528 {
22529 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22530 test_array [0] = 0
22531
22532   ;
22533   return 0;
22534 }
22535 _ACEOF
22536 rm -f conftest.$ac_objext
22537 if { (ac_try="$ac_compile"
22538 case "(($ac_try" in
22539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22540   *) ac_try_echo=$ac_try;;
22541 esac
22542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22543   (eval "$ac_compile") 2>conftest.er1
22544   ac_status=$?
22545   grep -v '^ *+' conftest.er1 >conftest.err
22546   rm -f conftest.er1
22547   cat conftest.err >&5
22548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22549   (exit $ac_status); } && {
22550          test -z "$ac_c_werror_flag" ||
22551          test ! -s conftest.err
22552        } && test -s conftest.$ac_objext; then
22553   ac_lo=$ac_mid; break
22554 else
22555   echo "$as_me: failed program was:" >&5
22556 sed 's/^/| /' conftest.$ac_ext >&5
22557
22558         ac_hi=`expr '(' $ac_mid ')' - 1`
22559                         if test $ac_mid -le $ac_hi; then
22560                           ac_lo= ac_hi=
22561                           break
22562                         fi
22563                         ac_mid=`expr 2 '*' $ac_mid`
22564 fi
22565
22566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22567   done
22568 else
22569   echo "$as_me: failed program was:" >&5
22570 sed 's/^/| /' conftest.$ac_ext >&5
22571
22572         ac_lo= ac_hi=
22573 fi
22574
22575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22576 fi
22577
22578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22579 # Binary search between lo and hi bounds.
22580 while test "x$ac_lo" != "x$ac_hi"; do
22581   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22582   cat >conftest.$ac_ext <<_ACEOF
22583 /* confdefs.h.  */
22584 _ACEOF
22585 cat confdefs.h >>conftest.$ac_ext
22586 cat >>conftest.$ac_ext <<_ACEOF
22587 /* end confdefs.h.  */
22588 $ac_includes_default
22589    typedef int ac__type_sizeof_;
22590 int
22591 main ()
22592 {
22593 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22594 test_array [0] = 0
22595
22596   ;
22597   return 0;
22598 }
22599 _ACEOF
22600 rm -f conftest.$ac_objext
22601 if { (ac_try="$ac_compile"
22602 case "(($ac_try" in
22603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22604   *) ac_try_echo=$ac_try;;
22605 esac
22606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22607   (eval "$ac_compile") 2>conftest.er1
22608   ac_status=$?
22609   grep -v '^ *+' conftest.er1 >conftest.err
22610   rm -f conftest.er1
22611   cat conftest.err >&5
22612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22613   (exit $ac_status); } && {
22614          test -z "$ac_c_werror_flag" ||
22615          test ! -s conftest.err
22616        } && test -s conftest.$ac_objext; then
22617   ac_hi=$ac_mid
22618 else
22619   echo "$as_me: failed program was:" >&5
22620 sed 's/^/| /' conftest.$ac_ext >&5
22621
22622         ac_lo=`expr '(' $ac_mid ')' + 1`
22623 fi
22624
22625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22626 done
22627 case $ac_lo in
22628 ?*) ac_cv_sizeof_int=$ac_lo;;
22629 '') if test "$ac_cv_type_int" = yes; then
22630      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
22631 See \`config.log' for more details." >&5
22632 echo "$as_me: error: cannot compute sizeof (int)
22633 See \`config.log' for more details." >&2;}
22634    { (exit 77); exit 77; }; }
22635    else
22636      ac_cv_sizeof_int=0
22637    fi ;;
22638 esac
22639 else
22640   cat >conftest.$ac_ext <<_ACEOF
22641 /* confdefs.h.  */
22642 _ACEOF
22643 cat confdefs.h >>conftest.$ac_ext
22644 cat >>conftest.$ac_ext <<_ACEOF
22645 /* end confdefs.h.  */
22646 $ac_includes_default
22647    typedef int ac__type_sizeof_;
22648 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22649 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22650 #include <stdio.h>
22651 #include <stdlib.h>
22652 int
22653 main ()
22654 {
22655
22656   FILE *f = fopen ("conftest.val", "w");
22657   if (! f)
22658     return 1;
22659   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22660     {
22661       long int i = longval ();
22662       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22663         return 1;
22664       fprintf (f, "%ld\n", i);
22665     }
22666   else
22667     {
22668       unsigned long int i = ulongval ();
22669       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22670         return 1;
22671       fprintf (f, "%lu\n", i);
22672     }
22673   return ferror (f) || fclose (f) != 0;
22674
22675   ;
22676   return 0;
22677 }
22678 _ACEOF
22679 rm -f conftest$ac_exeext
22680 if { (ac_try="$ac_link"
22681 case "(($ac_try" in
22682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22683   *) ac_try_echo=$ac_try;;
22684 esac
22685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22686   (eval "$ac_link") 2>&5
22687   ac_status=$?
22688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22689   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22690   { (case "(($ac_try" in
22691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22692   *) ac_try_echo=$ac_try;;
22693 esac
22694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22695   (eval "$ac_try") 2>&5
22696   ac_status=$?
22697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22698   (exit $ac_status); }; }; then
22699   ac_cv_sizeof_int=`cat conftest.val`
22700 else
22701   echo "$as_me: program exited with status $ac_status" >&5
22702 echo "$as_me: failed program was:" >&5
22703 sed 's/^/| /' conftest.$ac_ext >&5
22704
22705 ( exit $ac_status )
22706 if test "$ac_cv_type_int" = yes; then
22707      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
22708 See \`config.log' for more details." >&5
22709 echo "$as_me: error: cannot compute sizeof (int)
22710 See \`config.log' for more details." >&2;}
22711    { (exit 77); exit 77; }; }
22712    else
22713      ac_cv_sizeof_int=0
22714    fi
22715 fi
22716 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22717 fi
22718 rm -f conftest.val
22719 fi
22720 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
22721 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
22722
22723
22724
22725 cat >>confdefs.h <<_ACEOF
22726 #define SIZEOF_INT $ac_cv_sizeof_int
22727 _ACEOF
22728
22729
22730 { echo "$as_me:$LINENO: checking for long" >&5
22731 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
22732 if test "${ac_cv_type_long+set}" = set; then
22733   echo $ECHO_N "(cached) $ECHO_C" >&6
22734 else
22735   cat >conftest.$ac_ext <<_ACEOF
22736 /* confdefs.h.  */
22737 _ACEOF
22738 cat confdefs.h >>conftest.$ac_ext
22739 cat >>conftest.$ac_ext <<_ACEOF
22740 /* end confdefs.h.  */
22741 $ac_includes_default
22742 typedef long ac__type_new_;
22743 int
22744 main ()
22745 {
22746 if ((ac__type_new_ *) 0)
22747   return 0;
22748 if (sizeof (ac__type_new_))
22749   return 0;
22750   ;
22751   return 0;
22752 }
22753 _ACEOF
22754 rm -f conftest.$ac_objext
22755 if { (ac_try="$ac_compile"
22756 case "(($ac_try" in
22757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22758   *) ac_try_echo=$ac_try;;
22759 esac
22760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22761   (eval "$ac_compile") 2>conftest.er1
22762   ac_status=$?
22763   grep -v '^ *+' conftest.er1 >conftest.err
22764   rm -f conftest.er1
22765   cat conftest.err >&5
22766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22767   (exit $ac_status); } && {
22768          test -z "$ac_c_werror_flag" ||
22769          test ! -s conftest.err
22770        } && test -s conftest.$ac_objext; then
22771   ac_cv_type_long=yes
22772 else
22773   echo "$as_me: failed program was:" >&5
22774 sed 's/^/| /' conftest.$ac_ext >&5
22775
22776         ac_cv_type_long=no
22777 fi
22778
22779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22780 fi
22781 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
22782 echo "${ECHO_T}$ac_cv_type_long" >&6; }
22783
22784 # The cast to long int works around a bug in the HP C Compiler
22785 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22786 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22787 # This bug is HP SR number 8606223364.
22788 { echo "$as_me:$LINENO: checking size of long" >&5
22789 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
22790 if test "${ac_cv_sizeof_long+set}" = set; then
22791   echo $ECHO_N "(cached) $ECHO_C" >&6
22792 else
22793   if test "$cross_compiling" = yes; then
22794   # Depending upon the size, compute the lo and hi bounds.
22795 cat >conftest.$ac_ext <<_ACEOF
22796 /* confdefs.h.  */
22797 _ACEOF
22798 cat confdefs.h >>conftest.$ac_ext
22799 cat >>conftest.$ac_ext <<_ACEOF
22800 /* end confdefs.h.  */
22801 $ac_includes_default
22802    typedef long ac__type_sizeof_;
22803 int
22804 main ()
22805 {
22806 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22807 test_array [0] = 0
22808
22809   ;
22810   return 0;
22811 }
22812 _ACEOF
22813 rm -f conftest.$ac_objext
22814 if { (ac_try="$ac_compile"
22815 case "(($ac_try" in
22816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22817   *) ac_try_echo=$ac_try;;
22818 esac
22819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22820   (eval "$ac_compile") 2>conftest.er1
22821   ac_status=$?
22822   grep -v '^ *+' conftest.er1 >conftest.err
22823   rm -f conftest.er1
22824   cat conftest.err >&5
22825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22826   (exit $ac_status); } && {
22827          test -z "$ac_c_werror_flag" ||
22828          test ! -s conftest.err
22829        } && test -s conftest.$ac_objext; then
22830   ac_lo=0 ac_mid=0
22831   while :; do
22832     cat >conftest.$ac_ext <<_ACEOF
22833 /* confdefs.h.  */
22834 _ACEOF
22835 cat confdefs.h >>conftest.$ac_ext
22836 cat >>conftest.$ac_ext <<_ACEOF
22837 /* end confdefs.h.  */
22838 $ac_includes_default
22839    typedef long ac__type_sizeof_;
22840 int
22841 main ()
22842 {
22843 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22844 test_array [0] = 0
22845
22846   ;
22847   return 0;
22848 }
22849 _ACEOF
22850 rm -f conftest.$ac_objext
22851 if { (ac_try="$ac_compile"
22852 case "(($ac_try" in
22853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22854   *) ac_try_echo=$ac_try;;
22855 esac
22856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22857   (eval "$ac_compile") 2>conftest.er1
22858   ac_status=$?
22859   grep -v '^ *+' conftest.er1 >conftest.err
22860   rm -f conftest.er1
22861   cat conftest.err >&5
22862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22863   (exit $ac_status); } && {
22864          test -z "$ac_c_werror_flag" ||
22865          test ! -s conftest.err
22866        } && test -s conftest.$ac_objext; then
22867   ac_hi=$ac_mid; break
22868 else
22869   echo "$as_me: failed program was:" >&5
22870 sed 's/^/| /' conftest.$ac_ext >&5
22871
22872         ac_lo=`expr $ac_mid + 1`
22873                         if test $ac_lo -le $ac_mid; then
22874                           ac_lo= ac_hi=
22875                           break
22876                         fi
22877                         ac_mid=`expr 2 '*' $ac_mid + 1`
22878 fi
22879
22880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22881   done
22882 else
22883   echo "$as_me: failed program was:" >&5
22884 sed 's/^/| /' conftest.$ac_ext >&5
22885
22886         cat >conftest.$ac_ext <<_ACEOF
22887 /* confdefs.h.  */
22888 _ACEOF
22889 cat confdefs.h >>conftest.$ac_ext
22890 cat >>conftest.$ac_ext <<_ACEOF
22891 /* end confdefs.h.  */
22892 $ac_includes_default
22893    typedef long ac__type_sizeof_;
22894 int
22895 main ()
22896 {
22897 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22898 test_array [0] = 0
22899
22900   ;
22901   return 0;
22902 }
22903 _ACEOF
22904 rm -f conftest.$ac_objext
22905 if { (ac_try="$ac_compile"
22906 case "(($ac_try" in
22907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22908   *) ac_try_echo=$ac_try;;
22909 esac
22910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22911   (eval "$ac_compile") 2>conftest.er1
22912   ac_status=$?
22913   grep -v '^ *+' conftest.er1 >conftest.err
22914   rm -f conftest.er1
22915   cat conftest.err >&5
22916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22917   (exit $ac_status); } && {
22918          test -z "$ac_c_werror_flag" ||
22919          test ! -s conftest.err
22920        } && test -s conftest.$ac_objext; then
22921   ac_hi=-1 ac_mid=-1
22922   while :; do
22923     cat >conftest.$ac_ext <<_ACEOF
22924 /* confdefs.h.  */
22925 _ACEOF
22926 cat confdefs.h >>conftest.$ac_ext
22927 cat >>conftest.$ac_ext <<_ACEOF
22928 /* end confdefs.h.  */
22929 $ac_includes_default
22930    typedef long ac__type_sizeof_;
22931 int
22932 main ()
22933 {
22934 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22935 test_array [0] = 0
22936
22937   ;
22938   return 0;
22939 }
22940 _ACEOF
22941 rm -f conftest.$ac_objext
22942 if { (ac_try="$ac_compile"
22943 case "(($ac_try" in
22944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22945   *) ac_try_echo=$ac_try;;
22946 esac
22947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22948   (eval "$ac_compile") 2>conftest.er1
22949   ac_status=$?
22950   grep -v '^ *+' conftest.er1 >conftest.err
22951   rm -f conftest.er1
22952   cat conftest.err >&5
22953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22954   (exit $ac_status); } && {
22955          test -z "$ac_c_werror_flag" ||
22956          test ! -s conftest.err
22957        } && test -s conftest.$ac_objext; then
22958   ac_lo=$ac_mid; break
22959 else
22960   echo "$as_me: failed program was:" >&5
22961 sed 's/^/| /' conftest.$ac_ext >&5
22962
22963         ac_hi=`expr '(' $ac_mid ')' - 1`
22964                         if test $ac_mid -le $ac_hi; then
22965                           ac_lo= ac_hi=
22966                           break
22967                         fi
22968                         ac_mid=`expr 2 '*' $ac_mid`
22969 fi
22970
22971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22972   done
22973 else
22974   echo "$as_me: failed program was:" >&5
22975 sed 's/^/| /' conftest.$ac_ext >&5
22976
22977         ac_lo= ac_hi=
22978 fi
22979
22980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22981 fi
22982
22983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22984 # Binary search between lo and hi bounds.
22985 while test "x$ac_lo" != "x$ac_hi"; do
22986   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22987   cat >conftest.$ac_ext <<_ACEOF
22988 /* confdefs.h.  */
22989 _ACEOF
22990 cat confdefs.h >>conftest.$ac_ext
22991 cat >>conftest.$ac_ext <<_ACEOF
22992 /* end confdefs.h.  */
22993 $ac_includes_default
22994    typedef long ac__type_sizeof_;
22995 int
22996 main ()
22997 {
22998 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22999 test_array [0] = 0
23000
23001   ;
23002   return 0;
23003 }
23004 _ACEOF
23005 rm -f conftest.$ac_objext
23006 if { (ac_try="$ac_compile"
23007 case "(($ac_try" in
23008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23009   *) ac_try_echo=$ac_try;;
23010 esac
23011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23012   (eval "$ac_compile") 2>conftest.er1
23013   ac_status=$?
23014   grep -v '^ *+' conftest.er1 >conftest.err
23015   rm -f conftest.er1
23016   cat conftest.err >&5
23017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23018   (exit $ac_status); } && {
23019          test -z "$ac_c_werror_flag" ||
23020          test ! -s conftest.err
23021        } && test -s conftest.$ac_objext; then
23022   ac_hi=$ac_mid
23023 else
23024   echo "$as_me: failed program was:" >&5
23025 sed 's/^/| /' conftest.$ac_ext >&5
23026
23027         ac_lo=`expr '(' $ac_mid ')' + 1`
23028 fi
23029
23030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23031 done
23032 case $ac_lo in
23033 ?*) ac_cv_sizeof_long=$ac_lo;;
23034 '') if test "$ac_cv_type_long" = yes; then
23035      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
23036 See \`config.log' for more details." >&5
23037 echo "$as_me: error: cannot compute sizeof (long)
23038 See \`config.log' for more details." >&2;}
23039    { (exit 77); exit 77; }; }
23040    else
23041      ac_cv_sizeof_long=0
23042    fi ;;
23043 esac
23044 else
23045   cat >conftest.$ac_ext <<_ACEOF
23046 /* confdefs.h.  */
23047 _ACEOF
23048 cat confdefs.h >>conftest.$ac_ext
23049 cat >>conftest.$ac_ext <<_ACEOF
23050 /* end confdefs.h.  */
23051 $ac_includes_default
23052    typedef long ac__type_sizeof_;
23053 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23054 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23055 #include <stdio.h>
23056 #include <stdlib.h>
23057 int
23058 main ()
23059 {
23060
23061   FILE *f = fopen ("conftest.val", "w");
23062   if (! f)
23063     return 1;
23064   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23065     {
23066       long int i = longval ();
23067       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23068         return 1;
23069       fprintf (f, "%ld\n", i);
23070     }
23071   else
23072     {
23073       unsigned long int i = ulongval ();
23074       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23075         return 1;
23076       fprintf (f, "%lu\n", i);
23077     }
23078   return ferror (f) || fclose (f) != 0;
23079
23080   ;
23081   return 0;
23082 }
23083 _ACEOF
23084 rm -f conftest$ac_exeext
23085 if { (ac_try="$ac_link"
23086 case "(($ac_try" in
23087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23088   *) ac_try_echo=$ac_try;;
23089 esac
23090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23091   (eval "$ac_link") 2>&5
23092   ac_status=$?
23093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23094   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23095   { (case "(($ac_try" in
23096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23097   *) ac_try_echo=$ac_try;;
23098 esac
23099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23100   (eval "$ac_try") 2>&5
23101   ac_status=$?
23102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23103   (exit $ac_status); }; }; then
23104   ac_cv_sizeof_long=`cat conftest.val`
23105 else
23106   echo "$as_me: program exited with status $ac_status" >&5
23107 echo "$as_me: failed program was:" >&5
23108 sed 's/^/| /' conftest.$ac_ext >&5
23109
23110 ( exit $ac_status )
23111 if test "$ac_cv_type_long" = yes; then
23112      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
23113 See \`config.log' for more details." >&5
23114 echo "$as_me: error: cannot compute sizeof (long)
23115 See \`config.log' for more details." >&2;}
23116    { (exit 77); exit 77; }; }
23117    else
23118      ac_cv_sizeof_long=0
23119    fi
23120 fi
23121 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23122 fi
23123 rm -f conftest.val
23124 fi
23125 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
23126 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
23127
23128
23129
23130 cat >>confdefs.h <<_ACEOF
23131 #define SIZEOF_LONG $ac_cv_sizeof_long
23132 _ACEOF
23133
23134
23135 { echo "$as_me:$LINENO: checking for size_t" >&5
23136 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23137 if test "${ac_cv_type_size_t+set}" = set; then
23138   echo $ECHO_N "(cached) $ECHO_C" >&6
23139 else
23140   cat >conftest.$ac_ext <<_ACEOF
23141 /* confdefs.h.  */
23142 _ACEOF
23143 cat confdefs.h >>conftest.$ac_ext
23144 cat >>conftest.$ac_ext <<_ACEOF
23145 /* end confdefs.h.  */
23146 $ac_includes_default
23147 typedef size_t ac__type_new_;
23148 int
23149 main ()
23150 {
23151 if ((ac__type_new_ *) 0)
23152   return 0;
23153 if (sizeof (ac__type_new_))
23154   return 0;
23155   ;
23156   return 0;
23157 }
23158 _ACEOF
23159 rm -f conftest.$ac_objext
23160 if { (ac_try="$ac_compile"
23161 case "(($ac_try" in
23162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23163   *) ac_try_echo=$ac_try;;
23164 esac
23165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23166   (eval "$ac_compile") 2>conftest.er1
23167   ac_status=$?
23168   grep -v '^ *+' conftest.er1 >conftest.err
23169   rm -f conftest.er1
23170   cat conftest.err >&5
23171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23172   (exit $ac_status); } && {
23173          test -z "$ac_c_werror_flag" ||
23174          test ! -s conftest.err
23175        } && test -s conftest.$ac_objext; then
23176   ac_cv_type_size_t=yes
23177 else
23178   echo "$as_me: failed program was:" >&5
23179 sed 's/^/| /' conftest.$ac_ext >&5
23180
23181         ac_cv_type_size_t=no
23182 fi
23183
23184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23185 fi
23186 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23187 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23188
23189 # The cast to long int works around a bug in the HP C Compiler
23190 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23191 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23192 # This bug is HP SR number 8606223364.
23193 { echo "$as_me:$LINENO: checking size of size_t" >&5
23194 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
23195 if test "${ac_cv_sizeof_size_t+set}" = set; then
23196   echo $ECHO_N "(cached) $ECHO_C" >&6
23197 else
23198   if test "$cross_compiling" = yes; then
23199   # Depending upon the size, compute the lo and hi bounds.
23200 cat >conftest.$ac_ext <<_ACEOF
23201 /* confdefs.h.  */
23202 _ACEOF
23203 cat confdefs.h >>conftest.$ac_ext
23204 cat >>conftest.$ac_ext <<_ACEOF
23205 /* end confdefs.h.  */
23206 $ac_includes_default
23207    typedef size_t ac__type_sizeof_;
23208 int
23209 main ()
23210 {
23211 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23212 test_array [0] = 0
23213
23214   ;
23215   return 0;
23216 }
23217 _ACEOF
23218 rm -f conftest.$ac_objext
23219 if { (ac_try="$ac_compile"
23220 case "(($ac_try" in
23221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23222   *) ac_try_echo=$ac_try;;
23223 esac
23224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23225   (eval "$ac_compile") 2>conftest.er1
23226   ac_status=$?
23227   grep -v '^ *+' conftest.er1 >conftest.err
23228   rm -f conftest.er1
23229   cat conftest.err >&5
23230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23231   (exit $ac_status); } && {
23232          test -z "$ac_c_werror_flag" ||
23233          test ! -s conftest.err
23234        } && test -s conftest.$ac_objext; then
23235   ac_lo=0 ac_mid=0
23236   while :; do
23237     cat >conftest.$ac_ext <<_ACEOF
23238 /* confdefs.h.  */
23239 _ACEOF
23240 cat confdefs.h >>conftest.$ac_ext
23241 cat >>conftest.$ac_ext <<_ACEOF
23242 /* end confdefs.h.  */
23243 $ac_includes_default
23244    typedef size_t ac__type_sizeof_;
23245 int
23246 main ()
23247 {
23248 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23249 test_array [0] = 0
23250
23251   ;
23252   return 0;
23253 }
23254 _ACEOF
23255 rm -f conftest.$ac_objext
23256 if { (ac_try="$ac_compile"
23257 case "(($ac_try" in
23258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23259   *) ac_try_echo=$ac_try;;
23260 esac
23261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23262   (eval "$ac_compile") 2>conftest.er1
23263   ac_status=$?
23264   grep -v '^ *+' conftest.er1 >conftest.err
23265   rm -f conftest.er1
23266   cat conftest.err >&5
23267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23268   (exit $ac_status); } && {
23269          test -z "$ac_c_werror_flag" ||
23270          test ! -s conftest.err
23271        } && test -s conftest.$ac_objext; then
23272   ac_hi=$ac_mid; break
23273 else
23274   echo "$as_me: failed program was:" >&5
23275 sed 's/^/| /' conftest.$ac_ext >&5
23276
23277         ac_lo=`expr $ac_mid + 1`
23278                         if test $ac_lo -le $ac_mid; then
23279                           ac_lo= ac_hi=
23280                           break
23281                         fi
23282                         ac_mid=`expr 2 '*' $ac_mid + 1`
23283 fi
23284
23285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23286   done
23287 else
23288   echo "$as_me: failed program was:" >&5
23289 sed 's/^/| /' conftest.$ac_ext >&5
23290
23291         cat >conftest.$ac_ext <<_ACEOF
23292 /* confdefs.h.  */
23293 _ACEOF
23294 cat confdefs.h >>conftest.$ac_ext
23295 cat >>conftest.$ac_ext <<_ACEOF
23296 /* end confdefs.h.  */
23297 $ac_includes_default
23298    typedef size_t ac__type_sizeof_;
23299 int
23300 main ()
23301 {
23302 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23303 test_array [0] = 0
23304
23305   ;
23306   return 0;
23307 }
23308 _ACEOF
23309 rm -f conftest.$ac_objext
23310 if { (ac_try="$ac_compile"
23311 case "(($ac_try" in
23312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23313   *) ac_try_echo=$ac_try;;
23314 esac
23315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23316   (eval "$ac_compile") 2>conftest.er1
23317   ac_status=$?
23318   grep -v '^ *+' conftest.er1 >conftest.err
23319   rm -f conftest.er1
23320   cat conftest.err >&5
23321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23322   (exit $ac_status); } && {
23323          test -z "$ac_c_werror_flag" ||
23324          test ! -s conftest.err
23325        } && test -s conftest.$ac_objext; then
23326   ac_hi=-1 ac_mid=-1
23327   while :; do
23328     cat >conftest.$ac_ext <<_ACEOF
23329 /* confdefs.h.  */
23330 _ACEOF
23331 cat confdefs.h >>conftest.$ac_ext
23332 cat >>conftest.$ac_ext <<_ACEOF
23333 /* end confdefs.h.  */
23334 $ac_includes_default
23335    typedef size_t ac__type_sizeof_;
23336 int
23337 main ()
23338 {
23339 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23340 test_array [0] = 0
23341
23342   ;
23343   return 0;
23344 }
23345 _ACEOF
23346 rm -f conftest.$ac_objext
23347 if { (ac_try="$ac_compile"
23348 case "(($ac_try" in
23349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23350   *) ac_try_echo=$ac_try;;
23351 esac
23352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23353   (eval "$ac_compile") 2>conftest.er1
23354   ac_status=$?
23355   grep -v '^ *+' conftest.er1 >conftest.err
23356   rm -f conftest.er1
23357   cat conftest.err >&5
23358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23359   (exit $ac_status); } && {
23360          test -z "$ac_c_werror_flag" ||
23361          test ! -s conftest.err
23362        } && test -s conftest.$ac_objext; then
23363   ac_lo=$ac_mid; break
23364 else
23365   echo "$as_me: failed program was:" >&5
23366 sed 's/^/| /' conftest.$ac_ext >&5
23367
23368         ac_hi=`expr '(' $ac_mid ')' - 1`
23369                         if test $ac_mid -le $ac_hi; then
23370                           ac_lo= ac_hi=
23371                           break
23372                         fi
23373                         ac_mid=`expr 2 '*' $ac_mid`
23374 fi
23375
23376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23377   done
23378 else
23379   echo "$as_me: failed program was:" >&5
23380 sed 's/^/| /' conftest.$ac_ext >&5
23381
23382         ac_lo= ac_hi=
23383 fi
23384
23385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23386 fi
23387
23388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23389 # Binary search between lo and hi bounds.
23390 while test "x$ac_lo" != "x$ac_hi"; do
23391   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23392   cat >conftest.$ac_ext <<_ACEOF
23393 /* confdefs.h.  */
23394 _ACEOF
23395 cat confdefs.h >>conftest.$ac_ext
23396 cat >>conftest.$ac_ext <<_ACEOF
23397 /* end confdefs.h.  */
23398 $ac_includes_default
23399    typedef size_t ac__type_sizeof_;
23400 int
23401 main ()
23402 {
23403 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23404 test_array [0] = 0
23405
23406   ;
23407   return 0;
23408 }
23409 _ACEOF
23410 rm -f conftest.$ac_objext
23411 if { (ac_try="$ac_compile"
23412 case "(($ac_try" in
23413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23414   *) ac_try_echo=$ac_try;;
23415 esac
23416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23417   (eval "$ac_compile") 2>conftest.er1
23418   ac_status=$?
23419   grep -v '^ *+' conftest.er1 >conftest.err
23420   rm -f conftest.er1
23421   cat conftest.err >&5
23422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23423   (exit $ac_status); } && {
23424          test -z "$ac_c_werror_flag" ||
23425          test ! -s conftest.err
23426        } && test -s conftest.$ac_objext; then
23427   ac_hi=$ac_mid
23428 else
23429   echo "$as_me: failed program was:" >&5
23430 sed 's/^/| /' conftest.$ac_ext >&5
23431
23432         ac_lo=`expr '(' $ac_mid ')' + 1`
23433 fi
23434
23435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23436 done
23437 case $ac_lo in
23438 ?*) ac_cv_sizeof_size_t=$ac_lo;;
23439 '') if test "$ac_cv_type_size_t" = yes; then
23440      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
23441 See \`config.log' for more details." >&5
23442 echo "$as_me: error: cannot compute sizeof (size_t)
23443 See \`config.log' for more details." >&2;}
23444    { (exit 77); exit 77; }; }
23445    else
23446      ac_cv_sizeof_size_t=0
23447    fi ;;
23448 esac
23449 else
23450   cat >conftest.$ac_ext <<_ACEOF
23451 /* confdefs.h.  */
23452 _ACEOF
23453 cat confdefs.h >>conftest.$ac_ext
23454 cat >>conftest.$ac_ext <<_ACEOF
23455 /* end confdefs.h.  */
23456 $ac_includes_default
23457    typedef size_t ac__type_sizeof_;
23458 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23459 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23460 #include <stdio.h>
23461 #include <stdlib.h>
23462 int
23463 main ()
23464 {
23465
23466   FILE *f = fopen ("conftest.val", "w");
23467   if (! f)
23468     return 1;
23469   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23470     {
23471       long int i = longval ();
23472       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23473         return 1;
23474       fprintf (f, "%ld\n", i);
23475     }
23476   else
23477     {
23478       unsigned long int i = ulongval ();
23479       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23480         return 1;
23481       fprintf (f, "%lu\n", i);
23482     }
23483   return ferror (f) || fclose (f) != 0;
23484
23485   ;
23486   return 0;
23487 }
23488 _ACEOF
23489 rm -f conftest$ac_exeext
23490 if { (ac_try="$ac_link"
23491 case "(($ac_try" in
23492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23493   *) ac_try_echo=$ac_try;;
23494 esac
23495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23496   (eval "$ac_link") 2>&5
23497   ac_status=$?
23498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23499   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23500   { (case "(($ac_try" in
23501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23502   *) ac_try_echo=$ac_try;;
23503 esac
23504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23505   (eval "$ac_try") 2>&5
23506   ac_status=$?
23507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23508   (exit $ac_status); }; }; then
23509   ac_cv_sizeof_size_t=`cat conftest.val`
23510 else
23511   echo "$as_me: program exited with status $ac_status" >&5
23512 echo "$as_me: failed program was:" >&5
23513 sed 's/^/| /' conftest.$ac_ext >&5
23514
23515 ( exit $ac_status )
23516 if test "$ac_cv_type_size_t" = yes; then
23517      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
23518 See \`config.log' for more details." >&5
23519 echo "$as_me: error: cannot compute sizeof (size_t)
23520 See \`config.log' for more details." >&2;}
23521    { (exit 77); exit 77; }; }
23522    else
23523      ac_cv_sizeof_size_t=0
23524    fi
23525 fi
23526 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23527 fi
23528 rm -f conftest.val
23529 fi
23530 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
23531 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
23532
23533
23534
23535 cat >>confdefs.h <<_ACEOF
23536 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23537 _ACEOF
23538
23539
23540
23541 case "${host}" in
23542     arm-*-linux* )
23543         { echo "$as_me:$LINENO: checking for long long" >&5
23544 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
23545 if test "${ac_cv_type_long_long+set}" = set; then
23546   echo $ECHO_N "(cached) $ECHO_C" >&6
23547 else
23548   cat >conftest.$ac_ext <<_ACEOF
23549 /* confdefs.h.  */
23550 _ACEOF
23551 cat confdefs.h >>conftest.$ac_ext
23552 cat >>conftest.$ac_ext <<_ACEOF
23553 /* end confdefs.h.  */
23554 $ac_includes_default
23555 typedef long long ac__type_new_;
23556 int
23557 main ()
23558 {
23559 if ((ac__type_new_ *) 0)
23560   return 0;
23561 if (sizeof (ac__type_new_))
23562   return 0;
23563   ;
23564   return 0;
23565 }
23566 _ACEOF
23567 rm -f conftest.$ac_objext
23568 if { (ac_try="$ac_compile"
23569 case "(($ac_try" in
23570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23571   *) ac_try_echo=$ac_try;;
23572 esac
23573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23574   (eval "$ac_compile") 2>conftest.er1
23575   ac_status=$?
23576   grep -v '^ *+' conftest.er1 >conftest.err
23577   rm -f conftest.er1
23578   cat conftest.err >&5
23579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23580   (exit $ac_status); } && {
23581          test -z "$ac_c_werror_flag" ||
23582          test ! -s conftest.err
23583        } && test -s conftest.$ac_objext; then
23584   ac_cv_type_long_long=yes
23585 else
23586   echo "$as_me: failed program was:" >&5
23587 sed 's/^/| /' conftest.$ac_ext >&5
23588
23589         ac_cv_type_long_long=no
23590 fi
23591
23592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23593 fi
23594 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
23595 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
23596
23597 # The cast to long int works around a bug in the HP C Compiler
23598 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23599 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23600 # This bug is HP SR number 8606223364.
23601 { echo "$as_me:$LINENO: checking size of long long" >&5
23602 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
23603 if test "${ac_cv_sizeof_long_long+set}" = set; then
23604   echo $ECHO_N "(cached) $ECHO_C" >&6
23605 else
23606   if test "$cross_compiling" = yes; then
23607   # Depending upon the size, compute the lo and hi bounds.
23608 cat >conftest.$ac_ext <<_ACEOF
23609 /* confdefs.h.  */
23610 _ACEOF
23611 cat confdefs.h >>conftest.$ac_ext
23612 cat >>conftest.$ac_ext <<_ACEOF
23613 /* end confdefs.h.  */
23614 $ac_includes_default
23615    typedef long long ac__type_sizeof_;
23616 int
23617 main ()
23618 {
23619 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23620 test_array [0] = 0
23621
23622   ;
23623   return 0;
23624 }
23625 _ACEOF
23626 rm -f conftest.$ac_objext
23627 if { (ac_try="$ac_compile"
23628 case "(($ac_try" in
23629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23630   *) ac_try_echo=$ac_try;;
23631 esac
23632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23633   (eval "$ac_compile") 2>conftest.er1
23634   ac_status=$?
23635   grep -v '^ *+' conftest.er1 >conftest.err
23636   rm -f conftest.er1
23637   cat conftest.err >&5
23638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23639   (exit $ac_status); } && {
23640          test -z "$ac_c_werror_flag" ||
23641          test ! -s conftest.err
23642        } && test -s conftest.$ac_objext; then
23643   ac_lo=0 ac_mid=0
23644   while :; do
23645     cat >conftest.$ac_ext <<_ACEOF
23646 /* confdefs.h.  */
23647 _ACEOF
23648 cat confdefs.h >>conftest.$ac_ext
23649 cat >>conftest.$ac_ext <<_ACEOF
23650 /* end confdefs.h.  */
23651 $ac_includes_default
23652    typedef long long ac__type_sizeof_;
23653 int
23654 main ()
23655 {
23656 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23657 test_array [0] = 0
23658
23659   ;
23660   return 0;
23661 }
23662 _ACEOF
23663 rm -f conftest.$ac_objext
23664 if { (ac_try="$ac_compile"
23665 case "(($ac_try" in
23666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23667   *) ac_try_echo=$ac_try;;
23668 esac
23669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23670   (eval "$ac_compile") 2>conftest.er1
23671   ac_status=$?
23672   grep -v '^ *+' conftest.er1 >conftest.err
23673   rm -f conftest.er1
23674   cat conftest.err >&5
23675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23676   (exit $ac_status); } && {
23677          test -z "$ac_c_werror_flag" ||
23678          test ! -s conftest.err
23679        } && test -s conftest.$ac_objext; then
23680   ac_hi=$ac_mid; break
23681 else
23682   echo "$as_me: failed program was:" >&5
23683 sed 's/^/| /' conftest.$ac_ext >&5
23684
23685         ac_lo=`expr $ac_mid + 1`
23686                         if test $ac_lo -le $ac_mid; then
23687                           ac_lo= ac_hi=
23688                           break
23689                         fi
23690                         ac_mid=`expr 2 '*' $ac_mid + 1`
23691 fi
23692
23693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23694   done
23695 else
23696   echo "$as_me: failed program was:" >&5
23697 sed 's/^/| /' conftest.$ac_ext >&5
23698
23699         cat >conftest.$ac_ext <<_ACEOF
23700 /* confdefs.h.  */
23701 _ACEOF
23702 cat confdefs.h >>conftest.$ac_ext
23703 cat >>conftest.$ac_ext <<_ACEOF
23704 /* end confdefs.h.  */
23705 $ac_includes_default
23706    typedef long long ac__type_sizeof_;
23707 int
23708 main ()
23709 {
23710 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23711 test_array [0] = 0
23712
23713   ;
23714   return 0;
23715 }
23716 _ACEOF
23717 rm -f conftest.$ac_objext
23718 if { (ac_try="$ac_compile"
23719 case "(($ac_try" in
23720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23721   *) ac_try_echo=$ac_try;;
23722 esac
23723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23724   (eval "$ac_compile") 2>conftest.er1
23725   ac_status=$?
23726   grep -v '^ *+' conftest.er1 >conftest.err
23727   rm -f conftest.er1
23728   cat conftest.err >&5
23729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23730   (exit $ac_status); } && {
23731          test -z "$ac_c_werror_flag" ||
23732          test ! -s conftest.err
23733        } && test -s conftest.$ac_objext; then
23734   ac_hi=-1 ac_mid=-1
23735   while :; do
23736     cat >conftest.$ac_ext <<_ACEOF
23737 /* confdefs.h.  */
23738 _ACEOF
23739 cat confdefs.h >>conftest.$ac_ext
23740 cat >>conftest.$ac_ext <<_ACEOF
23741 /* end confdefs.h.  */
23742 $ac_includes_default
23743    typedef long long ac__type_sizeof_;
23744 int
23745 main ()
23746 {
23747 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23748 test_array [0] = 0
23749
23750   ;
23751   return 0;
23752 }
23753 _ACEOF
23754 rm -f conftest.$ac_objext
23755 if { (ac_try="$ac_compile"
23756 case "(($ac_try" in
23757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23758   *) ac_try_echo=$ac_try;;
23759 esac
23760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23761   (eval "$ac_compile") 2>conftest.er1
23762   ac_status=$?
23763   grep -v '^ *+' conftest.er1 >conftest.err
23764   rm -f conftest.er1
23765   cat conftest.err >&5
23766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23767   (exit $ac_status); } && {
23768          test -z "$ac_c_werror_flag" ||
23769          test ! -s conftest.err
23770        } && test -s conftest.$ac_objext; then
23771   ac_lo=$ac_mid; break
23772 else
23773   echo "$as_me: failed program was:" >&5
23774 sed 's/^/| /' conftest.$ac_ext >&5
23775
23776         ac_hi=`expr '(' $ac_mid ')' - 1`
23777                         if test $ac_mid -le $ac_hi; then
23778                           ac_lo= ac_hi=
23779                           break
23780                         fi
23781                         ac_mid=`expr 2 '*' $ac_mid`
23782 fi
23783
23784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23785   done
23786 else
23787   echo "$as_me: failed program was:" >&5
23788 sed 's/^/| /' conftest.$ac_ext >&5
23789
23790         ac_lo= ac_hi=
23791 fi
23792
23793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23794 fi
23795
23796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23797 # Binary search between lo and hi bounds.
23798 while test "x$ac_lo" != "x$ac_hi"; do
23799   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23800   cat >conftest.$ac_ext <<_ACEOF
23801 /* confdefs.h.  */
23802 _ACEOF
23803 cat confdefs.h >>conftest.$ac_ext
23804 cat >>conftest.$ac_ext <<_ACEOF
23805 /* end confdefs.h.  */
23806 $ac_includes_default
23807    typedef long long ac__type_sizeof_;
23808 int
23809 main ()
23810 {
23811 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23812 test_array [0] = 0
23813
23814   ;
23815   return 0;
23816 }
23817 _ACEOF
23818 rm -f conftest.$ac_objext
23819 if { (ac_try="$ac_compile"
23820 case "(($ac_try" in
23821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23822   *) ac_try_echo=$ac_try;;
23823 esac
23824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23825   (eval "$ac_compile") 2>conftest.er1
23826   ac_status=$?
23827   grep -v '^ *+' conftest.er1 >conftest.err
23828   rm -f conftest.er1
23829   cat conftest.err >&5
23830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23831   (exit $ac_status); } && {
23832          test -z "$ac_c_werror_flag" ||
23833          test ! -s conftest.err
23834        } && test -s conftest.$ac_objext; then
23835   ac_hi=$ac_mid
23836 else
23837   echo "$as_me: failed program was:" >&5
23838 sed 's/^/| /' conftest.$ac_ext >&5
23839
23840         ac_lo=`expr '(' $ac_mid ')' + 1`
23841 fi
23842
23843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23844 done
23845 case $ac_lo in
23846 ?*) ac_cv_sizeof_long_long=$ac_lo;;
23847 '') if test "$ac_cv_type_long_long" = yes; then
23848      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23849 See \`config.log' for more details." >&5
23850 echo "$as_me: error: cannot compute sizeof (long long)
23851 See \`config.log' for more details." >&2;}
23852    { (exit 77); exit 77; }; }
23853    else
23854      ac_cv_sizeof_long_long=0
23855    fi ;;
23856 esac
23857 else
23858   cat >conftest.$ac_ext <<_ACEOF
23859 /* confdefs.h.  */
23860 _ACEOF
23861 cat confdefs.h >>conftest.$ac_ext
23862 cat >>conftest.$ac_ext <<_ACEOF
23863 /* end confdefs.h.  */
23864 $ac_includes_default
23865    typedef long long ac__type_sizeof_;
23866 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23867 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23868 #include <stdio.h>
23869 #include <stdlib.h>
23870 int
23871 main ()
23872 {
23873
23874   FILE *f = fopen ("conftest.val", "w");
23875   if (! f)
23876     return 1;
23877   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23878     {
23879       long int i = longval ();
23880       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23881         return 1;
23882       fprintf (f, "%ld\n", i);
23883     }
23884   else
23885     {
23886       unsigned long int i = ulongval ();
23887       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23888         return 1;
23889       fprintf (f, "%lu\n", i);
23890     }
23891   return ferror (f) || fclose (f) != 0;
23892
23893   ;
23894   return 0;
23895 }
23896 _ACEOF
23897 rm -f conftest$ac_exeext
23898 if { (ac_try="$ac_link"
23899 case "(($ac_try" in
23900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23901   *) ac_try_echo=$ac_try;;
23902 esac
23903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23904   (eval "$ac_link") 2>&5
23905   ac_status=$?
23906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23907   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23908   { (case "(($ac_try" in
23909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23910   *) ac_try_echo=$ac_try;;
23911 esac
23912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23913   (eval "$ac_try") 2>&5
23914   ac_status=$?
23915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23916   (exit $ac_status); }; }; then
23917   ac_cv_sizeof_long_long=`cat conftest.val`
23918 else
23919   echo "$as_me: program exited with status $ac_status" >&5
23920 echo "$as_me: failed program was:" >&5
23921 sed 's/^/| /' conftest.$ac_ext >&5
23922
23923 ( exit $ac_status )
23924 if test "$ac_cv_type_long_long" = yes; then
23925      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23926 See \`config.log' for more details." >&5
23927 echo "$as_me: error: cannot compute sizeof (long long)
23928 See \`config.log' for more details." >&2;}
23929    { (exit 77); exit 77; }; }
23930    else
23931      ac_cv_sizeof_long_long=0
23932    fi
23933 fi
23934 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23935 fi
23936 rm -f conftest.val
23937 fi
23938 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
23939 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
23940
23941
23942
23943 cat >>confdefs.h <<_ACEOF
23944 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23945 _ACEOF
23946
23947
23948     ;;
23949     *-hp-hpux* )
23950         { echo "$as_me:$LINENO: checking for long long" >&5
23951 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
23952 if test "${ac_cv_type_long_long+set}" = set; then
23953   echo $ECHO_N "(cached) $ECHO_C" >&6
23954 else
23955   cat >conftest.$ac_ext <<_ACEOF
23956 /* confdefs.h.  */
23957 _ACEOF
23958 cat confdefs.h >>conftest.$ac_ext
23959 cat >>conftest.$ac_ext <<_ACEOF
23960 /* end confdefs.h.  */
23961 $ac_includes_default
23962 typedef long long ac__type_new_;
23963 int
23964 main ()
23965 {
23966 if ((ac__type_new_ *) 0)
23967   return 0;
23968 if (sizeof (ac__type_new_))
23969   return 0;
23970   ;
23971   return 0;
23972 }
23973 _ACEOF
23974 rm -f conftest.$ac_objext
23975 if { (ac_try="$ac_compile"
23976 case "(($ac_try" in
23977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23978   *) ac_try_echo=$ac_try;;
23979 esac
23980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23981   (eval "$ac_compile") 2>conftest.er1
23982   ac_status=$?
23983   grep -v '^ *+' conftest.er1 >conftest.err
23984   rm -f conftest.er1
23985   cat conftest.err >&5
23986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23987   (exit $ac_status); } && {
23988          test -z "$ac_c_werror_flag" ||
23989          test ! -s conftest.err
23990        } && test -s conftest.$ac_objext; then
23991   ac_cv_type_long_long=yes
23992 else
23993   echo "$as_me: failed program was:" >&5
23994 sed 's/^/| /' conftest.$ac_ext >&5
23995
23996         ac_cv_type_long_long=no
23997 fi
23998
23999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24000 fi
24001 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
24002 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
24003
24004 # The cast to long int works around a bug in the HP C Compiler
24005 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24006 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24007 # This bug is HP SR number 8606223364.
24008 { echo "$as_me:$LINENO: checking size of long long" >&5
24009 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
24010 if test "${ac_cv_sizeof_long_long+set}" = set; then
24011   echo $ECHO_N "(cached) $ECHO_C" >&6
24012 else
24013   if test "$cross_compiling" = yes; then
24014   # Depending upon the size, compute the lo and hi bounds.
24015 cat >conftest.$ac_ext <<_ACEOF
24016 /* confdefs.h.  */
24017 _ACEOF
24018 cat confdefs.h >>conftest.$ac_ext
24019 cat >>conftest.$ac_ext <<_ACEOF
24020 /* end confdefs.h.  */
24021 $ac_includes_default
24022    typedef long long ac__type_sizeof_;
24023 int
24024 main ()
24025 {
24026 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24027 test_array [0] = 0
24028
24029   ;
24030   return 0;
24031 }
24032 _ACEOF
24033 rm -f conftest.$ac_objext
24034 if { (ac_try="$ac_compile"
24035 case "(($ac_try" in
24036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24037   *) ac_try_echo=$ac_try;;
24038 esac
24039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24040   (eval "$ac_compile") 2>conftest.er1
24041   ac_status=$?
24042   grep -v '^ *+' conftest.er1 >conftest.err
24043   rm -f conftest.er1
24044   cat conftest.err >&5
24045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24046   (exit $ac_status); } && {
24047          test -z "$ac_c_werror_flag" ||
24048          test ! -s conftest.err
24049        } && test -s conftest.$ac_objext; then
24050   ac_lo=0 ac_mid=0
24051   while :; do
24052     cat >conftest.$ac_ext <<_ACEOF
24053 /* confdefs.h.  */
24054 _ACEOF
24055 cat confdefs.h >>conftest.$ac_ext
24056 cat >>conftest.$ac_ext <<_ACEOF
24057 /* end confdefs.h.  */
24058 $ac_includes_default
24059    typedef long long ac__type_sizeof_;
24060 int
24061 main ()
24062 {
24063 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24064 test_array [0] = 0
24065
24066   ;
24067   return 0;
24068 }
24069 _ACEOF
24070 rm -f conftest.$ac_objext
24071 if { (ac_try="$ac_compile"
24072 case "(($ac_try" in
24073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24074   *) ac_try_echo=$ac_try;;
24075 esac
24076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24077   (eval "$ac_compile") 2>conftest.er1
24078   ac_status=$?
24079   grep -v '^ *+' conftest.er1 >conftest.err
24080   rm -f conftest.er1
24081   cat conftest.err >&5
24082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24083   (exit $ac_status); } && {
24084          test -z "$ac_c_werror_flag" ||
24085          test ! -s conftest.err
24086        } && test -s conftest.$ac_objext; then
24087   ac_hi=$ac_mid; break
24088 else
24089   echo "$as_me: failed program was:" >&5
24090 sed 's/^/| /' conftest.$ac_ext >&5
24091
24092         ac_lo=`expr $ac_mid + 1`
24093                         if test $ac_lo -le $ac_mid; then
24094                           ac_lo= ac_hi=
24095                           break
24096                         fi
24097                         ac_mid=`expr 2 '*' $ac_mid + 1`
24098 fi
24099
24100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24101   done
24102 else
24103   echo "$as_me: failed program was:" >&5
24104 sed 's/^/| /' conftest.$ac_ext >&5
24105
24106         cat >conftest.$ac_ext <<_ACEOF
24107 /* confdefs.h.  */
24108 _ACEOF
24109 cat confdefs.h >>conftest.$ac_ext
24110 cat >>conftest.$ac_ext <<_ACEOF
24111 /* end confdefs.h.  */
24112 $ac_includes_default
24113    typedef long long ac__type_sizeof_;
24114 int
24115 main ()
24116 {
24117 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24118 test_array [0] = 0
24119
24120   ;
24121   return 0;
24122 }
24123 _ACEOF
24124 rm -f conftest.$ac_objext
24125 if { (ac_try="$ac_compile"
24126 case "(($ac_try" in
24127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24128   *) ac_try_echo=$ac_try;;
24129 esac
24130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24131   (eval "$ac_compile") 2>conftest.er1
24132   ac_status=$?
24133   grep -v '^ *+' conftest.er1 >conftest.err
24134   rm -f conftest.er1
24135   cat conftest.err >&5
24136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24137   (exit $ac_status); } && {
24138          test -z "$ac_c_werror_flag" ||
24139          test ! -s conftest.err
24140        } && test -s conftest.$ac_objext; then
24141   ac_hi=-1 ac_mid=-1
24142   while :; do
24143     cat >conftest.$ac_ext <<_ACEOF
24144 /* confdefs.h.  */
24145 _ACEOF
24146 cat confdefs.h >>conftest.$ac_ext
24147 cat >>conftest.$ac_ext <<_ACEOF
24148 /* end confdefs.h.  */
24149 $ac_includes_default
24150    typedef long long ac__type_sizeof_;
24151 int
24152 main ()
24153 {
24154 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24155 test_array [0] = 0
24156
24157   ;
24158   return 0;
24159 }
24160 _ACEOF
24161 rm -f conftest.$ac_objext
24162 if { (ac_try="$ac_compile"
24163 case "(($ac_try" in
24164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24165   *) ac_try_echo=$ac_try;;
24166 esac
24167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24168   (eval "$ac_compile") 2>conftest.er1
24169   ac_status=$?
24170   grep -v '^ *+' conftest.er1 >conftest.err
24171   rm -f conftest.er1
24172   cat conftest.err >&5
24173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24174   (exit $ac_status); } && {
24175          test -z "$ac_c_werror_flag" ||
24176          test ! -s conftest.err
24177        } && test -s conftest.$ac_objext; then
24178   ac_lo=$ac_mid; break
24179 else
24180   echo "$as_me: failed program was:" >&5
24181 sed 's/^/| /' conftest.$ac_ext >&5
24182
24183         ac_hi=`expr '(' $ac_mid ')' - 1`
24184                         if test $ac_mid -le $ac_hi; then
24185                           ac_lo= ac_hi=
24186                           break
24187                         fi
24188                         ac_mid=`expr 2 '*' $ac_mid`
24189 fi
24190
24191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24192   done
24193 else
24194   echo "$as_me: failed program was:" >&5
24195 sed 's/^/| /' conftest.$ac_ext >&5
24196
24197         ac_lo= ac_hi=
24198 fi
24199
24200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24201 fi
24202
24203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24204 # Binary search between lo and hi bounds.
24205 while test "x$ac_lo" != "x$ac_hi"; do
24206   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24207   cat >conftest.$ac_ext <<_ACEOF
24208 /* confdefs.h.  */
24209 _ACEOF
24210 cat confdefs.h >>conftest.$ac_ext
24211 cat >>conftest.$ac_ext <<_ACEOF
24212 /* end confdefs.h.  */
24213 $ac_includes_default
24214    typedef long long ac__type_sizeof_;
24215 int
24216 main ()
24217 {
24218 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24219 test_array [0] = 0
24220
24221   ;
24222   return 0;
24223 }
24224 _ACEOF
24225 rm -f conftest.$ac_objext
24226 if { (ac_try="$ac_compile"
24227 case "(($ac_try" in
24228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24229   *) ac_try_echo=$ac_try;;
24230 esac
24231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24232   (eval "$ac_compile") 2>conftest.er1
24233   ac_status=$?
24234   grep -v '^ *+' conftest.er1 >conftest.err
24235   rm -f conftest.er1
24236   cat conftest.err >&5
24237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24238   (exit $ac_status); } && {
24239          test -z "$ac_c_werror_flag" ||
24240          test ! -s conftest.err
24241        } && test -s conftest.$ac_objext; then
24242   ac_hi=$ac_mid
24243 else
24244   echo "$as_me: failed program was:" >&5
24245 sed 's/^/| /' conftest.$ac_ext >&5
24246
24247         ac_lo=`expr '(' $ac_mid ')' + 1`
24248 fi
24249
24250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24251 done
24252 case $ac_lo in
24253 ?*) ac_cv_sizeof_long_long=$ac_lo;;
24254 '') if test "$ac_cv_type_long_long" = yes; then
24255      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
24256 See \`config.log' for more details." >&5
24257 echo "$as_me: error: cannot compute sizeof (long long)
24258 See \`config.log' for more details." >&2;}
24259    { (exit 77); exit 77; }; }
24260    else
24261      ac_cv_sizeof_long_long=0
24262    fi ;;
24263 esac
24264 else
24265   cat >conftest.$ac_ext <<_ACEOF
24266 /* confdefs.h.  */
24267 _ACEOF
24268 cat confdefs.h >>conftest.$ac_ext
24269 cat >>conftest.$ac_ext <<_ACEOF
24270 /* end confdefs.h.  */
24271 $ac_includes_default
24272    typedef long long ac__type_sizeof_;
24273 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24274 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24275 #include <stdio.h>
24276 #include <stdlib.h>
24277 int
24278 main ()
24279 {
24280
24281   FILE *f = fopen ("conftest.val", "w");
24282   if (! f)
24283     return 1;
24284   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24285     {
24286       long int i = longval ();
24287       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24288         return 1;
24289       fprintf (f, "%ld\n", i);
24290     }
24291   else
24292     {
24293       unsigned long int i = ulongval ();
24294       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24295         return 1;
24296       fprintf (f, "%lu\n", i);
24297     }
24298   return ferror (f) || fclose (f) != 0;
24299
24300   ;
24301   return 0;
24302 }
24303 _ACEOF
24304 rm -f conftest$ac_exeext
24305 if { (ac_try="$ac_link"
24306 case "(($ac_try" in
24307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24308   *) ac_try_echo=$ac_try;;
24309 esac
24310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24311   (eval "$ac_link") 2>&5
24312   ac_status=$?
24313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24314   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24315   { (case "(($ac_try" in
24316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24317   *) ac_try_echo=$ac_try;;
24318 esac
24319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24320   (eval "$ac_try") 2>&5
24321   ac_status=$?
24322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24323   (exit $ac_status); }; }; then
24324   ac_cv_sizeof_long_long=`cat conftest.val`
24325 else
24326   echo "$as_me: program exited with status $ac_status" >&5
24327 echo "$as_me: failed program was:" >&5
24328 sed 's/^/| /' conftest.$ac_ext >&5
24329
24330 ( exit $ac_status )
24331 if test "$ac_cv_type_long_long" = yes; then
24332      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
24333 See \`config.log' for more details." >&5
24334 echo "$as_me: error: cannot compute sizeof (long long)
24335 See \`config.log' for more details." >&2;}
24336    { (exit 77); exit 77; }; }
24337    else
24338      ac_cv_sizeof_long_long=0
24339    fi
24340 fi
24341 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24342 fi
24343 rm -f conftest.val
24344 fi
24345 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
24346 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
24347
24348
24349
24350 cat >>confdefs.h <<_ACEOF
24351 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
24352 _ACEOF
24353
24354
24355         if test "$ac_cv_sizeof_long_long" != "0"; then
24356                         CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
24357         fi
24358     ;;
24359     * )
24360         { echo "$as_me:$LINENO: checking for long long" >&5
24361 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
24362 if test "${ac_cv_type_long_long+set}" = set; then
24363   echo $ECHO_N "(cached) $ECHO_C" >&6
24364 else
24365   cat >conftest.$ac_ext <<_ACEOF
24366 /* confdefs.h.  */
24367 _ACEOF
24368 cat confdefs.h >>conftest.$ac_ext
24369 cat >>conftest.$ac_ext <<_ACEOF
24370 /* end confdefs.h.  */
24371 $ac_includes_default
24372 typedef long long ac__type_new_;
24373 int
24374 main ()
24375 {
24376 if ((ac__type_new_ *) 0)
24377   return 0;
24378 if (sizeof (ac__type_new_))
24379   return 0;
24380   ;
24381   return 0;
24382 }
24383 _ACEOF
24384 rm -f conftest.$ac_objext
24385 if { (ac_try="$ac_compile"
24386 case "(($ac_try" in
24387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24388   *) ac_try_echo=$ac_try;;
24389 esac
24390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24391   (eval "$ac_compile") 2>conftest.er1
24392   ac_status=$?
24393   grep -v '^ *+' conftest.er1 >conftest.err
24394   rm -f conftest.er1
24395   cat conftest.err >&5
24396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24397   (exit $ac_status); } && {
24398          test -z "$ac_c_werror_flag" ||
24399          test ! -s conftest.err
24400        } && test -s conftest.$ac_objext; then
24401   ac_cv_type_long_long=yes
24402 else
24403   echo "$as_me: failed program was:" >&5
24404 sed 's/^/| /' conftest.$ac_ext >&5
24405
24406         ac_cv_type_long_long=no
24407 fi
24408
24409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24410 fi
24411 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
24412 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
24413
24414 # The cast to long int works around a bug in the HP C Compiler
24415 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24416 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24417 # This bug is HP SR number 8606223364.
24418 { echo "$as_me:$LINENO: checking size of long long" >&5
24419 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
24420 if test "${ac_cv_sizeof_long_long+set}" = set; then
24421   echo $ECHO_N "(cached) $ECHO_C" >&6
24422 else
24423   if test "$cross_compiling" = yes; then
24424   # Depending upon the size, compute the lo and hi bounds.
24425 cat >conftest.$ac_ext <<_ACEOF
24426 /* confdefs.h.  */
24427 _ACEOF
24428 cat confdefs.h >>conftest.$ac_ext
24429 cat >>conftest.$ac_ext <<_ACEOF
24430 /* end confdefs.h.  */
24431 $ac_includes_default
24432    typedef long long ac__type_sizeof_;
24433 int
24434 main ()
24435 {
24436 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24437 test_array [0] = 0
24438
24439   ;
24440   return 0;
24441 }
24442 _ACEOF
24443 rm -f conftest.$ac_objext
24444 if { (ac_try="$ac_compile"
24445 case "(($ac_try" in
24446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24447   *) ac_try_echo=$ac_try;;
24448 esac
24449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24450   (eval "$ac_compile") 2>conftest.er1
24451   ac_status=$?
24452   grep -v '^ *+' conftest.er1 >conftest.err
24453   rm -f conftest.er1
24454   cat conftest.err >&5
24455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24456   (exit $ac_status); } && {
24457          test -z "$ac_c_werror_flag" ||
24458          test ! -s conftest.err
24459        } && test -s conftest.$ac_objext; then
24460   ac_lo=0 ac_mid=0
24461   while :; do
24462     cat >conftest.$ac_ext <<_ACEOF
24463 /* confdefs.h.  */
24464 _ACEOF
24465 cat confdefs.h >>conftest.$ac_ext
24466 cat >>conftest.$ac_ext <<_ACEOF
24467 /* end confdefs.h.  */
24468 $ac_includes_default
24469    typedef long long ac__type_sizeof_;
24470 int
24471 main ()
24472 {
24473 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24474 test_array [0] = 0
24475
24476   ;
24477   return 0;
24478 }
24479 _ACEOF
24480 rm -f conftest.$ac_objext
24481 if { (ac_try="$ac_compile"
24482 case "(($ac_try" in
24483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24484   *) ac_try_echo=$ac_try;;
24485 esac
24486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24487   (eval "$ac_compile") 2>conftest.er1
24488   ac_status=$?
24489   grep -v '^ *+' conftest.er1 >conftest.err
24490   rm -f conftest.er1
24491   cat conftest.err >&5
24492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24493   (exit $ac_status); } && {
24494          test -z "$ac_c_werror_flag" ||
24495          test ! -s conftest.err
24496        } && test -s conftest.$ac_objext; then
24497   ac_hi=$ac_mid; break
24498 else
24499   echo "$as_me: failed program was:" >&5
24500 sed 's/^/| /' conftest.$ac_ext >&5
24501
24502         ac_lo=`expr $ac_mid + 1`
24503                         if test $ac_lo -le $ac_mid; then
24504                           ac_lo= ac_hi=
24505                           break
24506                         fi
24507                         ac_mid=`expr 2 '*' $ac_mid + 1`
24508 fi
24509
24510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24511   done
24512 else
24513   echo "$as_me: failed program was:" >&5
24514 sed 's/^/| /' conftest.$ac_ext >&5
24515
24516         cat >conftest.$ac_ext <<_ACEOF
24517 /* confdefs.h.  */
24518 _ACEOF
24519 cat confdefs.h >>conftest.$ac_ext
24520 cat >>conftest.$ac_ext <<_ACEOF
24521 /* end confdefs.h.  */
24522 $ac_includes_default
24523    typedef long long ac__type_sizeof_;
24524 int
24525 main ()
24526 {
24527 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24528 test_array [0] = 0
24529
24530   ;
24531   return 0;
24532 }
24533 _ACEOF
24534 rm -f conftest.$ac_objext
24535 if { (ac_try="$ac_compile"
24536 case "(($ac_try" in
24537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24538   *) ac_try_echo=$ac_try;;
24539 esac
24540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24541   (eval "$ac_compile") 2>conftest.er1
24542   ac_status=$?
24543   grep -v '^ *+' conftest.er1 >conftest.err
24544   rm -f conftest.er1
24545   cat conftest.err >&5
24546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24547   (exit $ac_status); } && {
24548          test -z "$ac_c_werror_flag" ||
24549          test ! -s conftest.err
24550        } && test -s conftest.$ac_objext; then
24551   ac_hi=-1 ac_mid=-1
24552   while :; do
24553     cat >conftest.$ac_ext <<_ACEOF
24554 /* confdefs.h.  */
24555 _ACEOF
24556 cat confdefs.h >>conftest.$ac_ext
24557 cat >>conftest.$ac_ext <<_ACEOF
24558 /* end confdefs.h.  */
24559 $ac_includes_default
24560    typedef long long ac__type_sizeof_;
24561 int
24562 main ()
24563 {
24564 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24565 test_array [0] = 0
24566
24567   ;
24568   return 0;
24569 }
24570 _ACEOF
24571 rm -f conftest.$ac_objext
24572 if { (ac_try="$ac_compile"
24573 case "(($ac_try" in
24574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24575   *) ac_try_echo=$ac_try;;
24576 esac
24577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24578   (eval "$ac_compile") 2>conftest.er1
24579   ac_status=$?
24580   grep -v '^ *+' conftest.er1 >conftest.err
24581   rm -f conftest.er1
24582   cat conftest.err >&5
24583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24584   (exit $ac_status); } && {
24585          test -z "$ac_c_werror_flag" ||
24586          test ! -s conftest.err
24587        } && test -s conftest.$ac_objext; then
24588   ac_lo=$ac_mid; break
24589 else
24590   echo "$as_me: failed program was:" >&5
24591 sed 's/^/| /' conftest.$ac_ext >&5
24592
24593         ac_hi=`expr '(' $ac_mid ')' - 1`
24594                         if test $ac_mid -le $ac_hi; then
24595                           ac_lo= ac_hi=
24596                           break
24597                         fi
24598                         ac_mid=`expr 2 '*' $ac_mid`
24599 fi
24600
24601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24602   done
24603 else
24604   echo "$as_me: failed program was:" >&5
24605 sed 's/^/| /' conftest.$ac_ext >&5
24606
24607         ac_lo= ac_hi=
24608 fi
24609
24610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24611 fi
24612
24613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24614 # Binary search between lo and hi bounds.
24615 while test "x$ac_lo" != "x$ac_hi"; do
24616   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24617   cat >conftest.$ac_ext <<_ACEOF
24618 /* confdefs.h.  */
24619 _ACEOF
24620 cat confdefs.h >>conftest.$ac_ext
24621 cat >>conftest.$ac_ext <<_ACEOF
24622 /* end confdefs.h.  */
24623 $ac_includes_default
24624    typedef long long ac__type_sizeof_;
24625 int
24626 main ()
24627 {
24628 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24629 test_array [0] = 0
24630
24631   ;
24632   return 0;
24633 }
24634 _ACEOF
24635 rm -f conftest.$ac_objext
24636 if { (ac_try="$ac_compile"
24637 case "(($ac_try" in
24638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24639   *) ac_try_echo=$ac_try;;
24640 esac
24641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24642   (eval "$ac_compile") 2>conftest.er1
24643   ac_status=$?
24644   grep -v '^ *+' conftest.er1 >conftest.err
24645   rm -f conftest.er1
24646   cat conftest.err >&5
24647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24648   (exit $ac_status); } && {
24649          test -z "$ac_c_werror_flag" ||
24650          test ! -s conftest.err
24651        } && test -s conftest.$ac_objext; then
24652   ac_hi=$ac_mid
24653 else
24654   echo "$as_me: failed program was:" >&5
24655 sed 's/^/| /' conftest.$ac_ext >&5
24656
24657         ac_lo=`expr '(' $ac_mid ')' + 1`
24658 fi
24659
24660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24661 done
24662 case $ac_lo in
24663 ?*) ac_cv_sizeof_long_long=$ac_lo;;
24664 '') if test "$ac_cv_type_long_long" = yes; then
24665      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
24666 See \`config.log' for more details." >&5
24667 echo "$as_me: error: cannot compute sizeof (long long)
24668 See \`config.log' for more details." >&2;}
24669    { (exit 77); exit 77; }; }
24670    else
24671      ac_cv_sizeof_long_long=0
24672    fi ;;
24673 esac
24674 else
24675   cat >conftest.$ac_ext <<_ACEOF
24676 /* confdefs.h.  */
24677 _ACEOF
24678 cat confdefs.h >>conftest.$ac_ext
24679 cat >>conftest.$ac_ext <<_ACEOF
24680 /* end confdefs.h.  */
24681 $ac_includes_default
24682    typedef long long ac__type_sizeof_;
24683 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24684 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24685 #include <stdio.h>
24686 #include <stdlib.h>
24687 int
24688 main ()
24689 {
24690
24691   FILE *f = fopen ("conftest.val", "w");
24692   if (! f)
24693     return 1;
24694   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24695     {
24696       long int i = longval ();
24697       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24698         return 1;
24699       fprintf (f, "%ld\n", i);
24700     }
24701   else
24702     {
24703       unsigned long int i = ulongval ();
24704       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24705         return 1;
24706       fprintf (f, "%lu\n", i);
24707     }
24708   return ferror (f) || fclose (f) != 0;
24709
24710   ;
24711   return 0;
24712 }
24713 _ACEOF
24714 rm -f conftest$ac_exeext
24715 if { (ac_try="$ac_link"
24716 case "(($ac_try" in
24717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24718   *) ac_try_echo=$ac_try;;
24719 esac
24720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24721   (eval "$ac_link") 2>&5
24722   ac_status=$?
24723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24724   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24725   { (case "(($ac_try" in
24726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24727   *) ac_try_echo=$ac_try;;
24728 esac
24729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24730   (eval "$ac_try") 2>&5
24731   ac_status=$?
24732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24733   (exit $ac_status); }; }; then
24734   ac_cv_sizeof_long_long=`cat conftest.val`
24735 else
24736   echo "$as_me: program exited with status $ac_status" >&5
24737 echo "$as_me: failed program was:" >&5
24738 sed 's/^/| /' conftest.$ac_ext >&5
24739
24740 ( exit $ac_status )
24741 if test "$ac_cv_type_long_long" = yes; then
24742      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
24743 See \`config.log' for more details." >&5
24744 echo "$as_me: error: cannot compute sizeof (long long)
24745 See \`config.log' for more details." >&2;}
24746    { (exit 77); exit 77; }; }
24747    else
24748      ac_cv_sizeof_long_long=0
24749    fi
24750 fi
24751 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24752 fi
24753 rm -f conftest.val
24754 fi
24755 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
24756 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
24757
24758
24759
24760 cat >>confdefs.h <<_ACEOF
24761 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
24762 _ACEOF
24763
24764
24765 esac
24766
24767 { echo "$as_me:$LINENO: checking for wchar_t" >&5
24768 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
24769 if test "${ac_cv_type_wchar_t+set}" = set; then
24770   echo $ECHO_N "(cached) $ECHO_C" >&6
24771 else
24772   cat >conftest.$ac_ext <<_ACEOF
24773 /* confdefs.h.  */
24774 _ACEOF
24775 cat confdefs.h >>conftest.$ac_ext
24776 cat >>conftest.$ac_ext <<_ACEOF
24777 /* end confdefs.h.  */
24778
24779         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24780         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24781         #  error "fake wchar_t"
24782         #endif
24783         #ifdef HAVE_WCHAR_H
24784         #  ifdef __CYGWIN__
24785         #    include <stddef.h>
24786         #  endif
24787         #  include <wchar.h>
24788         #endif
24789         #ifdef HAVE_STDLIB_H
24790         #  include <stdlib.h>
24791         #endif
24792         #include <stdio.h>
24793
24794
24795
24796 typedef wchar_t ac__type_new_;
24797 int
24798 main ()
24799 {
24800 if ((ac__type_new_ *) 0)
24801   return 0;
24802 if (sizeof (ac__type_new_))
24803   return 0;
24804   ;
24805   return 0;
24806 }
24807 _ACEOF
24808 rm -f conftest.$ac_objext
24809 if { (ac_try="$ac_compile"
24810 case "(($ac_try" in
24811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24812   *) ac_try_echo=$ac_try;;
24813 esac
24814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24815   (eval "$ac_compile") 2>conftest.er1
24816   ac_status=$?
24817   grep -v '^ *+' conftest.er1 >conftest.err
24818   rm -f conftest.er1
24819   cat conftest.err >&5
24820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24821   (exit $ac_status); } && {
24822          test -z "$ac_c_werror_flag" ||
24823          test ! -s conftest.err
24824        } && test -s conftest.$ac_objext; then
24825   ac_cv_type_wchar_t=yes
24826 else
24827   echo "$as_me: failed program was:" >&5
24828 sed 's/^/| /' conftest.$ac_ext >&5
24829
24830         ac_cv_type_wchar_t=no
24831 fi
24832
24833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24834 fi
24835 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
24836 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
24837
24838 # The cast to long int works around a bug in the HP C Compiler
24839 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24840 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24841 # This bug is HP SR number 8606223364.
24842 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
24843 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
24844 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
24845   echo $ECHO_N "(cached) $ECHO_C" >&6
24846 else
24847   if test "$cross_compiling" = yes; then
24848   # Depending upon the size, compute the lo and hi bounds.
24849 cat >conftest.$ac_ext <<_ACEOF
24850 /* confdefs.h.  */
24851 _ACEOF
24852 cat confdefs.h >>conftest.$ac_ext
24853 cat >>conftest.$ac_ext <<_ACEOF
24854 /* end confdefs.h.  */
24855
24856         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24857         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24858         #  error "fake wchar_t"
24859         #endif
24860         #ifdef HAVE_WCHAR_H
24861         #  ifdef __CYGWIN__
24862         #    include <stddef.h>
24863         #  endif
24864         #  include <wchar.h>
24865         #endif
24866         #ifdef HAVE_STDLIB_H
24867         #  include <stdlib.h>
24868         #endif
24869         #include <stdio.h>
24870
24871
24872
24873    typedef wchar_t ac__type_sizeof_;
24874 int
24875 main ()
24876 {
24877 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24878 test_array [0] = 0
24879
24880   ;
24881   return 0;
24882 }
24883 _ACEOF
24884 rm -f conftest.$ac_objext
24885 if { (ac_try="$ac_compile"
24886 case "(($ac_try" in
24887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24888   *) ac_try_echo=$ac_try;;
24889 esac
24890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24891   (eval "$ac_compile") 2>conftest.er1
24892   ac_status=$?
24893   grep -v '^ *+' conftest.er1 >conftest.err
24894   rm -f conftest.er1
24895   cat conftest.err >&5
24896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24897   (exit $ac_status); } && {
24898          test -z "$ac_c_werror_flag" ||
24899          test ! -s conftest.err
24900        } && test -s conftest.$ac_objext; then
24901   ac_lo=0 ac_mid=0
24902   while :; do
24903     cat >conftest.$ac_ext <<_ACEOF
24904 /* confdefs.h.  */
24905 _ACEOF
24906 cat confdefs.h >>conftest.$ac_ext
24907 cat >>conftest.$ac_ext <<_ACEOF
24908 /* end confdefs.h.  */
24909
24910         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24911         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24912         #  error "fake wchar_t"
24913         #endif
24914         #ifdef HAVE_WCHAR_H
24915         #  ifdef __CYGWIN__
24916         #    include <stddef.h>
24917         #  endif
24918         #  include <wchar.h>
24919         #endif
24920         #ifdef HAVE_STDLIB_H
24921         #  include <stdlib.h>
24922         #endif
24923         #include <stdio.h>
24924
24925
24926
24927    typedef wchar_t ac__type_sizeof_;
24928 int
24929 main ()
24930 {
24931 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24932 test_array [0] = 0
24933
24934   ;
24935   return 0;
24936 }
24937 _ACEOF
24938 rm -f conftest.$ac_objext
24939 if { (ac_try="$ac_compile"
24940 case "(($ac_try" in
24941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24942   *) ac_try_echo=$ac_try;;
24943 esac
24944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24945   (eval "$ac_compile") 2>conftest.er1
24946   ac_status=$?
24947   grep -v '^ *+' conftest.er1 >conftest.err
24948   rm -f conftest.er1
24949   cat conftest.err >&5
24950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24951   (exit $ac_status); } && {
24952          test -z "$ac_c_werror_flag" ||
24953          test ! -s conftest.err
24954        } && test -s conftest.$ac_objext; then
24955   ac_hi=$ac_mid; break
24956 else
24957   echo "$as_me: failed program was:" >&5
24958 sed 's/^/| /' conftest.$ac_ext >&5
24959
24960         ac_lo=`expr $ac_mid + 1`
24961                         if test $ac_lo -le $ac_mid; then
24962                           ac_lo= ac_hi=
24963                           break
24964                         fi
24965                         ac_mid=`expr 2 '*' $ac_mid + 1`
24966 fi
24967
24968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24969   done
24970 else
24971   echo "$as_me: failed program was:" >&5
24972 sed 's/^/| /' conftest.$ac_ext >&5
24973
24974         cat >conftest.$ac_ext <<_ACEOF
24975 /* confdefs.h.  */
24976 _ACEOF
24977 cat confdefs.h >>conftest.$ac_ext
24978 cat >>conftest.$ac_ext <<_ACEOF
24979 /* end confdefs.h.  */
24980
24981         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24982         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24983         #  error "fake wchar_t"
24984         #endif
24985         #ifdef HAVE_WCHAR_H
24986         #  ifdef __CYGWIN__
24987         #    include <stddef.h>
24988         #  endif
24989         #  include <wchar.h>
24990         #endif
24991         #ifdef HAVE_STDLIB_H
24992         #  include <stdlib.h>
24993         #endif
24994         #include <stdio.h>
24995
24996
24997
24998    typedef wchar_t ac__type_sizeof_;
24999 int
25000 main ()
25001 {
25002 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25003 test_array [0] = 0
25004
25005   ;
25006   return 0;
25007 }
25008 _ACEOF
25009 rm -f conftest.$ac_objext
25010 if { (ac_try="$ac_compile"
25011 case "(($ac_try" in
25012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25013   *) ac_try_echo=$ac_try;;
25014 esac
25015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25016   (eval "$ac_compile") 2>conftest.er1
25017   ac_status=$?
25018   grep -v '^ *+' conftest.er1 >conftest.err
25019   rm -f conftest.er1
25020   cat conftest.err >&5
25021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25022   (exit $ac_status); } && {
25023          test -z "$ac_c_werror_flag" ||
25024          test ! -s conftest.err
25025        } && test -s conftest.$ac_objext; then
25026   ac_hi=-1 ac_mid=-1
25027   while :; do
25028     cat >conftest.$ac_ext <<_ACEOF
25029 /* confdefs.h.  */
25030 _ACEOF
25031 cat confdefs.h >>conftest.$ac_ext
25032 cat >>conftest.$ac_ext <<_ACEOF
25033 /* end confdefs.h.  */
25034
25035         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
25036         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
25037         #  error "fake wchar_t"
25038         #endif
25039         #ifdef HAVE_WCHAR_H
25040         #  ifdef __CYGWIN__
25041         #    include <stddef.h>
25042         #  endif
25043         #  include <wchar.h>
25044         #endif
25045         #ifdef HAVE_STDLIB_H
25046         #  include <stdlib.h>
25047         #endif
25048         #include <stdio.h>
25049
25050
25051
25052    typedef wchar_t ac__type_sizeof_;
25053 int
25054 main ()
25055 {
25056 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25057 test_array [0] = 0
25058
25059   ;
25060   return 0;
25061 }
25062 _ACEOF
25063 rm -f conftest.$ac_objext
25064 if { (ac_try="$ac_compile"
25065 case "(($ac_try" in
25066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25067   *) ac_try_echo=$ac_try;;
25068 esac
25069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25070   (eval "$ac_compile") 2>conftest.er1
25071   ac_status=$?
25072   grep -v '^ *+' conftest.er1 >conftest.err
25073   rm -f conftest.er1
25074   cat conftest.err >&5
25075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25076   (exit $ac_status); } && {
25077          test -z "$ac_c_werror_flag" ||
25078          test ! -s conftest.err
25079        } && test -s conftest.$ac_objext; then
25080   ac_lo=$ac_mid; break
25081 else
25082   echo "$as_me: failed program was:" >&5
25083 sed 's/^/| /' conftest.$ac_ext >&5
25084
25085         ac_hi=`expr '(' $ac_mid ')' - 1`
25086                         if test $ac_mid -le $ac_hi; then
25087                           ac_lo= ac_hi=
25088                           break
25089                         fi
25090                         ac_mid=`expr 2 '*' $ac_mid`
25091 fi
25092
25093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25094   done
25095 else
25096   echo "$as_me: failed program was:" >&5
25097 sed 's/^/| /' conftest.$ac_ext >&5
25098
25099         ac_lo= ac_hi=
25100 fi
25101
25102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25103 fi
25104
25105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25106 # Binary search between lo and hi bounds.
25107 while test "x$ac_lo" != "x$ac_hi"; do
25108   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25109   cat >conftest.$ac_ext <<_ACEOF
25110 /* confdefs.h.  */
25111 _ACEOF
25112 cat confdefs.h >>conftest.$ac_ext
25113 cat >>conftest.$ac_ext <<_ACEOF
25114 /* end confdefs.h.  */
25115
25116         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
25117         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
25118         #  error "fake wchar_t"
25119         #endif
25120         #ifdef HAVE_WCHAR_H
25121         #  ifdef __CYGWIN__
25122         #    include <stddef.h>
25123         #  endif
25124         #  include <wchar.h>
25125         #endif
25126         #ifdef HAVE_STDLIB_H
25127         #  include <stdlib.h>
25128         #endif
25129         #include <stdio.h>
25130
25131
25132
25133    typedef wchar_t ac__type_sizeof_;
25134 int
25135 main ()
25136 {
25137 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25138 test_array [0] = 0
25139
25140   ;
25141   return 0;
25142 }
25143 _ACEOF
25144 rm -f conftest.$ac_objext
25145 if { (ac_try="$ac_compile"
25146 case "(($ac_try" in
25147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25148   *) ac_try_echo=$ac_try;;
25149 esac
25150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25151   (eval "$ac_compile") 2>conftest.er1
25152   ac_status=$?
25153   grep -v '^ *+' conftest.er1 >conftest.err
25154   rm -f conftest.er1
25155   cat conftest.err >&5
25156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25157   (exit $ac_status); } && {
25158          test -z "$ac_c_werror_flag" ||
25159          test ! -s conftest.err
25160        } && test -s conftest.$ac_objext; then
25161   ac_hi=$ac_mid
25162 else
25163   echo "$as_me: failed program was:" >&5
25164 sed 's/^/| /' conftest.$ac_ext >&5
25165
25166         ac_lo=`expr '(' $ac_mid ')' + 1`
25167 fi
25168
25169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25170 done
25171 case $ac_lo in
25172 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
25173 '') if test "$ac_cv_type_wchar_t" = yes; then
25174      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
25175 See \`config.log' for more details." >&5
25176 echo "$as_me: error: cannot compute sizeof (wchar_t)
25177 See \`config.log' for more details." >&2;}
25178    { (exit 77); exit 77; }; }
25179    else
25180      ac_cv_sizeof_wchar_t=0
25181    fi ;;
25182 esac
25183 else
25184   cat >conftest.$ac_ext <<_ACEOF
25185 /* confdefs.h.  */
25186 _ACEOF
25187 cat confdefs.h >>conftest.$ac_ext
25188 cat >>conftest.$ac_ext <<_ACEOF
25189 /* end confdefs.h.  */
25190
25191         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
25192         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
25193         #  error "fake wchar_t"
25194         #endif
25195         #ifdef HAVE_WCHAR_H
25196         #  ifdef __CYGWIN__
25197         #    include <stddef.h>
25198         #  endif
25199         #  include <wchar.h>
25200         #endif
25201         #ifdef HAVE_STDLIB_H
25202         #  include <stdlib.h>
25203         #endif
25204         #include <stdio.h>
25205
25206
25207
25208    typedef wchar_t ac__type_sizeof_;
25209 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25210 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25211 #include <stdio.h>
25212 #include <stdlib.h>
25213 int
25214 main ()
25215 {
25216
25217   FILE *f = fopen ("conftest.val", "w");
25218   if (! f)
25219     return 1;
25220   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25221     {
25222       long int i = longval ();
25223       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25224         return 1;
25225       fprintf (f, "%ld\n", i);
25226     }
25227   else
25228     {
25229       unsigned long int i = ulongval ();
25230       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25231         return 1;
25232       fprintf (f, "%lu\n", i);
25233     }
25234   return ferror (f) || fclose (f) != 0;
25235
25236   ;
25237   return 0;
25238 }
25239 _ACEOF
25240 rm -f conftest$ac_exeext
25241 if { (ac_try="$ac_link"
25242 case "(($ac_try" in
25243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25244   *) ac_try_echo=$ac_try;;
25245 esac
25246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25247   (eval "$ac_link") 2>&5
25248   ac_status=$?
25249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25250   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25251   { (case "(($ac_try" in
25252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25253   *) ac_try_echo=$ac_try;;
25254 esac
25255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25256   (eval "$ac_try") 2>&5
25257   ac_status=$?
25258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25259   (exit $ac_status); }; }; then
25260   ac_cv_sizeof_wchar_t=`cat conftest.val`
25261 else
25262   echo "$as_me: program exited with status $ac_status" >&5
25263 echo "$as_me: failed program was:" >&5
25264 sed 's/^/| /' conftest.$ac_ext >&5
25265
25266 ( exit $ac_status )
25267 if test "$ac_cv_type_wchar_t" = yes; then
25268      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
25269 See \`config.log' for more details." >&5
25270 echo "$as_me: error: cannot compute sizeof (wchar_t)
25271 See \`config.log' for more details." >&2;}
25272    { (exit 77); exit 77; }; }
25273    else
25274      ac_cv_sizeof_wchar_t=0
25275    fi
25276 fi
25277 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25278 fi
25279 rm -f conftest.val
25280 fi
25281 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
25282 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
25283
25284
25285
25286 cat >>confdefs.h <<_ACEOF
25287 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
25288 _ACEOF
25289
25290
25291 if test "$ac_cv_sizeof_wchar_t" != "0"; then
25292     wxUSE_WCHAR_T=yes
25293 else
25294     wxUSE_WCHAR_T=no
25295 fi
25296
25297 { echo "$as_me:$LINENO: checking for va_copy" >&5
25298 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
25299 if test "${wx_cv_func_va_copy+set}" = set; then
25300   echo $ECHO_N "(cached) $ECHO_C" >&6
25301 else
25302
25303         ac_ext=cpp
25304 ac_cpp='$CXXCPP $CPPFLAGS'
25305 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25306 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25307 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25308
25309         cat >conftest.$ac_ext <<_ACEOF
25310
25311             #include <stdarg.h>
25312             void foo(char *f, ...)
25313             {
25314                 va_list ap1, ap2;
25315                 va_start(ap1, f);
25316                 va_copy(ap2, ap1);
25317                 va_end(ap2);
25318                 va_end(ap1);
25319             }
25320             int main()
25321             {
25322                 foo("hi", 17);
25323                 return 0;
25324             }
25325 _ACEOF
25326 rm -f conftest.$ac_objext conftest$ac_exeext
25327 if { (ac_try="$ac_link"
25328 case "(($ac_try" in
25329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25330   *) ac_try_echo=$ac_try;;
25331 esac
25332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25333   (eval "$ac_link") 2>conftest.er1
25334   ac_status=$?
25335   grep -v '^ *+' conftest.er1 >conftest.err
25336   rm -f conftest.er1
25337   cat conftest.err >&5
25338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25339   (exit $ac_status); } && {
25340          test -z "$ac_cxx_werror_flag" ||
25341          test ! -s conftest.err
25342        } && test -s conftest$ac_exeext &&
25343        $as_test_x conftest$ac_exeext; then
25344   wx_cv_func_va_copy=yes
25345 else
25346   echo "$as_me: failed program was:" >&5
25347 sed 's/^/| /' conftest.$ac_ext >&5
25348
25349         wx_cv_func_va_copy=no
25350
25351 fi
25352
25353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25354       conftest$ac_exeext conftest.$ac_ext
25355         ac_ext=c
25356 ac_cpp='$CPP $CPPFLAGS'
25357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25360
25361
25362
25363 fi
25364 { echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
25365 echo "${ECHO_T}$wx_cv_func_va_copy" >&6; }
25366
25367 if test $wx_cv_func_va_copy = "yes"; then
25368     cat >>confdefs.h <<\_ACEOF
25369 #define HAVE_VA_COPY 1
25370 _ACEOF
25371
25372 else
25373         { echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
25374 echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6; }
25375 if test "${wx_cv_type_va_list_lvalue+set}" = set; then
25376   echo $ECHO_N "(cached) $ECHO_C" >&6
25377 else
25378
25379             if test "$cross_compiling" = yes; then
25380                   wx_cv_type_va_list_lvalue=yes
25381
25382 else
25383   cat >conftest.$ac_ext <<_ACEOF
25384
25385                 #include <stdarg.h>
25386                 int foo(char *f, ...)
25387                 {
25388                     va_list ap1, ap2;
25389                     va_start(ap1, f);
25390                     ap2 = ap1;
25391                     if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
25392                         return 1;
25393                     va_end(ap2);
25394                     va_end(ap1);
25395                     return 0;
25396                 }
25397                 int main()
25398                 {
25399                     return foo("hi", 17);
25400                 }
25401 _ACEOF
25402 rm -f conftest$ac_exeext
25403 if { (ac_try="$ac_link"
25404 case "(($ac_try" in
25405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25406   *) ac_try_echo=$ac_try;;
25407 esac
25408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25409   (eval "$ac_link") 2>&5
25410   ac_status=$?
25411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25412   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25413   { (case "(($ac_try" in
25414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25415   *) ac_try_echo=$ac_try;;
25416 esac
25417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25418   (eval "$ac_try") 2>&5
25419   ac_status=$?
25420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25421   (exit $ac_status); }; }; then
25422   wx_cv_type_va_list_lvalue=yes
25423 else
25424   echo "$as_me: program exited with status $ac_status" >&5
25425 echo "$as_me: failed program was:" >&5
25426 sed 's/^/| /' conftest.$ac_ext >&5
25427
25428 ( exit $ac_status )
25429 wx_cv_type_va_list_lvalue=no
25430 fi
25431 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25432 fi
25433
25434
25435
25436
25437 fi
25438 { echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
25439 echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6; }
25440
25441     if test $wx_cv_type_va_list_lvalue != "yes"; then
25442                         cat >>confdefs.h <<\_ACEOF
25443 #define VA_LIST_IS_ARRAY 1
25444 _ACEOF
25445
25446     fi
25447 fi
25448
25449 if test "$wxUSE_VARARG_MACROS" = "yes"; then
25450
25451 { echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
25452 echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6; }
25453 if test "${wx_cv_have_variadic_macros+set}" = set; then
25454   echo $ECHO_N "(cached) $ECHO_C" >&6
25455 else
25456
25457                         ac_ext=cpp
25458 ac_cpp='$CXXCPP $CPPFLAGS'
25459 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25460 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25461 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25462
25463         cat >conftest.$ac_ext <<_ACEOF
25464 /* confdefs.h.  */
25465 _ACEOF
25466 cat confdefs.h >>conftest.$ac_ext
25467 cat >>conftest.$ac_ext <<_ACEOF
25468 /* end confdefs.h.  */
25469
25470                     #include <stdio.h>
25471                     #define test(fmt, ...) printf(fmt, __VA_ARGS__)
25472
25473 int
25474 main ()
25475 {
25476
25477                     test("%s %d %p", "test", 1, 0);
25478
25479
25480   ;
25481   return 0;
25482 }
25483 _ACEOF
25484 rm -f conftest.$ac_objext
25485 if { (ac_try="$ac_compile"
25486 case "(($ac_try" in
25487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25488   *) ac_try_echo=$ac_try;;
25489 esac
25490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25491   (eval "$ac_compile") 2>conftest.er1
25492   ac_status=$?
25493   grep -v '^ *+' conftest.er1 >conftest.err
25494   rm -f conftest.er1
25495   cat conftest.err >&5
25496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25497   (exit $ac_status); } && {
25498          test -z "$ac_cxx_werror_flag" ||
25499          test ! -s conftest.err
25500        } && test -s conftest.$ac_objext; then
25501   wx_cv_have_variadic_macros=yes
25502 else
25503   echo "$as_me: failed program was:" >&5
25504 sed 's/^/| /' conftest.$ac_ext >&5
25505
25506         wx_cv_have_variadic_macros=no
25507
25508 fi
25509
25510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25511         ac_ext=c
25512 ac_cpp='$CPP $CPPFLAGS'
25513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25516
25517
25518
25519 fi
25520 { echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
25521 echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6; }
25522
25523 if test $wx_cv_have_variadic_macros = "yes"; then
25524     cat >>confdefs.h <<\_ACEOF
25525 #define HAVE_VARIADIC_MACROS 1
25526 _ACEOF
25527
25528 fi
25529
25530 fi
25531 # Check whether --enable-largefile was given.
25532 if test "${enable_largefile+set}" = set; then
25533   enableval=$enable_largefile;
25534 fi
25535
25536 if test "$enable_largefile" != no; then
25537             wx_largefile=no
25538
25539     { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
25540 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
25541 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
25542   echo $ECHO_N "(cached) $ECHO_C" >&6
25543 else
25544
25545           cat >conftest.$ac_ext <<_ACEOF
25546 /* confdefs.h.  */
25547 _ACEOF
25548 cat confdefs.h >>conftest.$ac_ext
25549 cat >>conftest.$ac_ext <<_ACEOF
25550 /* end confdefs.h.  */
25551 #define _FILE_OFFSET_BITS 64
25552                           #include <sys/types.h>
25553 int
25554 main ()
25555 {
25556 typedef struct {
25557     unsigned int field: sizeof(off_t) == 8;
25558 } wxlf;
25559
25560   ;
25561   return 0;
25562 }
25563 _ACEOF
25564 rm -f conftest.$ac_objext
25565 if { (ac_try="$ac_compile"
25566 case "(($ac_try" in
25567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25568   *) ac_try_echo=$ac_try;;
25569 esac
25570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25571   (eval "$ac_compile") 2>conftest.er1
25572   ac_status=$?
25573   grep -v '^ *+' conftest.er1 >conftest.err
25574   rm -f conftest.er1
25575   cat conftest.err >&5
25576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25577   (exit $ac_status); } && {
25578          test -z "$ac_c_werror_flag" ||
25579          test ! -s conftest.err
25580        } && test -s conftest.$ac_objext; then
25581   ac_cv_sys_file_offset_bits=64
25582 else
25583   echo "$as_me: failed program was:" >&5
25584 sed 's/^/| /' conftest.$ac_ext >&5
25585
25586         ac_cv_sys_file_offset_bits=no
25587 fi
25588
25589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25590
25591
25592 fi
25593 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
25594 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
25595
25596     if test "$ac_cv_sys_file_offset_bits" != no; then
25597         wx_largefile=yes
25598         cat >>confdefs.h <<_ACEOF
25599 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
25600 _ACEOF
25601
25602     fi
25603
25604     if test "x$wx_largefile" != "xyes"; then
25605
25606     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
25607 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
25608 if test "${ac_cv_sys_large_files+set}" = set; then
25609   echo $ECHO_N "(cached) $ECHO_C" >&6
25610 else
25611
25612           cat >conftest.$ac_ext <<_ACEOF
25613 /* confdefs.h.  */
25614 _ACEOF
25615 cat confdefs.h >>conftest.$ac_ext
25616 cat >>conftest.$ac_ext <<_ACEOF
25617 /* end confdefs.h.  */
25618 #define _LARGE_FILES 1
25619                           #include <sys/types.h>
25620 int
25621 main ()
25622 {
25623 typedef struct {
25624     unsigned int field: sizeof(off_t) == 8;
25625 } wxlf;
25626
25627   ;
25628   return 0;
25629 }
25630 _ACEOF
25631 rm -f conftest.$ac_objext
25632 if { (ac_try="$ac_compile"
25633 case "(($ac_try" in
25634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25635   *) ac_try_echo=$ac_try;;
25636 esac
25637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25638   (eval "$ac_compile") 2>conftest.er1
25639   ac_status=$?
25640   grep -v '^ *+' conftest.er1 >conftest.err
25641   rm -f conftest.er1
25642   cat conftest.err >&5
25643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25644   (exit $ac_status); } && {
25645          test -z "$ac_c_werror_flag" ||
25646          test ! -s conftest.err
25647        } && test -s conftest.$ac_objext; then
25648   ac_cv_sys_large_files=1
25649 else
25650   echo "$as_me: failed program was:" >&5
25651 sed 's/^/| /' conftest.$ac_ext >&5
25652
25653         ac_cv_sys_large_files=no
25654 fi
25655
25656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25657
25658
25659 fi
25660 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
25661 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
25662
25663     if test "$ac_cv_sys_large_files" != no; then
25664         wx_largefile=yes
25665         cat >>confdefs.h <<_ACEOF
25666 #define _LARGE_FILES $ac_cv_sys_large_files
25667 _ACEOF
25668
25669     fi
25670
25671     fi
25672
25673     { echo "$as_me:$LINENO: checking if large file support is available" >&5
25674 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6; }
25675     if test "x$wx_largefile" = "xyes"; then
25676         cat >>confdefs.h <<\_ACEOF
25677 #define HAVE_LARGEFILE_SUPPORT 1
25678 _ACEOF
25679
25680     fi
25681     { echo "$as_me:$LINENO: result: $wx_largefile" >&5
25682 echo "${ECHO_T}$wx_largefile" >&6; }
25683 fi
25684
25685
25686 if test "x$wx_largefile" = "xyes"; then
25687     if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
25688         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
25689
25690                                                         if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
25691             { echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
25692 echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6; }
25693 if test "${wx_cv_STDC_EXT_required+set}" = set; then
25694   echo $ECHO_N "(cached) $ECHO_C" >&6
25695 else
25696
25697                     ac_ext=cpp
25698 ac_cpp='$CXXCPP $CPPFLAGS'
25699 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25700 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25701 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25702
25703                     cat >conftest.$ac_ext <<_ACEOF
25704 /* confdefs.h.  */
25705 _ACEOF
25706 cat confdefs.h >>conftest.$ac_ext
25707 cat >>conftest.$ac_ext <<_ACEOF
25708 /* end confdefs.h.  */
25709
25710 int
25711 main ()
25712 {
25713
25714                             #ifndef __STDC_EXT__
25715                                 choke me
25716                             #endif
25717
25718   ;
25719   return 0;
25720 }
25721 _ACEOF
25722 rm -f conftest.$ac_objext
25723 if { (ac_try="$ac_compile"
25724 case "(($ac_try" in
25725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25726   *) ac_try_echo=$ac_try;;
25727 esac
25728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25729   (eval "$ac_compile") 2>conftest.er1
25730   ac_status=$?
25731   grep -v '^ *+' conftest.er1 >conftest.err
25732   rm -f conftest.er1
25733   cat conftest.err >&5
25734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25735   (exit $ac_status); } && {
25736          test -z "$ac_cxx_werror_flag" ||
25737          test ! -s conftest.err
25738        } && test -s conftest.$ac_objext; then
25739   wx_cv_STDC_EXT_required=no
25740 else
25741   echo "$as_me: failed program was:" >&5
25742 sed 's/^/| /' conftest.$ac_ext >&5
25743
25744         wx_cv_STDC_EXT_required=yes
25745
25746 fi
25747
25748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25749                     ac_ext=c
25750 ac_cpp='$CPP $CPPFLAGS'
25751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25754
25755
25756
25757 fi
25758 { echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
25759 echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6; }
25760             if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
25761                 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
25762             fi
25763         fi
25764     else
25765         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
25766     fi
25767         { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
25768 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
25769 if test "${ac_cv_sys_largefile_source+set}" = set; then
25770   echo $ECHO_N "(cached) $ECHO_C" >&6
25771 else
25772   while :; do
25773   cat >conftest.$ac_ext <<_ACEOF
25774 /* confdefs.h.  */
25775 _ACEOF
25776 cat confdefs.h >>conftest.$ac_ext
25777 cat >>conftest.$ac_ext <<_ACEOF
25778 /* end confdefs.h.  */
25779 #include <stdio.h>
25780 int
25781 main ()
25782 {
25783 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
25784   ;
25785   return 0;
25786 }
25787 _ACEOF
25788 rm -f conftest.$ac_objext conftest$ac_exeext
25789 if { (ac_try="$ac_link"
25790 case "(($ac_try" in
25791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25792   *) ac_try_echo=$ac_try;;
25793 esac
25794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25795   (eval "$ac_link") 2>conftest.er1
25796   ac_status=$?
25797   grep -v '^ *+' conftest.er1 >conftest.err
25798   rm -f conftest.er1
25799   cat conftest.err >&5
25800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25801   (exit $ac_status); } && {
25802          test -z "$ac_c_werror_flag" ||
25803          test ! -s conftest.err
25804        } && test -s conftest$ac_exeext &&
25805        $as_test_x conftest$ac_exeext; then
25806   ac_cv_sys_largefile_source=no; break
25807 else
25808   echo "$as_me: failed program was:" >&5
25809 sed 's/^/| /' conftest.$ac_ext >&5
25810
25811
25812 fi
25813
25814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25815       conftest$ac_exeext conftest.$ac_ext
25816   cat >conftest.$ac_ext <<_ACEOF
25817 /* confdefs.h.  */
25818 _ACEOF
25819 cat confdefs.h >>conftest.$ac_ext
25820 cat >>conftest.$ac_ext <<_ACEOF
25821 /* end confdefs.h.  */
25822 #define _LARGEFILE_SOURCE 1
25823 #include <stdio.h>
25824 int
25825 main ()
25826 {
25827 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
25828   ;
25829   return 0;
25830 }
25831 _ACEOF
25832 rm -f conftest.$ac_objext conftest$ac_exeext
25833 if { (ac_try="$ac_link"
25834 case "(($ac_try" in
25835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25836   *) ac_try_echo=$ac_try;;
25837 esac
25838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25839   (eval "$ac_link") 2>conftest.er1
25840   ac_status=$?
25841   grep -v '^ *+' conftest.er1 >conftest.err
25842   rm -f conftest.er1
25843   cat conftest.err >&5
25844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25845   (exit $ac_status); } && {
25846          test -z "$ac_c_werror_flag" ||
25847          test ! -s conftest.err
25848        } && test -s conftest$ac_exeext &&
25849        $as_test_x conftest$ac_exeext; then
25850   ac_cv_sys_largefile_source=1; break
25851 else
25852   echo "$as_me: failed program was:" >&5
25853 sed 's/^/| /' conftest.$ac_ext >&5
25854
25855
25856 fi
25857
25858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25859       conftest$ac_exeext conftest.$ac_ext
25860   ac_cv_sys_largefile_source=unknown
25861   break
25862 done
25863 fi
25864 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
25865 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
25866 case $ac_cv_sys_largefile_source in #(
25867   no | unknown) ;;
25868   *)
25869 cat >>confdefs.h <<_ACEOF
25870 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
25871 _ACEOF
25872 ;;
25873 esac
25874 rm -f conftest*
25875
25876 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
25877 # in glibc 2.1.3, but that breaks too many other things.
25878 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
25879 if test $ac_cv_sys_largefile_source != unknown; then
25880
25881 cat >>confdefs.h <<\_ACEOF
25882 #define HAVE_FSEEKO 1
25883 _ACEOF
25884
25885 fi
25886
25887     if test "$ac_cv_sys_largefile_source" != no; then
25888         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
25889     fi
25890 fi
25891
25892 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
25893 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
25894 if test "${ac_cv_c_bigendian+set}" = set; then
25895   echo $ECHO_N "(cached) $ECHO_C" >&6
25896 else
25897   ac_cv_c_bigendian=unknown
25898 # See if sys/param.h defines the BYTE_ORDER macro.
25899 cat >conftest.$ac_ext <<_ACEOF
25900 /* confdefs.h.  */
25901 _ACEOF
25902 cat confdefs.h >>conftest.$ac_ext
25903 cat >>conftest.$ac_ext <<_ACEOF
25904 /* end confdefs.h.  */
25905 #include <sys/types.h>
25906 #include <sys/param.h>
25907 int
25908 main ()
25909 {
25910
25911 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
25912  bogus endian macros
25913 #endif
25914   ;
25915   return 0;
25916 }
25917 _ACEOF
25918 rm -f conftest.$ac_objext
25919 if { (ac_try="$ac_compile"
25920 case "(($ac_try" in
25921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25922   *) ac_try_echo=$ac_try;;
25923 esac
25924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25925   (eval "$ac_compile") 2>conftest.er1
25926   ac_status=$?
25927   grep -v '^ *+' conftest.er1 >conftest.err
25928   rm -f conftest.er1
25929   cat conftest.err >&5
25930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25931   (exit $ac_status); } && {
25932          test -z "$ac_c_werror_flag" ||
25933          test ! -s conftest.err
25934        } && test -s conftest.$ac_objext; then
25935   # It does; now see whether it defined to BIG_ENDIAN or not.
25936 cat >conftest.$ac_ext <<_ACEOF
25937 /* confdefs.h.  */
25938 _ACEOF
25939 cat confdefs.h >>conftest.$ac_ext
25940 cat >>conftest.$ac_ext <<_ACEOF
25941 /* end confdefs.h.  */
25942 #include <sys/types.h>
25943 #include <sys/param.h>
25944 int
25945 main ()
25946 {
25947
25948 #if BYTE_ORDER != BIG_ENDIAN
25949  not big endian
25950 #endif
25951   ;
25952   return 0;
25953 }
25954 _ACEOF
25955 rm -f conftest.$ac_objext
25956 if { (ac_try="$ac_compile"
25957 case "(($ac_try" in
25958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25959   *) ac_try_echo=$ac_try;;
25960 esac
25961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25962   (eval "$ac_compile") 2>conftest.er1
25963   ac_status=$?
25964   grep -v '^ *+' conftest.er1 >conftest.err
25965   rm -f conftest.er1
25966   cat conftest.err >&5
25967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25968   (exit $ac_status); } && {
25969          test -z "$ac_c_werror_flag" ||
25970          test ! -s conftest.err
25971        } && test -s conftest.$ac_objext; then
25972   ac_cv_c_bigendian=yes
25973 else
25974   echo "$as_me: failed program was:" >&5
25975 sed 's/^/| /' conftest.$ac_ext >&5
25976
25977         ac_cv_c_bigendian=no
25978 fi
25979
25980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25981 else
25982   echo "$as_me: failed program was:" >&5
25983 sed 's/^/| /' conftest.$ac_ext >&5
25984
25985
25986 fi
25987
25988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25989 if test $ac_cv_c_bigendian = unknown; then
25990 if test "$cross_compiling" = yes; then
25991   ac_cv_c_bigendian=unknown
25992 else
25993   cat >conftest.$ac_ext <<_ACEOF
25994 /* confdefs.h.  */
25995 _ACEOF
25996 cat confdefs.h >>conftest.$ac_ext
25997 cat >>conftest.$ac_ext <<_ACEOF
25998 /* end confdefs.h.  */
25999 main () {
26000   /* Are we little or big endian?  From Harbison&Steele.  */
26001   union
26002   {
26003     long l;
26004     char c[sizeof (long)];
26005   } u;
26006   u.l = 1;
26007   exit (u.c[sizeof (long) - 1] == 1);
26008 }
26009 _ACEOF
26010 rm -f conftest$ac_exeext
26011 if { (ac_try="$ac_link"
26012 case "(($ac_try" in
26013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26014   *) ac_try_echo=$ac_try;;
26015 esac
26016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26017   (eval "$ac_link") 2>&5
26018   ac_status=$?
26019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26020   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26021   { (case "(($ac_try" in
26022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26023   *) ac_try_echo=$ac_try;;
26024 esac
26025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26026   (eval "$ac_try") 2>&5
26027   ac_status=$?
26028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26029   (exit $ac_status); }; }; then
26030   ac_cv_c_bigendian=no
26031 else
26032   echo "$as_me: program exited with status $ac_status" >&5
26033 echo "$as_me: failed program was:" >&5
26034 sed 's/^/| /' conftest.$ac_ext >&5
26035
26036 ( exit $ac_status )
26037 ac_cv_c_bigendian=yes
26038 fi
26039 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26040 fi
26041
26042
26043 fi
26044 fi
26045 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
26046 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
26047 if test $ac_cv_c_bigendian = unknown; then
26048   { 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
26049 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;}
26050 fi
26051 if test $ac_cv_c_bigendian = yes; then
26052   cat >>confdefs.h <<\_ACEOF
26053 #define WORDS_BIGENDIAN 1
26054 _ACEOF
26055
26056 fi
26057
26058
26059
26060
26061     ac_ext=cpp
26062 ac_cpp='$CXXCPP $CPPFLAGS'
26063 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26064 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26065 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26066
26067
26068
26069 for ac_header in iostream
26070 do
26071 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26072 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26074 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26075   echo $ECHO_N "(cached) $ECHO_C" >&6
26076 else
26077   cat >conftest.$ac_ext <<_ACEOF
26078 /* confdefs.h.  */
26079 _ACEOF
26080 cat confdefs.h >>conftest.$ac_ext
26081 cat >>conftest.$ac_ext <<_ACEOF
26082 /* end confdefs.h.  */
26083
26084
26085 #include <$ac_header>
26086 _ACEOF
26087 rm -f conftest.$ac_objext
26088 if { (ac_try="$ac_compile"
26089 case "(($ac_try" in
26090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26091   *) ac_try_echo=$ac_try;;
26092 esac
26093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26094   (eval "$ac_compile") 2>conftest.er1
26095   ac_status=$?
26096   grep -v '^ *+' conftest.er1 >conftest.err
26097   rm -f conftest.er1
26098   cat conftest.err >&5
26099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26100   (exit $ac_status); } && {
26101          test -z "$ac_cxx_werror_flag" ||
26102          test ! -s conftest.err
26103        } && test -s conftest.$ac_objext; then
26104   eval "$as_ac_Header=yes"
26105 else
26106   echo "$as_me: failed program was:" >&5
26107 sed 's/^/| /' conftest.$ac_ext >&5
26108
26109         eval "$as_ac_Header=no"
26110 fi
26111
26112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26113 fi
26114 ac_res=`eval echo '${'$as_ac_Header'}'`
26115                { echo "$as_me:$LINENO: result: $ac_res" >&5
26116 echo "${ECHO_T}$ac_res" >&6; }
26117 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26118   cat >>confdefs.h <<_ACEOF
26119 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26120 _ACEOF
26121
26122 fi
26123
26124 done
26125
26126
26127     if test "$ac_cv_header_iostream" = "yes" ; then
26128       :
26129     else
26130       cat >>confdefs.h <<\_ACEOF
26131 #define wxUSE_IOSTREAMH 1
26132 _ACEOF
26133
26134     fi
26135
26136     ac_ext=c
26137 ac_cpp='$CPP $CPPFLAGS'
26138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26141
26142
26143
26144
26145   { echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
26146 echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6; }
26147 if test "${wx_cv_cpp_bool+set}" = set; then
26148   echo $ECHO_N "(cached) $ECHO_C" >&6
26149 else
26150
26151
26152     ac_ext=cpp
26153 ac_cpp='$CXXCPP $CPPFLAGS'
26154 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26155 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26156 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26157
26158
26159     cat >conftest.$ac_ext <<_ACEOF
26160 /* confdefs.h.  */
26161 _ACEOF
26162 cat confdefs.h >>conftest.$ac_ext
26163 cat >>conftest.$ac_ext <<_ACEOF
26164 /* end confdefs.h.  */
26165
26166
26167 int
26168 main ()
26169 {
26170
26171         bool b = true;
26172
26173         return 0;
26174
26175   ;
26176   return 0;
26177 }
26178 _ACEOF
26179 rm -f conftest.$ac_objext
26180 if { (ac_try="$ac_compile"
26181 case "(($ac_try" in
26182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26183   *) ac_try_echo=$ac_try;;
26184 esac
26185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26186   (eval "$ac_compile") 2>conftest.er1
26187   ac_status=$?
26188   grep -v '^ *+' conftest.er1 >conftest.err
26189   rm -f conftest.er1
26190   cat conftest.err >&5
26191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26192   (exit $ac_status); } && {
26193          test -z "$ac_cxx_werror_flag" ||
26194          test ! -s conftest.err
26195        } && test -s conftest.$ac_objext; then
26196
26197         wx_cv_cpp_bool=yes
26198
26199 else
26200   echo "$as_me: failed program was:" >&5
26201 sed 's/^/| /' conftest.$ac_ext >&5
26202
26203
26204         wx_cv_cpp_bool=no
26205
26206
26207 fi
26208
26209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26210
26211     ac_ext=c
26212 ac_cpp='$CPP $CPPFLAGS'
26213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26216
26217
26218 fi
26219 { echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
26220 echo "${ECHO_T}$wx_cv_cpp_bool" >&6; }
26221
26222   if test "$wx_cv_cpp_bool" = "yes"; then
26223     cat >>confdefs.h <<\_ACEOF
26224 #define HAVE_BOOL 1
26225 _ACEOF
26226
26227   fi
26228
26229
26230
26231   { echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
26232 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6; }
26233 if test "${wx_cv_explicit+set}" = set; then
26234   echo $ECHO_N "(cached) $ECHO_C" >&6
26235 else
26236
26237
26238     ac_ext=cpp
26239 ac_cpp='$CXXCPP $CPPFLAGS'
26240 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26241 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26242 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26243
26244
26245             cat >conftest.$ac_ext <<_ACEOF
26246 /* confdefs.h.  */
26247 _ACEOF
26248 cat confdefs.h >>conftest.$ac_ext
26249 cat >>conftest.$ac_ext <<_ACEOF
26250 /* end confdefs.h.  */
26251
26252         class Foo { public: explicit Foo(int) {} };
26253
26254 int
26255 main ()
26256 {
26257
26258         return 0;
26259
26260   ;
26261   return 0;
26262 }
26263 _ACEOF
26264 rm -f conftest.$ac_objext
26265 if { (ac_try="$ac_compile"
26266 case "(($ac_try" in
26267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26268   *) ac_try_echo=$ac_try;;
26269 esac
26270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26271   (eval "$ac_compile") 2>conftest.er1
26272   ac_status=$?
26273   grep -v '^ *+' conftest.er1 >conftest.err
26274   rm -f conftest.er1
26275   cat conftest.err >&5
26276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26277   (exit $ac_status); } && {
26278          test -z "$ac_cxx_werror_flag" ||
26279          test ! -s conftest.err
26280        } && test -s conftest.$ac_objext; then
26281
26282         cat >conftest.$ac_ext <<_ACEOF
26283 /* confdefs.h.  */
26284 _ACEOF
26285 cat confdefs.h >>conftest.$ac_ext
26286 cat >>conftest.$ac_ext <<_ACEOF
26287 /* end confdefs.h.  */
26288
26289                 class Foo { public: explicit Foo(int) {} };
26290                 static void TakeFoo(const Foo& foo) { }
26291
26292 int
26293 main ()
26294 {
26295
26296                 TakeFoo(17);
26297                 return 0;
26298
26299   ;
26300   return 0;
26301 }
26302 _ACEOF
26303 rm -f conftest.$ac_objext
26304 if { (ac_try="$ac_compile"
26305 case "(($ac_try" in
26306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26307   *) ac_try_echo=$ac_try;;
26308 esac
26309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26310   (eval "$ac_compile") 2>conftest.er1
26311   ac_status=$?
26312   grep -v '^ *+' conftest.er1 >conftest.err
26313   rm -f conftest.er1
26314   cat conftest.err >&5
26315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26316   (exit $ac_status); } && {
26317          test -z "$ac_cxx_werror_flag" ||
26318          test ! -s conftest.err
26319        } && test -s conftest.$ac_objext; then
26320   wx_cv_explicit=no
26321 else
26322   echo "$as_me: failed program was:" >&5
26323 sed 's/^/| /' conftest.$ac_ext >&5
26324
26325         wx_cv_explicit=yes
26326
26327 fi
26328
26329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26330
26331 else
26332   echo "$as_me: failed program was:" >&5
26333 sed 's/^/| /' conftest.$ac_ext >&5
26334
26335         wx_cv_explicit=no
26336
26337 fi
26338
26339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26340
26341     ac_ext=c
26342 ac_cpp='$CPP $CPPFLAGS'
26343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26346
26347
26348 fi
26349 { echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
26350 echo "${ECHO_T}$wx_cv_explicit" >&6; }
26351
26352   if test "$wx_cv_explicit" = "yes"; then
26353     cat >>confdefs.h <<\_ACEOF
26354 #define HAVE_EXPLICIT 1
26355 _ACEOF
26356
26357   fi
26358
26359
26360 { echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
26361 echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6; }
26362 if test "${ac_cv_cxx_const_cast+set}" = set; then
26363   echo $ECHO_N "(cached) $ECHO_C" >&6
26364 else
26365
26366  ac_ext=cpp
26367 ac_cpp='$CXXCPP $CPPFLAGS'
26368 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26369 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26370 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26371
26372  cat >conftest.$ac_ext <<_ACEOF
26373 /* confdefs.h.  */
26374 _ACEOF
26375 cat confdefs.h >>conftest.$ac_ext
26376 cat >>conftest.$ac_ext <<_ACEOF
26377 /* end confdefs.h.  */
26378
26379 int
26380 main ()
26381 {
26382 int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
26383   ;
26384   return 0;
26385 }
26386 _ACEOF
26387 rm -f conftest.$ac_objext
26388 if { (ac_try="$ac_compile"
26389 case "(($ac_try" in
26390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26391   *) ac_try_echo=$ac_try;;
26392 esac
26393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26394   (eval "$ac_compile") 2>conftest.er1
26395   ac_status=$?
26396   grep -v '^ *+' conftest.er1 >conftest.err
26397   rm -f conftest.er1
26398   cat conftest.err >&5
26399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26400   (exit $ac_status); } && {
26401          test -z "$ac_cxx_werror_flag" ||
26402          test ! -s conftest.err
26403        } && test -s conftest.$ac_objext; then
26404   ac_cv_cxx_const_cast=yes
26405 else
26406   echo "$as_me: failed program was:" >&5
26407 sed 's/^/| /' conftest.$ac_ext >&5
26408
26409         ac_cv_cxx_const_cast=no
26410 fi
26411
26412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26413  ac_ext=c
26414 ac_cpp='$CPP $CPPFLAGS'
26415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26418
26419
26420 fi
26421 { echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
26422 echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6; }
26423 if test "$ac_cv_cxx_const_cast" = yes; then
26424
26425 cat >>confdefs.h <<\_ACEOF
26426 #define HAVE_CONST_CAST
26427 _ACEOF
26428
26429 fi
26430
26431 { echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
26432 echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6; }
26433 if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
26434   echo $ECHO_N "(cached) $ECHO_C" >&6
26435 else
26436
26437  ac_ext=cpp
26438 ac_cpp='$CXXCPP $CPPFLAGS'
26439 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26440 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26441 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26442
26443  cat >conftest.$ac_ext <<_ACEOF
26444 /* confdefs.h.  */
26445 _ACEOF
26446 cat confdefs.h >>conftest.$ac_ext
26447 cat >>conftest.$ac_ext <<_ACEOF
26448 /* end confdefs.h.  */
26449 #include <typeinfo>
26450 class Base { public : Base () {} virtual void f () = 0;};
26451 class Derived : public Base { public : Derived () {} virtual void f () {} };
26452 class Unrelated { public : Unrelated () {} };
26453 int g (Unrelated&) { return 0; }
26454 int
26455 main ()
26456 {
26457
26458 Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
26459   ;
26460   return 0;
26461 }
26462 _ACEOF
26463 rm -f conftest.$ac_objext
26464 if { (ac_try="$ac_compile"
26465 case "(($ac_try" in
26466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26467   *) ac_try_echo=$ac_try;;
26468 esac
26469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26470   (eval "$ac_compile") 2>conftest.er1
26471   ac_status=$?
26472   grep -v '^ *+' conftest.er1 >conftest.err
26473   rm -f conftest.er1
26474   cat conftest.err >&5
26475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26476   (exit $ac_status); } && {
26477          test -z "$ac_cxx_werror_flag" ||
26478          test ! -s conftest.err
26479        } && test -s conftest.$ac_objext; then
26480   ac_cv_cxx_reinterpret_cast=yes
26481 else
26482   echo "$as_me: failed program was:" >&5
26483 sed 's/^/| /' conftest.$ac_ext >&5
26484
26485         ac_cv_cxx_reinterpret_cast=no
26486 fi
26487
26488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26489  ac_ext=c
26490 ac_cpp='$CPP $CPPFLAGS'
26491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26494
26495
26496 fi
26497 { echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
26498 echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6; }
26499 if test "$ac_cv_cxx_reinterpret_cast" = yes; then
26500
26501 cat >>confdefs.h <<\_ACEOF
26502 #define HAVE_REINTERPRET_CAST
26503 _ACEOF
26504
26505 fi
26506
26507 { echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
26508 echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6; }
26509 if test "${ac_cv_cxx_static_cast+set}" = set; then
26510   echo $ECHO_N "(cached) $ECHO_C" >&6
26511 else
26512
26513  ac_ext=cpp
26514 ac_cpp='$CXXCPP $CPPFLAGS'
26515 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26516 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26517 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26518
26519  cat >conftest.$ac_ext <<_ACEOF
26520 /* confdefs.h.  */
26521 _ACEOF
26522 cat confdefs.h >>conftest.$ac_ext
26523 cat >>conftest.$ac_ext <<_ACEOF
26524 /* end confdefs.h.  */
26525 #include <typeinfo>
26526 class Base { public : Base () {} virtual void f () = 0; };
26527 class Derived : public Base { public : Derived () {} virtual void f () {} };
26528 int g (Derived&) { return 0; }
26529 int
26530 main ()
26531 {
26532
26533 Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
26534   ;
26535   return 0;
26536 }
26537 _ACEOF
26538 rm -f conftest.$ac_objext
26539 if { (ac_try="$ac_compile"
26540 case "(($ac_try" in
26541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26542   *) ac_try_echo=$ac_try;;
26543 esac
26544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26545   (eval "$ac_compile") 2>conftest.er1
26546   ac_status=$?
26547   grep -v '^ *+' conftest.er1 >conftest.err
26548   rm -f conftest.er1
26549   cat conftest.err >&5
26550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26551   (exit $ac_status); } && {
26552          test -z "$ac_cxx_werror_flag" ||
26553          test ! -s conftest.err
26554        } && test -s conftest.$ac_objext; then
26555   ac_cv_cxx_static_cast=yes
26556 else
26557   echo "$as_me: failed program was:" >&5
26558 sed 's/^/| /' conftest.$ac_ext >&5
26559
26560         ac_cv_cxx_static_cast=no
26561 fi
26562
26563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26564  ac_ext=c
26565 ac_cpp='$CPP $CPPFLAGS'
26566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26569
26570
26571 fi
26572 { echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
26573 echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6; }
26574 if test "$ac_cv_cxx_static_cast" = yes; then
26575
26576 cat >>confdefs.h <<\_ACEOF
26577 #define HAVE_STATIC_CAST
26578 _ACEOF
26579
26580 fi
26581
26582
26583 if test "x$SUNCXX" = xyes; then
26584     CXXFLAGS="-features=tmplife $CXXFLAGS"
26585 fi
26586
26587 if test "x$SUNCC" = xyes; then
26588     CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
26589 fi
26590
26591 if test "x$SGICC" = "xyes"; then
26592     CFLAGS="-woff 3970 $CFLAGS"
26593 fi
26594 if test "x$SGICXX" = "xyes"; then
26595     CXXFLAGS="-woff 3970 $CXXFLAGS"
26596 fi
26597
26598 if test "x$HPCC" = "xyes"; then
26599                     CFLAGS="+W 2011,2450 $CFLAGS"
26600 fi
26601 if test "x$HPCXX" = "xyes"; then
26602             CXXFLAGS="+W 2340 $CXXFLAGS"
26603 fi
26604
26605 if test "x$COMPAQCXX" = "xyes"; then
26606                                 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
26607 fi
26608
26609 ac_ext=cpp
26610 ac_cpp='$CXXCPP $CPPFLAGS'
26611 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26612 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26613 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26614
26615
26616 if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
26617     if test "$wxUSE_UNICODE" = "yes"; then
26618         std_string="std::wstring"
26619         char_type="wchar_t"
26620     else
26621         std_string="std::string"
26622         char_type="char"
26623     fi
26624
26625         { echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
26626 echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6; }
26627 if test "${wx_cv_class_stdstring+set}" = set; then
26628   echo $ECHO_N "(cached) $ECHO_C" >&6
26629 else
26630
26631             cat >conftest.$ac_ext <<_ACEOF
26632 /* confdefs.h.  */
26633 _ACEOF
26634 cat confdefs.h >>conftest.$ac_ext
26635 cat >>conftest.$ac_ext <<_ACEOF
26636 /* end confdefs.h.  */
26637 #include <string>
26638 int
26639 main ()
26640 {
26641 $std_string foo;
26642   ;
26643   return 0;
26644 }
26645 _ACEOF
26646 rm -f conftest.$ac_objext
26647 if { (ac_try="$ac_compile"
26648 case "(($ac_try" in
26649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26650   *) ac_try_echo=$ac_try;;
26651 esac
26652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26653   (eval "$ac_compile") 2>conftest.er1
26654   ac_status=$?
26655   grep -v '^ *+' conftest.er1 >conftest.err
26656   rm -f conftest.er1
26657   cat conftest.err >&5
26658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26659   (exit $ac_status); } && {
26660          test -z "$ac_cxx_werror_flag" ||
26661          test ! -s conftest.err
26662        } && test -s conftest.$ac_objext; then
26663   wx_cv_class_stdstring=yes
26664 else
26665   echo "$as_me: failed program was:" >&5
26666 sed 's/^/| /' conftest.$ac_ext >&5
26667
26668         wx_cv_class_stdstring=no
26669
26670 fi
26671
26672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26673
26674
26675 fi
26676 { echo "$as_me:$LINENO: result: $wx_cv_class_stdstring" >&5
26677 echo "${ECHO_T}$wx_cv_class_stdstring" >&6; }
26678
26679     if test "$wx_cv_class_stdstring" = yes; then
26680         if test "$wxUSE_UNICODE" = "yes"; then
26681             cat >>confdefs.h <<\_ACEOF
26682 #define HAVE_STD_WSTRING 1
26683 _ACEOF
26684
26685         fi
26686                     else
26687         { echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
26688 echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6; }
26689 if test "${wx_cv_class_stdbasicstring+set}" = set; then
26690   echo $ECHO_N "(cached) $ECHO_C" >&6
26691 else
26692
26693                 cat >conftest.$ac_ext <<_ACEOF
26694 /* confdefs.h.  */
26695 _ACEOF
26696 cat confdefs.h >>conftest.$ac_ext
26697 cat >>conftest.$ac_ext <<_ACEOF
26698 /* end confdefs.h.  */
26699
26700                     #ifdef HAVE_WCHAR_H
26701                     #  ifdef __CYGWIN__
26702                     #    include <stddef.h>
26703                     #  endif
26704                     #  include <wchar.h>
26705                     #endif
26706                     #ifdef HAVE_STDLIB_H
26707                     #  include <stdlib.h>
26708                     #endif
26709                     #include <stdio.h>
26710                     #include <string>
26711
26712 int
26713 main ()
26714 {
26715 std::basic_string<$char_type> foo;
26716                      const $char_type* dummy = foo.c_str();
26717   ;
26718   return 0;
26719 }
26720 _ACEOF
26721 rm -f conftest.$ac_objext
26722 if { (ac_try="$ac_compile"
26723 case "(($ac_try" in
26724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26725   *) ac_try_echo=$ac_try;;
26726 esac
26727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26728   (eval "$ac_compile") 2>conftest.er1
26729   ac_status=$?
26730   grep -v '^ *+' conftest.er1 >conftest.err
26731   rm -f conftest.er1
26732   cat conftest.err >&5
26733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26734   (exit $ac_status); } && {
26735          test -z "$ac_cxx_werror_flag" ||
26736          test ! -s conftest.err
26737        } && test -s conftest.$ac_objext; then
26738   wx_cv_class_stdbasicstring=yes
26739 else
26740   echo "$as_me: failed program was:" >&5
26741 sed 's/^/| /' conftest.$ac_ext >&5
26742
26743         wx_cv_class_stdbasicstring=no
26744
26745 fi
26746
26747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26748
26749
26750 fi
26751 { echo "$as_me:$LINENO: result: $wx_cv_class_stdbasicstring" >&5
26752 echo "${ECHO_T}$wx_cv_class_stdbasicstring" >&6; }
26753
26754         if test "$wx_cv_class_stdbasicstring" != yes; then
26755             if test "$wxUSE_STL" = "yes"; then
26756                 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
26757 echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
26758    { (exit 1); exit 1; }; }
26759             elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
26760                 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
26761 echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
26762    { (exit 1); exit 1; }; }
26763             else
26764                 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
26765 echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
26766                 wxUSE_STD_STRING=no
26767             fi
26768         fi
26769     fi
26770 fi
26771
26772 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
26773     { echo "$as_me:$LINENO: checking for std::istream" >&5
26774 echo $ECHO_N "checking for std::istream... $ECHO_C" >&6; }
26775 if test "${ac_cv_type_std__istream+set}" = set; then
26776   echo $ECHO_N "(cached) $ECHO_C" >&6
26777 else
26778   cat >conftest.$ac_ext <<_ACEOF
26779 /* confdefs.h.  */
26780 _ACEOF
26781 cat confdefs.h >>conftest.$ac_ext
26782 cat >>conftest.$ac_ext <<_ACEOF
26783 /* end confdefs.h.  */
26784 #include <iostream>
26785
26786 typedef std::istream ac__type_new_;
26787 int
26788 main ()
26789 {
26790 if ((ac__type_new_ *) 0)
26791   return 0;
26792 if (sizeof (ac__type_new_))
26793   return 0;
26794   ;
26795   return 0;
26796 }
26797 _ACEOF
26798 rm -f conftest.$ac_objext
26799 if { (ac_try="$ac_compile"
26800 case "(($ac_try" in
26801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26802   *) ac_try_echo=$ac_try;;
26803 esac
26804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26805   (eval "$ac_compile") 2>conftest.er1
26806   ac_status=$?
26807   grep -v '^ *+' conftest.er1 >conftest.err
26808   rm -f conftest.er1
26809   cat conftest.err >&5
26810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26811   (exit $ac_status); } && {
26812          test -z "$ac_cxx_werror_flag" ||
26813          test ! -s conftest.err
26814        } && test -s conftest.$ac_objext; then
26815   ac_cv_type_std__istream=yes
26816 else
26817   echo "$as_me: failed program was:" >&5
26818 sed 's/^/| /' conftest.$ac_ext >&5
26819
26820         ac_cv_type_std__istream=no
26821 fi
26822
26823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26824 fi
26825 { echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
26826 echo "${ECHO_T}$ac_cv_type_std__istream" >&6; }
26827 if test $ac_cv_type_std__istream = yes; then
26828
26829 cat >>confdefs.h <<_ACEOF
26830 #define HAVE_STD__ISTREAM 1
26831 _ACEOF
26832
26833
26834 else
26835   wxUSE_STD_IOSTREAM=no
26836 fi
26837 { echo "$as_me:$LINENO: checking for std::ostream" >&5
26838 echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6; }
26839 if test "${ac_cv_type_std__ostream+set}" = set; then
26840   echo $ECHO_N "(cached) $ECHO_C" >&6
26841 else
26842   cat >conftest.$ac_ext <<_ACEOF
26843 /* confdefs.h.  */
26844 _ACEOF
26845 cat confdefs.h >>conftest.$ac_ext
26846 cat >>conftest.$ac_ext <<_ACEOF
26847 /* end confdefs.h.  */
26848 #include <iostream>
26849
26850 typedef std::ostream ac__type_new_;
26851 int
26852 main ()
26853 {
26854 if ((ac__type_new_ *) 0)
26855   return 0;
26856 if (sizeof (ac__type_new_))
26857   return 0;
26858   ;
26859   return 0;
26860 }
26861 _ACEOF
26862 rm -f conftest.$ac_objext
26863 if { (ac_try="$ac_compile"
26864 case "(($ac_try" in
26865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26866   *) ac_try_echo=$ac_try;;
26867 esac
26868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26869   (eval "$ac_compile") 2>conftest.er1
26870   ac_status=$?
26871   grep -v '^ *+' conftest.er1 >conftest.err
26872   rm -f conftest.er1
26873   cat conftest.err >&5
26874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26875   (exit $ac_status); } && {
26876          test -z "$ac_cxx_werror_flag" ||
26877          test ! -s conftest.err
26878        } && test -s conftest.$ac_objext; then
26879   ac_cv_type_std__ostream=yes
26880 else
26881   echo "$as_me: failed program was:" >&5
26882 sed 's/^/| /' conftest.$ac_ext >&5
26883
26884         ac_cv_type_std__ostream=no
26885 fi
26886
26887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26888 fi
26889 { echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
26890 echo "${ECHO_T}$ac_cv_type_std__ostream" >&6; }
26891 if test $ac_cv_type_std__ostream = yes; then
26892
26893 cat >>confdefs.h <<_ACEOF
26894 #define HAVE_STD__OSTREAM 1
26895 _ACEOF
26896
26897
26898 else
26899   wxUSE_STD_IOSTREAM=no
26900 fi
26901
26902
26903     if test "$wxUSE_STD_IOSTREAM" != "yes"; then
26904         if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
26905             { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
26906 echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
26907    { (exit 1); exit 1; }; }
26908         else
26909             { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
26910 echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
26911         fi
26912     fi
26913 fi
26914
26915 if test "$wxUSE_STL" = "yes"; then
26916         { echo "$as_me:$LINENO: checking for basic STL functionality" >&5
26917 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6; }
26918 if test "${wx_cv_lib_stl+set}" = set; then
26919   echo $ECHO_N "(cached) $ECHO_C" >&6
26920 else
26921   cat >conftest.$ac_ext <<_ACEOF
26922 /* confdefs.h.  */
26923 _ACEOF
26924 cat confdefs.h >>conftest.$ac_ext
26925 cat >>conftest.$ac_ext <<_ACEOF
26926 /* end confdefs.h.  */
26927 #include <string>
26928             #include <functional>
26929             #include <algorithm>
26930             #include <vector>
26931             #include <list>
26932 int
26933 main ()
26934 {
26935 std::vector<int> moo;
26936              std::list<int> foo;
26937              std::vector<int>::iterator it =
26938                  std::find_if(moo.begin(), moo.end(),
26939                               std::bind2nd(std::less<int>(), 3));
26940   ;
26941   return 0;
26942 }
26943 _ACEOF
26944 rm -f conftest.$ac_objext
26945 if { (ac_try="$ac_compile"
26946 case "(($ac_try" in
26947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26948   *) ac_try_echo=$ac_try;;
26949 esac
26950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26951   (eval "$ac_compile") 2>conftest.er1
26952   ac_status=$?
26953   grep -v '^ *+' conftest.er1 >conftest.err
26954   rm -f conftest.er1
26955   cat conftest.err >&5
26956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26957   (exit $ac_status); } && {
26958          test -z "$ac_cxx_werror_flag" ||
26959          test ! -s conftest.err
26960        } && test -s conftest.$ac_objext; then
26961   wx_cv_lib_stl=yes
26962 else
26963   echo "$as_me: failed program was:" >&5
26964 sed 's/^/| /' conftest.$ac_ext >&5
26965
26966         wx_cv_lib_stl=no
26967
26968 fi
26969
26970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26971
26972 fi
26973 { echo "$as_me:$LINENO: result: $wx_cv_lib_stl" >&5
26974 echo "${ECHO_T}$wx_cv_lib_stl" >&6; }
26975
26976     if test "$wx_cv_lib_stl" != yes; then
26977          { { echo "$as_me:$LINENO: error: Can't use --enable-stl as basic STL functionality is missing" >&5
26978 echo "$as_me: error: Can't use --enable-stl as basic STL functionality is missing" >&2;}
26979    { (exit 1); exit 1; }; }
26980     fi
26981
26982         { echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
26983 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6; }
26984 if test "${wx_cv_func_stdstring_compare+set}" = set; then
26985   echo $ECHO_N "(cached) $ECHO_C" >&6
26986 else
26987   cat >conftest.$ac_ext <<_ACEOF
26988 /* confdefs.h.  */
26989 _ACEOF
26990 cat confdefs.h >>conftest.$ac_ext
26991 cat >>conftest.$ac_ext <<_ACEOF
26992 /* end confdefs.h.  */
26993 #include <string>
26994 int
26995 main ()
26996 {
26997 std::string foo, bar;
26998             foo.compare(bar);
26999             foo.compare(1, 1, bar);
27000             foo.compare(1, 1, bar, 1, 1);
27001             foo.compare("");
27002             foo.compare(1, 1, "");
27003             foo.compare(1, 1, "", 2);
27004   ;
27005   return 0;
27006 }
27007 _ACEOF
27008 rm -f conftest.$ac_objext
27009 if { (ac_try="$ac_compile"
27010 case "(($ac_try" in
27011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27012   *) ac_try_echo=$ac_try;;
27013 esac
27014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27015   (eval "$ac_compile") 2>conftest.er1
27016   ac_status=$?
27017   grep -v '^ *+' conftest.er1 >conftest.err
27018   rm -f conftest.er1
27019   cat conftest.err >&5
27020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27021   (exit $ac_status); } && {
27022          test -z "$ac_cxx_werror_flag" ||
27023          test ! -s conftest.err
27024        } && test -s conftest.$ac_objext; then
27025   wx_cv_func_stdstring_compare=yes
27026 else
27027   echo "$as_me: failed program was:" >&5
27028 sed 's/^/| /' conftest.$ac_ext >&5
27029
27030         wx_cv_func_stdstring_compare=no
27031
27032 fi
27033
27034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27035
27036 fi
27037 { echo "$as_me:$LINENO: result: $wx_cv_func_stdstring_compare" >&5
27038 echo "${ECHO_T}$wx_cv_func_stdstring_compare" >&6; }
27039
27040     if test "$wx_cv_func_stdstring_compare" = yes; then
27041         cat >>confdefs.h <<\_ACEOF
27042 #define HAVE_STD_STRING_COMPARE 1
27043 _ACEOF
27044
27045     fi
27046
27047         { echo "$as_me:$LINENO: checking for hash_map" >&5
27048 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6; }
27049 if test "${ac_cv_header_hash_map+set}" = set; then
27050   echo $ECHO_N "(cached) $ECHO_C" >&6
27051 else
27052   cat >conftest.$ac_ext <<_ACEOF
27053 /* confdefs.h.  */
27054 _ACEOF
27055 cat confdefs.h >>conftest.$ac_ext
27056 cat >>conftest.$ac_ext <<_ACEOF
27057 /* end confdefs.h.  */
27058
27059
27060
27061 #include <hash_map>
27062 _ACEOF
27063 rm -f conftest.$ac_objext
27064 if { (ac_try="$ac_compile"
27065 case "(($ac_try" in
27066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27067   *) ac_try_echo=$ac_try;;
27068 esac
27069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27070   (eval "$ac_compile") 2>conftest.er1
27071   ac_status=$?
27072   grep -v '^ *+' conftest.er1 >conftest.err
27073   rm -f conftest.er1
27074   cat conftest.err >&5
27075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27076   (exit $ac_status); } && {
27077          test -z "$ac_cxx_werror_flag" ||
27078          test ! -s conftest.err
27079        } && test -s conftest.$ac_objext; then
27080   ac_cv_header_hash_map=yes
27081 else
27082   echo "$as_me: failed program was:" >&5
27083 sed 's/^/| /' conftest.$ac_ext >&5
27084
27085         ac_cv_header_hash_map=no
27086 fi
27087
27088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27089 fi
27090 { echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
27091 echo "${ECHO_T}$ac_cv_header_hash_map" >&6; }
27092 if test $ac_cv_header_hash_map = yes; then
27093   { echo "$as_me:$LINENO: checking for standard hash_map and hash_set" >&5
27094 echo $ECHO_N "checking for standard hash_map and hash_set... $ECHO_C" >&6; }
27095 if test "${wx_cv_class_stdhashmapset+set}" = set; then
27096   echo $ECHO_N "(cached) $ECHO_C" >&6
27097 else
27098   cat >conftest.$ac_ext <<_ACEOF
27099 /* confdefs.h.  */
27100 _ACEOF
27101 cat confdefs.h >>conftest.$ac_ext
27102 cat >>conftest.$ac_ext <<_ACEOF
27103 /* end confdefs.h.  */
27104 #include <hash_map>
27105                 #include <hash_set>
27106 int
27107 main ()
27108 {
27109 std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
27110                  std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
27111   ;
27112   return 0;
27113 }
27114 _ACEOF
27115 rm -f conftest.$ac_objext
27116 if { (ac_try="$ac_compile"
27117 case "(($ac_try" in
27118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27119   *) ac_try_echo=$ac_try;;
27120 esac
27121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27122   (eval "$ac_compile") 2>conftest.er1
27123   ac_status=$?
27124   grep -v '^ *+' conftest.er1 >conftest.err
27125   rm -f conftest.er1
27126   cat conftest.err >&5
27127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27128   (exit $ac_status); } && {
27129          test -z "$ac_cxx_werror_flag" ||
27130          test ! -s conftest.err
27131        } && test -s conftest.$ac_objext; then
27132   wx_cv_class_stdhashmapset=yes
27133 else
27134   echo "$as_me: failed program was:" >&5
27135 sed 's/^/| /' conftest.$ac_ext >&5
27136
27137         wx_cv_class_stdhashmapset=no
27138 fi
27139
27140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27141
27142
27143 fi
27144 { echo "$as_me:$LINENO: result: $wx_cv_class_stdhashmapset" >&5
27145 echo "${ECHO_T}$wx_cv_class_stdhashmapset" >&6; }
27146 fi
27147
27148
27149
27150     if test "$wx_cv_class_stdhashmapset" = yes; then
27151         cat >>confdefs.h <<\_ACEOF
27152 #define HAVE_HASH_MAP 1
27153 _ACEOF
27154
27155         cat >>confdefs.h <<\_ACEOF
27156 #define HAVE_STD_HASH_MAP 1
27157 _ACEOF
27158
27159     fi
27160
27161     { echo "$as_me:$LINENO: checking for ext/hash_map" >&5
27162 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6; }
27163 if test "${ac_cv_header_ext_hash_map+set}" = set; then
27164   echo $ECHO_N "(cached) $ECHO_C" >&6
27165 else
27166   cat >conftest.$ac_ext <<_ACEOF
27167 /* confdefs.h.  */
27168 _ACEOF
27169 cat confdefs.h >>conftest.$ac_ext
27170 cat >>conftest.$ac_ext <<_ACEOF
27171 /* end confdefs.h.  */
27172
27173
27174
27175 #include <ext/hash_map>
27176 _ACEOF
27177 rm -f conftest.$ac_objext
27178 if { (ac_try="$ac_compile"
27179 case "(($ac_try" in
27180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27181   *) ac_try_echo=$ac_try;;
27182 esac
27183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27184   (eval "$ac_compile") 2>conftest.er1
27185   ac_status=$?
27186   grep -v '^ *+' conftest.er1 >conftest.err
27187   rm -f conftest.er1
27188   cat conftest.err >&5
27189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27190   (exit $ac_status); } && {
27191          test -z "$ac_cxx_werror_flag" ||
27192          test ! -s conftest.err
27193        } && test -s conftest.$ac_objext; then
27194   ac_cv_header_ext_hash_map=yes
27195 else
27196   echo "$as_me: failed program was:" >&5
27197 sed 's/^/| /' conftest.$ac_ext >&5
27198
27199         ac_cv_header_ext_hash_map=no
27200 fi
27201
27202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27203 fi
27204 { echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
27205 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6; }
27206 if test $ac_cv_header_ext_hash_map = yes; then
27207   { echo "$as_me:$LINENO: checking for GNU hash_map and hash_set" >&5
27208 echo $ECHO_N "checking for GNU hash_map and hash_set... $ECHO_C" >&6; }
27209 if test "${wx_cv_class_gnuhashmapset+set}" = set; then
27210   echo $ECHO_N "(cached) $ECHO_C" >&6
27211 else
27212   cat >conftest.$ac_ext <<_ACEOF
27213 /* confdefs.h.  */
27214 _ACEOF
27215 cat confdefs.h >>conftest.$ac_ext
27216 cat >>conftest.$ac_ext <<_ACEOF
27217 /* end confdefs.h.  */
27218 #include <ext/hash_map>
27219                 #include <ext/hash_set>
27220 int
27221 main ()
27222 {
27223 __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
27224                  __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
27225   ;
27226   return 0;
27227 }
27228 _ACEOF
27229 rm -f conftest.$ac_objext
27230 if { (ac_try="$ac_compile"
27231 case "(($ac_try" in
27232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27233   *) ac_try_echo=$ac_try;;
27234 esac
27235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27236   (eval "$ac_compile") 2>conftest.er1
27237   ac_status=$?
27238   grep -v '^ *+' conftest.er1 >conftest.err
27239   rm -f conftest.er1
27240   cat conftest.err >&5
27241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27242   (exit $ac_status); } && {
27243          test -z "$ac_cxx_werror_flag" ||
27244          test ! -s conftest.err
27245        } && test -s conftest.$ac_objext; then
27246   wx_cv_class_gnuhashmapset=yes
27247 else
27248   echo "$as_me: failed program was:" >&5
27249 sed 's/^/| /' conftest.$ac_ext >&5
27250
27251         wx_cv_class_gnuhashmapset=no
27252 fi
27253
27254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27255
27256
27257 fi
27258 { echo "$as_me:$LINENO: result: $wx_cv_class_gnuhashmapset" >&5
27259 echo "${ECHO_T}$wx_cv_class_gnuhashmapset" >&6; }
27260 fi
27261
27262
27263
27264     if test "$wx_cv_class_gnuhashmapset" = yes; then
27265          cat >>confdefs.h <<\_ACEOF
27266 #define HAVE_EXT_HASH_MAP 1
27267 _ACEOF
27268
27269          cat >>confdefs.h <<\_ACEOF
27270 #define HAVE_GNU_CXX_HASH_MAP 1
27271 _ACEOF
27272
27273     fi
27274 fi
27275
27276 ac_ext=c
27277 ac_cpp='$CPP $CPPFLAGS'
27278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27281
27282
27283
27284 SEARCH_INCLUDE="\
27285     /usr/local/include        \
27286                               \
27287     /usr/Motif-2.1/include    \
27288     /usr/Motif-1.2/include    \
27289     /usr/include/Motif1.2     \
27290                               \
27291     /usr/dt/include           \
27292     /usr/openwin/include      \
27293                               \
27294     /usr/include/Xm           \
27295                               \
27296     /usr/X11R6/include        \
27297     /usr/X11R6.4/include      \
27298     /usr/X11R5/include        \
27299     /usr/X11R4/include        \
27300                               \
27301     /usr/include/X11R6        \
27302     /usr/include/X11R5        \
27303     /usr/include/X11R4        \
27304                               \
27305     /usr/local/X11R6/include  \
27306     /usr/local/X11R5/include  \
27307     /usr/local/X11R4/include  \
27308                               \
27309     /usr/local/include/X11R6  \
27310     /usr/local/include/X11R5  \
27311     /usr/local/include/X11R4  \
27312                               \
27313     /usr/X11/include          \
27314     /usr/include/X11          \
27315     /usr/local/X11/include    \
27316     /usr/local/include/X11    \
27317                               \
27318     /usr/XFree86/include/X11  \
27319     /usr/pkg/include          \
27320                               \
27321     /usr/openwin/share/include"
27322
27323 { echo "$as_me:$LINENO: checking for libraries directory" >&5
27324 echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6; }
27325
27326 case "${host}" in
27327     *-*-irix6* )
27328         if test "${wx_cv_std_libpath+set}" = set; then
27329   echo $ECHO_N "(cached) $ECHO_C" >&6
27330 else
27331
27332                 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
27333                     for e in a so sl dylib dll.a; do
27334                         libc="$d/libc.$e"
27335                         if test -f $libc; then
27336                             save_LIBS="$LIBS"
27337                             LIBS="$libc"
27338                             cat >conftest.$ac_ext <<_ACEOF
27339 int main() { return 0; }
27340 _ACEOF
27341 rm -f conftest.$ac_objext conftest$ac_exeext
27342 if { (ac_try="$ac_link"
27343 case "(($ac_try" in
27344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27345   *) ac_try_echo=$ac_try;;
27346 esac
27347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27348   (eval "$ac_link") 2>conftest.er1
27349   ac_status=$?
27350   grep -v '^ *+' conftest.er1 >conftest.err
27351   rm -f conftest.er1
27352   cat conftest.err >&5
27353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27354   (exit $ac_status); } && {
27355          test -z "$ac_c_werror_flag" ||
27356          test ! -s conftest.err
27357        } && test -s conftest$ac_exeext &&
27358        $as_test_x conftest$ac_exeext; then
27359   wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
27360 else
27361   echo "$as_me: failed program was:" >&5
27362 sed 's/^/| /' conftest.$ac_ext >&5
27363
27364
27365 fi
27366
27367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27368       conftest$ac_exeext conftest.$ac_ext
27369                             LIBS="$save_LIBS"
27370                             if test "x$wx_cv_std_libpath" != "x"; then
27371                                 break 2
27372                             fi
27373                         fi
27374                     done
27375                 done
27376                 if test "x$wx_cv_std_libpath" = "x"; then
27377                     wx_cv_std_libpath="lib"
27378                 fi
27379
27380
27381 fi
27382
27383         ;;
27384
27385     *-*-solaris2* )
27386                 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
27387             wx_cv_std_libpath="lib/64"
27388         else
27389             wx_cv_std_libpath="lib"
27390         fi
27391         ;;
27392
27393     *-*-linux* )
27394                 if test "$ac_cv_sizeof_void_p" = 8 -a \
27395                 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
27396             wx_cv_std_libpath="lib64"
27397         else
27398             wx_cv_std_libpath="lib"
27399         fi
27400         ;;
27401
27402     *)
27403         wx_cv_std_libpath="lib";
27404         ;;
27405 esac
27406
27407 { echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
27408 echo "${ECHO_T}$wx_cv_std_libpath" >&6; }
27409
27410 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
27411
27412 if test "$build" != "$host" -a "$GCC" = yes; then
27413                     if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
27414         cross_root=`dirname $cross_root`
27415         cross_root=`dirname $cross_root`
27416
27417                         SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
27418         SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
27419         SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
27420
27421                 if test -z "$PKG_CONFIG_PATH"; then
27422             PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
27423             export PKG_CONFIG_PATH
27424         fi
27425
27426                                 if test -z "$x_includes" -o "$x_includes" = NONE; then
27427
27428 ac_find_includes=
27429 for ac_dir in $SEARCH_INCLUDE /usr/include;
27430   do
27431     if test -f "$ac_dir/X11/Intrinsic.h"; then
27432       ac_find_includes=$ac_dir
27433       break
27434     fi
27435   done
27436
27437             x_includes=$ac_find_includes
27438         fi
27439         if test -z "$x_libraries" -o "$x_libraries" = NONE; then
27440
27441   ac_find_libraries=
27442   for ac_dir in $SEARCH_LIB;
27443   do
27444     for ac_extension in a so sl dylib dll.a; do
27445       if test -f "$ac_dir/libXt.$ac_extension"; then
27446         ac_find_libraries=$ac_dir
27447         break 2
27448       fi
27449     done
27450   done
27451
27452             x_libraries=$ac_find_libraries
27453         fi
27454     fi
27455 fi
27456
27457
27458 cat >confcache <<\_ACEOF
27459 # This file is a shell script that caches the results of configure
27460 # tests run on this system so they can be shared between configure
27461 # scripts and configure runs, see configure's option --config-cache.
27462 # It is not useful on other systems.  If it contains results you don't
27463 # want to keep, you may remove or edit it.
27464 #
27465 # config.status only pays attention to the cache file if you give it
27466 # the --recheck option to rerun configure.
27467 #
27468 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27469 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27470 # following values.
27471
27472 _ACEOF
27473
27474 # The following way of writing the cache mishandles newlines in values,
27475 # but we know of no workaround that is simple, portable, and efficient.
27476 # So, we kill variables containing newlines.
27477 # Ultrix sh set writes to stderr and can't be redirected directly,
27478 # and sets the high bit in the cache file unless we assign to the vars.
27479 (
27480   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27481     eval ac_val=\$$ac_var
27482     case $ac_val in #(
27483     *${as_nl}*)
27484       case $ac_var in #(
27485       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27486 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27487       esac
27488       case $ac_var in #(
27489       _ | IFS | as_nl) ;; #(
27490       *) $as_unset $ac_var ;;
27491       esac ;;
27492     esac
27493   done
27494
27495   (set) 2>&1 |
27496     case $as_nl`(ac_space=' '; set) 2>&1` in #(
27497     *${as_nl}ac_space=\ *)
27498       # `set' does not quote correctly, so add quotes (double-quote
27499       # substitution turns \\\\ into \\, and sed turns \\ into \).
27500       sed -n \
27501         "s/'/'\\\\''/g;
27502           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27503       ;; #(
27504     *)
27505       # `set' quotes correctly as required by POSIX, so do not add quotes.
27506       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27507       ;;
27508     esac |
27509     sort
27510 ) |
27511   sed '
27512      /^ac_cv_env_/b end
27513      t clear
27514      :clear
27515      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27516      t end
27517      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27518      :end' >>confcache
27519 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27520   if test -w "$cache_file"; then
27521     test "x$cache_file" != "x/dev/null" &&
27522       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
27523 echo "$as_me: updating cache $cache_file" >&6;}
27524     cat confcache >$cache_file
27525   else
27526     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27527 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27528   fi
27529 fi
27530 rm -f confcache
27531
27532 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
27533     { echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
27534 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6; }
27535 if test "${wx_cv_lib_glibc21+set}" = set; then
27536   echo $ECHO_N "(cached) $ECHO_C" >&6
27537 else
27538
27539         cat >conftest.$ac_ext <<_ACEOF
27540 /* confdefs.h.  */
27541 _ACEOF
27542 cat confdefs.h >>conftest.$ac_ext
27543 cat >>conftest.$ac_ext <<_ACEOF
27544 /* end confdefs.h.  */
27545 #include <features.h>
27546 int
27547 main ()
27548 {
27549
27550                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
27551                 not glibc 2.1
27552                 #endif
27553
27554   ;
27555   return 0;
27556 }
27557 _ACEOF
27558 rm -f conftest.$ac_objext
27559 if { (ac_try="$ac_compile"
27560 case "(($ac_try" in
27561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27562   *) ac_try_echo=$ac_try;;
27563 esac
27564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27565   (eval "$ac_compile") 2>conftest.er1
27566   ac_status=$?
27567   grep -v '^ *+' conftest.er1 >conftest.err
27568   rm -f conftest.er1
27569   cat conftest.err >&5
27570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27571   (exit $ac_status); } && {
27572          test -z "$ac_c_werror_flag" ||
27573          test ! -s conftest.err
27574        } && test -s conftest.$ac_objext; then
27575
27576                 wx_cv_lib_glibc21=yes
27577
27578 else
27579   echo "$as_me: failed program was:" >&5
27580 sed 's/^/| /' conftest.$ac_ext >&5
27581
27582
27583                 wx_cv_lib_glibc21=no
27584
27585
27586 fi
27587
27588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27589
27590 fi
27591 { echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
27592 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6; }
27593     if test "$wx_cv_lib_glibc21" = "yes"; then
27594         cat >>confdefs.h <<\_ACEOF
27595 #define wxHAVE_GLIBC2 1
27596 _ACEOF
27597
27598     fi
27599 fi
27600
27601 if test "x$wx_cv_lib_glibc21" = "xyes"; then
27602     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
27603         cat >>confdefs.h <<\_ACEOF
27604 #define _GNU_SOURCE 1
27605 _ACEOF
27606
27607     fi
27608 fi
27609
27610 have_cos=0
27611 have_floor=0
27612
27613 for ac_func in cos
27614 do
27615 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27616 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27617 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27618 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27619   echo $ECHO_N "(cached) $ECHO_C" >&6
27620 else
27621   cat >conftest.$ac_ext <<_ACEOF
27622 /* confdefs.h.  */
27623 _ACEOF
27624 cat confdefs.h >>conftest.$ac_ext
27625 cat >>conftest.$ac_ext <<_ACEOF
27626 /* end confdefs.h.  */
27627 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27628    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27629 #define $ac_func innocuous_$ac_func
27630
27631 /* System header to define __stub macros and hopefully few prototypes,
27632     which can conflict with char $ac_func (); below.
27633     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27634     <limits.h> exists even on freestanding compilers.  */
27635
27636 #ifdef __STDC__
27637 # include <limits.h>
27638 #else
27639 # include <assert.h>
27640 #endif
27641
27642 #undef $ac_func
27643
27644 /* Override any GCC internal prototype to avoid an error.
27645    Use char because int might match the return type of a GCC
27646    builtin and then its argument prototype would still apply.  */
27647 #ifdef __cplusplus
27648 extern "C"
27649 #endif
27650 char $ac_func ();
27651 /* The GNU C library defines this for functions which it implements
27652     to always fail with ENOSYS.  Some functions are actually named
27653     something starting with __ and the normal name is an alias.  */
27654 #if defined __stub_$ac_func || defined __stub___$ac_func
27655 choke me
27656 #endif
27657
27658 int
27659 main ()
27660 {
27661 return $ac_func ();
27662   ;
27663   return 0;
27664 }
27665 _ACEOF
27666 rm -f conftest.$ac_objext conftest$ac_exeext
27667 if { (ac_try="$ac_link"
27668 case "(($ac_try" in
27669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27670   *) ac_try_echo=$ac_try;;
27671 esac
27672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27673   (eval "$ac_link") 2>conftest.er1
27674   ac_status=$?
27675   grep -v '^ *+' conftest.er1 >conftest.err
27676   rm -f conftest.er1
27677   cat conftest.err >&5
27678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27679   (exit $ac_status); } && {
27680          test -z "$ac_c_werror_flag" ||
27681          test ! -s conftest.err
27682        } && test -s conftest$ac_exeext &&
27683        $as_test_x conftest$ac_exeext; then
27684   eval "$as_ac_var=yes"
27685 else
27686   echo "$as_me: failed program was:" >&5
27687 sed 's/^/| /' conftest.$ac_ext >&5
27688
27689         eval "$as_ac_var=no"
27690 fi
27691
27692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27693       conftest$ac_exeext conftest.$ac_ext
27694 fi
27695 ac_res=`eval echo '${'$as_ac_var'}'`
27696                { echo "$as_me:$LINENO: result: $ac_res" >&5
27697 echo "${ECHO_T}$ac_res" >&6; }
27698 if test `eval echo '${'$as_ac_var'}'` = yes; then
27699   cat >>confdefs.h <<_ACEOF
27700 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27701 _ACEOF
27702  have_cos=1
27703 fi
27704 done
27705
27706
27707 for ac_func in floor
27708 do
27709 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27710 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27711 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27712 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27713   echo $ECHO_N "(cached) $ECHO_C" >&6
27714 else
27715   cat >conftest.$ac_ext <<_ACEOF
27716 /* confdefs.h.  */
27717 _ACEOF
27718 cat confdefs.h >>conftest.$ac_ext
27719 cat >>conftest.$ac_ext <<_ACEOF
27720 /* end confdefs.h.  */
27721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27722    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27723 #define $ac_func innocuous_$ac_func
27724
27725 /* System header to define __stub macros and hopefully few prototypes,
27726     which can conflict with char $ac_func (); below.
27727     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27728     <limits.h> exists even on freestanding compilers.  */
27729
27730 #ifdef __STDC__
27731 # include <limits.h>
27732 #else
27733 # include <assert.h>
27734 #endif
27735
27736 #undef $ac_func
27737
27738 /* Override any GCC internal prototype to avoid an error.
27739    Use char because int might match the return type of a GCC
27740    builtin and then its argument prototype would still apply.  */
27741 #ifdef __cplusplus
27742 extern "C"
27743 #endif
27744 char $ac_func ();
27745 /* The GNU C library defines this for functions which it implements
27746     to always fail with ENOSYS.  Some functions are actually named
27747     something starting with __ and the normal name is an alias.  */
27748 #if defined __stub_$ac_func || defined __stub___$ac_func
27749 choke me
27750 #endif
27751
27752 int
27753 main ()
27754 {
27755 return $ac_func ();
27756   ;
27757   return 0;
27758 }
27759 _ACEOF
27760 rm -f conftest.$ac_objext conftest$ac_exeext
27761 if { (ac_try="$ac_link"
27762 case "(($ac_try" in
27763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27764   *) ac_try_echo=$ac_try;;
27765 esac
27766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27767   (eval "$ac_link") 2>conftest.er1
27768   ac_status=$?
27769   grep -v '^ *+' conftest.er1 >conftest.err
27770   rm -f conftest.er1
27771   cat conftest.err >&5
27772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27773   (exit $ac_status); } && {
27774          test -z "$ac_c_werror_flag" ||
27775          test ! -s conftest.err
27776        } && test -s conftest$ac_exeext &&
27777        $as_test_x conftest$ac_exeext; then
27778   eval "$as_ac_var=yes"
27779 else
27780   echo "$as_me: failed program was:" >&5
27781 sed 's/^/| /' conftest.$ac_ext >&5
27782
27783         eval "$as_ac_var=no"
27784 fi
27785
27786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27787       conftest$ac_exeext conftest.$ac_ext
27788 fi
27789 ac_res=`eval echo '${'$as_ac_var'}'`
27790                { echo "$as_me:$LINENO: result: $ac_res" >&5
27791 echo "${ECHO_T}$ac_res" >&6; }
27792 if test `eval echo '${'$as_ac_var'}'` = yes; then
27793   cat >>confdefs.h <<_ACEOF
27794 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27795 _ACEOF
27796  have_floor=1
27797 fi
27798 done
27799
27800 { echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
27801 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6; }
27802 if test "$have_cos" = 1 -a "$have_floor" = 1; then
27803     { echo "$as_me:$LINENO: result: yes" >&5
27804 echo "${ECHO_T}yes" >&6; }
27805 else
27806     { echo "$as_me:$LINENO: result: no" >&5
27807 echo "${ECHO_T}no" >&6; }
27808     LIBS="$LIBS -lm"
27809     # use different functions to avoid configure caching
27810     have_sin=0
27811     have_ceil=0
27812
27813 for ac_func in sin
27814 do
27815 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27816 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27817 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27818 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27819   echo $ECHO_N "(cached) $ECHO_C" >&6
27820 else
27821   cat >conftest.$ac_ext <<_ACEOF
27822 /* confdefs.h.  */
27823 _ACEOF
27824 cat confdefs.h >>conftest.$ac_ext
27825 cat >>conftest.$ac_ext <<_ACEOF
27826 /* end confdefs.h.  */
27827 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27828    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27829 #define $ac_func innocuous_$ac_func
27830
27831 /* System header to define __stub macros and hopefully few prototypes,
27832     which can conflict with char $ac_func (); below.
27833     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27834     <limits.h> exists even on freestanding compilers.  */
27835
27836 #ifdef __STDC__
27837 # include <limits.h>
27838 #else
27839 # include <assert.h>
27840 #endif
27841
27842 #undef $ac_func
27843
27844 /* Override any GCC internal prototype to avoid an error.
27845    Use char because int might match the return type of a GCC
27846    builtin and then its argument prototype would still apply.  */
27847 #ifdef __cplusplus
27848 extern "C"
27849 #endif
27850 char $ac_func ();
27851 /* The GNU C library defines this for functions which it implements
27852     to always fail with ENOSYS.  Some functions are actually named
27853     something starting with __ and the normal name is an alias.  */
27854 #if defined __stub_$ac_func || defined __stub___$ac_func
27855 choke me
27856 #endif
27857
27858 int
27859 main ()
27860 {
27861 return $ac_func ();
27862   ;
27863   return 0;
27864 }
27865 _ACEOF
27866 rm -f conftest.$ac_objext conftest$ac_exeext
27867 if { (ac_try="$ac_link"
27868 case "(($ac_try" in
27869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27870   *) ac_try_echo=$ac_try;;
27871 esac
27872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27873   (eval "$ac_link") 2>conftest.er1
27874   ac_status=$?
27875   grep -v '^ *+' conftest.er1 >conftest.err
27876   rm -f conftest.er1
27877   cat conftest.err >&5
27878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27879   (exit $ac_status); } && {
27880          test -z "$ac_c_werror_flag" ||
27881          test ! -s conftest.err
27882        } && test -s conftest$ac_exeext &&
27883        $as_test_x conftest$ac_exeext; then
27884   eval "$as_ac_var=yes"
27885 else
27886   echo "$as_me: failed program was:" >&5
27887 sed 's/^/| /' conftest.$ac_ext >&5
27888
27889         eval "$as_ac_var=no"
27890 fi
27891
27892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27893       conftest$ac_exeext conftest.$ac_ext
27894 fi
27895 ac_res=`eval echo '${'$as_ac_var'}'`
27896                { echo "$as_me:$LINENO: result: $ac_res" >&5
27897 echo "${ECHO_T}$ac_res" >&6; }
27898 if test `eval echo '${'$as_ac_var'}'` = yes; then
27899   cat >>confdefs.h <<_ACEOF
27900 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27901 _ACEOF
27902  have_sin=1
27903 fi
27904 done
27905
27906
27907 for ac_func in ceil
27908 do
27909 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27910 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27911 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27912 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27913   echo $ECHO_N "(cached) $ECHO_C" >&6
27914 else
27915   cat >conftest.$ac_ext <<_ACEOF
27916 /* confdefs.h.  */
27917 _ACEOF
27918 cat confdefs.h >>conftest.$ac_ext
27919 cat >>conftest.$ac_ext <<_ACEOF
27920 /* end confdefs.h.  */
27921 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27922    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27923 #define $ac_func innocuous_$ac_func
27924
27925 /* System header to define __stub macros and hopefully few prototypes,
27926     which can conflict with char $ac_func (); below.
27927     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27928     <limits.h> exists even on freestanding compilers.  */
27929
27930 #ifdef __STDC__
27931 # include <limits.h>
27932 #else
27933 # include <assert.h>
27934 #endif
27935
27936 #undef $ac_func
27937
27938 /* Override any GCC internal prototype to avoid an error.
27939    Use char because int might match the return type of a GCC
27940    builtin and then its argument prototype would still apply.  */
27941 #ifdef __cplusplus
27942 extern "C"
27943 #endif
27944 char $ac_func ();
27945 /* The GNU C library defines this for functions which it implements
27946     to always fail with ENOSYS.  Some functions are actually named
27947     something starting with __ and the normal name is an alias.  */
27948 #if defined __stub_$ac_func || defined __stub___$ac_func
27949 choke me
27950 #endif
27951
27952 int
27953 main ()
27954 {
27955 return $ac_func ();
27956   ;
27957   return 0;
27958 }
27959 _ACEOF
27960 rm -f conftest.$ac_objext conftest$ac_exeext
27961 if { (ac_try="$ac_link"
27962 case "(($ac_try" in
27963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27964   *) ac_try_echo=$ac_try;;
27965 esac
27966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27967   (eval "$ac_link") 2>conftest.er1
27968   ac_status=$?
27969   grep -v '^ *+' conftest.er1 >conftest.err
27970   rm -f conftest.er1
27971   cat conftest.err >&5
27972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27973   (exit $ac_status); } && {
27974          test -z "$ac_c_werror_flag" ||
27975          test ! -s conftest.err
27976        } && test -s conftest$ac_exeext &&
27977        $as_test_x conftest$ac_exeext; then
27978   eval "$as_ac_var=yes"
27979 else
27980   echo "$as_me: failed program was:" >&5
27981 sed 's/^/| /' conftest.$ac_ext >&5
27982
27983         eval "$as_ac_var=no"
27984 fi
27985
27986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27987       conftest$ac_exeext conftest.$ac_ext
27988 fi
27989 ac_res=`eval echo '${'$as_ac_var'}'`
27990                { echo "$as_me:$LINENO: result: $ac_res" >&5
27991 echo "${ECHO_T}$ac_res" >&6; }
27992 if test `eval echo '${'$as_ac_var'}'` = yes; then
27993   cat >>confdefs.h <<_ACEOF
27994 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27995 _ACEOF
27996  have_ceil=1
27997 fi
27998 done
27999
28000     { echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
28001 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6; }
28002     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
28003         { echo "$as_me:$LINENO: result: yes" >&5
28004 echo "${ECHO_T}yes" >&6; }
28005     else
28006         { echo "$as_me:$LINENO: result: no" >&5
28007 echo "${ECHO_T}no" >&6; }
28008         # not sure we should warn the user, crash, etc.
28009     fi
28010 fi
28011
28012 ac_ext=cpp
28013 ac_cpp='$CXXCPP $CPPFLAGS'
28014 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28015 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28016 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28017
28018 if test "wxUSE_UNICODE" = "yes"; then
28019
28020   for wx_func in wcstoull
28021   do
28022     { echo "$as_me:$LINENO: checking for $wx_func" >&5
28023 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
28024 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
28025   echo $ECHO_N "(cached) $ECHO_C" >&6
28026 else
28027
28028         cat >conftest.$ac_ext <<_ACEOF
28029
28030             /* confdefs.h.  */
28031 _ACEOF
28032 cat confdefs.h >>conftest.$ac_ext
28033 cat >>conftest.$ac_ext <<_ACEOF
28034 /* end confdefs.h.  */
28035
28036
28037                 $ac_includes_default
28038
28039 int
28040 main ()
28041 {
28042
28043                 #ifndef $wx_func
28044                   &$wx_func;
28045                 #endif
28046
28047
28048   ;
28049   return 0;
28050 }
28051
28052 _ACEOF
28053 rm -f conftest.$ac_objext conftest$ac_exeext
28054 if { (ac_try="$ac_link"
28055 case "(($ac_try" in
28056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28057   *) ac_try_echo=$ac_try;;
28058 esac
28059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28060   (eval "$ac_link") 2>conftest.er1
28061   ac_status=$?
28062   grep -v '^ *+' conftest.er1 >conftest.err
28063   rm -f conftest.er1
28064   cat conftest.err >&5
28065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28066   (exit $ac_status); } && {
28067          test -z "$ac_cxx_werror_flag" ||
28068          test ! -s conftest.err
28069        } && test -s conftest$ac_exeext &&
28070        $as_test_x conftest$ac_exeext; then
28071   eval wx_cv_func_$wx_func=yes
28072 else
28073   echo "$as_me: failed program was:" >&5
28074 sed 's/^/| /' conftest.$ac_ext >&5
28075
28076         eval wx_cv_func_$wx_func=no
28077 fi
28078
28079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28080       conftest$ac_exeext conftest.$ac_ext
28081
28082 fi
28083 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
28084                { echo "$as_me:$LINENO: result: $ac_res" >&5
28085 echo "${ECHO_T}$ac_res" >&6; }
28086
28087     if eval test \$wx_cv_func_$wx_func = yes
28088     then
28089       cat >>confdefs.h <<_ACEOF
28090 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
28091 _ACEOF
28092
28093
28094     else
28095       :
28096
28097     fi
28098   done
28099
28100 else
28101
28102   for wx_func in strtoull
28103   do
28104     { echo "$as_me:$LINENO: checking for $wx_func" >&5
28105 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
28106 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
28107   echo $ECHO_N "(cached) $ECHO_C" >&6
28108 else
28109
28110         cat >conftest.$ac_ext <<_ACEOF
28111
28112             /* confdefs.h.  */
28113 _ACEOF
28114 cat confdefs.h >>conftest.$ac_ext
28115 cat >>conftest.$ac_ext <<_ACEOF
28116 /* end confdefs.h.  */
28117
28118
28119                 $ac_includes_default
28120
28121 int
28122 main ()
28123 {
28124
28125                 #ifndef $wx_func
28126                   &$wx_func;
28127                 #endif
28128
28129
28130   ;
28131   return 0;
28132 }
28133
28134 _ACEOF
28135 rm -f conftest.$ac_objext conftest$ac_exeext
28136 if { (ac_try="$ac_link"
28137 case "(($ac_try" in
28138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28139   *) ac_try_echo=$ac_try;;
28140 esac
28141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28142   (eval "$ac_link") 2>conftest.er1
28143   ac_status=$?
28144   grep -v '^ *+' conftest.er1 >conftest.err
28145   rm -f conftest.er1
28146   cat conftest.err >&5
28147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28148   (exit $ac_status); } && {
28149          test -z "$ac_cxx_werror_flag" ||
28150          test ! -s conftest.err
28151        } && test -s conftest$ac_exeext &&
28152        $as_test_x conftest$ac_exeext; then
28153   eval wx_cv_func_$wx_func=yes
28154 else
28155   echo "$as_me: failed program was:" >&5
28156 sed 's/^/| /' conftest.$ac_ext >&5
28157
28158         eval wx_cv_func_$wx_func=no
28159 fi
28160
28161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28162       conftest$ac_exeext conftest.$ac_ext
28163
28164 fi
28165 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
28166                { echo "$as_me:$LINENO: result: $ac_res" >&5
28167 echo "${ECHO_T}$ac_res" >&6; }
28168
28169     if eval test \$wx_cv_func_$wx_func = yes
28170     then
28171       cat >>confdefs.h <<_ACEOF
28172 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
28173 _ACEOF
28174
28175
28176     else
28177       :
28178
28179     fi
28180   done
28181
28182 fi
28183 ac_ext=c
28184 ac_cpp='$CPP $CPPFLAGS'
28185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28188
28189
28190
28191
28192 if test "$wxUSE_REGEX" != "no"; then
28193     cat >>confdefs.h <<\_ACEOF
28194 #define wxUSE_REGEX 1
28195 _ACEOF
28196
28197
28198     if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
28199         { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
28200 echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
28201         wxUSE_REGEX=builtin
28202     fi
28203
28204     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
28205                         { echo "$as_me:$LINENO: checking for regex.h" >&5
28206 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
28207 if test "${ac_cv_header_regex_h+set}" = set; then
28208   echo $ECHO_N "(cached) $ECHO_C" >&6
28209 else
28210   cat >conftest.$ac_ext <<_ACEOF
28211 /* confdefs.h.  */
28212 _ACEOF
28213 cat confdefs.h >>conftest.$ac_ext
28214 cat >>conftest.$ac_ext <<_ACEOF
28215 /* end confdefs.h.  */
28216
28217
28218 #include <regex.h>
28219 _ACEOF
28220 rm -f conftest.$ac_objext
28221 if { (ac_try="$ac_compile"
28222 case "(($ac_try" in
28223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28224   *) ac_try_echo=$ac_try;;
28225 esac
28226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28227   (eval "$ac_compile") 2>conftest.er1
28228   ac_status=$?
28229   grep -v '^ *+' conftest.er1 >conftest.err
28230   rm -f conftest.er1
28231   cat conftest.err >&5
28232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28233   (exit $ac_status); } && {
28234          test -z "$ac_c_werror_flag" ||
28235          test ! -s conftest.err
28236        } && test -s conftest.$ac_objext; then
28237   ac_cv_header_regex_h=yes
28238 else
28239   echo "$as_me: failed program was:" >&5
28240 sed 's/^/| /' conftest.$ac_ext >&5
28241
28242         ac_cv_header_regex_h=no
28243 fi
28244
28245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28246 fi
28247 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
28248 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
28249 if test $ac_cv_header_regex_h = yes; then
28250
28251
28252 for ac_func in regcomp re_search
28253 do
28254 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28255 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28256 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28257 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28258   echo $ECHO_N "(cached) $ECHO_C" >&6
28259 else
28260   cat >conftest.$ac_ext <<_ACEOF
28261 /* confdefs.h.  */
28262 _ACEOF
28263 cat confdefs.h >>conftest.$ac_ext
28264 cat >>conftest.$ac_ext <<_ACEOF
28265 /* end confdefs.h.  */
28266 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28267    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28268 #define $ac_func innocuous_$ac_func
28269
28270 /* System header to define __stub macros and hopefully few prototypes,
28271     which can conflict with char $ac_func (); below.
28272     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28273     <limits.h> exists even on freestanding compilers.  */
28274
28275 #ifdef __STDC__
28276 # include <limits.h>
28277 #else
28278 # include <assert.h>
28279 #endif
28280
28281 #undef $ac_func
28282
28283 /* Override any GCC internal prototype to avoid an error.
28284    Use char because int might match the return type of a GCC
28285    builtin and then its argument prototype would still apply.  */
28286 #ifdef __cplusplus
28287 extern "C"
28288 #endif
28289 char $ac_func ();
28290 /* The GNU C library defines this for functions which it implements
28291     to always fail with ENOSYS.  Some functions are actually named
28292     something starting with __ and the normal name is an alias.  */
28293 #if defined __stub_$ac_func || defined __stub___$ac_func
28294 choke me
28295 #endif
28296
28297 int
28298 main ()
28299 {
28300 return $ac_func ();
28301   ;
28302   return 0;
28303 }
28304 _ACEOF
28305 rm -f conftest.$ac_objext conftest$ac_exeext
28306 if { (ac_try="$ac_link"
28307 case "(($ac_try" in
28308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28309   *) ac_try_echo=$ac_try;;
28310 esac
28311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28312   (eval "$ac_link") 2>conftest.er1
28313   ac_status=$?
28314   grep -v '^ *+' conftest.er1 >conftest.err
28315   rm -f conftest.er1
28316   cat conftest.err >&5
28317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28318   (exit $ac_status); } && {
28319          test -z "$ac_c_werror_flag" ||
28320          test ! -s conftest.err
28321        } && test -s conftest$ac_exeext &&
28322        $as_test_x conftest$ac_exeext; then
28323   eval "$as_ac_var=yes"
28324 else
28325   echo "$as_me: failed program was:" >&5
28326 sed 's/^/| /' conftest.$ac_ext >&5
28327
28328         eval "$as_ac_var=no"
28329 fi
28330
28331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28332       conftest$ac_exeext conftest.$ac_ext
28333 fi
28334 ac_res=`eval echo '${'$as_ac_var'}'`
28335                { echo "$as_me:$LINENO: result: $ac_res" >&5
28336 echo "${ECHO_T}$ac_res" >&6; }
28337 if test `eval echo '${'$as_ac_var'}'` = yes; then
28338   cat >>confdefs.h <<_ACEOF
28339 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28340 _ACEOF
28341
28342 fi
28343 done
28344
28345 fi
28346
28347
28348
28349         if test "x$ac_cv_func_regcomp" != "xyes"; then
28350             if test "$wxUSE_REGEX" = "sys" ; then
28351                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
28352 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
28353    { (exit 1); exit 1; }; }
28354             else
28355                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
28356 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
28357                 wxUSE_REGEX=builtin
28358             fi
28359         else
28360                         wxUSE_REGEX=sys
28361                         cat >>confdefs.h <<\_ACEOF
28362 #define WX_NO_REGEX_ADVANCED 1
28363 _ACEOF
28364
28365         fi
28366     fi
28367 fi
28368
28369
28370 ZLIB_LINK=
28371 if test "$wxUSE_ZLIB" != "no" ; then
28372     cat >>confdefs.h <<\_ACEOF
28373 #define wxUSE_ZLIB 1
28374 _ACEOF
28375
28376
28377     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
28378                                                 if test "$USE_DARWIN" = 1; then
28379             system_zlib_h_ok="yes"
28380         else
28381                                                                                     { echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
28382 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6; }
28383 if test "${ac_cv_header_zlib_h+set}" = set; then
28384   echo $ECHO_N "(cached) $ECHO_C" >&6
28385 else
28386   if test "$cross_compiling" = yes; then
28387                       unset ac_cv_header_zlib_h
28388
28389 else
28390   cat >conftest.$ac_ext <<_ACEOF
28391 /* confdefs.h.  */
28392 _ACEOF
28393 cat confdefs.h >>conftest.$ac_ext
28394 cat >>conftest.$ac_ext <<_ACEOF
28395 /* end confdefs.h.  */
28396
28397                         #include <zlib.h>
28398                         #include <stdio.h>
28399
28400                         int main()
28401                         {
28402                             FILE *f=fopen("conftestval", "w");
28403                             if (!f) exit(1);
28404                             fprintf(f, "%s",
28405                                     ZLIB_VERSION[0] == '1' &&
28406                                     (ZLIB_VERSION[2] > '1' ||
28407                                     (ZLIB_VERSION[2] == '1' &&
28408                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
28409                             exit(0);
28410                         }
28411
28412 _ACEOF
28413 rm -f conftest$ac_exeext
28414 if { (ac_try="$ac_link"
28415 case "(($ac_try" in
28416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28417   *) ac_try_echo=$ac_try;;
28418 esac
28419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28420   (eval "$ac_link") 2>&5
28421   ac_status=$?
28422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28423   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28424   { (case "(($ac_try" in
28425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28426   *) ac_try_echo=$ac_try;;
28427 esac
28428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28429   (eval "$ac_try") 2>&5
28430   ac_status=$?
28431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28432   (exit $ac_status); }; }; then
28433   ac_cv_header_zlib_h=`cat conftestval`
28434 else
28435   echo "$as_me: program exited with status $ac_status" >&5
28436 echo "$as_me: failed program was:" >&5
28437 sed 's/^/| /' conftest.$ac_ext >&5
28438
28439 ( exit $ac_status )
28440 ac_cv_header_zlib_h=no
28441 fi
28442 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28443 fi
28444
28445
28446
28447 fi
28448 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28449 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28450                                     { echo "$as_me:$LINENO: checking for zlib.h" >&5
28451 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
28452 if test "${ac_cv_header_zlib_h+set}" = set; then
28453   echo $ECHO_N "(cached) $ECHO_C" >&6
28454 else
28455   cat >conftest.$ac_ext <<_ACEOF
28456 /* confdefs.h.  */
28457 _ACEOF
28458 cat confdefs.h >>conftest.$ac_ext
28459 cat >>conftest.$ac_ext <<_ACEOF
28460 /* end confdefs.h.  */
28461
28462
28463 #include <zlib.h>
28464 _ACEOF
28465 rm -f conftest.$ac_objext
28466 if { (ac_try="$ac_compile"
28467 case "(($ac_try" in
28468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28469   *) ac_try_echo=$ac_try;;
28470 esac
28471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28472   (eval "$ac_compile") 2>conftest.er1
28473   ac_status=$?
28474   grep -v '^ *+' conftest.er1 >conftest.err
28475   rm -f conftest.er1
28476   cat conftest.err >&5
28477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28478   (exit $ac_status); } && {
28479          test -z "$ac_c_werror_flag" ||
28480          test ! -s conftest.err
28481        } && test -s conftest.$ac_objext; then
28482   ac_cv_header_zlib_h=yes
28483 else
28484   echo "$as_me: failed program was:" >&5
28485 sed 's/^/| /' conftest.$ac_ext >&5
28486
28487         ac_cv_header_zlib_h=no
28488 fi
28489
28490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28491 fi
28492 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28493 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28494
28495
28496
28497             system_zlib_h_ok=$ac_cv_header_zlib_h
28498         fi
28499
28500         if test "$system_zlib_h_ok" = "yes"; then
28501             { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
28502 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
28503 if test "${ac_cv_lib_z_deflate+set}" = set; then
28504   echo $ECHO_N "(cached) $ECHO_C" >&6
28505 else
28506   ac_check_lib_save_LIBS=$LIBS
28507 LIBS="-lz  $LIBS"
28508 cat >conftest.$ac_ext <<_ACEOF
28509 /* confdefs.h.  */
28510 _ACEOF
28511 cat confdefs.h >>conftest.$ac_ext
28512 cat >>conftest.$ac_ext <<_ACEOF
28513 /* end confdefs.h.  */
28514
28515 /* Override any GCC internal prototype to avoid an error.
28516    Use char because int might match the return type of a GCC
28517    builtin and then its argument prototype would still apply.  */
28518 #ifdef __cplusplus
28519 extern "C"
28520 #endif
28521 char deflate ();
28522 int
28523 main ()
28524 {
28525 return deflate ();
28526   ;
28527   return 0;
28528 }
28529 _ACEOF
28530 rm -f conftest.$ac_objext conftest$ac_exeext
28531 if { (ac_try="$ac_link"
28532 case "(($ac_try" in
28533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28534   *) ac_try_echo=$ac_try;;
28535 esac
28536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28537   (eval "$ac_link") 2>conftest.er1
28538   ac_status=$?
28539   grep -v '^ *+' conftest.er1 >conftest.err
28540   rm -f conftest.er1
28541   cat conftest.err >&5
28542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28543   (exit $ac_status); } && {
28544          test -z "$ac_c_werror_flag" ||
28545          test ! -s conftest.err
28546        } && test -s conftest$ac_exeext &&
28547        $as_test_x conftest$ac_exeext; then
28548   ac_cv_lib_z_deflate=yes
28549 else
28550   echo "$as_me: failed program was:" >&5
28551 sed 's/^/| /' conftest.$ac_ext >&5
28552
28553         ac_cv_lib_z_deflate=no
28554 fi
28555
28556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28557       conftest$ac_exeext conftest.$ac_ext
28558 LIBS=$ac_check_lib_save_LIBS
28559 fi
28560 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
28561 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
28562 if test $ac_cv_lib_z_deflate = yes; then
28563   ZLIB_LINK=" -lz"
28564 fi
28565
28566         fi
28567
28568         if test "x$ZLIB_LINK" = "x" ; then
28569             if test "$wxUSE_ZLIB" = "sys" ; then
28570                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
28571 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
28572    { (exit 1); exit 1; }; }
28573             else
28574                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
28575 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
28576                 wxUSE_ZLIB=builtin
28577             fi
28578         else
28579                         wxUSE_ZLIB=sys
28580         fi
28581     fi
28582 fi
28583
28584
28585 PNG_LINK=
28586 if test "$wxUSE_LIBPNG" != "no" ; then
28587     cat >>confdefs.h <<\_ACEOF
28588 #define wxUSE_LIBPNG 1
28589 _ACEOF
28590
28591
28592     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
28593         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
28594 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
28595         wxUSE_LIBPNG=sys
28596     fi
28597
28598                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
28599         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
28600 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
28601         wxUSE_LIBPNG=builtin
28602     fi
28603
28604     if test "$wxUSE_MGL" != 1 ; then
28605                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
28606                                     { echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
28607 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6; }
28608 if test "${ac_cv_header_png_h+set}" = set; then
28609   echo $ECHO_N "(cached) $ECHO_C" >&6
28610 else
28611   if test "$cross_compiling" = yes; then
28612                       unset ac_cv_header_png_h
28613
28614 else
28615   cat >conftest.$ac_ext <<_ACEOF
28616 /* confdefs.h.  */
28617 _ACEOF
28618 cat confdefs.h >>conftest.$ac_ext
28619 cat >>conftest.$ac_ext <<_ACEOF
28620 /* end confdefs.h.  */
28621
28622                         #include <png.h>
28623                         #include <stdio.h>
28624
28625                         int main()
28626                         {
28627                             FILE *f=fopen("conftestval", "w");
28628                             if (!f) exit(1);
28629                             fprintf(f, "%s",
28630                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
28631                             exit(0);
28632                         }
28633
28634 _ACEOF
28635 rm -f conftest$ac_exeext
28636 if { (ac_try="$ac_link"
28637 case "(($ac_try" in
28638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28639   *) ac_try_echo=$ac_try;;
28640 esac
28641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28642   (eval "$ac_link") 2>&5
28643   ac_status=$?
28644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28645   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28646   { (case "(($ac_try" in
28647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28648   *) ac_try_echo=$ac_try;;
28649 esac
28650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28651   (eval "$ac_try") 2>&5
28652   ac_status=$?
28653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28654   (exit $ac_status); }; }; then
28655   ac_cv_header_png_h=`cat conftestval`
28656 else
28657   echo "$as_me: program exited with status $ac_status" >&5
28658 echo "$as_me: failed program was:" >&5
28659 sed 's/^/| /' conftest.$ac_ext >&5
28660
28661 ( exit $ac_status )
28662 ac_cv_header_png_h=no
28663 fi
28664 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28665 fi
28666
28667
28668
28669 fi
28670 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
28671 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
28672             { echo "$as_me:$LINENO: checking for png.h" >&5
28673 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
28674 if test "${ac_cv_header_png_h+set}" = set; then
28675   echo $ECHO_N "(cached) $ECHO_C" >&6
28676 else
28677   cat >conftest.$ac_ext <<_ACEOF
28678 /* confdefs.h.  */
28679 _ACEOF
28680 cat confdefs.h >>conftest.$ac_ext
28681 cat >>conftest.$ac_ext <<_ACEOF
28682 /* end confdefs.h.  */
28683
28684
28685 #include <png.h>
28686 _ACEOF
28687 rm -f conftest.$ac_objext
28688 if { (ac_try="$ac_compile"
28689 case "(($ac_try" in
28690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28691   *) ac_try_echo=$ac_try;;
28692 esac
28693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28694   (eval "$ac_compile") 2>conftest.er1
28695   ac_status=$?
28696   grep -v '^ *+' conftest.er1 >conftest.err
28697   rm -f conftest.er1
28698   cat conftest.err >&5
28699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28700   (exit $ac_status); } && {
28701          test -z "$ac_c_werror_flag" ||
28702          test ! -s conftest.err
28703        } && test -s conftest.$ac_objext; then
28704   ac_cv_header_png_h=yes
28705 else
28706   echo "$as_me: failed program was:" >&5
28707 sed 's/^/| /' conftest.$ac_ext >&5
28708
28709         ac_cv_header_png_h=no
28710 fi
28711
28712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28713 fi
28714 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
28715 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
28716
28717
28718
28719             if test "$ac_cv_header_png_h" = "yes"; then
28720                 { echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
28721 echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6; }
28722 if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
28723   echo $ECHO_N "(cached) $ECHO_C" >&6
28724 else
28725   ac_check_lib_save_LIBS=$LIBS
28726 LIBS="-lpng -lz -lm $LIBS"
28727 cat >conftest.$ac_ext <<_ACEOF
28728 /* confdefs.h.  */
28729 _ACEOF
28730 cat confdefs.h >>conftest.$ac_ext
28731 cat >>conftest.$ac_ext <<_ACEOF
28732 /* end confdefs.h.  */
28733
28734 /* Override any GCC internal prototype to avoid an error.
28735    Use char because int might match the return type of a GCC
28736    builtin and then its argument prototype would still apply.  */
28737 #ifdef __cplusplus
28738 extern "C"
28739 #endif
28740 char png_check_sig ();
28741 int
28742 main ()
28743 {
28744 return png_check_sig ();
28745   ;
28746   return 0;
28747 }
28748 _ACEOF
28749 rm -f conftest.$ac_objext conftest$ac_exeext
28750 if { (ac_try="$ac_link"
28751 case "(($ac_try" in
28752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28753   *) ac_try_echo=$ac_try;;
28754 esac
28755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28756   (eval "$ac_link") 2>conftest.er1
28757   ac_status=$?
28758   grep -v '^ *+' conftest.er1 >conftest.err
28759   rm -f conftest.er1
28760   cat conftest.err >&5
28761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28762   (exit $ac_status); } && {
28763          test -z "$ac_c_werror_flag" ||
28764          test ! -s conftest.err
28765        } && test -s conftest$ac_exeext &&
28766        $as_test_x conftest$ac_exeext; then
28767   ac_cv_lib_png_png_check_sig=yes
28768 else
28769   echo "$as_me: failed program was:" >&5
28770 sed 's/^/| /' conftest.$ac_ext >&5
28771
28772         ac_cv_lib_png_png_check_sig=no
28773 fi
28774
28775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28776       conftest$ac_exeext conftest.$ac_ext
28777 LIBS=$ac_check_lib_save_LIBS
28778 fi
28779 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
28780 echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6; }
28781 if test $ac_cv_lib_png_png_check_sig = yes; then
28782   PNG_LINK=" -lpng -lz"
28783 fi
28784
28785             fi
28786
28787             if test "x$PNG_LINK" = "x" ; then
28788                 if test "$wxUSE_LIBPNG" = "sys" ; then
28789                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
28790 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
28791    { (exit 1); exit 1; }; }
28792                 else
28793                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
28794 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
28795                     wxUSE_LIBPNG=builtin
28796                 fi
28797             else
28798                                 wxUSE_LIBPNG=sys
28799             fi
28800         fi
28801     fi
28802
28803     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
28804 fi
28805
28806
28807 JPEG_LINK=
28808 if test "$wxUSE_LIBJPEG" != "no" ; then
28809     cat >>confdefs.h <<\_ACEOF
28810 #define wxUSE_LIBJPEG 1
28811 _ACEOF
28812
28813
28814     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
28815         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
28816 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
28817         wxUSE_LIBJPEG=sys
28818     fi
28819
28820     if test "$wxUSE_MGL" != 1 ; then
28821                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
28822                                                 { echo "$as_me:$LINENO: checking for jpeglib.h" >&5
28823 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
28824             if test "${ac_cv_header_jpeglib_h+set}" = set; then
28825   echo $ECHO_N "(cached) $ECHO_C" >&6
28826 else
28827   cat >conftest.$ac_ext <<_ACEOF
28828 /* confdefs.h.  */
28829 _ACEOF
28830 cat confdefs.h >>conftest.$ac_ext
28831 cat >>conftest.$ac_ext <<_ACEOF
28832 /* end confdefs.h.  */
28833
28834                         #undef HAVE_STDLIB_H
28835                         #include <stdio.h>
28836                         #include <jpeglib.h>
28837
28838 int
28839 main ()
28840 {
28841
28842
28843   ;
28844   return 0;
28845 }
28846 _ACEOF
28847 rm -f conftest.$ac_objext
28848 if { (ac_try="$ac_compile"
28849 case "(($ac_try" in
28850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28851   *) ac_try_echo=$ac_try;;
28852 esac
28853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28854   (eval "$ac_compile") 2>conftest.er1
28855   ac_status=$?
28856   grep -v '^ *+' conftest.er1 >conftest.err
28857   rm -f conftest.er1
28858   cat conftest.err >&5
28859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28860   (exit $ac_status); } && {
28861          test -z "$ac_c_werror_flag" ||
28862          test ! -s conftest.err
28863        } && test -s conftest.$ac_objext; then
28864   ac_cv_header_jpeglib_h=yes
28865 else
28866   echo "$as_me: failed program was:" >&5
28867 sed 's/^/| /' conftest.$ac_ext >&5
28868
28869         ac_cv_header_jpeglib_h=no
28870
28871 fi
28872
28873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28874
28875 fi
28876
28877             { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
28878 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
28879
28880             if test "$ac_cv_header_jpeglib_h" = "yes"; then
28881                 { echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
28882 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6; }
28883 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
28884   echo $ECHO_N "(cached) $ECHO_C" >&6
28885 else
28886   ac_check_lib_save_LIBS=$LIBS
28887 LIBS="-ljpeg  $LIBS"
28888 cat >conftest.$ac_ext <<_ACEOF
28889 /* confdefs.h.  */
28890 _ACEOF
28891 cat confdefs.h >>conftest.$ac_ext
28892 cat >>conftest.$ac_ext <<_ACEOF
28893 /* end confdefs.h.  */
28894
28895 /* Override any GCC internal prototype to avoid an error.
28896    Use char because int might match the return type of a GCC
28897    builtin and then its argument prototype would still apply.  */
28898 #ifdef __cplusplus
28899 extern "C"
28900 #endif
28901 char jpeg_read_header ();
28902 int
28903 main ()
28904 {
28905 return jpeg_read_header ();
28906   ;
28907   return 0;
28908 }
28909 _ACEOF
28910 rm -f conftest.$ac_objext conftest$ac_exeext
28911 if { (ac_try="$ac_link"
28912 case "(($ac_try" in
28913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28914   *) ac_try_echo=$ac_try;;
28915 esac
28916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28917   (eval "$ac_link") 2>conftest.er1
28918   ac_status=$?
28919   grep -v '^ *+' conftest.er1 >conftest.err
28920   rm -f conftest.er1
28921   cat conftest.err >&5
28922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28923   (exit $ac_status); } && {
28924          test -z "$ac_c_werror_flag" ||
28925          test ! -s conftest.err
28926        } && test -s conftest$ac_exeext &&
28927        $as_test_x conftest$ac_exeext; then
28928   ac_cv_lib_jpeg_jpeg_read_header=yes
28929 else
28930   echo "$as_me: failed program was:" >&5
28931 sed 's/^/| /' conftest.$ac_ext >&5
28932
28933         ac_cv_lib_jpeg_jpeg_read_header=no
28934 fi
28935
28936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28937       conftest$ac_exeext conftest.$ac_ext
28938 LIBS=$ac_check_lib_save_LIBS
28939 fi
28940 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
28941 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
28942 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
28943   JPEG_LINK=" -ljpeg"
28944 fi
28945
28946             fi
28947
28948             if test "x$JPEG_LINK" = "x" ; then
28949                 if test "$wxUSE_LIBJPEG" = "sys" ; then
28950                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
28951 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
28952    { (exit 1); exit 1; }; }
28953                 else
28954                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
28955 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
28956                     wxUSE_LIBJPEG=builtin
28957                 fi
28958             else
28959                                 wxUSE_LIBJPEG=sys
28960
28961                 if test "$wxUSE_MSW" = 1; then
28962                                                                                                     { echo "$as_me:$LINENO: checking for boolean" >&5
28963 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
28964 if test "${ac_cv_type_boolean+set}" = set; then
28965   echo $ECHO_N "(cached) $ECHO_C" >&6
28966 else
28967   cat >conftest.$ac_ext <<_ACEOF
28968 /* confdefs.h.  */
28969 _ACEOF
28970 cat confdefs.h >>conftest.$ac_ext
28971 cat >>conftest.$ac_ext <<_ACEOF
28972 /* end confdefs.h.  */
28973 #include <windows.h>
28974
28975 typedef boolean ac__type_new_;
28976 int
28977 main ()
28978 {
28979 if ((ac__type_new_ *) 0)
28980   return 0;
28981 if (sizeof (ac__type_new_))
28982   return 0;
28983   ;
28984   return 0;
28985 }
28986 _ACEOF
28987 rm -f conftest.$ac_objext
28988 if { (ac_try="$ac_compile"
28989 case "(($ac_try" in
28990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28991   *) ac_try_echo=$ac_try;;
28992 esac
28993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28994   (eval "$ac_compile") 2>conftest.er1
28995   ac_status=$?
28996   grep -v '^ *+' conftest.er1 >conftest.err
28997   rm -f conftest.er1
28998   cat conftest.err >&5
28999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29000   (exit $ac_status); } && {
29001          test -z "$ac_c_werror_flag" ||
29002          test ! -s conftest.err
29003        } && test -s conftest.$ac_objext; then
29004   ac_cv_type_boolean=yes
29005 else
29006   echo "$as_me: failed program was:" >&5
29007 sed 's/^/| /' conftest.$ac_ext >&5
29008
29009         ac_cv_type_boolean=no
29010 fi
29011
29012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29013 fi
29014 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
29015 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
29016 if test $ac_cv_type_boolean = yes; then
29017
29018 cat >>confdefs.h <<_ACEOF
29019 #define HAVE_BOOLEAN 1
29020 _ACEOF
29021
29022
29023                             { echo "$as_me:$LINENO: checking for boolean" >&5
29024 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
29025 if test "${ac_cv_type_boolean+set}" = set; then
29026   echo $ECHO_N "(cached) $ECHO_C" >&6
29027 else
29028   cat >conftest.$ac_ext <<_ACEOF
29029 /* confdefs.h.  */
29030 _ACEOF
29031 cat confdefs.h >>conftest.$ac_ext
29032 cat >>conftest.$ac_ext <<_ACEOF
29033 /* end confdefs.h.  */
29034
29035                                     #undef HAVE_BOOLEAN
29036                                     #include <stdio.h>
29037                                     #include <jpeglib.h>
29038
29039
29040 typedef boolean ac__type_new_;
29041 int
29042 main ()
29043 {
29044 if ((ac__type_new_ *) 0)
29045   return 0;
29046 if (sizeof (ac__type_new_))
29047   return 0;
29048   ;
29049   return 0;
29050 }
29051 _ACEOF
29052 rm -f conftest.$ac_objext
29053 if { (ac_try="$ac_compile"
29054 case "(($ac_try" in
29055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29056   *) ac_try_echo=$ac_try;;
29057 esac
29058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29059   (eval "$ac_compile") 2>conftest.er1
29060   ac_status=$?
29061   grep -v '^ *+' conftest.er1 >conftest.err
29062   rm -f conftest.er1
29063   cat conftest.err >&5
29064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29065   (exit $ac_status); } && {
29066          test -z "$ac_c_werror_flag" ||
29067          test ! -s conftest.err
29068        } && test -s conftest.$ac_objext; then
29069   ac_cv_type_boolean=yes
29070 else
29071   echo "$as_me: failed program was:" >&5
29072 sed 's/^/| /' conftest.$ac_ext >&5
29073
29074         ac_cv_type_boolean=no
29075 fi
29076
29077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29078 fi
29079 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
29080 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
29081
29082 # The cast to long int works around a bug in the HP C Compiler
29083 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29084 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29085 # This bug is HP SR number 8606223364.
29086 { echo "$as_me:$LINENO: checking size of boolean" >&5
29087 echo $ECHO_N "checking size of boolean... $ECHO_C" >&6; }
29088 if test "${ac_cv_sizeof_boolean+set}" = set; then
29089   echo $ECHO_N "(cached) $ECHO_C" >&6
29090 else
29091   if test "$cross_compiling" = yes; then
29092   # Depending upon the size, compute the lo and hi bounds.
29093 cat >conftest.$ac_ext <<_ACEOF
29094 /* confdefs.h.  */
29095 _ACEOF
29096 cat confdefs.h >>conftest.$ac_ext
29097 cat >>conftest.$ac_ext <<_ACEOF
29098 /* end confdefs.h.  */
29099
29100                                     #undef HAVE_BOOLEAN
29101                                     #include <stdio.h>
29102                                     #include <jpeglib.h>
29103
29104
29105    typedef boolean ac__type_sizeof_;
29106 int
29107 main ()
29108 {
29109 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
29110 test_array [0] = 0
29111
29112   ;
29113   return 0;
29114 }
29115 _ACEOF
29116 rm -f conftest.$ac_objext
29117 if { (ac_try="$ac_compile"
29118 case "(($ac_try" in
29119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29120   *) ac_try_echo=$ac_try;;
29121 esac
29122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29123   (eval "$ac_compile") 2>conftest.er1
29124   ac_status=$?
29125   grep -v '^ *+' conftest.er1 >conftest.err
29126   rm -f conftest.er1
29127   cat conftest.err >&5
29128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29129   (exit $ac_status); } && {
29130          test -z "$ac_c_werror_flag" ||
29131          test ! -s conftest.err
29132        } && test -s conftest.$ac_objext; then
29133   ac_lo=0 ac_mid=0
29134   while :; do
29135     cat >conftest.$ac_ext <<_ACEOF
29136 /* confdefs.h.  */
29137 _ACEOF
29138 cat confdefs.h >>conftest.$ac_ext
29139 cat >>conftest.$ac_ext <<_ACEOF
29140 /* end confdefs.h.  */
29141
29142                                     #undef HAVE_BOOLEAN
29143                                     #include <stdio.h>
29144                                     #include <jpeglib.h>
29145
29146
29147    typedef boolean ac__type_sizeof_;
29148 int
29149 main ()
29150 {
29151 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29152 test_array [0] = 0
29153
29154   ;
29155   return 0;
29156 }
29157 _ACEOF
29158 rm -f conftest.$ac_objext
29159 if { (ac_try="$ac_compile"
29160 case "(($ac_try" in
29161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29162   *) ac_try_echo=$ac_try;;
29163 esac
29164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29165   (eval "$ac_compile") 2>conftest.er1
29166   ac_status=$?
29167   grep -v '^ *+' conftest.er1 >conftest.err
29168   rm -f conftest.er1
29169   cat conftest.err >&5
29170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29171   (exit $ac_status); } && {
29172          test -z "$ac_c_werror_flag" ||
29173          test ! -s conftest.err
29174        } && test -s conftest.$ac_objext; then
29175   ac_hi=$ac_mid; break
29176 else
29177   echo "$as_me: failed program was:" >&5
29178 sed 's/^/| /' conftest.$ac_ext >&5
29179
29180         ac_lo=`expr $ac_mid + 1`
29181                         if test $ac_lo -le $ac_mid; then
29182                           ac_lo= ac_hi=
29183                           break
29184                         fi
29185                         ac_mid=`expr 2 '*' $ac_mid + 1`
29186 fi
29187
29188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29189   done
29190 else
29191   echo "$as_me: failed program was:" >&5
29192 sed 's/^/| /' conftest.$ac_ext >&5
29193
29194         cat >conftest.$ac_ext <<_ACEOF
29195 /* confdefs.h.  */
29196 _ACEOF
29197 cat confdefs.h >>conftest.$ac_ext
29198 cat >>conftest.$ac_ext <<_ACEOF
29199 /* end confdefs.h.  */
29200
29201                                     #undef HAVE_BOOLEAN
29202                                     #include <stdio.h>
29203                                     #include <jpeglib.h>
29204
29205
29206    typedef boolean ac__type_sizeof_;
29207 int
29208 main ()
29209 {
29210 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
29211 test_array [0] = 0
29212
29213   ;
29214   return 0;
29215 }
29216 _ACEOF
29217 rm -f conftest.$ac_objext
29218 if { (ac_try="$ac_compile"
29219 case "(($ac_try" in
29220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29221   *) ac_try_echo=$ac_try;;
29222 esac
29223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29224   (eval "$ac_compile") 2>conftest.er1
29225   ac_status=$?
29226   grep -v '^ *+' conftest.er1 >conftest.err
29227   rm -f conftest.er1
29228   cat conftest.err >&5
29229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29230   (exit $ac_status); } && {
29231          test -z "$ac_c_werror_flag" ||
29232          test ! -s conftest.err
29233        } && test -s conftest.$ac_objext; then
29234   ac_hi=-1 ac_mid=-1
29235   while :; do
29236     cat >conftest.$ac_ext <<_ACEOF
29237 /* confdefs.h.  */
29238 _ACEOF
29239 cat confdefs.h >>conftest.$ac_ext
29240 cat >>conftest.$ac_ext <<_ACEOF
29241 /* end confdefs.h.  */
29242
29243                                     #undef HAVE_BOOLEAN
29244                                     #include <stdio.h>
29245                                     #include <jpeglib.h>
29246
29247
29248    typedef boolean ac__type_sizeof_;
29249 int
29250 main ()
29251 {
29252 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
29253 test_array [0] = 0
29254
29255   ;
29256   return 0;
29257 }
29258 _ACEOF
29259 rm -f conftest.$ac_objext
29260 if { (ac_try="$ac_compile"
29261 case "(($ac_try" in
29262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29263   *) ac_try_echo=$ac_try;;
29264 esac
29265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29266   (eval "$ac_compile") 2>conftest.er1
29267   ac_status=$?
29268   grep -v '^ *+' conftest.er1 >conftest.err
29269   rm -f conftest.er1
29270   cat conftest.err >&5
29271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29272   (exit $ac_status); } && {
29273          test -z "$ac_c_werror_flag" ||
29274          test ! -s conftest.err
29275        } && test -s conftest.$ac_objext; then
29276   ac_lo=$ac_mid; break
29277 else
29278   echo "$as_me: failed program was:" >&5
29279 sed 's/^/| /' conftest.$ac_ext >&5
29280
29281         ac_hi=`expr '(' $ac_mid ')' - 1`
29282                         if test $ac_mid -le $ac_hi; then
29283                           ac_lo= ac_hi=
29284                           break
29285                         fi
29286                         ac_mid=`expr 2 '*' $ac_mid`
29287 fi
29288
29289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29290   done
29291 else
29292   echo "$as_me: failed program was:" >&5
29293 sed 's/^/| /' conftest.$ac_ext >&5
29294
29295         ac_lo= ac_hi=
29296 fi
29297
29298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29299 fi
29300
29301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29302 # Binary search between lo and hi bounds.
29303 while test "x$ac_lo" != "x$ac_hi"; do
29304   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29305   cat >conftest.$ac_ext <<_ACEOF
29306 /* confdefs.h.  */
29307 _ACEOF
29308 cat confdefs.h >>conftest.$ac_ext
29309 cat >>conftest.$ac_ext <<_ACEOF
29310 /* end confdefs.h.  */
29311
29312                                     #undef HAVE_BOOLEAN
29313                                     #include <stdio.h>
29314                                     #include <jpeglib.h>
29315
29316
29317    typedef boolean ac__type_sizeof_;
29318 int
29319 main ()
29320 {
29321 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29322 test_array [0] = 0
29323
29324   ;
29325   return 0;
29326 }
29327 _ACEOF
29328 rm -f conftest.$ac_objext
29329 if { (ac_try="$ac_compile"
29330 case "(($ac_try" in
29331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29332   *) ac_try_echo=$ac_try;;
29333 esac
29334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29335   (eval "$ac_compile") 2>conftest.er1
29336   ac_status=$?
29337   grep -v '^ *+' conftest.er1 >conftest.err
29338   rm -f conftest.er1
29339   cat conftest.err >&5
29340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29341   (exit $ac_status); } && {
29342          test -z "$ac_c_werror_flag" ||
29343          test ! -s conftest.err
29344        } && test -s conftest.$ac_objext; then
29345   ac_hi=$ac_mid
29346 else
29347   echo "$as_me: failed program was:" >&5
29348 sed 's/^/| /' conftest.$ac_ext >&5
29349
29350         ac_lo=`expr '(' $ac_mid ')' + 1`
29351 fi
29352
29353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29354 done
29355 case $ac_lo in
29356 ?*) ac_cv_sizeof_boolean=$ac_lo;;
29357 '') if test "$ac_cv_type_boolean" = yes; then
29358      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
29359 See \`config.log' for more details." >&5
29360 echo "$as_me: error: cannot compute sizeof (boolean)
29361 See \`config.log' for more details." >&2;}
29362    { (exit 77); exit 77; }; }
29363    else
29364      ac_cv_sizeof_boolean=0
29365    fi ;;
29366 esac
29367 else
29368   cat >conftest.$ac_ext <<_ACEOF
29369 /* confdefs.h.  */
29370 _ACEOF
29371 cat confdefs.h >>conftest.$ac_ext
29372 cat >>conftest.$ac_ext <<_ACEOF
29373 /* end confdefs.h.  */
29374
29375                                     #undef HAVE_BOOLEAN
29376                                     #include <stdio.h>
29377                                     #include <jpeglib.h>
29378
29379
29380    typedef boolean ac__type_sizeof_;
29381 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29382 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29383 #include <stdio.h>
29384 #include <stdlib.h>
29385 int
29386 main ()
29387 {
29388
29389   FILE *f = fopen ("conftest.val", "w");
29390   if (! f)
29391     return 1;
29392   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29393     {
29394       long int i = longval ();
29395       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29396         return 1;
29397       fprintf (f, "%ld\n", i);
29398     }
29399   else
29400     {
29401       unsigned long int i = ulongval ();
29402       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29403         return 1;
29404       fprintf (f, "%lu\n", i);
29405     }
29406   return ferror (f) || fclose (f) != 0;
29407
29408   ;
29409   return 0;
29410 }
29411 _ACEOF
29412 rm -f conftest$ac_exeext
29413 if { (ac_try="$ac_link"
29414 case "(($ac_try" in
29415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29416   *) ac_try_echo=$ac_try;;
29417 esac
29418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29419   (eval "$ac_link") 2>&5
29420   ac_status=$?
29421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29422   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29423   { (case "(($ac_try" in
29424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29425   *) ac_try_echo=$ac_try;;
29426 esac
29427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29428   (eval "$ac_try") 2>&5
29429   ac_status=$?
29430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29431   (exit $ac_status); }; }; then
29432   ac_cv_sizeof_boolean=`cat conftest.val`
29433 else
29434   echo "$as_me: program exited with status $ac_status" >&5
29435 echo "$as_me: failed program was:" >&5
29436 sed 's/^/| /' conftest.$ac_ext >&5
29437
29438 ( exit $ac_status )
29439 if test "$ac_cv_type_boolean" = yes; then
29440      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
29441 See \`config.log' for more details." >&5
29442 echo "$as_me: error: cannot compute sizeof (boolean)
29443 See \`config.log' for more details." >&2;}
29444    { (exit 77); exit 77; }; }
29445    else
29446      ac_cv_sizeof_boolean=0
29447    fi
29448 fi
29449 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29450 fi
29451 rm -f conftest.val
29452 fi
29453 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_boolean" >&5
29454 echo "${ECHO_T}$ac_cv_sizeof_boolean" >&6; }
29455
29456
29457
29458 cat >>confdefs.h <<_ACEOF
29459 #define SIZEOF_BOOLEAN $ac_cv_sizeof_boolean
29460 _ACEOF
29461
29462
29463                             cat >>confdefs.h <<_ACEOF
29464 #define wxHACK_BOOLEAN wxInt`expr 8 \* $ac_cv_sizeof_boolean`
29465 _ACEOF
29466
29467
29468 fi
29469
29470                 fi
29471             fi
29472         fi
29473     fi
29474 fi
29475
29476
29477 TIFF_LINK=
29478 TIFF_PREREQ_LINKS=-lm
29479 if test "$wxUSE_LIBTIFF" != "no" ; then
29480     cat >>confdefs.h <<\_ACEOF
29481 #define wxUSE_LIBTIFF 1
29482 _ACEOF
29483
29484
29485     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
29486                         if test "$wxUSE_LIBJPEG" = "sys"; then
29487             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
29488         fi
29489         if test "$wxUSE_ZLIB" = "sys"; then
29490             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
29491         fi
29492         { echo "$as_me:$LINENO: checking for tiffio.h" >&5
29493 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
29494 if test "${ac_cv_header_tiffio_h+set}" = set; then
29495   echo $ECHO_N "(cached) $ECHO_C" >&6
29496 else
29497   cat >conftest.$ac_ext <<_ACEOF
29498 /* confdefs.h.  */
29499 _ACEOF
29500 cat confdefs.h >>conftest.$ac_ext
29501 cat >>conftest.$ac_ext <<_ACEOF
29502 /* end confdefs.h.  */
29503
29504
29505
29506 #include <tiffio.h>
29507 _ACEOF
29508 rm -f conftest.$ac_objext
29509 if { (ac_try="$ac_compile"
29510 case "(($ac_try" in
29511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29512   *) ac_try_echo=$ac_try;;
29513 esac
29514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29515   (eval "$ac_compile") 2>conftest.er1
29516   ac_status=$?
29517   grep -v '^ *+' conftest.er1 >conftest.err
29518   rm -f conftest.er1
29519   cat conftest.err >&5
29520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29521   (exit $ac_status); } && {
29522          test -z "$ac_c_werror_flag" ||
29523          test ! -s conftest.err
29524        } && test -s conftest.$ac_objext; then
29525   ac_cv_header_tiffio_h=yes
29526 else
29527   echo "$as_me: failed program was:" >&5
29528 sed 's/^/| /' conftest.$ac_ext >&5
29529
29530         ac_cv_header_tiffio_h=no
29531 fi
29532
29533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29534 fi
29535 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
29536 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
29537 if test $ac_cv_header_tiffio_h = yes; then
29538
29539                             { echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
29540 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6; }
29541 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
29542   echo $ECHO_N "(cached) $ECHO_C" >&6
29543 else
29544   ac_check_lib_save_LIBS=$LIBS
29545 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
29546 cat >conftest.$ac_ext <<_ACEOF
29547 /* confdefs.h.  */
29548 _ACEOF
29549 cat confdefs.h >>conftest.$ac_ext
29550 cat >>conftest.$ac_ext <<_ACEOF
29551 /* end confdefs.h.  */
29552
29553 /* Override any GCC internal prototype to avoid an error.
29554    Use char because int might match the return type of a GCC
29555    builtin and then its argument prototype would still apply.  */
29556 #ifdef __cplusplus
29557 extern "C"
29558 #endif
29559 char TIFFError ();
29560 int
29561 main ()
29562 {
29563 return TIFFError ();
29564   ;
29565   return 0;
29566 }
29567 _ACEOF
29568 rm -f conftest.$ac_objext conftest$ac_exeext
29569 if { (ac_try="$ac_link"
29570 case "(($ac_try" in
29571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29572   *) ac_try_echo=$ac_try;;
29573 esac
29574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29575   (eval "$ac_link") 2>conftest.er1
29576   ac_status=$?
29577   grep -v '^ *+' conftest.er1 >conftest.err
29578   rm -f conftest.er1
29579   cat conftest.err >&5
29580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29581   (exit $ac_status); } && {
29582          test -z "$ac_c_werror_flag" ||
29583          test ! -s conftest.err
29584        } && test -s conftest$ac_exeext &&
29585        $as_test_x conftest$ac_exeext; then
29586   ac_cv_lib_tiff_TIFFError=yes
29587 else
29588   echo "$as_me: failed program was:" >&5
29589 sed 's/^/| /' conftest.$ac_ext >&5
29590
29591         ac_cv_lib_tiff_TIFFError=no
29592 fi
29593
29594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29595       conftest$ac_exeext conftest.$ac_ext
29596 LIBS=$ac_check_lib_save_LIBS
29597 fi
29598 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
29599 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6; }
29600 if test $ac_cv_lib_tiff_TIFFError = yes; then
29601   TIFF_LINK=" -ltiff"
29602 fi
29603
29604
29605 fi
29606
29607
29608
29609         if test "x$TIFF_LINK" = "x" ; then
29610             if test "$wxUSE_LIBTIFF" = "sys" ; then
29611                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
29612 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
29613    { (exit 1); exit 1; }; }
29614             else
29615                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
29616 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
29617                 wxUSE_LIBTIFF=builtin
29618             fi
29619         else
29620                         wxUSE_LIBTIFF=sys
29621         fi
29622     fi
29623 fi
29624
29625
29626 if test "$wxUSE_WCHAR_T" != "yes"; then
29627     if test "$wxUSE_EXPAT" != "no"; then
29628         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
29629 echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
29630         wxUSE_EXPAT=no
29631     fi
29632     if test "$wxUSE_XML" != "no"; then
29633         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
29634 echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
29635         wxUSE_XML=no
29636     fi
29637 fi
29638
29639 if test "$wxUSE_EXPAT" != "no"; then
29640     wxUSE_XML=yes
29641     cat >>confdefs.h <<\_ACEOF
29642 #define wxUSE_EXPAT 1
29643 _ACEOF
29644
29645     cat >>confdefs.h <<\_ACEOF
29646 #define wxUSE_XML 1
29647 _ACEOF
29648
29649
29650     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
29651         { echo "$as_me:$LINENO: checking for expat.h" >&5
29652 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; }
29653 if test "${ac_cv_header_expat_h+set}" = set; then
29654   echo $ECHO_N "(cached) $ECHO_C" >&6
29655 else
29656   cat >conftest.$ac_ext <<_ACEOF
29657 /* confdefs.h.  */
29658 _ACEOF
29659 cat confdefs.h >>conftest.$ac_ext
29660 cat >>conftest.$ac_ext <<_ACEOF
29661 /* end confdefs.h.  */
29662
29663
29664 #include <expat.h>
29665 _ACEOF
29666 rm -f conftest.$ac_objext
29667 if { (ac_try="$ac_compile"
29668 case "(($ac_try" in
29669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29670   *) ac_try_echo=$ac_try;;
29671 esac
29672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29673   (eval "$ac_compile") 2>conftest.er1
29674   ac_status=$?
29675   grep -v '^ *+' conftest.er1 >conftest.err
29676   rm -f conftest.er1
29677   cat conftest.err >&5
29678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29679   (exit $ac_status); } && {
29680          test -z "$ac_c_werror_flag" ||
29681          test ! -s conftest.err
29682        } && test -s conftest.$ac_objext; then
29683   ac_cv_header_expat_h=yes
29684 else
29685   echo "$as_me: failed program was:" >&5
29686 sed 's/^/| /' conftest.$ac_ext >&5
29687
29688         ac_cv_header_expat_h=no
29689 fi
29690
29691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29692 fi
29693 { echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
29694 echo "${ECHO_T}$ac_cv_header_expat_h" >&6; }
29695 if test $ac_cv_header_expat_h = yes; then
29696   found_expat_h=1
29697 fi
29698
29699
29700         if test "x$found_expat_h" = "x1"; then
29701                         { echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
29702 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6; }
29703 if test "${wx_cv_expat_is_not_broken+set}" = set; then
29704   echo $ECHO_N "(cached) $ECHO_C" >&6
29705 else
29706
29707                 ac_ext=cpp
29708 ac_cpp='$CXXCPP $CPPFLAGS'
29709 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29710 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29711 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29712
29713                 cat >conftest.$ac_ext <<_ACEOF
29714 /* confdefs.h.  */
29715 _ACEOF
29716 cat confdefs.h >>conftest.$ac_ext
29717 cat >>conftest.$ac_ext <<_ACEOF
29718 /* end confdefs.h.  */
29719 #include <expat.h>
29720 int
29721 main ()
29722 {
29723
29724   ;
29725   return 0;
29726 }
29727 _ACEOF
29728 rm -f conftest.$ac_objext
29729 if { (ac_try="$ac_compile"
29730 case "(($ac_try" in
29731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29732   *) ac_try_echo=$ac_try;;
29733 esac
29734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29735   (eval "$ac_compile") 2>conftest.er1
29736   ac_status=$?
29737   grep -v '^ *+' conftest.er1 >conftest.err
29738   rm -f conftest.er1
29739   cat conftest.err >&5
29740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29741   (exit $ac_status); } && {
29742          test -z "$ac_cxx_werror_flag" ||
29743          test ! -s conftest.err
29744        } && test -s conftest.$ac_objext; then
29745   wx_cv_expat_is_not_broken=yes
29746 else
29747   echo "$as_me: failed program was:" >&5
29748 sed 's/^/| /' conftest.$ac_ext >&5
29749
29750         wx_cv_expat_is_not_broken=no
29751
29752 fi
29753
29754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29755                 ac_ext=c
29756 ac_cpp='$CPP $CPPFLAGS'
29757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29760
29761
29762
29763 fi
29764 { echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
29765 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6; }
29766             if test "$wx_cv_expat_is_not_broken" = "yes" ; then
29767                 { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
29768 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
29769 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
29770   echo $ECHO_N "(cached) $ECHO_C" >&6
29771 else
29772   ac_check_lib_save_LIBS=$LIBS
29773 LIBS="-lexpat  $LIBS"
29774 cat >conftest.$ac_ext <<_ACEOF
29775 /* confdefs.h.  */
29776 _ACEOF
29777 cat confdefs.h >>conftest.$ac_ext
29778 cat >>conftest.$ac_ext <<_ACEOF
29779 /* end confdefs.h.  */
29780
29781 /* Override any GCC internal prototype to avoid an error.
29782    Use char because int might match the return type of a GCC
29783    builtin and then its argument prototype would still apply.  */
29784 #ifdef __cplusplus
29785 extern "C"
29786 #endif
29787 char XML_ParserCreate ();
29788 int
29789 main ()
29790 {
29791 return XML_ParserCreate ();
29792   ;
29793   return 0;
29794 }
29795 _ACEOF
29796 rm -f conftest.$ac_objext conftest$ac_exeext
29797 if { (ac_try="$ac_link"
29798 case "(($ac_try" in
29799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29800   *) ac_try_echo=$ac_try;;
29801 esac
29802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29803   (eval "$ac_link") 2>conftest.er1
29804   ac_status=$?
29805   grep -v '^ *+' conftest.er1 >conftest.err
29806   rm -f conftest.er1
29807   cat conftest.err >&5
29808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29809   (exit $ac_status); } && {
29810          test -z "$ac_c_werror_flag" ||
29811          test ! -s conftest.err
29812        } && test -s conftest$ac_exeext &&
29813        $as_test_x conftest$ac_exeext; then
29814   ac_cv_lib_expat_XML_ParserCreate=yes
29815 else
29816   echo "$as_me: failed program was:" >&5
29817 sed 's/^/| /' conftest.$ac_ext >&5
29818
29819         ac_cv_lib_expat_XML_ParserCreate=no
29820 fi
29821
29822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29823       conftest$ac_exeext conftest.$ac_ext
29824 LIBS=$ac_check_lib_save_LIBS
29825 fi
29826 { echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
29827 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
29828 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
29829   EXPAT_LINK=" -lexpat"
29830 fi
29831
29832             fi
29833         fi
29834         if test "x$EXPAT_LINK" = "x" ; then
29835             if test "$wxUSE_EXPAT" = "sys" ; then
29836                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
29837 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
29838    { (exit 1); exit 1; }; }
29839             else
29840                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
29841 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
29842                 wxUSE_EXPAT=builtin
29843             fi
29844         else
29845                         wxUSE_EXPAT=sys
29846         fi
29847     fi
29848     if test "$wxUSE_EXPAT" = "builtin" ; then
29849                 subdirs="$subdirs src/expat"
29850
29851     fi
29852 fi
29853
29854
29855
29856 if test "$wxUSE_LIBMSPACK" != "no"; then
29857     { echo "$as_me:$LINENO: checking for mspack.h" >&5
29858 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6; }
29859 if test "${ac_cv_header_mspack_h+set}" = set; then
29860   echo $ECHO_N "(cached) $ECHO_C" >&6
29861 else
29862   cat >conftest.$ac_ext <<_ACEOF
29863 /* confdefs.h.  */
29864 _ACEOF
29865 cat confdefs.h >>conftest.$ac_ext
29866 cat >>conftest.$ac_ext <<_ACEOF
29867 /* end confdefs.h.  */
29868
29869
29870 #include <mspack.h>
29871 _ACEOF
29872 rm -f conftest.$ac_objext
29873 if { (ac_try="$ac_compile"
29874 case "(($ac_try" in
29875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29876   *) ac_try_echo=$ac_try;;
29877 esac
29878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29879   (eval "$ac_compile") 2>conftest.er1
29880   ac_status=$?
29881   grep -v '^ *+' conftest.er1 >conftest.err
29882   rm -f conftest.er1
29883   cat conftest.err >&5
29884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29885   (exit $ac_status); } && {
29886          test -z "$ac_c_werror_flag" ||
29887          test ! -s conftest.err
29888        } && test -s conftest.$ac_objext; then
29889   ac_cv_header_mspack_h=yes
29890 else
29891   echo "$as_me: failed program was:" >&5
29892 sed 's/^/| /' conftest.$ac_ext >&5
29893
29894         ac_cv_header_mspack_h=no
29895 fi
29896
29897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29898 fi
29899 { echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
29900 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6; }
29901 if test $ac_cv_header_mspack_h = yes; then
29902   found_mspack_h=1
29903 fi
29904
29905
29906     if test "x$found_mspack_h" = "x1"; then
29907         { echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
29908 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6; }
29909 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
29910   echo $ECHO_N "(cached) $ECHO_C" >&6
29911 else
29912   ac_check_lib_save_LIBS=$LIBS
29913 LIBS="-lmspack  $LIBS"
29914 cat >conftest.$ac_ext <<_ACEOF
29915 /* confdefs.h.  */
29916 _ACEOF
29917 cat confdefs.h >>conftest.$ac_ext
29918 cat >>conftest.$ac_ext <<_ACEOF
29919 /* end confdefs.h.  */
29920
29921 /* Override any GCC internal prototype to avoid an error.
29922    Use char because int might match the return type of a GCC
29923    builtin and then its argument prototype would still apply.  */
29924 #ifdef __cplusplus
29925 extern "C"
29926 #endif
29927 char mspack_create_chm_decompressor ();
29928 int
29929 main ()
29930 {
29931 return mspack_create_chm_decompressor ();
29932   ;
29933   return 0;
29934 }
29935 _ACEOF
29936 rm -f conftest.$ac_objext conftest$ac_exeext
29937 if { (ac_try="$ac_link"
29938 case "(($ac_try" in
29939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29940   *) ac_try_echo=$ac_try;;
29941 esac
29942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29943   (eval "$ac_link") 2>conftest.er1
29944   ac_status=$?
29945   grep -v '^ *+' conftest.er1 >conftest.err
29946   rm -f conftest.er1
29947   cat conftest.err >&5
29948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29949   (exit $ac_status); } && {
29950          test -z "$ac_c_werror_flag" ||
29951          test ! -s conftest.err
29952        } && test -s conftest$ac_exeext &&
29953        $as_test_x conftest$ac_exeext; then
29954   ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
29955 else
29956   echo "$as_me: failed program was:" >&5
29957 sed 's/^/| /' conftest.$ac_ext >&5
29958
29959         ac_cv_lib_mspack_mspack_create_chm_decompressor=no
29960 fi
29961
29962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29963       conftest$ac_exeext conftest.$ac_ext
29964 LIBS=$ac_check_lib_save_LIBS
29965 fi
29966 { echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
29967 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6; }
29968 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
29969   MSPACK_LINK=" -lmspack"
29970 fi
29971
29972     fi
29973     if test "x$MSPACK_LINK" = "x" ; then
29974         wxUSE_LIBMSPACK=no
29975     fi
29976 fi
29977
29978 if test "$wxUSE_LIBMSPACK" != "no"; then
29979     cat >>confdefs.h <<\_ACEOF
29980 #define wxUSE_LIBMSPACK 1
29981 _ACEOF
29982
29983 fi
29984
29985
29986
29987 AFMINSTALL=
29988 WIN32INSTALL=
29989
29990 TOOLKIT=
29991 TOOLKIT_INCLUDE=
29992 WIDGET_SET=
29993
29994 if test "$USE_WIN32" = 1 ; then
29995
29996 for ac_header in w32api.h
29997 do
29998 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29999 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30000 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30001 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30002   echo $ECHO_N "(cached) $ECHO_C" >&6
30003 else
30004   cat >conftest.$ac_ext <<_ACEOF
30005 /* confdefs.h.  */
30006 _ACEOF
30007 cat confdefs.h >>conftest.$ac_ext
30008 cat >>conftest.$ac_ext <<_ACEOF
30009 /* end confdefs.h.  */
30010
30011
30012 #include <$ac_header>
30013 _ACEOF
30014 rm -f conftest.$ac_objext
30015 if { (ac_try="$ac_compile"
30016 case "(($ac_try" in
30017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30018   *) ac_try_echo=$ac_try;;
30019 esac
30020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30021   (eval "$ac_compile") 2>conftest.er1
30022   ac_status=$?
30023   grep -v '^ *+' conftest.er1 >conftest.err
30024   rm -f conftest.er1
30025   cat conftest.err >&5
30026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30027   (exit $ac_status); } && {
30028          test -z "$ac_c_werror_flag" ||
30029          test ! -s conftest.err
30030        } && test -s conftest.$ac_objext; then
30031   eval "$as_ac_Header=yes"
30032 else
30033   echo "$as_me: failed program was:" >&5
30034 sed 's/^/| /' conftest.$ac_ext >&5
30035
30036         eval "$as_ac_Header=no"
30037 fi
30038
30039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30040 fi
30041 ac_res=`eval echo '${'$as_ac_Header'}'`
30042                { echo "$as_me:$LINENO: result: $ac_res" >&5
30043 echo "${ECHO_T}$ac_res" >&6; }
30044 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30045   cat >>confdefs.h <<_ACEOF
30046 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30047 _ACEOF
30048
30049 fi
30050
30051 done
30052
30053     { echo "$as_me:$LINENO: checking for windows.h" >&5
30054 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
30055 if test "${ac_cv_header_windows_h+set}" = set; then
30056   echo $ECHO_N "(cached) $ECHO_C" >&6
30057 else
30058   cat >conftest.$ac_ext <<_ACEOF
30059 /* confdefs.h.  */
30060 _ACEOF
30061 cat confdefs.h >>conftest.$ac_ext
30062 cat >>conftest.$ac_ext <<_ACEOF
30063 /* end confdefs.h.  */
30064
30065
30066 #include <windows.h>
30067 _ACEOF
30068 rm -f conftest.$ac_objext
30069 if { (ac_try="$ac_compile"
30070 case "(($ac_try" in
30071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30072   *) ac_try_echo=$ac_try;;
30073 esac
30074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30075   (eval "$ac_compile") 2>conftest.er1
30076   ac_status=$?
30077   grep -v '^ *+' conftest.er1 >conftest.err
30078   rm -f conftest.er1
30079   cat conftest.err >&5
30080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30081   (exit $ac_status); } && {
30082          test -z "$ac_c_werror_flag" ||
30083          test ! -s conftest.err
30084        } && test -s conftest.$ac_objext; then
30085   ac_cv_header_windows_h=yes
30086 else
30087   echo "$as_me: failed program was:" >&5
30088 sed 's/^/| /' conftest.$ac_ext >&5
30089
30090         ac_cv_header_windows_h=no
30091 fi
30092
30093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30094 fi
30095 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
30096 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
30097 if test $ac_cv_header_windows_h = yes; then
30098   :
30099 else
30100
30101         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
30102 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
30103    { (exit 1); exit 1; }; }
30104
30105 fi
30106
30107
30108
30109             LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
30110
30111     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
30112         LIBS="$LIBS -loleacc"
30113     fi
30114
30115     case "${host}" in
30116         *-*-cygwin* )
30117                         LIBS="$LIBS -lkernel32 -luser32"
30118     esac
30119
30120         if test "$wxUSE_ODBC" = "sys" ; then
30121         wxUSE_ODBC = "yes"
30122     fi
30123     if test "$wxUSE_ODBC" = "yes" ; then
30124         LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
30125         cat >>confdefs.h <<\_ACEOF
30126 #define wxUSE_ODBC 1
30127 _ACEOF
30128
30129     fi
30130
30131         RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
30132     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
30133
30134                 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
30135
30136         WIN32INSTALL=win32install
30137
30138         { echo "$as_me:$LINENO: checking for pbt.h" >&5
30139 echo $ECHO_N "checking for pbt.h... $ECHO_C" >&6; }
30140 if test "${ac_cv_header_pbt_h+set}" = set; then
30141   echo $ECHO_N "(cached) $ECHO_C" >&6
30142 else
30143   cat >conftest.$ac_ext <<_ACEOF
30144 /* confdefs.h.  */
30145 _ACEOF
30146 cat confdefs.h >>conftest.$ac_ext
30147 cat >>conftest.$ac_ext <<_ACEOF
30148 /* end confdefs.h.  */
30149
30150
30151 #include <pbt.h>
30152 _ACEOF
30153 rm -f conftest.$ac_objext
30154 if { (ac_try="$ac_compile"
30155 case "(($ac_try" in
30156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30157   *) ac_try_echo=$ac_try;;
30158 esac
30159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30160   (eval "$ac_compile") 2>conftest.er1
30161   ac_status=$?
30162   grep -v '^ *+' conftest.er1 >conftest.err
30163   rm -f conftest.er1
30164   cat conftest.err >&5
30165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30166   (exit $ac_status); } && {
30167          test -z "$ac_c_werror_flag" ||
30168          test ! -s conftest.err
30169        } && test -s conftest.$ac_objext; then
30170   ac_cv_header_pbt_h=yes
30171 else
30172   echo "$as_me: failed program was:" >&5
30173 sed 's/^/| /' conftest.$ac_ext >&5
30174
30175         ac_cv_header_pbt_h=no
30176 fi
30177
30178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30179 fi
30180 { echo "$as_me:$LINENO: result: $ac_cv_header_pbt_h" >&5
30181 echo "${ECHO_T}$ac_cv_header_pbt_h" >&6; }
30182 if test $ac_cv_header_pbt_h = yes; then
30183   :
30184 else
30185   cat >>confdefs.h <<\_ACEOF
30186 #define NEED_PBT_H 1
30187 _ACEOF
30188
30189 fi
30190
30191
30192 fi
30193
30194 if test "$wxUSE_GUI" = "yes"; then
30195     USE_GUI=1
30196
30197     GUI_TK_LIBRARY=
30198
30199     WXGTK12=
30200     WXGTK127=
30201     WXGTK20=
30202     WXGPE=
30203
30204     if test "$wxUSE_COCOA" = 1 ; then
30205         if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
30206             { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
30207 echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
30208             wxUSE_PRINTING_ARCHITECTURE=no
30209         fi
30210         if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
30211             { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
30212 echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
30213             wxUSE_DRAG_AND_DROP=no
30214         fi
30215         if test "$wxUSE_DRAGIMAGE" = "yes"; then
30216             { echo "$as_me:$LINENO: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&5
30217 echo "$as_me: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&2;}
30218             wxUSE_DRAGIMAGE=no
30219         fi
30220     fi
30221
30222     if test "$wxUSE_MSW" = 1 ; then
30223         TOOLKIT=MSW
30224         GUIDIST=MSW_DIST
30225
30226                 case "${host}" in
30227             *-*-mingw32* )
30228                 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
30229         esac
30230     fi
30231
30232     if test "$wxUSE_GTK" = 1; then
30233                 { echo "$as_me:$LINENO: checking for GTK+ version" >&5
30234 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6; }
30235
30236         gtk_version_cached=1
30237         if test "${wx_cv_lib_gtk+set}" = set; then
30238   echo $ECHO_N "(cached) $ECHO_C" >&6
30239 else
30240
30241                                                 gtk_version_cached=0
30242                 { echo "$as_me:$LINENO: result: " >&5
30243 echo "${ECHO_T}" >&6; }
30244
30245                                                 GTK_MODULES=
30246                 if test "$wxUSE_THREADS" = "yes"; then
30247                     GTK_MODULES=gthread
30248                 fi
30249
30250                                 wx_cv_lib_gtk=
30251                 if test "x$wxGTK_VERSION" != "x1"
30252                 then
30253                                                                                 case "${host}" in
30254                         *-*-solaris2* )
30255                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
30256                                 enable_gtktest=no
30257                             fi
30258                     esac
30259
30260                     # Check whether --enable-gtktest was given.
30261 if test "${enable_gtktest+set}" = set; then
30262   enableval=$enable_gtktest;
30263 else
30264   enable_gtktest=yes
30265 fi
30266
30267
30268   pkg_config_args=gtk+-2.0
30269   for module in . $GTK_MODULES
30270   do
30271       case "$module" in
30272          gthread)
30273              pkg_config_args="$pkg_config_args gthread-2.0"
30274          ;;
30275       esac
30276   done
30277
30278   no_gtk=""
30279
30280   # Extract the first word of "pkg-config", so it can be a program name with args.
30281 set dummy pkg-config; ac_word=$2
30282 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30284 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
30285   echo $ECHO_N "(cached) $ECHO_C" >&6
30286 else
30287   case $PKG_CONFIG in
30288   [\\/]* | ?:[\\/]*)
30289   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
30290   ;;
30291   *)
30292   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30293 for as_dir in $PATH
30294 do
30295   IFS=$as_save_IFS
30296   test -z "$as_dir" && as_dir=.
30297   for ac_exec_ext in '' $ac_executable_extensions; do
30298   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30299     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30300     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30301     break 2
30302   fi
30303 done
30304 done
30305 IFS=$as_save_IFS
30306
30307   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
30308   ;;
30309 esac
30310 fi
30311 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
30312 if test -n "$PKG_CONFIG"; then
30313   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
30314 echo "${ECHO_T}$PKG_CONFIG" >&6; }
30315 else
30316   { echo "$as_me:$LINENO: result: no" >&5
30317 echo "${ECHO_T}no" >&6; }
30318 fi
30319
30320
30321
30322   if test x$PKG_CONFIG != xno ; then
30323     if pkg-config --atleast-pkgconfig-version 0.7 ; then
30324       :
30325     else
30326       echo "*** pkg-config too old; version 0.7 or better required."
30327       no_gtk=yes
30328       PKG_CONFIG=no
30329     fi
30330   else
30331     no_gtk=yes
30332   fi
30333
30334   min_gtk_version=2.0.0
30335   { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
30336 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; }
30337
30338   if test x$PKG_CONFIG != xno ; then
30339     ## don't try to run the test against uninstalled libtool libs
30340     if $PKG_CONFIG --uninstalled $pkg_config_args; then
30341           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
30342           enable_gtktest=no
30343     fi
30344
30345     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
30346           :
30347     else
30348           no_gtk=yes
30349     fi
30350   fi
30351
30352   if test x"$no_gtk" = x ; then
30353     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
30354     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
30355     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
30356            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
30357     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
30358            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
30359     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
30360            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
30361     if test "x$enable_gtktest" = "xyes" ; then
30362       ac_save_CFLAGS="$CFLAGS"
30363       ac_save_LIBS="$LIBS"
30364       CFLAGS="$CFLAGS $GTK_CFLAGS"
30365       LIBS="$GTK_LIBS $LIBS"
30366       rm -f conf.gtktest
30367       if test "$cross_compiling" = yes; then
30368   echo $ac_n "cross compiling; assumed OK... $ac_c"
30369 else
30370   cat >conftest.$ac_ext <<_ACEOF
30371 /* confdefs.h.  */
30372 _ACEOF
30373 cat confdefs.h >>conftest.$ac_ext
30374 cat >>conftest.$ac_ext <<_ACEOF
30375 /* end confdefs.h.  */
30376
30377 #include <gtk/gtk.h>
30378 #include <stdio.h>
30379 #include <stdlib.h>
30380
30381 int
30382 main ()
30383 {
30384   int major, minor, micro;
30385   char *tmp_version;
30386
30387   system ("touch conf.gtktest");
30388
30389   /* HP/UX 9 (%@#!) writes to sscanf strings */
30390   tmp_version = g_strdup("$min_gtk_version");
30391   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
30392      printf("%s, bad version string\n", "$min_gtk_version");
30393      exit(1);
30394    }
30395
30396   if ((gtk_major_version != $gtk_config_major_version) ||
30397       (gtk_minor_version != $gtk_config_minor_version) ||
30398       (gtk_micro_version != $gtk_config_micro_version))
30399     {
30400       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
30401              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
30402              gtk_major_version, gtk_minor_version, gtk_micro_version);
30403       printf ("*** was found! If pkg-config was correct, then it is best\n");
30404       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
30405       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
30406       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
30407       printf("*** required on your system.\n");
30408       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
30409       printf("*** to point to the correct configuration files\n");
30410     }
30411   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
30412            (gtk_minor_version != GTK_MINOR_VERSION) ||
30413            (gtk_micro_version != GTK_MICRO_VERSION))
30414     {
30415       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
30416              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
30417       printf("*** library (version %d.%d.%d)\n",
30418              gtk_major_version, gtk_minor_version, gtk_micro_version);
30419     }
30420   else
30421     {
30422       if ((gtk_major_version > major) ||
30423         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
30424         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
30425       {
30426         return 0;
30427        }
30428      else
30429       {
30430         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
30431                gtk_major_version, gtk_minor_version, gtk_micro_version);
30432         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
30433                major, minor, micro);
30434         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
30435         printf("***\n");
30436         printf("*** If you have already installed a sufficiently new version, this error\n");
30437         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
30438         printf("*** being found. The easiest way to fix this is to remove the old version\n");
30439         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
30440         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
30441         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
30442         printf("*** so that the correct libraries are found at run-time))\n");
30443       }
30444     }
30445   return 1;
30446 }
30447
30448 _ACEOF
30449 rm -f conftest$ac_exeext
30450 if { (ac_try="$ac_link"
30451 case "(($ac_try" in
30452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30453   *) ac_try_echo=$ac_try;;
30454 esac
30455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30456   (eval "$ac_link") 2>&5
30457   ac_status=$?
30458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30459   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30460   { (case "(($ac_try" in
30461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30462   *) ac_try_echo=$ac_try;;
30463 esac
30464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30465   (eval "$ac_try") 2>&5
30466   ac_status=$?
30467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30468   (exit $ac_status); }; }; then
30469   :
30470 else
30471   echo "$as_me: program exited with status $ac_status" >&5
30472 echo "$as_me: failed program was:" >&5
30473 sed 's/^/| /' conftest.$ac_ext >&5
30474
30475 ( exit $ac_status )
30476 no_gtk=yes
30477 fi
30478 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30479 fi
30480
30481
30482        CFLAGS="$ac_save_CFLAGS"
30483        LIBS="$ac_save_LIBS"
30484      fi
30485   fi
30486   if test "x$no_gtk" = x ; then
30487      { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
30488 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
30489      wx_cv_lib_gtk=2.0
30490   else
30491      { echo "$as_me:$LINENO: result: no" >&5
30492 echo "${ECHO_T}no" >&6; }
30493      if test "$PKG_CONFIG" = "no" ; then
30494        echo "*** A new enough version of pkg-config was not found."
30495        echo "*** See http://pkgconfig.sourceforge.net"
30496      else
30497        if test -f conf.gtktest ; then
30498         :
30499        else
30500           echo "*** Could not run GTK+ test program, checking why..."
30501           ac_save_CFLAGS="$CFLAGS"
30502           ac_save_LIBS="$LIBS"
30503           CFLAGS="$CFLAGS $GTK_CFLAGS"
30504           LIBS="$LIBS $GTK_LIBS"
30505           cat >conftest.$ac_ext <<_ACEOF
30506 /* confdefs.h.  */
30507 _ACEOF
30508 cat confdefs.h >>conftest.$ac_ext
30509 cat >>conftest.$ac_ext <<_ACEOF
30510 /* end confdefs.h.  */
30511
30512 #include <gtk/gtk.h>
30513 #include <stdio.h>
30514
30515 int
30516 main ()
30517 {
30518  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
30519   ;
30520   return 0;
30521 }
30522 _ACEOF
30523 rm -f conftest.$ac_objext conftest$ac_exeext
30524 if { (ac_try="$ac_link"
30525 case "(($ac_try" in
30526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30527   *) ac_try_echo=$ac_try;;
30528 esac
30529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30530   (eval "$ac_link") 2>conftest.er1
30531   ac_status=$?
30532   grep -v '^ *+' conftest.er1 >conftest.err
30533   rm -f conftest.er1
30534   cat conftest.err >&5
30535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30536   (exit $ac_status); } && {
30537          test -z "$ac_c_werror_flag" ||
30538          test ! -s conftest.err
30539        } && test -s conftest$ac_exeext &&
30540        $as_test_x conftest$ac_exeext; then
30541    echo "*** The test program compiled, but did not run. This usually means"
30542           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
30543           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
30544           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
30545           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
30546           echo "*** is required on your system"
30547           echo "***"
30548           echo "*** If you have an old version installed, it is best to remove it, although"
30549           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
30550 else
30551   echo "$as_me: failed program was:" >&5
30552 sed 's/^/| /' conftest.$ac_ext >&5
30553
30554          echo "*** The test program failed to compile or link. See the file config.log for the"
30555           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
30556 fi
30557
30558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30559       conftest$ac_exeext conftest.$ac_ext
30560           CFLAGS="$ac_save_CFLAGS"
30561           LIBS="$ac_save_LIBS"
30562        fi
30563      fi
30564      GTK_CFLAGS=""
30565      GTK_LIBS=""
30566      :
30567   fi
30568
30569
30570   rm -f conf.gtktest
30571
30572
30573                                         case "${host}" in
30574                         *-*-solaris2* )
30575                             if test "$wxUSE_SHARED" != "yes"; then
30576                                 GTK_LIBS="$GTK_LIBS -lX11"
30577                             fi
30578                     esac
30579                 fi
30580
30581                                 if test -z "$wx_cv_lib_gtk"; then
30582                     if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
30583
30584 # Check whether --with-gtk-prefix was given.
30585 if test "${with_gtk_prefix+set}" = set; then
30586   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
30587 else
30588   gtk_config_prefix=""
30589 fi
30590
30591
30592 # Check whether --with-gtk-exec-prefix was given.
30593 if test "${with_gtk_exec_prefix+set}" = set; then
30594   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
30595 else
30596   gtk_config_exec_prefix=""
30597 fi
30598
30599 # Check whether --enable-gtktest was given.
30600 if test "${enable_gtktest+set}" = set; then
30601   enableval=$enable_gtktest;
30602 else
30603   enable_gtktest=yes
30604 fi
30605
30606
30607   for module in . $GTK_MODULES
30608   do
30609       case "$module" in
30610          gthread)
30611              gtk_config_args="$gtk_config_args gthread"
30612          ;;
30613       esac
30614   done
30615
30616   if test x$gtk_config_exec_prefix != x ; then
30617      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
30618      if test x${GTK_CONFIG+set} != xset ; then
30619         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
30620      fi
30621   fi
30622   if test x$gtk_config_prefix != x ; then
30623      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
30624      if test x${GTK_CONFIG+set} != xset ; then
30625         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
30626      fi
30627   fi
30628
30629   # Extract the first word of "gtk-config", so it can be a program name with args.
30630 set dummy gtk-config; ac_word=$2
30631 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30633 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
30634   echo $ECHO_N "(cached) $ECHO_C" >&6
30635 else
30636   case $GTK_CONFIG in
30637   [\\/]* | ?:[\\/]*)
30638   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
30639   ;;
30640   *)
30641   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30642 for as_dir in $PATH
30643 do
30644   IFS=$as_save_IFS
30645   test -z "$as_dir" && as_dir=.
30646   for ac_exec_ext in '' $ac_executable_extensions; do
30647   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30648     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30649     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30650     break 2
30651   fi
30652 done
30653 done
30654 IFS=$as_save_IFS
30655
30656   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
30657   ;;
30658 esac
30659 fi
30660 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
30661 if test -n "$GTK_CONFIG"; then
30662   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
30663 echo "${ECHO_T}$GTK_CONFIG" >&6; }
30664 else
30665   { echo "$as_me:$LINENO: result: no" >&5
30666 echo "${ECHO_T}no" >&6; }
30667 fi
30668
30669
30670   min_gtk_version=1.2.7
30671   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
30672 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
30673   no_gtk=""
30674   if test "$GTK_CONFIG" = "no" ; then
30675     no_gtk=yes
30676   else
30677     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
30678     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
30679     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
30680            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
30681     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
30682            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
30683     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
30684            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
30685     if test "x$enable_gtktest" = "xyes" ; then
30686       ac_save_CFLAGS="$CFLAGS"
30687       ac_save_LIBS="$LIBS"
30688       CFLAGS="$CFLAGS $GTK_CFLAGS"
30689       LIBS="$GTK_LIBS $LIBS"
30690       rm -f conf.gtktest
30691       if test "$cross_compiling" = yes; then
30692   echo $ac_n "cross compiling; assumed OK... $ac_c"
30693 else
30694   cat >conftest.$ac_ext <<_ACEOF
30695 /* confdefs.h.  */
30696 _ACEOF
30697 cat confdefs.h >>conftest.$ac_ext
30698 cat >>conftest.$ac_ext <<_ACEOF
30699 /* end confdefs.h.  */
30700
30701 #include <gtk/gtk.h>
30702 #include <stdio.h>
30703 #include <stdlib.h>
30704
30705 int
30706 main ()
30707 {
30708   int major, minor, micro;
30709   char *tmp_version;
30710
30711   system ("touch conf.gtktest");
30712
30713   /* HP/UX 9 (%@#!) writes to sscanf strings */
30714   tmp_version = g_strdup("$min_gtk_version");
30715   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
30716      printf("%s, bad version string\n", "$min_gtk_version");
30717      exit(1);
30718    }
30719
30720   if ((gtk_major_version != $gtk_config_major_version) ||
30721       (gtk_minor_version != $gtk_config_minor_version) ||
30722       (gtk_micro_version != $gtk_config_micro_version))
30723     {
30724       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
30725              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
30726              gtk_major_version, gtk_minor_version, gtk_micro_version);
30727       printf ("*** was found! If gtk-config was correct, then it is best\n");
30728       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
30729       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
30730       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
30731       printf("*** required on your system.\n");
30732       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
30733       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
30734       printf("*** before re-running configure\n");
30735     }
30736 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
30737   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
30738            (gtk_minor_version != GTK_MINOR_VERSION) ||
30739            (gtk_micro_version != GTK_MICRO_VERSION))
30740     {
30741       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
30742              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
30743       printf("*** library (version %d.%d.%d)\n",
30744              gtk_major_version, gtk_minor_version, gtk_micro_version);
30745     }
30746 #endif /* defined (GTK_MAJOR_VERSION) ... */
30747   else
30748     {
30749       if ((gtk_major_version > major) ||
30750         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
30751         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
30752       {
30753         return 0;
30754        }
30755      else
30756       {
30757         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
30758                gtk_major_version, gtk_minor_version, gtk_micro_version);
30759         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
30760                major, minor, micro);
30761         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
30762         printf("***\n");
30763         printf("*** If you have already installed a sufficiently new version, this error\n");
30764         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
30765         printf("*** being found. The easiest way to fix this is to remove the old version\n");
30766         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
30767         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
30768         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
30769         printf("*** so that the correct libraries are found at run-time))\n");
30770       }
30771     }
30772   return 1;
30773 }
30774
30775 _ACEOF
30776 rm -f conftest$ac_exeext
30777 if { (ac_try="$ac_link"
30778 case "(($ac_try" in
30779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30780   *) ac_try_echo=$ac_try;;
30781 esac
30782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30783   (eval "$ac_link") 2>&5
30784   ac_status=$?
30785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30786   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30787   { (case "(($ac_try" in
30788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30789   *) ac_try_echo=$ac_try;;
30790 esac
30791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30792   (eval "$ac_try") 2>&5
30793   ac_status=$?
30794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30795   (exit $ac_status); }; }; then
30796   :
30797 else
30798   echo "$as_me: program exited with status $ac_status" >&5
30799 echo "$as_me: failed program was:" >&5
30800 sed 's/^/| /' conftest.$ac_ext >&5
30801
30802 ( exit $ac_status )
30803 no_gtk=yes
30804 fi
30805 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30806 fi
30807
30808
30809        CFLAGS="$ac_save_CFLAGS"
30810        LIBS="$ac_save_LIBS"
30811      fi
30812   fi
30813   if test "x$no_gtk" = x ; then
30814      { echo "$as_me:$LINENO: result: yes" >&5
30815 echo "${ECHO_T}yes" >&6; }
30816      wx_cv_lib_gtk=1.2.7
30817   else
30818      { echo "$as_me:$LINENO: result: no" >&5
30819 echo "${ECHO_T}no" >&6; }
30820      if test "$GTK_CONFIG" = "no" ; then
30821        echo "*** The gtk-config script installed by GTK could not be found"
30822        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
30823        echo "*** your path, or set the GTK_CONFIG environment variable to the"
30824        echo "*** full path to gtk-config."
30825      else
30826        if test -f conf.gtktest ; then
30827         :
30828        else
30829           echo "*** Could not run GTK test program, checking why..."
30830           CFLAGS="$CFLAGS $GTK_CFLAGS"
30831           LIBS="$LIBS $GTK_LIBS"
30832           cat >conftest.$ac_ext <<_ACEOF
30833 /* confdefs.h.  */
30834 _ACEOF
30835 cat confdefs.h >>conftest.$ac_ext
30836 cat >>conftest.$ac_ext <<_ACEOF
30837 /* end confdefs.h.  */
30838
30839 #include <gtk/gtk.h>
30840 #include <stdio.h>
30841
30842 int
30843 main ()
30844 {
30845  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
30846   ;
30847   return 0;
30848 }
30849 _ACEOF
30850 rm -f conftest.$ac_objext conftest$ac_exeext
30851 if { (ac_try="$ac_link"
30852 case "(($ac_try" in
30853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30854   *) ac_try_echo=$ac_try;;
30855 esac
30856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30857   (eval "$ac_link") 2>conftest.er1
30858   ac_status=$?
30859   grep -v '^ *+' conftest.er1 >conftest.err
30860   rm -f conftest.er1
30861   cat conftest.err >&5
30862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30863   (exit $ac_status); } && {
30864          test -z "$ac_c_werror_flag" ||
30865          test ! -s conftest.err
30866        } && test -s conftest$ac_exeext &&
30867        $as_test_x conftest$ac_exeext; then
30868    echo "*** The test program compiled, but did not run. This usually means"
30869           echo "*** that the run-time linker is not finding GTK or finding the wrong"
30870           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
30871           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
30872           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
30873           echo "*** is required on your system"
30874           echo "***"
30875           echo "*** If you have an old version installed, it is best to remove it, although"
30876           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
30877           echo "***"
30878           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
30879           echo "*** came with the system with the command"
30880           echo "***"
30881           echo "***    rpm --erase --nodeps gtk gtk-devel"
30882 else
30883   echo "$as_me: failed program was:" >&5
30884 sed 's/^/| /' conftest.$ac_ext >&5
30885
30886          echo "*** The test program failed to compile or link. See the file config.log for the"
30887           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
30888           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
30889           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
30890 fi
30891
30892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30893       conftest$ac_exeext conftest.$ac_ext
30894           CFLAGS="$ac_save_CFLAGS"
30895           LIBS="$ac_save_LIBS"
30896        fi
30897      fi
30898      GTK_CFLAGS=""
30899      GTK_LIBS=""
30900      :
30901   fi
30902
30903
30904   rm -f conf.gtktest
30905
30906
30907                         if test -z "$wx_cv_lib_gtk"; then
30908
30909 # Check whether --with-gtk-prefix was given.
30910 if test "${with_gtk_prefix+set}" = set; then
30911   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
30912 else
30913   gtk_config_prefix=""
30914 fi
30915
30916
30917 # Check whether --with-gtk-exec-prefix was given.
30918 if test "${with_gtk_exec_prefix+set}" = set; then
30919   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
30920 else
30921   gtk_config_exec_prefix=""
30922 fi
30923
30924 # Check whether --enable-gtktest was given.
30925 if test "${enable_gtktest+set}" = set; then
30926   enableval=$enable_gtktest;
30927 else
30928   enable_gtktest=yes
30929 fi
30930
30931
30932   for module in . $GTK_MODULES
30933   do
30934       case "$module" in
30935          gthread)
30936              gtk_config_args="$gtk_config_args gthread"
30937          ;;
30938       esac
30939   done
30940
30941   if test x$gtk_config_exec_prefix != x ; then
30942      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
30943      if test x${GTK_CONFIG+set} != xset ; then
30944         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
30945      fi
30946   fi
30947   if test x$gtk_config_prefix != x ; then
30948      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
30949      if test x${GTK_CONFIG+set} != xset ; then
30950         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
30951      fi
30952   fi
30953
30954   # Extract the first word of "gtk-config", so it can be a program name with args.
30955 set dummy gtk-config; ac_word=$2
30956 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30958 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
30959   echo $ECHO_N "(cached) $ECHO_C" >&6
30960 else
30961   case $GTK_CONFIG in
30962   [\\/]* | ?:[\\/]*)
30963   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
30964   ;;
30965   *)
30966   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30967 for as_dir in $PATH
30968 do
30969   IFS=$as_save_IFS
30970   test -z "$as_dir" && as_dir=.
30971   for ac_exec_ext in '' $ac_executable_extensions; do
30972   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30973     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30974     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30975     break 2
30976   fi
30977 done
30978 done
30979 IFS=$as_save_IFS
30980
30981   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
30982   ;;
30983 esac
30984 fi
30985 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
30986 if test -n "$GTK_CONFIG"; then
30987   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
30988 echo "${ECHO_T}$GTK_CONFIG" >&6; }
30989 else
30990   { echo "$as_me:$LINENO: result: no" >&5
30991 echo "${ECHO_T}no" >&6; }
30992 fi
30993
30994
30995   min_gtk_version=1.2.3
30996   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
30997 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
30998   no_gtk=""
30999   if test "$GTK_CONFIG" = "no" ; then
31000     no_gtk=yes
31001   else
31002     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
31003     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
31004     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
31005            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
31006     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
31007            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
31008     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
31009            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
31010     if test "x$enable_gtktest" = "xyes" ; then
31011       ac_save_CFLAGS="$CFLAGS"
31012       ac_save_LIBS="$LIBS"
31013       CFLAGS="$CFLAGS $GTK_CFLAGS"
31014       LIBS="$GTK_LIBS $LIBS"
31015       rm -f conf.gtktest
31016       if test "$cross_compiling" = yes; then
31017   echo $ac_n "cross compiling; assumed OK... $ac_c"
31018 else
31019   cat >conftest.$ac_ext <<_ACEOF
31020 /* confdefs.h.  */
31021 _ACEOF
31022 cat confdefs.h >>conftest.$ac_ext
31023 cat >>conftest.$ac_ext <<_ACEOF
31024 /* end confdefs.h.  */
31025
31026 #include <gtk/gtk.h>
31027 #include <stdio.h>
31028 #include <stdlib.h>
31029
31030 int
31031 main ()
31032 {
31033   int major, minor, micro;
31034   char *tmp_version;
31035
31036   system ("touch conf.gtktest");
31037
31038   /* HP/UX 9 (%@#!) writes to sscanf strings */
31039   tmp_version = g_strdup("$min_gtk_version");
31040   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
31041      printf("%s, bad version string\n", "$min_gtk_version");
31042      exit(1);
31043    }
31044
31045   if ((gtk_major_version != $gtk_config_major_version) ||
31046       (gtk_minor_version != $gtk_config_minor_version) ||
31047       (gtk_micro_version != $gtk_config_micro_version))
31048     {
31049       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
31050              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
31051              gtk_major_version, gtk_minor_version, gtk_micro_version);
31052       printf ("*** was found! If gtk-config was correct, then it is best\n");
31053       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
31054       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
31055       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
31056       printf("*** required on your system.\n");
31057       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
31058       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
31059       printf("*** before re-running configure\n");
31060     }
31061 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
31062   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
31063            (gtk_minor_version != GTK_MINOR_VERSION) ||
31064            (gtk_micro_version != GTK_MICRO_VERSION))
31065     {
31066       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
31067              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
31068       printf("*** library (version %d.%d.%d)\n",
31069              gtk_major_version, gtk_minor_version, gtk_micro_version);
31070     }
31071 #endif /* defined (GTK_MAJOR_VERSION) ... */
31072   else
31073     {
31074       if ((gtk_major_version > major) ||
31075         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
31076         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
31077       {
31078         return 0;
31079        }
31080      else
31081       {
31082         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
31083                gtk_major_version, gtk_minor_version, gtk_micro_version);
31084         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
31085                major, minor, micro);
31086         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
31087         printf("***\n");
31088         printf("*** If you have already installed a sufficiently new version, this error\n");
31089         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
31090         printf("*** being found. The easiest way to fix this is to remove the old version\n");
31091         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
31092         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
31093         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
31094         printf("*** so that the correct libraries are found at run-time))\n");
31095       }
31096     }
31097   return 1;
31098 }
31099
31100 _ACEOF
31101 rm -f conftest$ac_exeext
31102 if { (ac_try="$ac_link"
31103 case "(($ac_try" in
31104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31105   *) ac_try_echo=$ac_try;;
31106 esac
31107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31108   (eval "$ac_link") 2>&5
31109   ac_status=$?
31110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31111   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31112   { (case "(($ac_try" in
31113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31114   *) ac_try_echo=$ac_try;;
31115 esac
31116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31117   (eval "$ac_try") 2>&5
31118   ac_status=$?
31119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31120   (exit $ac_status); }; }; then
31121   :
31122 else
31123   echo "$as_me: program exited with status $ac_status" >&5
31124 echo "$as_me: failed program was:" >&5
31125 sed 's/^/| /' conftest.$ac_ext >&5
31126
31127 ( exit $ac_status )
31128 no_gtk=yes
31129 fi
31130 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31131 fi
31132
31133
31134        CFLAGS="$ac_save_CFLAGS"
31135        LIBS="$ac_save_LIBS"
31136      fi
31137   fi
31138   if test "x$no_gtk" = x ; then
31139      { echo "$as_me:$LINENO: result: yes" >&5
31140 echo "${ECHO_T}yes" >&6; }
31141      wx_cv_lib_gtk=1.2.3
31142   else
31143      { echo "$as_me:$LINENO: result: no" >&5
31144 echo "${ECHO_T}no" >&6; }
31145      if test "$GTK_CONFIG" = "no" ; then
31146        echo "*** The gtk-config script installed by GTK could not be found"
31147        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
31148        echo "*** your path, or set the GTK_CONFIG environment variable to the"
31149        echo "*** full path to gtk-config."
31150      else
31151        if test -f conf.gtktest ; then
31152         :
31153        else
31154           echo "*** Could not run GTK test program, checking why..."
31155           CFLAGS="$CFLAGS $GTK_CFLAGS"
31156           LIBS="$LIBS $GTK_LIBS"
31157           cat >conftest.$ac_ext <<_ACEOF
31158 /* confdefs.h.  */
31159 _ACEOF
31160 cat confdefs.h >>conftest.$ac_ext
31161 cat >>conftest.$ac_ext <<_ACEOF
31162 /* end confdefs.h.  */
31163
31164 #include <gtk/gtk.h>
31165 #include <stdio.h>
31166
31167 int
31168 main ()
31169 {
31170  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
31171   ;
31172   return 0;
31173 }
31174 _ACEOF
31175 rm -f conftest.$ac_objext conftest$ac_exeext
31176 if { (ac_try="$ac_link"
31177 case "(($ac_try" in
31178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31179   *) ac_try_echo=$ac_try;;
31180 esac
31181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31182   (eval "$ac_link") 2>conftest.er1
31183   ac_status=$?
31184   grep -v '^ *+' conftest.er1 >conftest.err
31185   rm -f conftest.er1
31186   cat conftest.err >&5
31187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31188   (exit $ac_status); } && {
31189          test -z "$ac_c_werror_flag" ||
31190          test ! -s conftest.err
31191        } && test -s conftest$ac_exeext &&
31192        $as_test_x conftest$ac_exeext; then
31193    echo "*** The test program compiled, but did not run. This usually means"
31194           echo "*** that the run-time linker is not finding GTK or finding the wrong"
31195           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
31196           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
31197           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
31198           echo "*** is required on your system"
31199           echo "***"
31200           echo "*** If you have an old version installed, it is best to remove it, although"
31201           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
31202           echo "***"
31203           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
31204           echo "*** came with the system with the command"
31205           echo "***"
31206           echo "***    rpm --erase --nodeps gtk gtk-devel"
31207 else
31208   echo "$as_me: failed program was:" >&5
31209 sed 's/^/| /' conftest.$ac_ext >&5
31210
31211          echo "*** The test program failed to compile or link. See the file config.log for the"
31212           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
31213           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
31214           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
31215 fi
31216
31217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31218       conftest$ac_exeext conftest.$ac_ext
31219           CFLAGS="$ac_save_CFLAGS"
31220           LIBS="$ac_save_LIBS"
31221        fi
31222      fi
31223      GTK_CFLAGS=""
31224      GTK_LIBS=""
31225      :
31226   fi
31227
31228
31229   rm -f conf.gtktest
31230
31231                         fi
31232                     fi
31233                 fi
31234
31235                 if test -z "$wx_cv_lib_gtk"; then
31236                                         wx_cv_lib_gtk=none
31237                 else
31238                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
31239                     wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
31240                 fi
31241
31242
31243 fi
31244
31245
31246                         if test "$gtk_version_cached" = 1; then
31247             { echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
31248 echo "${ECHO_T}$wx_cv_lib_gtk" >&6; }
31249         fi
31250
31251         case "$wx_cv_lib_gtk" in
31252             2.0)    WXGTK20=1
31253                     TOOLKIT_VERSION=2
31254                     ;;
31255             1.2.7)  WXGTK127=1
31256                     WXGTK12=1
31257                     ;;
31258             1.2.3)  WXGTK12=1
31259                     ;;
31260             *)      { { echo "$as_me:$LINENO: error:
31261 The development files for GTK+ were not found. For GTK+ 2, please
31262 ensure that pkg-config is in the path and that gtk+-2.0.pc is
31263 installed. For GTK+ 1.2 please check that gtk-config is in the path,
31264 and that the version is 1.2.3 or above. Also check that the
31265 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
31266 --libs' are in the LD_LIBRARY_PATH or equivalent.
31267                             " >&5
31268 echo "$as_me: error:
31269 The development files for GTK+ were not found. For GTK+ 2, please
31270 ensure that pkg-config is in the path and that gtk+-2.0.pc is
31271 installed. For GTK+ 1.2 please check that gtk-config is in the path,
31272 and that the version is 1.2.3 or above. Also check that the
31273 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
31274 --libs' are in the LD_LIBRARY_PATH or equivalent.
31275                             " >&2;}
31276    { (exit 1); exit 1; }; }
31277                     ;;
31278         esac
31279
31280         if test "$WXGTK20" = 1; then
31281             save_CFLAGS="$CFLAGS"
31282             save_LIBS="$LIBS"
31283             CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
31284             LIBS="$LIBS $wx_cv_libs_gtk"
31285
31286                                                             { echo "$as_me:$LINENO: checking whether gtk_icon_size_lookup is declared" >&5
31287 echo $ECHO_N "checking whether gtk_icon_size_lookup is declared... $ECHO_C" >&6; }
31288 if test "${ac_cv_have_decl_gtk_icon_size_lookup+set}" = set; then
31289   echo $ECHO_N "(cached) $ECHO_C" >&6
31290 else
31291   cat >conftest.$ac_ext <<_ACEOF
31292 /* confdefs.h.  */
31293 _ACEOF
31294 cat confdefs.h >>conftest.$ac_ext
31295 cat >>conftest.$ac_ext <<_ACEOF
31296 /* end confdefs.h.  */
31297 #include <gtk/gtk.h>
31298
31299 int
31300 main ()
31301 {
31302 #ifndef gtk_icon_size_lookup
31303   (void) gtk_icon_size_lookup;
31304 #endif
31305
31306   ;
31307   return 0;
31308 }
31309 _ACEOF
31310 rm -f conftest.$ac_objext
31311 if { (ac_try="$ac_compile"
31312 case "(($ac_try" in
31313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31314   *) ac_try_echo=$ac_try;;
31315 esac
31316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31317   (eval "$ac_compile") 2>conftest.er1
31318   ac_status=$?
31319   grep -v '^ *+' conftest.er1 >conftest.err
31320   rm -f conftest.er1
31321   cat conftest.err >&5
31322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31323   (exit $ac_status); } && {
31324          test -z "$ac_c_werror_flag" ||
31325          test ! -s conftest.err
31326        } && test -s conftest.$ac_objext; then
31327   ac_cv_have_decl_gtk_icon_size_lookup=yes
31328 else
31329   echo "$as_me: failed program was:" >&5
31330 sed 's/^/| /' conftest.$ac_ext >&5
31331
31332         ac_cv_have_decl_gtk_icon_size_lookup=no
31333 fi
31334
31335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31336 fi
31337 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_gtk_icon_size_lookup" >&5
31338 echo "${ECHO_T}$ac_cv_have_decl_gtk_icon_size_lookup" >&6; }
31339 if test $ac_cv_have_decl_gtk_icon_size_lookup = yes; then
31340
31341 cat >>confdefs.h <<_ACEOF
31342 #define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 1
31343 _ACEOF
31344
31345
31346 else
31347   cat >>confdefs.h <<_ACEOF
31348 #define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 0
31349 _ACEOF
31350
31351 cat >>confdefs.h <<\_ACEOF
31352 #define NEED_GTK_ICON_SIZE_LOOKUP 1
31353 _ACEOF
31354
31355 fi
31356
31357
31358
31359
31360                         { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.10" >&5
31361 echo $ECHO_N "checking if GTK+ is version >= 2.10... $ECHO_C" >&6; }
31362             cat >conftest.$ac_ext <<_ACEOF
31363 /* confdefs.h.  */
31364 _ACEOF
31365 cat confdefs.h >>conftest.$ac_ext
31366 cat >>conftest.$ac_ext <<_ACEOF
31367 /* end confdefs.h.  */
31368
31369                             #include <gtk/gtk.h>
31370
31371 int
31372 main ()
31373 {
31374
31375                             #if !GTK_CHECK_VERSION(2,10,0)
31376                             Not GTK+ 2.10
31377                             #endif
31378
31379   ;
31380   return 0;
31381 }
31382 _ACEOF
31383 rm -f conftest.$ac_objext
31384 if { (ac_try="$ac_compile"
31385 case "(($ac_try" in
31386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31387   *) ac_try_echo=$ac_try;;
31388 esac
31389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31390   (eval "$ac_compile") 2>conftest.er1
31391   ac_status=$?
31392   grep -v '^ *+' conftest.er1 >conftest.err
31393   rm -f conftest.er1
31394   cat conftest.err >&5
31395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31396   (exit $ac_status); } && {
31397          test -z "$ac_c_werror_flag" ||
31398          test ! -s conftest.err
31399        } && test -s conftest.$ac_objext; then
31400
31401                             cat >>confdefs.h <<\_ACEOF
31402 #define __WXGTK210__ 1
31403 _ACEOF
31404
31405                             cat >>confdefs.h <<\_ACEOF
31406 #define __WXGTK26__ 1
31407 _ACEOF
31408
31409                             cat >>confdefs.h <<\_ACEOF
31410 #define __WXGTK24__ 1
31411 _ACEOF
31412
31413                             { echo "$as_me:$LINENO: result: yes" >&5
31414 echo "${ECHO_T}yes" >&6; }
31415                             ac_wxgtk210=1
31416
31417 else
31418   echo "$as_me: failed program was:" >&5
31419 sed 's/^/| /' conftest.$ac_ext >&5
31420
31421
31422                             { echo "$as_me:$LINENO: result: no" >&5
31423 echo "${ECHO_T}no" >&6; }
31424                             ac_wxgtk210=0
31425
31426 fi
31427
31428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31429
31430             if test "$ac_wxgtk210" = 0; then
31431                                 { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
31432 echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6; }
31433                 cat >conftest.$ac_ext <<_ACEOF
31434 /* confdefs.h.  */
31435 _ACEOF
31436 cat confdefs.h >>conftest.$ac_ext
31437 cat >>conftest.$ac_ext <<_ACEOF
31438 /* end confdefs.h.  */
31439
31440                                 #include <gtk/gtk.h>
31441
31442 int
31443 main ()
31444 {
31445
31446                                 #if !GTK_CHECK_VERSION(2,6,0)
31447                                 Not GTK+ 2.6
31448                                 #endif
31449
31450   ;
31451   return 0;
31452 }
31453 _ACEOF
31454 rm -f conftest.$ac_objext
31455 if { (ac_try="$ac_compile"
31456 case "(($ac_try" in
31457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31458   *) ac_try_echo=$ac_try;;
31459 esac
31460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31461   (eval "$ac_compile") 2>conftest.er1
31462   ac_status=$?
31463   grep -v '^ *+' conftest.er1 >conftest.err
31464   rm -f conftest.er1
31465   cat conftest.err >&5
31466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31467   (exit $ac_status); } && {
31468          test -z "$ac_c_werror_flag" ||
31469          test ! -s conftest.err
31470        } && test -s conftest.$ac_objext; then
31471
31472                                 cat >>confdefs.h <<\_ACEOF
31473 #define __WXGTK26__ 1
31474 _ACEOF
31475
31476                                 cat >>confdefs.h <<\_ACEOF
31477 #define __WXGTK24__ 1
31478 _ACEOF
31479
31480                                 { echo "$as_me:$LINENO: result: yes" >&5
31481 echo "${ECHO_T}yes" >&6; }
31482                                 ac_wxgtk26=1
31483
31484 else
31485   echo "$as_me: failed program was:" >&5
31486 sed 's/^/| /' conftest.$ac_ext >&5
31487
31488
31489                                 { echo "$as_me:$LINENO: result: no" >&5
31490 echo "${ECHO_T}no" >&6; }
31491                                 ac_wxgtk26=0
31492
31493 fi
31494
31495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31496             fi
31497
31498             if test "$ac_wxgtk26" = 0; then
31499                                 { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
31500 echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6; }
31501                 cat >conftest.$ac_ext <<_ACEOF
31502 /* confdefs.h.  */
31503 _ACEOF
31504 cat confdefs.h >>conftest.$ac_ext
31505 cat >>conftest.$ac_ext <<_ACEOF
31506 /* end confdefs.h.  */
31507
31508                                 #include <gtk/gtk.h>
31509
31510 int
31511 main ()
31512 {
31513
31514                                 #if !GTK_CHECK_VERSION(2,4,0)
31515                                 Not GTK+ 2.4
31516                                 #endif
31517
31518   ;
31519   return 0;
31520 }
31521 _ACEOF
31522 rm -f conftest.$ac_objext
31523 if { (ac_try="$ac_compile"
31524 case "(($ac_try" in
31525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31526   *) ac_try_echo=$ac_try;;
31527 esac
31528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31529   (eval "$ac_compile") 2>conftest.er1
31530   ac_status=$?
31531   grep -v '^ *+' conftest.er1 >conftest.err
31532   rm -f conftest.er1
31533   cat conftest.err >&5
31534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31535   (exit $ac_status); } && {
31536          test -z "$ac_c_werror_flag" ||
31537          test ! -s conftest.err
31538        } && test -s conftest.$ac_objext; then
31539
31540                                 cat >>confdefs.h <<\_ACEOF
31541 #define __WXGTK24__ 1
31542 _ACEOF
31543
31544                                 { echo "$as_me:$LINENO: result: yes" >&5
31545 echo "${ECHO_T}yes" >&6; }
31546
31547 else
31548   echo "$as_me: failed program was:" >&5
31549 sed 's/^/| /' conftest.$ac_ext >&5
31550
31551
31552                                 { echo "$as_me:$LINENO: result: no" >&5
31553 echo "${ECHO_T}no" >&6; }
31554
31555 fi
31556
31557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31558             fi
31559
31560             CFLAGS="$save_CFLAGS"
31561             LIBS="$save_LIBS"
31562         else
31563             if test "$wxUSE_UNICODE" = "yes"; then
31564                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
31565 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
31566                 wxUSE_UNICODE=no
31567             fi
31568
31569                         { echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
31570 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6; }
31571 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
31572   echo $ECHO_N "(cached) $ECHO_C" >&6
31573 else
31574   ac_check_lib_save_LIBS=$LIBS
31575 LIBS="-lgdk  $LIBS"
31576 cat >conftest.$ac_ext <<_ACEOF
31577 /* confdefs.h.  */
31578 _ACEOF
31579 cat confdefs.h >>conftest.$ac_ext
31580 cat >>conftest.$ac_ext <<_ACEOF
31581 /* end confdefs.h.  */
31582
31583 /* Override any GCC internal prototype to avoid an error.
31584    Use char because int might match the return type of a GCC
31585    builtin and then its argument prototype would still apply.  */
31586 #ifdef __cplusplus
31587 extern "C"
31588 #endif
31589 char gdk_im_open ();
31590 int
31591 main ()
31592 {
31593 return gdk_im_open ();
31594   ;
31595   return 0;
31596 }
31597 _ACEOF
31598 rm -f conftest.$ac_objext conftest$ac_exeext
31599 if { (ac_try="$ac_link"
31600 case "(($ac_try" in
31601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31602   *) ac_try_echo=$ac_try;;
31603 esac
31604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31605   (eval "$ac_link") 2>conftest.er1
31606   ac_status=$?
31607   grep -v '^ *+' conftest.er1 >conftest.err
31608   rm -f conftest.er1
31609   cat conftest.err >&5
31610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31611   (exit $ac_status); } && {
31612          test -z "$ac_c_werror_flag" ||
31613          test ! -s conftest.err
31614        } && test -s conftest$ac_exeext &&
31615        $as_test_x conftest$ac_exeext; then
31616   ac_cv_lib_gdk_gdk_im_open=yes
31617 else
31618   echo "$as_me: failed program was:" >&5
31619 sed 's/^/| /' conftest.$ac_ext >&5
31620
31621         ac_cv_lib_gdk_gdk_im_open=no
31622 fi
31623
31624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31625       conftest$ac_exeext conftest.$ac_ext
31626 LIBS=$ac_check_lib_save_LIBS
31627 fi
31628 { echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
31629 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6; }
31630 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
31631   cat >>confdefs.h <<\_ACEOF
31632 #define HAVE_XIM 1
31633 _ACEOF
31634
31635 fi
31636
31637
31638                                     if test "$USE_DARWIN" != 1; then
31639
31640 for ac_func in poll
31641 do
31642 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31643 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31644 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31645 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31646   echo $ECHO_N "(cached) $ECHO_C" >&6
31647 else
31648   cat >conftest.$ac_ext <<_ACEOF
31649 /* confdefs.h.  */
31650 _ACEOF
31651 cat confdefs.h >>conftest.$ac_ext
31652 cat >>conftest.$ac_ext <<_ACEOF
31653 /* end confdefs.h.  */
31654 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31655    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31656 #define $ac_func innocuous_$ac_func
31657
31658 /* System header to define __stub macros and hopefully few prototypes,
31659     which can conflict with char $ac_func (); below.
31660     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31661     <limits.h> exists even on freestanding compilers.  */
31662
31663 #ifdef __STDC__
31664 # include <limits.h>
31665 #else
31666 # include <assert.h>
31667 #endif
31668
31669 #undef $ac_func
31670
31671 /* Override any GCC internal prototype to avoid an error.
31672    Use char because int might match the return type of a GCC
31673    builtin and then its argument prototype would still apply.  */
31674 #ifdef __cplusplus
31675 extern "C"
31676 #endif
31677 char $ac_func ();
31678 /* The GNU C library defines this for functions which it implements
31679     to always fail with ENOSYS.  Some functions are actually named
31680     something starting with __ and the normal name is an alias.  */
31681 #if defined __stub_$ac_func || defined __stub___$ac_func
31682 choke me
31683 #endif
31684
31685 int
31686 main ()
31687 {
31688 return $ac_func ();
31689   ;
31690   return 0;
31691 }
31692 _ACEOF
31693 rm -f conftest.$ac_objext conftest$ac_exeext
31694 if { (ac_try="$ac_link"
31695 case "(($ac_try" in
31696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31697   *) ac_try_echo=$ac_try;;
31698 esac
31699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31700   (eval "$ac_link") 2>conftest.er1
31701   ac_status=$?
31702   grep -v '^ *+' conftest.er1 >conftest.err
31703   rm -f conftest.er1
31704   cat conftest.err >&5
31705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31706   (exit $ac_status); } && {
31707          test -z "$ac_c_werror_flag" ||
31708          test ! -s conftest.err
31709        } && test -s conftest$ac_exeext &&
31710        $as_test_x conftest$ac_exeext; then
31711   eval "$as_ac_var=yes"
31712 else
31713   echo "$as_me: failed program was:" >&5
31714 sed 's/^/| /' conftest.$ac_ext >&5
31715
31716         eval "$as_ac_var=no"
31717 fi
31718
31719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31720       conftest$ac_exeext conftest.$ac_ext
31721 fi
31722 ac_res=`eval echo '${'$as_ac_var'}'`
31723                { echo "$as_me:$LINENO: result: $ac_res" >&5
31724 echo "${ECHO_T}$ac_res" >&6; }
31725 if test `eval echo '${'$as_ac_var'}'` = yes; then
31726   cat >>confdefs.h <<_ACEOF
31727 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31728 _ACEOF
31729
31730 fi
31731 done
31732
31733             fi
31734         fi
31735
31736         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
31737         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
31738
31739         AFMINSTALL=afminstall
31740         TOOLKIT=GTK
31741         GUIDIST=GTK_DIST
31742
31743                 if test "$wxUSE_GPE" = "yes"; then
31744             { echo "$as_me:$LINENO: checking for gpewidget library" >&5
31745 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6; }
31746
31747   ac_find_libraries=
31748   for ac_dir in $SEARCH_LIB;
31749   do
31750     for ac_extension in a so sl dylib dll.a; do
31751       if test -f "$ac_dir/libgpewidget.$ac_extension"; then
31752         ac_find_libraries=$ac_dir
31753         break 2
31754       fi
31755     done
31756   done
31757
31758             if test "$ac_find_libraries" != "" ; then
31759
31760     if test "$ac_find_libraries" = "default location"; then
31761     ac_path_to_link=""
31762   else
31763     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31764     result=$?
31765     if test $result = 0; then
31766       ac_path_to_link=""
31767     else
31768       ac_path_to_link=" -L$ac_find_libraries"
31769     fi
31770   fi
31771
31772                                                 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
31773                 WXGPE=1
31774                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31775 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
31776             else
31777                 { echo "$as_me:$LINENO: result: not found" >&5
31778 echo "${ECHO_T}not found" >&6; }
31779             fi
31780
31781                                                                                                                     fi
31782     fi
31783
31784     if test "$wxUSE_MGL" = 1; then
31785        { echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
31786 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6; }
31787         if test "x$MGL_ROOT" = x ; then
31788             { echo "$as_me:$LINENO: result: not found" >&5
31789 echo "${ECHO_T}not found" >&6; }
31790             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
31791 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
31792    { (exit 1); exit 1; }; }
31793         else
31794             { echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
31795 echo "${ECHO_T}$MGL_ROOT" >&6; }
31796         fi
31797
31798         { echo "$as_me:$LINENO: checking for libmgl location" >&5
31799 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6; }
31800                                 case "${host}" in
31801             *-*-linux* )
31802                                           if test "x$wxUSE_SHARED" = xyes ; then
31803                   mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
31804               else
31805                   mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
31806               fi
31807               ;;
31808             *-pc-msdosdjgpp )
31809               mgl_os_candidates="dos32/dj2"
31810               ;;
31811             *)
31812               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
31813 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
31814    { (exit 1); exit 1; }; }
31815         esac
31816
31817         mgl_lib_type=""
31818         mgl_os=""
31819
31820         for mgl_os_i in $mgl_os_candidates ; do
31821             if test "x$mgl_os" = x ; then
31822                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
31823                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
31824                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
31825                         mgl_lib_type=debug
31826                         mgl_os=$mgl_os_i
31827                     fi
31828                 fi
31829                 if test "x$mgl_lib_type" = x ; then
31830                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
31831                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
31832                         mgl_lib_type=release
31833                         mgl_os=$mgl_os_i
31834                     fi
31835                 fi
31836             fi
31837         done
31838
31839         if test "x$mgl_os" = x ; then
31840             { echo "$as_me:$LINENO: result: not found" >&5
31841 echo "${ECHO_T}not found" >&6; }
31842             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
31843 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
31844    { (exit 1); exit 1; }; }
31845         fi
31846         { echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
31847 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6; }
31848
31849         wxUSE_UNIVERSAL="yes"
31850
31851         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
31852         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
31853
31854         AFMINSTALL=afminstall
31855         TOOLKIT=MGL
31856         GUIDIST=MGL_DIST
31857     fi
31858
31859     if test "$wxUSE_DFB" = 1; then
31860
31861
31862 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
31863         if test -n "$ac_tool_prefix"; then
31864   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31865 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31868 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
31869   echo $ECHO_N "(cached) $ECHO_C" >&6
31870 else
31871   case $PKG_CONFIG in
31872   [\\/]* | ?:[\\/]*)
31873   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
31874   ;;
31875   *)
31876   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31877 for as_dir in $PATH
31878 do
31879   IFS=$as_save_IFS
31880   test -z "$as_dir" && as_dir=.
31881   for ac_exec_ext in '' $ac_executable_extensions; do
31882   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31883     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31884     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31885     break 2
31886   fi
31887 done
31888 done
31889 IFS=$as_save_IFS
31890
31891   ;;
31892 esac
31893 fi
31894 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
31895 if test -n "$PKG_CONFIG"; then
31896   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
31897 echo "${ECHO_T}$PKG_CONFIG" >&6; }
31898 else
31899   { echo "$as_me:$LINENO: result: no" >&5
31900 echo "${ECHO_T}no" >&6; }
31901 fi
31902
31903
31904 fi
31905 if test -z "$ac_cv_path_PKG_CONFIG"; then
31906   ac_pt_PKG_CONFIG=$PKG_CONFIG
31907   # Extract the first word of "pkg-config", so it can be a program name with args.
31908 set dummy pkg-config; ac_word=$2
31909 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31911 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
31912   echo $ECHO_N "(cached) $ECHO_C" >&6
31913 else
31914   case $ac_pt_PKG_CONFIG in
31915   [\\/]* | ?:[\\/]*)
31916   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
31917   ;;
31918   *)
31919   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31920 for as_dir in $PATH
31921 do
31922   IFS=$as_save_IFS
31923   test -z "$as_dir" && as_dir=.
31924   for ac_exec_ext in '' $ac_executable_extensions; do
31925   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31926     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31927     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31928     break 2
31929   fi
31930 done
31931 done
31932 IFS=$as_save_IFS
31933
31934   ;;
31935 esac
31936 fi
31937 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
31938 if test -n "$ac_pt_PKG_CONFIG"; then
31939   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
31940 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
31941 else
31942   { echo "$as_me:$LINENO: result: no" >&5
31943 echo "${ECHO_T}no" >&6; }
31944 fi
31945
31946   if test "x$ac_pt_PKG_CONFIG" = x; then
31947     PKG_CONFIG=""
31948   else
31949     case $cross_compiling:$ac_tool_warned in
31950 yes:)
31951 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
31952 whose name does not start with the host triplet.  If you think this
31953 configuration is useful to you, please write to autoconf@gnu.org." >&5
31954 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
31955 whose name does not start with the host triplet.  If you think this
31956 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
31957 ac_tool_warned=yes ;;
31958 esac
31959     PKG_CONFIG=$ac_pt_PKG_CONFIG
31960   fi
31961 else
31962   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
31963 fi
31964
31965 fi
31966 if test -n "$PKG_CONFIG"; then
31967         _pkg_min_version=0.9.0
31968         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
31969 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
31970         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
31971                 { echo "$as_me:$LINENO: result: yes" >&5
31972 echo "${ECHO_T}yes" >&6; }
31973         else
31974                 { echo "$as_me:$LINENO: result: no" >&5
31975 echo "${ECHO_T}no" >&6; }
31976                 PKG_CONFIG=""
31977         fi
31978
31979 fi
31980
31981
31982 pkg_failed=no
31983 { echo "$as_me:$LINENO: checking for DIRECTFB" >&5
31984 echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6; }
31985
31986 if test -n "$PKG_CONFIG"; then
31987     if test -n "$DIRECTFB_CFLAGS"; then
31988         pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
31989     else
31990         if test -n "$PKG_CONFIG" && \
31991     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
31992   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
31993   ac_status=$?
31994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31995   (exit $ac_status); }; then
31996   pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.23" 2>/dev/null`
31997 else
31998   pkg_failed=yes
31999 fi
32000     fi
32001 else
32002         pkg_failed=untried
32003 fi
32004 if test -n "$PKG_CONFIG"; then
32005     if test -n "$DIRECTFB_LIBS"; then
32006         pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
32007     else
32008         if test -n "$PKG_CONFIG" && \
32009     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
32010   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
32011   ac_status=$?
32012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32013   (exit $ac_status); }; then
32014   pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.23" 2>/dev/null`
32015 else
32016   pkg_failed=yes
32017 fi
32018     fi
32019 else
32020         pkg_failed=untried
32021 fi
32022
32023
32024
32025 if test $pkg_failed = yes; then
32026
32027 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32028         _pkg_short_errors_supported=yes
32029 else
32030         _pkg_short_errors_supported=no
32031 fi
32032         if test $_pkg_short_errors_supported = yes; then
32033                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.23"`
32034         else
32035                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.23"`
32036         fi
32037         # Put the nasty error message in config.log where it belongs
32038         echo "$DIRECTFB_PKG_ERRORS" >&5
32039
32040
32041                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
32042 echo "$as_me: error: DirectFB not found." >&2;}
32043    { (exit 1); exit 1; }; }
32044
32045
32046 elif test $pkg_failed = untried; then
32047
32048                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
32049 echo "$as_me: error: DirectFB not found." >&2;}
32050    { (exit 1); exit 1; }; }
32051
32052
32053 else
32054         DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
32055         DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
32056         { echo "$as_me:$LINENO: result: yes" >&5
32057 echo "${ECHO_T}yes" >&6; }
32058
32059                            wxUSE_UNIVERSAL="yes"
32060                            TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
32061                            GUI_TK_LIBRARY="$DIRECTFB_LIBS"
32062                            TOOLKIT=DFB
32063                            GUIDIST=DFB_DIST
32064
32065 fi
32066     fi
32067
32068     if test "$wxUSE_MICROWIN" = 1; then
32069         { echo "$as_me:$LINENO: checking for MicroWindows" >&5
32070 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6; }
32071         if test "x$MICROWINDOWS" = x ; then
32072             { echo "$as_me:$LINENO: result: not found" >&5
32073 echo "${ECHO_T}not found" >&6; }
32074             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
32075 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
32076    { (exit 1); exit 1; }; }
32077         else
32078             { echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
32079 echo "${ECHO_T}$MICROWINDOWS" >&6; }
32080         fi
32081
32082         if test -f $MICROWINDOWS/lib/libmwin.a; then
32083             { echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
32084 echo "${ECHO_T}MicroWindows' libraries found." >&6; }
32085         else
32086             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
32087 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
32088    { (exit 1); exit 1; }; }
32089         fi
32090
32091         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
32092         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
32093
32094         wxUSE_UNIVERSAL="yes"
32095
32096         AFMINSTALL=afminstall
32097         TOOLKIT=MICROWIN
32098         GUIDIST=MICROWIN_DIST
32099
32100         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
32101     fi
32102
32103         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
32104                                 { echo "$as_me:$LINENO: checking for X" >&5
32105 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
32106
32107
32108 # Check whether --with-x was given.
32109 if test "${with_x+set}" = set; then
32110   withval=$with_x;
32111 fi
32112
32113 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
32114 if test "x$with_x" = xno; then
32115   # The user explicitly disabled X.
32116   have_x=disabled
32117 else
32118   case $x_includes,$x_libraries in #(
32119     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
32120 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
32121    { (exit 1); exit 1; }; };; #(
32122     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
32123   echo $ECHO_N "(cached) $ECHO_C" >&6
32124 else
32125   # One or both of the vars are not set, and there is no cached value.
32126 ac_x_includes=no ac_x_libraries=no
32127 rm -f -r conftest.dir
32128 if mkdir conftest.dir; then
32129   cd conftest.dir
32130   cat >Imakefile <<'_ACEOF'
32131 incroot:
32132         @echo incroot='${INCROOT}'
32133 usrlibdir:
32134         @echo usrlibdir='${USRLIBDIR}'
32135 libdir:
32136         @echo libdir='${LIBDIR}'
32137 _ACEOF
32138   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
32139     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
32140     for ac_var in incroot usrlibdir libdir; do
32141       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
32142     done
32143     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
32144     for ac_extension in a so sl; do
32145       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
32146          test -f "$ac_im_libdir/libX11.$ac_extension"; then
32147         ac_im_usrlibdir=$ac_im_libdir; break
32148       fi
32149     done
32150     # Screen out bogus values from the imake configuration.  They are
32151     # bogus both because they are the default anyway, and because
32152     # using them would break gcc on systems where it needs fixed includes.
32153     case $ac_im_incroot in
32154         /usr/include) ac_x_includes= ;;
32155         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
32156     esac
32157     case $ac_im_usrlibdir in
32158         /usr/lib | /lib) ;;
32159         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
32160     esac
32161   fi
32162   cd ..
32163   rm -f -r conftest.dir
32164 fi
32165
32166 # Standard set of common directories for X headers.
32167 # Check X11 before X11Rn because it is often a symlink to the current release.
32168 ac_x_header_dirs='
32169 /usr/X11/include
32170 /usr/X11R6/include
32171 /usr/X11R5/include
32172 /usr/X11R4/include
32173
32174 /usr/include/X11
32175 /usr/include/X11R6
32176 /usr/include/X11R5
32177 /usr/include/X11R4
32178
32179 /usr/local/X11/include
32180 /usr/local/X11R6/include
32181 /usr/local/X11R5/include
32182 /usr/local/X11R4/include
32183
32184 /usr/local/include/X11
32185 /usr/local/include/X11R6
32186 /usr/local/include/X11R5
32187 /usr/local/include/X11R4
32188
32189 /usr/X386/include
32190 /usr/x386/include
32191 /usr/XFree86/include/X11
32192
32193 /usr/include
32194 /usr/local/include
32195 /usr/unsupported/include
32196 /usr/athena/include
32197 /usr/local/x11r5/include
32198 /usr/lpp/Xamples/include
32199
32200 /usr/openwin/include
32201 /usr/openwin/share/include'
32202
32203 if test "$ac_x_includes" = no; then
32204   # Guess where to find include files, by looking for Xlib.h.
32205   # First, try using that file with no special directory specified.
32206   cat >conftest.$ac_ext <<_ACEOF
32207 /* confdefs.h.  */
32208 _ACEOF
32209 cat confdefs.h >>conftest.$ac_ext
32210 cat >>conftest.$ac_ext <<_ACEOF
32211 /* end confdefs.h.  */
32212 #include <X11/Xlib.h>
32213 _ACEOF
32214 if { (ac_try="$ac_cpp conftest.$ac_ext"
32215 case "(($ac_try" in
32216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32217   *) ac_try_echo=$ac_try;;
32218 esac
32219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32220   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32221   ac_status=$?
32222   grep -v '^ *+' conftest.er1 >conftest.err
32223   rm -f conftest.er1
32224   cat conftest.err >&5
32225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32226   (exit $ac_status); } >/dev/null && {
32227          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32228          test ! -s conftest.err
32229        }; then
32230   # We can compile using X headers with no special include directory.
32231 ac_x_includes=
32232 else
32233   echo "$as_me: failed program was:" >&5
32234 sed 's/^/| /' conftest.$ac_ext >&5
32235
32236   for ac_dir in $ac_x_header_dirs; do
32237   if test -r "$ac_dir/X11/Xlib.h"; then
32238     ac_x_includes=$ac_dir
32239     break
32240   fi
32241 done
32242 fi
32243
32244 rm -f conftest.err conftest.$ac_ext
32245 fi # $ac_x_includes = no
32246
32247 if test "$ac_x_libraries" = no; then
32248   # Check for the libraries.
32249   # See if we find them without any special options.
32250   # Don't add to $LIBS permanently.
32251   ac_save_LIBS=$LIBS
32252   LIBS="-lX11 $LIBS"
32253   cat >conftest.$ac_ext <<_ACEOF
32254 /* confdefs.h.  */
32255 _ACEOF
32256 cat confdefs.h >>conftest.$ac_ext
32257 cat >>conftest.$ac_ext <<_ACEOF
32258 /* end confdefs.h.  */
32259 #include <X11/Xlib.h>
32260 int
32261 main ()
32262 {
32263 XrmInitialize ()
32264   ;
32265   return 0;
32266 }
32267 _ACEOF
32268 rm -f conftest.$ac_objext conftest$ac_exeext
32269 if { (ac_try="$ac_link"
32270 case "(($ac_try" in
32271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32272   *) ac_try_echo=$ac_try;;
32273 esac
32274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32275   (eval "$ac_link") 2>conftest.er1
32276   ac_status=$?
32277   grep -v '^ *+' conftest.er1 >conftest.err
32278   rm -f conftest.er1
32279   cat conftest.err >&5
32280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32281   (exit $ac_status); } && {
32282          test -z "$ac_c_werror_flag" ||
32283          test ! -s conftest.err
32284        } && test -s conftest$ac_exeext &&
32285        $as_test_x conftest$ac_exeext; then
32286   LIBS=$ac_save_LIBS
32287 # We can link X programs with no special library path.
32288 ac_x_libraries=
32289 else
32290   echo "$as_me: failed program was:" >&5
32291 sed 's/^/| /' conftest.$ac_ext >&5
32292
32293         LIBS=$ac_save_LIBS
32294 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
32295 do
32296   # Don't even attempt the hair of trying to link an X program!
32297   for ac_extension in a so sl; do
32298     if test -r "$ac_dir/libX11.$ac_extension"; then
32299       ac_x_libraries=$ac_dir
32300       break 2
32301     fi
32302   done
32303 done
32304 fi
32305
32306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32307       conftest$ac_exeext conftest.$ac_ext
32308 fi # $ac_x_libraries = no
32309
32310 case $ac_x_includes,$ac_x_libraries in #(
32311   no,* | *,no | *\'*)
32312     # Didn't find X, or a directory has "'" in its name.
32313     ac_cv_have_x="have_x=no";; #(
32314   *)
32315     # Record where we found X for the cache.
32316     ac_cv_have_x="have_x=yes\
32317         ac_x_includes='$ac_x_includes'\
32318         ac_x_libraries='$ac_x_libraries'"
32319 esac
32320 fi
32321 ;; #(
32322     *) have_x=yes;;
32323   esac
32324   eval "$ac_cv_have_x"
32325 fi # $with_x != no
32326
32327 if test "$have_x" != yes; then
32328   { echo "$as_me:$LINENO: result: $have_x" >&5
32329 echo "${ECHO_T}$have_x" >&6; }
32330   no_x=yes
32331 else
32332   # If each of the values was on the command line, it overrides each guess.
32333   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
32334   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
32335   # Update the cache value to reflect the command line values.
32336   ac_cv_have_x="have_x=yes\
32337         ac_x_includes='$x_includes'\
32338         ac_x_libraries='$x_libraries'"
32339   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
32340 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
32341 fi
32342
32343 if test "$no_x" = yes; then
32344   # Not all programs may use this symbol, but it does not hurt to define it.
32345
32346 cat >>confdefs.h <<\_ACEOF
32347 #define X_DISPLAY_MISSING 1
32348 _ACEOF
32349
32350   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
32351 else
32352   if test -n "$x_includes"; then
32353     X_CFLAGS="$X_CFLAGS -I$x_includes"
32354   fi
32355
32356   # It would also be nice to do this for all -L options, not just this one.
32357   if test -n "$x_libraries"; then
32358     X_LIBS="$X_LIBS -L$x_libraries"
32359     # For Solaris; some versions of Sun CC require a space after -R and
32360     # others require no space.  Words are not sufficient . . . .
32361     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
32362 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
32363     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
32364     ac_xsave_c_werror_flag=$ac_c_werror_flag
32365     ac_c_werror_flag=yes
32366     cat >conftest.$ac_ext <<_ACEOF
32367 /* confdefs.h.  */
32368 _ACEOF
32369 cat confdefs.h >>conftest.$ac_ext
32370 cat >>conftest.$ac_ext <<_ACEOF
32371 /* end confdefs.h.  */
32372
32373 int
32374 main ()
32375 {
32376
32377   ;
32378   return 0;
32379 }
32380 _ACEOF
32381 rm -f conftest.$ac_objext conftest$ac_exeext
32382 if { (ac_try="$ac_link"
32383 case "(($ac_try" in
32384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32385   *) ac_try_echo=$ac_try;;
32386 esac
32387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32388   (eval "$ac_link") 2>conftest.er1
32389   ac_status=$?
32390   grep -v '^ *+' conftest.er1 >conftest.err
32391   rm -f conftest.er1
32392   cat conftest.err >&5
32393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32394   (exit $ac_status); } && {
32395          test -z "$ac_c_werror_flag" ||
32396          test ! -s conftest.err
32397        } && test -s conftest$ac_exeext &&
32398        $as_test_x conftest$ac_exeext; then
32399   { echo "$as_me:$LINENO: result: no" >&5
32400 echo "${ECHO_T}no" >&6; }
32401        X_LIBS="$X_LIBS -R$x_libraries"
32402 else
32403   echo "$as_me: failed program was:" >&5
32404 sed 's/^/| /' conftest.$ac_ext >&5
32405
32406         LIBS="$ac_xsave_LIBS -R $x_libraries"
32407        cat >conftest.$ac_ext <<_ACEOF
32408 /* confdefs.h.  */
32409 _ACEOF
32410 cat confdefs.h >>conftest.$ac_ext
32411 cat >>conftest.$ac_ext <<_ACEOF
32412 /* end confdefs.h.  */
32413
32414 int
32415 main ()
32416 {
32417
32418   ;
32419   return 0;
32420 }
32421 _ACEOF
32422 rm -f conftest.$ac_objext conftest$ac_exeext
32423 if { (ac_try="$ac_link"
32424 case "(($ac_try" in
32425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32426   *) ac_try_echo=$ac_try;;
32427 esac
32428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32429   (eval "$ac_link") 2>conftest.er1
32430   ac_status=$?
32431   grep -v '^ *+' conftest.er1 >conftest.err
32432   rm -f conftest.er1
32433   cat conftest.err >&5
32434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32435   (exit $ac_status); } && {
32436          test -z "$ac_c_werror_flag" ||
32437          test ! -s conftest.err
32438        } && test -s conftest$ac_exeext &&
32439        $as_test_x conftest$ac_exeext; then
32440   { echo "$as_me:$LINENO: result: yes" >&5
32441 echo "${ECHO_T}yes" >&6; }
32442           X_LIBS="$X_LIBS -R $x_libraries"
32443 else
32444   echo "$as_me: failed program was:" >&5
32445 sed 's/^/| /' conftest.$ac_ext >&5
32446
32447         { echo "$as_me:$LINENO: result: neither works" >&5
32448 echo "${ECHO_T}neither works" >&6; }
32449 fi
32450
32451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32452       conftest$ac_exeext conftest.$ac_ext
32453 fi
32454
32455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32456       conftest$ac_exeext conftest.$ac_ext
32457     ac_c_werror_flag=$ac_xsave_c_werror_flag
32458     LIBS=$ac_xsave_LIBS
32459   fi
32460
32461   # Check for system-dependent libraries X programs must link with.
32462   # Do this before checking for the system-independent R6 libraries
32463   # (-lICE), since we may need -lsocket or whatever for X linking.
32464
32465   if test "$ISC" = yes; then
32466     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
32467   else
32468     # Martyn Johnson says this is needed for Ultrix, if the X
32469     # libraries were built with DECnet support.  And Karl Berry says
32470     # the Alpha needs dnet_stub (dnet does not exist).
32471     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
32472     cat >conftest.$ac_ext <<_ACEOF
32473 /* confdefs.h.  */
32474 _ACEOF
32475 cat confdefs.h >>conftest.$ac_ext
32476 cat >>conftest.$ac_ext <<_ACEOF
32477 /* end confdefs.h.  */
32478
32479 /* Override any GCC internal prototype to avoid an error.
32480    Use char because int might match the return type of a GCC
32481    builtin and then its argument prototype would still apply.  */
32482 #ifdef __cplusplus
32483 extern "C"
32484 #endif
32485 char XOpenDisplay ();
32486 int
32487 main ()
32488 {
32489 return XOpenDisplay ();
32490   ;
32491   return 0;
32492 }
32493 _ACEOF
32494 rm -f conftest.$ac_objext conftest$ac_exeext
32495 if { (ac_try="$ac_link"
32496 case "(($ac_try" in
32497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32498   *) ac_try_echo=$ac_try;;
32499 esac
32500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32501   (eval "$ac_link") 2>conftest.er1
32502   ac_status=$?
32503   grep -v '^ *+' conftest.er1 >conftest.err
32504   rm -f conftest.er1
32505   cat conftest.err >&5
32506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32507   (exit $ac_status); } && {
32508          test -z "$ac_c_werror_flag" ||
32509          test ! -s conftest.err
32510        } && test -s conftest$ac_exeext &&
32511        $as_test_x conftest$ac_exeext; then
32512   :
32513 else
32514   echo "$as_me: failed program was:" >&5
32515 sed 's/^/| /' conftest.$ac_ext >&5
32516
32517         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
32518 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
32519 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
32520   echo $ECHO_N "(cached) $ECHO_C" >&6
32521 else
32522   ac_check_lib_save_LIBS=$LIBS
32523 LIBS="-ldnet  $LIBS"
32524 cat >conftest.$ac_ext <<_ACEOF
32525 /* confdefs.h.  */
32526 _ACEOF
32527 cat confdefs.h >>conftest.$ac_ext
32528 cat >>conftest.$ac_ext <<_ACEOF
32529 /* end confdefs.h.  */
32530
32531 /* Override any GCC internal prototype to avoid an error.
32532    Use char because int might match the return type of a GCC
32533    builtin and then its argument prototype would still apply.  */
32534 #ifdef __cplusplus
32535 extern "C"
32536 #endif
32537 char dnet_ntoa ();
32538 int
32539 main ()
32540 {
32541 return dnet_ntoa ();
32542   ;
32543   return 0;
32544 }
32545 _ACEOF
32546 rm -f conftest.$ac_objext conftest$ac_exeext
32547 if { (ac_try="$ac_link"
32548 case "(($ac_try" in
32549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32550   *) ac_try_echo=$ac_try;;
32551 esac
32552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32553   (eval "$ac_link") 2>conftest.er1
32554   ac_status=$?
32555   grep -v '^ *+' conftest.er1 >conftest.err
32556   rm -f conftest.er1
32557   cat conftest.err >&5
32558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32559   (exit $ac_status); } && {
32560          test -z "$ac_c_werror_flag" ||
32561          test ! -s conftest.err
32562        } && test -s conftest$ac_exeext &&
32563        $as_test_x conftest$ac_exeext; then
32564   ac_cv_lib_dnet_dnet_ntoa=yes
32565 else
32566   echo "$as_me: failed program was:" >&5
32567 sed 's/^/| /' conftest.$ac_ext >&5
32568
32569         ac_cv_lib_dnet_dnet_ntoa=no
32570 fi
32571
32572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32573       conftest$ac_exeext conftest.$ac_ext
32574 LIBS=$ac_check_lib_save_LIBS
32575 fi
32576 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
32577 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
32578 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
32579   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
32580 fi
32581
32582     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
32583       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
32584 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
32585 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
32586   echo $ECHO_N "(cached) $ECHO_C" >&6
32587 else
32588   ac_check_lib_save_LIBS=$LIBS
32589 LIBS="-ldnet_stub  $LIBS"
32590 cat >conftest.$ac_ext <<_ACEOF
32591 /* confdefs.h.  */
32592 _ACEOF
32593 cat confdefs.h >>conftest.$ac_ext
32594 cat >>conftest.$ac_ext <<_ACEOF
32595 /* end confdefs.h.  */
32596
32597 /* Override any GCC internal prototype to avoid an error.
32598    Use char because int might match the return type of a GCC
32599    builtin and then its argument prototype would still apply.  */
32600 #ifdef __cplusplus
32601 extern "C"
32602 #endif
32603 char dnet_ntoa ();
32604 int
32605 main ()
32606 {
32607 return dnet_ntoa ();
32608   ;
32609   return 0;
32610 }
32611 _ACEOF
32612 rm -f conftest.$ac_objext conftest$ac_exeext
32613 if { (ac_try="$ac_link"
32614 case "(($ac_try" in
32615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32616   *) ac_try_echo=$ac_try;;
32617 esac
32618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32619   (eval "$ac_link") 2>conftest.er1
32620   ac_status=$?
32621   grep -v '^ *+' conftest.er1 >conftest.err
32622   rm -f conftest.er1
32623   cat conftest.err >&5
32624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32625   (exit $ac_status); } && {
32626          test -z "$ac_c_werror_flag" ||
32627          test ! -s conftest.err
32628        } && test -s conftest$ac_exeext &&
32629        $as_test_x conftest$ac_exeext; then
32630   ac_cv_lib_dnet_stub_dnet_ntoa=yes
32631 else
32632   echo "$as_me: failed program was:" >&5
32633 sed 's/^/| /' conftest.$ac_ext >&5
32634
32635         ac_cv_lib_dnet_stub_dnet_ntoa=no
32636 fi
32637
32638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32639       conftest$ac_exeext conftest.$ac_ext
32640 LIBS=$ac_check_lib_save_LIBS
32641 fi
32642 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
32643 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
32644 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
32645   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
32646 fi
32647
32648     fi
32649 fi
32650
32651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32652       conftest$ac_exeext conftest.$ac_ext
32653     LIBS="$ac_xsave_LIBS"
32654
32655     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
32656     # to get the SysV transport functions.
32657     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
32658     # needs -lnsl.
32659     # The nsl library prevents programs from opening the X display
32660     # on Irix 5.2, according to T.E. Dickey.
32661     # The functions gethostbyname, getservbyname, and inet_addr are
32662     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
32663     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
32664 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
32665 if test "${ac_cv_func_gethostbyname+set}" = set; then
32666   echo $ECHO_N "(cached) $ECHO_C" >&6
32667 else
32668   cat >conftest.$ac_ext <<_ACEOF
32669 /* confdefs.h.  */
32670 _ACEOF
32671 cat confdefs.h >>conftest.$ac_ext
32672 cat >>conftest.$ac_ext <<_ACEOF
32673 /* end confdefs.h.  */
32674 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
32675    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32676 #define gethostbyname innocuous_gethostbyname
32677
32678 /* System header to define __stub macros and hopefully few prototypes,
32679     which can conflict with char gethostbyname (); below.
32680     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32681     <limits.h> exists even on freestanding compilers.  */
32682
32683 #ifdef __STDC__
32684 # include <limits.h>
32685 #else
32686 # include <assert.h>
32687 #endif
32688
32689 #undef gethostbyname
32690
32691 /* Override any GCC internal prototype to avoid an error.
32692    Use char because int might match the return type of a GCC
32693    builtin and then its argument prototype would still apply.  */
32694 #ifdef __cplusplus
32695 extern "C"
32696 #endif
32697 char gethostbyname ();
32698 /* The GNU C library defines this for functions which it implements
32699     to always fail with ENOSYS.  Some functions are actually named
32700     something starting with __ and the normal name is an alias.  */
32701 #if defined __stub_gethostbyname || defined __stub___gethostbyname
32702 choke me
32703 #endif
32704
32705 int
32706 main ()
32707 {
32708 return gethostbyname ();
32709   ;
32710   return 0;
32711 }
32712 _ACEOF
32713 rm -f conftest.$ac_objext conftest$ac_exeext
32714 if { (ac_try="$ac_link"
32715 case "(($ac_try" in
32716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32717   *) ac_try_echo=$ac_try;;
32718 esac
32719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32720   (eval "$ac_link") 2>conftest.er1
32721   ac_status=$?
32722   grep -v '^ *+' conftest.er1 >conftest.err
32723   rm -f conftest.er1
32724   cat conftest.err >&5
32725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32726   (exit $ac_status); } && {
32727          test -z "$ac_c_werror_flag" ||
32728          test ! -s conftest.err
32729        } && test -s conftest$ac_exeext &&
32730        $as_test_x conftest$ac_exeext; then
32731   ac_cv_func_gethostbyname=yes
32732 else
32733   echo "$as_me: failed program was:" >&5
32734 sed 's/^/| /' conftest.$ac_ext >&5
32735
32736         ac_cv_func_gethostbyname=no
32737 fi
32738
32739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32740       conftest$ac_exeext conftest.$ac_ext
32741 fi
32742 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
32743 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
32744
32745     if test $ac_cv_func_gethostbyname = no; then
32746       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
32747 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
32748 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
32749   echo $ECHO_N "(cached) $ECHO_C" >&6
32750 else
32751   ac_check_lib_save_LIBS=$LIBS
32752 LIBS="-lnsl  $LIBS"
32753 cat >conftest.$ac_ext <<_ACEOF
32754 /* confdefs.h.  */
32755 _ACEOF
32756 cat confdefs.h >>conftest.$ac_ext
32757 cat >>conftest.$ac_ext <<_ACEOF
32758 /* end confdefs.h.  */
32759
32760 /* Override any GCC internal prototype to avoid an error.
32761    Use char because int might match the return type of a GCC
32762    builtin and then its argument prototype would still apply.  */
32763 #ifdef __cplusplus
32764 extern "C"
32765 #endif
32766 char gethostbyname ();
32767 int
32768 main ()
32769 {
32770 return gethostbyname ();
32771   ;
32772   return 0;
32773 }
32774 _ACEOF
32775 rm -f conftest.$ac_objext conftest$ac_exeext
32776 if { (ac_try="$ac_link"
32777 case "(($ac_try" in
32778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32779   *) ac_try_echo=$ac_try;;
32780 esac
32781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32782   (eval "$ac_link") 2>conftest.er1
32783   ac_status=$?
32784   grep -v '^ *+' conftest.er1 >conftest.err
32785   rm -f conftest.er1
32786   cat conftest.err >&5
32787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32788   (exit $ac_status); } && {
32789          test -z "$ac_c_werror_flag" ||
32790          test ! -s conftest.err
32791        } && test -s conftest$ac_exeext &&
32792        $as_test_x conftest$ac_exeext; then
32793   ac_cv_lib_nsl_gethostbyname=yes
32794 else
32795   echo "$as_me: failed program was:" >&5
32796 sed 's/^/| /' conftest.$ac_ext >&5
32797
32798         ac_cv_lib_nsl_gethostbyname=no
32799 fi
32800
32801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32802       conftest$ac_exeext conftest.$ac_ext
32803 LIBS=$ac_check_lib_save_LIBS
32804 fi
32805 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
32806 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
32807 if test $ac_cv_lib_nsl_gethostbyname = yes; then
32808   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
32809 fi
32810
32811       if test $ac_cv_lib_nsl_gethostbyname = no; then
32812         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
32813 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
32814 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
32815   echo $ECHO_N "(cached) $ECHO_C" >&6
32816 else
32817   ac_check_lib_save_LIBS=$LIBS
32818 LIBS="-lbsd  $LIBS"
32819 cat >conftest.$ac_ext <<_ACEOF
32820 /* confdefs.h.  */
32821 _ACEOF
32822 cat confdefs.h >>conftest.$ac_ext
32823 cat >>conftest.$ac_ext <<_ACEOF
32824 /* end confdefs.h.  */
32825
32826 /* Override any GCC internal prototype to avoid an error.
32827    Use char because int might match the return type of a GCC
32828    builtin and then its argument prototype would still apply.  */
32829 #ifdef __cplusplus
32830 extern "C"
32831 #endif
32832 char gethostbyname ();
32833 int
32834 main ()
32835 {
32836 return gethostbyname ();
32837   ;
32838   return 0;
32839 }
32840 _ACEOF
32841 rm -f conftest.$ac_objext conftest$ac_exeext
32842 if { (ac_try="$ac_link"
32843 case "(($ac_try" in
32844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32845   *) ac_try_echo=$ac_try;;
32846 esac
32847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32848   (eval "$ac_link") 2>conftest.er1
32849   ac_status=$?
32850   grep -v '^ *+' conftest.er1 >conftest.err
32851   rm -f conftest.er1
32852   cat conftest.err >&5
32853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32854   (exit $ac_status); } && {
32855          test -z "$ac_c_werror_flag" ||
32856          test ! -s conftest.err
32857        } && test -s conftest$ac_exeext &&
32858        $as_test_x conftest$ac_exeext; then
32859   ac_cv_lib_bsd_gethostbyname=yes
32860 else
32861   echo "$as_me: failed program was:" >&5
32862 sed 's/^/| /' conftest.$ac_ext >&5
32863
32864         ac_cv_lib_bsd_gethostbyname=no
32865 fi
32866
32867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32868       conftest$ac_exeext conftest.$ac_ext
32869 LIBS=$ac_check_lib_save_LIBS
32870 fi
32871 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
32872 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
32873 if test $ac_cv_lib_bsd_gethostbyname = yes; then
32874   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
32875 fi
32876
32877       fi
32878     fi
32879
32880     # lieder@skyler.mavd.honeywell.com says without -lsocket,
32881     # socket/setsockopt and other routines are undefined under SCO ODT
32882     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
32883     # on later versions), says Simon Leinen: it contains gethostby*
32884     # variants that don't use the name server (or something).  -lsocket
32885     # must be given before -lnsl if both are needed.  We assume that
32886     # if connect needs -lnsl, so does gethostbyname.
32887     { echo "$as_me:$LINENO: checking for connect" >&5
32888 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
32889 if test "${ac_cv_func_connect+set}" = set; then
32890   echo $ECHO_N "(cached) $ECHO_C" >&6
32891 else
32892   cat >conftest.$ac_ext <<_ACEOF
32893 /* confdefs.h.  */
32894 _ACEOF
32895 cat confdefs.h >>conftest.$ac_ext
32896 cat >>conftest.$ac_ext <<_ACEOF
32897 /* end confdefs.h.  */
32898 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
32899    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32900 #define connect innocuous_connect
32901
32902 /* System header to define __stub macros and hopefully few prototypes,
32903     which can conflict with char connect (); below.
32904     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32905     <limits.h> exists even on freestanding compilers.  */
32906
32907 #ifdef __STDC__
32908 # include <limits.h>
32909 #else
32910 # include <assert.h>
32911 #endif
32912
32913 #undef connect
32914
32915 /* Override any GCC internal prototype to avoid an error.
32916    Use char because int might match the return type of a GCC
32917    builtin and then its argument prototype would still apply.  */
32918 #ifdef __cplusplus
32919 extern "C"
32920 #endif
32921 char connect ();
32922 /* The GNU C library defines this for functions which it implements
32923     to always fail with ENOSYS.  Some functions are actually named
32924     something starting with __ and the normal name is an alias.  */
32925 #if defined __stub_connect || defined __stub___connect
32926 choke me
32927 #endif
32928
32929 int
32930 main ()
32931 {
32932 return connect ();
32933   ;
32934   return 0;
32935 }
32936 _ACEOF
32937 rm -f conftest.$ac_objext conftest$ac_exeext
32938 if { (ac_try="$ac_link"
32939 case "(($ac_try" in
32940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32941   *) ac_try_echo=$ac_try;;
32942 esac
32943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32944   (eval "$ac_link") 2>conftest.er1
32945   ac_status=$?
32946   grep -v '^ *+' conftest.er1 >conftest.err
32947   rm -f conftest.er1
32948   cat conftest.err >&5
32949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32950   (exit $ac_status); } && {
32951          test -z "$ac_c_werror_flag" ||
32952          test ! -s conftest.err
32953        } && test -s conftest$ac_exeext &&
32954        $as_test_x conftest$ac_exeext; then
32955   ac_cv_func_connect=yes
32956 else
32957   echo "$as_me: failed program was:" >&5
32958 sed 's/^/| /' conftest.$ac_ext >&5
32959
32960         ac_cv_func_connect=no
32961 fi
32962
32963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32964       conftest$ac_exeext conftest.$ac_ext
32965 fi
32966 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
32967 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
32968
32969     if test $ac_cv_func_connect = no; then
32970       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
32971 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
32972 if test "${ac_cv_lib_socket_connect+set}" = set; then
32973   echo $ECHO_N "(cached) $ECHO_C" >&6
32974 else
32975   ac_check_lib_save_LIBS=$LIBS
32976 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
32977 cat >conftest.$ac_ext <<_ACEOF
32978 /* confdefs.h.  */
32979 _ACEOF
32980 cat confdefs.h >>conftest.$ac_ext
32981 cat >>conftest.$ac_ext <<_ACEOF
32982 /* end confdefs.h.  */
32983
32984 /* Override any GCC internal prototype to avoid an error.
32985    Use char because int might match the return type of a GCC
32986    builtin and then its argument prototype would still apply.  */
32987 #ifdef __cplusplus
32988 extern "C"
32989 #endif
32990 char connect ();
32991 int
32992 main ()
32993 {
32994 return connect ();
32995   ;
32996   return 0;
32997 }
32998 _ACEOF
32999 rm -f conftest.$ac_objext conftest$ac_exeext
33000 if { (ac_try="$ac_link"
33001 case "(($ac_try" in
33002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33003   *) ac_try_echo=$ac_try;;
33004 esac
33005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33006   (eval "$ac_link") 2>conftest.er1
33007   ac_status=$?
33008   grep -v '^ *+' conftest.er1 >conftest.err
33009   rm -f conftest.er1
33010   cat conftest.err >&5
33011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33012   (exit $ac_status); } && {
33013          test -z "$ac_c_werror_flag" ||
33014          test ! -s conftest.err
33015        } && test -s conftest$ac_exeext &&
33016        $as_test_x conftest$ac_exeext; then
33017   ac_cv_lib_socket_connect=yes
33018 else
33019   echo "$as_me: failed program was:" >&5
33020 sed 's/^/| /' conftest.$ac_ext >&5
33021
33022         ac_cv_lib_socket_connect=no
33023 fi
33024
33025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33026       conftest$ac_exeext conftest.$ac_ext
33027 LIBS=$ac_check_lib_save_LIBS
33028 fi
33029 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
33030 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
33031 if test $ac_cv_lib_socket_connect = yes; then
33032   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
33033 fi
33034
33035     fi
33036
33037     # Guillermo Gomez says -lposix is necessary on A/UX.
33038     { echo "$as_me:$LINENO: checking for remove" >&5
33039 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
33040 if test "${ac_cv_func_remove+set}" = set; then
33041   echo $ECHO_N "(cached) $ECHO_C" >&6
33042 else
33043   cat >conftest.$ac_ext <<_ACEOF
33044 /* confdefs.h.  */
33045 _ACEOF
33046 cat confdefs.h >>conftest.$ac_ext
33047 cat >>conftest.$ac_ext <<_ACEOF
33048 /* end confdefs.h.  */
33049 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
33050    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33051 #define remove innocuous_remove
33052
33053 /* System header to define __stub macros and hopefully few prototypes,
33054     which can conflict with char remove (); below.
33055     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33056     <limits.h> exists even on freestanding compilers.  */
33057
33058 #ifdef __STDC__
33059 # include <limits.h>
33060 #else
33061 # include <assert.h>
33062 #endif
33063
33064 #undef remove
33065
33066 /* Override any GCC internal prototype to avoid an error.
33067    Use char because int might match the return type of a GCC
33068    builtin and then its argument prototype would still apply.  */
33069 #ifdef __cplusplus
33070 extern "C"
33071 #endif
33072 char remove ();
33073 /* The GNU C library defines this for functions which it implements
33074     to always fail with ENOSYS.  Some functions are actually named
33075     something starting with __ and the normal name is an alias.  */
33076 #if defined __stub_remove || defined __stub___remove
33077 choke me
33078 #endif
33079
33080 int
33081 main ()
33082 {
33083 return remove ();
33084   ;
33085   return 0;
33086 }
33087 _ACEOF
33088 rm -f conftest.$ac_objext conftest$ac_exeext
33089 if { (ac_try="$ac_link"
33090 case "(($ac_try" in
33091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33092   *) ac_try_echo=$ac_try;;
33093 esac
33094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33095   (eval "$ac_link") 2>conftest.er1
33096   ac_status=$?
33097   grep -v '^ *+' conftest.er1 >conftest.err
33098   rm -f conftest.er1
33099   cat conftest.err >&5
33100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33101   (exit $ac_status); } && {
33102          test -z "$ac_c_werror_flag" ||
33103          test ! -s conftest.err
33104        } && test -s conftest$ac_exeext &&
33105        $as_test_x conftest$ac_exeext; then
33106   ac_cv_func_remove=yes
33107 else
33108   echo "$as_me: failed program was:" >&5
33109 sed 's/^/| /' conftest.$ac_ext >&5
33110
33111         ac_cv_func_remove=no
33112 fi
33113
33114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33115       conftest$ac_exeext conftest.$ac_ext
33116 fi
33117 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
33118 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
33119
33120     if test $ac_cv_func_remove = no; then
33121       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
33122 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
33123 if test "${ac_cv_lib_posix_remove+set}" = set; then
33124   echo $ECHO_N "(cached) $ECHO_C" >&6
33125 else
33126   ac_check_lib_save_LIBS=$LIBS
33127 LIBS="-lposix  $LIBS"
33128 cat >conftest.$ac_ext <<_ACEOF
33129 /* confdefs.h.  */
33130 _ACEOF
33131 cat confdefs.h >>conftest.$ac_ext
33132 cat >>conftest.$ac_ext <<_ACEOF
33133 /* end confdefs.h.  */
33134
33135 /* Override any GCC internal prototype to avoid an error.
33136    Use char because int might match the return type of a GCC
33137    builtin and then its argument prototype would still apply.  */
33138 #ifdef __cplusplus
33139 extern "C"
33140 #endif
33141 char remove ();
33142 int
33143 main ()
33144 {
33145 return remove ();
33146   ;
33147   return 0;
33148 }
33149 _ACEOF
33150 rm -f conftest.$ac_objext conftest$ac_exeext
33151 if { (ac_try="$ac_link"
33152 case "(($ac_try" in
33153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33154   *) ac_try_echo=$ac_try;;
33155 esac
33156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33157   (eval "$ac_link") 2>conftest.er1
33158   ac_status=$?
33159   grep -v '^ *+' conftest.er1 >conftest.err
33160   rm -f conftest.er1
33161   cat conftest.err >&5
33162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33163   (exit $ac_status); } && {
33164          test -z "$ac_c_werror_flag" ||
33165          test ! -s conftest.err
33166        } && test -s conftest$ac_exeext &&
33167        $as_test_x conftest$ac_exeext; then
33168   ac_cv_lib_posix_remove=yes
33169 else
33170   echo "$as_me: failed program was:" >&5
33171 sed 's/^/| /' conftest.$ac_ext >&5
33172
33173         ac_cv_lib_posix_remove=no
33174 fi
33175
33176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33177       conftest$ac_exeext conftest.$ac_ext
33178 LIBS=$ac_check_lib_save_LIBS
33179 fi
33180 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
33181 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
33182 if test $ac_cv_lib_posix_remove = yes; then
33183   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
33184 fi
33185
33186     fi
33187
33188     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
33189     { echo "$as_me:$LINENO: checking for shmat" >&5
33190 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
33191 if test "${ac_cv_func_shmat+set}" = set; then
33192   echo $ECHO_N "(cached) $ECHO_C" >&6
33193 else
33194   cat >conftest.$ac_ext <<_ACEOF
33195 /* confdefs.h.  */
33196 _ACEOF
33197 cat confdefs.h >>conftest.$ac_ext
33198 cat >>conftest.$ac_ext <<_ACEOF
33199 /* end confdefs.h.  */
33200 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
33201    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33202 #define shmat innocuous_shmat
33203
33204 /* System header to define __stub macros and hopefully few prototypes,
33205     which can conflict with char shmat (); below.
33206     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33207     <limits.h> exists even on freestanding compilers.  */
33208
33209 #ifdef __STDC__
33210 # include <limits.h>
33211 #else
33212 # include <assert.h>
33213 #endif
33214
33215 #undef shmat
33216
33217 /* Override any GCC internal prototype to avoid an error.
33218    Use char because int might match the return type of a GCC
33219    builtin and then its argument prototype would still apply.  */
33220 #ifdef __cplusplus
33221 extern "C"
33222 #endif
33223 char shmat ();
33224 /* The GNU C library defines this for functions which it implements
33225     to always fail with ENOSYS.  Some functions are actually named
33226     something starting with __ and the normal name is an alias.  */
33227 #if defined __stub_shmat || defined __stub___shmat
33228 choke me
33229 #endif
33230
33231 int
33232 main ()
33233 {
33234 return shmat ();
33235   ;
33236   return 0;
33237 }
33238 _ACEOF
33239 rm -f conftest.$ac_objext conftest$ac_exeext
33240 if { (ac_try="$ac_link"
33241 case "(($ac_try" in
33242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33243   *) ac_try_echo=$ac_try;;
33244 esac
33245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33246   (eval "$ac_link") 2>conftest.er1
33247   ac_status=$?
33248   grep -v '^ *+' conftest.er1 >conftest.err
33249   rm -f conftest.er1
33250   cat conftest.err >&5
33251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33252   (exit $ac_status); } && {
33253          test -z "$ac_c_werror_flag" ||
33254          test ! -s conftest.err
33255        } && test -s conftest$ac_exeext &&
33256        $as_test_x conftest$ac_exeext; then
33257   ac_cv_func_shmat=yes
33258 else
33259   echo "$as_me: failed program was:" >&5
33260 sed 's/^/| /' conftest.$ac_ext >&5
33261
33262         ac_cv_func_shmat=no
33263 fi
33264
33265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33266       conftest$ac_exeext conftest.$ac_ext
33267 fi
33268 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
33269 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
33270
33271     if test $ac_cv_func_shmat = no; then
33272       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
33273 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
33274 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
33275   echo $ECHO_N "(cached) $ECHO_C" >&6
33276 else
33277   ac_check_lib_save_LIBS=$LIBS
33278 LIBS="-lipc  $LIBS"
33279 cat >conftest.$ac_ext <<_ACEOF
33280 /* confdefs.h.  */
33281 _ACEOF
33282 cat confdefs.h >>conftest.$ac_ext
33283 cat >>conftest.$ac_ext <<_ACEOF
33284 /* end confdefs.h.  */
33285
33286 /* Override any GCC internal prototype to avoid an error.
33287    Use char because int might match the return type of a GCC
33288    builtin and then its argument prototype would still apply.  */
33289 #ifdef __cplusplus
33290 extern "C"
33291 #endif
33292 char shmat ();
33293 int
33294 main ()
33295 {
33296 return shmat ();
33297   ;
33298   return 0;
33299 }
33300 _ACEOF
33301 rm -f conftest.$ac_objext conftest$ac_exeext
33302 if { (ac_try="$ac_link"
33303 case "(($ac_try" in
33304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33305   *) ac_try_echo=$ac_try;;
33306 esac
33307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33308   (eval "$ac_link") 2>conftest.er1
33309   ac_status=$?
33310   grep -v '^ *+' conftest.er1 >conftest.err
33311   rm -f conftest.er1
33312   cat conftest.err >&5
33313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33314   (exit $ac_status); } && {
33315          test -z "$ac_c_werror_flag" ||
33316          test ! -s conftest.err
33317        } && test -s conftest$ac_exeext &&
33318        $as_test_x conftest$ac_exeext; then
33319   ac_cv_lib_ipc_shmat=yes
33320 else
33321   echo "$as_me: failed program was:" >&5
33322 sed 's/^/| /' conftest.$ac_ext >&5
33323
33324         ac_cv_lib_ipc_shmat=no
33325 fi
33326
33327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33328       conftest$ac_exeext conftest.$ac_ext
33329 LIBS=$ac_check_lib_save_LIBS
33330 fi
33331 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
33332 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
33333 if test $ac_cv_lib_ipc_shmat = yes; then
33334   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
33335 fi
33336
33337     fi
33338   fi
33339
33340   # Check for libraries that X11R6 Xt/Xaw programs need.
33341   ac_save_LDFLAGS=$LDFLAGS
33342   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
33343   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
33344   # check for ICE first), but we must link in the order -lSM -lICE or
33345   # we get undefined symbols.  So assume we have SM if we have ICE.
33346   # These have to be linked with before -lX11, unlike the other
33347   # libraries we check for below, so use a different variable.
33348   # John Interrante, Karl Berry
33349   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
33350 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
33351 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
33352   echo $ECHO_N "(cached) $ECHO_C" >&6
33353 else
33354   ac_check_lib_save_LIBS=$LIBS
33355 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
33356 cat >conftest.$ac_ext <<_ACEOF
33357 /* confdefs.h.  */
33358 _ACEOF
33359 cat confdefs.h >>conftest.$ac_ext
33360 cat >>conftest.$ac_ext <<_ACEOF
33361 /* end confdefs.h.  */
33362
33363 /* Override any GCC internal prototype to avoid an error.
33364    Use char because int might match the return type of a GCC
33365    builtin and then its argument prototype would still apply.  */
33366 #ifdef __cplusplus
33367 extern "C"
33368 #endif
33369 char IceConnectionNumber ();
33370 int
33371 main ()
33372 {
33373 return IceConnectionNumber ();
33374   ;
33375   return 0;
33376 }
33377 _ACEOF
33378 rm -f conftest.$ac_objext conftest$ac_exeext
33379 if { (ac_try="$ac_link"
33380 case "(($ac_try" in
33381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33382   *) ac_try_echo=$ac_try;;
33383 esac
33384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33385   (eval "$ac_link") 2>conftest.er1
33386   ac_status=$?
33387   grep -v '^ *+' conftest.er1 >conftest.err
33388   rm -f conftest.er1
33389   cat conftest.err >&5
33390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33391   (exit $ac_status); } && {
33392          test -z "$ac_c_werror_flag" ||
33393          test ! -s conftest.err
33394        } && test -s conftest$ac_exeext &&
33395        $as_test_x conftest$ac_exeext; then
33396   ac_cv_lib_ICE_IceConnectionNumber=yes
33397 else
33398   echo "$as_me: failed program was:" >&5
33399 sed 's/^/| /' conftest.$ac_ext >&5
33400
33401         ac_cv_lib_ICE_IceConnectionNumber=no
33402 fi
33403
33404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33405       conftest$ac_exeext conftest.$ac_ext
33406 LIBS=$ac_check_lib_save_LIBS
33407 fi
33408 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
33409 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
33410 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
33411   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
33412 fi
33413
33414   LDFLAGS=$ac_save_LDFLAGS
33415
33416 fi
33417
33418
33419         if test "$no_x" = "yes"; then
33420           { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
33421 echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
33422    { (exit 1); exit 1; }; }
33423         fi
33424
33425                                 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
33426         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
33427         AFMINSTALL=afminstall
33428         COMPILED_X_PROGRAM=0
33429
33430     fi
33431
33432     if test "$wxUSE_X11" = 1; then
33433         if test "$wxUSE_NANOX" = "yes"; then
33434             { echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
33435 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6; }
33436             if test "x$MICROWIN" = x ; then
33437                 { echo "$as_me:$LINENO: result: not found" >&5
33438 echo "${ECHO_T}not found" >&6; }
33439                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
33440 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
33441    { (exit 1); exit 1; }; }
33442             else
33443                 { echo "$as_me:$LINENO: result: $MICROWIN" >&5
33444 echo "${ECHO_T}$MICROWIN" >&6; }
33445                 cat >>confdefs.h <<\_ACEOF
33446 #define wxUSE_NANOX 1
33447 _ACEOF
33448
33449             fi
33450         fi
33451
33452         if test "$wxUSE_UNICODE" = "yes"; then
33453
33454
33455 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
33456         if test -n "$ac_tool_prefix"; then
33457   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
33458 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
33459 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33461 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
33462   echo $ECHO_N "(cached) $ECHO_C" >&6
33463 else
33464   case $PKG_CONFIG in
33465   [\\/]* | ?:[\\/]*)
33466   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
33467   ;;
33468   *)
33469   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33470 for as_dir in $PATH
33471 do
33472   IFS=$as_save_IFS
33473   test -z "$as_dir" && as_dir=.
33474   for ac_exec_ext in '' $ac_executable_extensions; do
33475   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33476     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33477     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33478     break 2
33479   fi
33480 done
33481 done
33482 IFS=$as_save_IFS
33483
33484   ;;
33485 esac
33486 fi
33487 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
33488 if test -n "$PKG_CONFIG"; then
33489   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
33490 echo "${ECHO_T}$PKG_CONFIG" >&6; }
33491 else
33492   { echo "$as_me:$LINENO: result: no" >&5
33493 echo "${ECHO_T}no" >&6; }
33494 fi
33495
33496
33497 fi
33498 if test -z "$ac_cv_path_PKG_CONFIG"; then
33499   ac_pt_PKG_CONFIG=$PKG_CONFIG
33500   # Extract the first word of "pkg-config", so it can be a program name with args.
33501 set dummy pkg-config; ac_word=$2
33502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33504 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
33505   echo $ECHO_N "(cached) $ECHO_C" >&6
33506 else
33507   case $ac_pt_PKG_CONFIG in
33508   [\\/]* | ?:[\\/]*)
33509   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
33510   ;;
33511   *)
33512   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33513 for as_dir in $PATH
33514 do
33515   IFS=$as_save_IFS
33516   test -z "$as_dir" && as_dir=.
33517   for ac_exec_ext in '' $ac_executable_extensions; do
33518   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33519     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33520     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33521     break 2
33522   fi
33523 done
33524 done
33525 IFS=$as_save_IFS
33526
33527   ;;
33528 esac
33529 fi
33530 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
33531 if test -n "$ac_pt_PKG_CONFIG"; then
33532   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
33533 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
33534 else
33535   { echo "$as_me:$LINENO: result: no" >&5
33536 echo "${ECHO_T}no" >&6; }
33537 fi
33538
33539   if test "x$ac_pt_PKG_CONFIG" = x; then
33540     PKG_CONFIG=""
33541   else
33542     case $cross_compiling:$ac_tool_warned in
33543 yes:)
33544 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
33545 whose name does not start with the host triplet.  If you think this
33546 configuration is useful to you, please write to autoconf@gnu.org." >&5
33547 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
33548 whose name does not start with the host triplet.  If you think this
33549 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
33550 ac_tool_warned=yes ;;
33551 esac
33552     PKG_CONFIG=$ac_pt_PKG_CONFIG
33553   fi
33554 else
33555   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
33556 fi
33557
33558 fi
33559 if test -n "$PKG_CONFIG"; then
33560         _pkg_min_version=0.9.0
33561         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
33562 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
33563         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
33564                 { echo "$as_me:$LINENO: result: yes" >&5
33565 echo "${ECHO_T}yes" >&6; }
33566         else
33567                 { echo "$as_me:$LINENO: result: no" >&5
33568 echo "${ECHO_T}no" >&6; }
33569                 PKG_CONFIG=""
33570         fi
33571
33572 fi
33573
33574
33575 pkg_failed=no
33576 { echo "$as_me:$LINENO: checking for PANGOX" >&5
33577 echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6; }
33578
33579 if test -n "$PKG_CONFIG"; then
33580     if test -n "$PANGOX_CFLAGS"; then
33581         pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
33582     else
33583         if test -n "$PKG_CONFIG" && \
33584     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
33585   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
33586   ac_status=$?
33587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33588   (exit $ac_status); }; then
33589   pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
33590 else
33591   pkg_failed=yes
33592 fi
33593     fi
33594 else
33595         pkg_failed=untried
33596 fi
33597 if test -n "$PKG_CONFIG"; then
33598     if test -n "$PANGOX_LIBS"; then
33599         pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
33600     else
33601         if test -n "$PKG_CONFIG" && \
33602     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
33603   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
33604   ac_status=$?
33605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33606   (exit $ac_status); }; then
33607   pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
33608 else
33609   pkg_failed=yes
33610 fi
33611     fi
33612 else
33613         pkg_failed=untried
33614 fi
33615
33616
33617
33618 if test $pkg_failed = yes; then
33619
33620 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33621         _pkg_short_errors_supported=yes
33622 else
33623         _pkg_short_errors_supported=no
33624 fi
33625         if test $_pkg_short_errors_supported = yes; then
33626                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
33627         else
33628                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
33629         fi
33630         # Put the nasty error message in config.log where it belongs
33631         echo "$PANGOX_PKG_ERRORS" >&5
33632
33633
33634                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
33635 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
33636    { (exit 1); exit 1; }; }
33637
33638
33639 elif test $pkg_failed = untried; then
33640
33641                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
33642 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
33643    { (exit 1); exit 1; }; }
33644
33645
33646 else
33647         PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
33648         PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
33649         { echo "$as_me:$LINENO: result: yes" >&5
33650 echo "${ECHO_T}yes" >&6; }
33651
33652                     CFLAGS="$PANGOX_CFLAGS $CFLAGS"
33653                     CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
33654                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
33655
33656 fi
33657
33658 pkg_failed=no
33659 { echo "$as_me:$LINENO: checking for PANGOFT2" >&5
33660 echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6; }
33661
33662 if test -n "$PKG_CONFIG"; then
33663     if test -n "$PANGOFT2_CFLAGS"; then
33664         pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
33665     else
33666         if test -n "$PKG_CONFIG" && \
33667     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
33668   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
33669   ac_status=$?
33670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33671   (exit $ac_status); }; then
33672   pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
33673 else
33674   pkg_failed=yes
33675 fi
33676     fi
33677 else
33678         pkg_failed=untried
33679 fi
33680 if test -n "$PKG_CONFIG"; then
33681     if test -n "$PANGOFT2_LIBS"; then
33682         pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
33683     else
33684         if test -n "$PKG_CONFIG" && \
33685     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
33686   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
33687   ac_status=$?
33688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33689   (exit $ac_status); }; then
33690   pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
33691 else
33692   pkg_failed=yes
33693 fi
33694     fi
33695 else
33696         pkg_failed=untried
33697 fi
33698
33699
33700
33701 if test $pkg_failed = yes; then
33702
33703 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33704         _pkg_short_errors_supported=yes
33705 else
33706         _pkg_short_errors_supported=no
33707 fi
33708         if test $_pkg_short_errors_supported = yes; then
33709                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
33710         else
33711                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
33712         fi
33713         # Put the nasty error message in config.log where it belongs
33714         echo "$PANGOFT2_PKG_ERRORS" >&5
33715
33716
33717                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
33718 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
33719                     wxUSE_PRINTING_ARCHITECTURE="no"
33720
33721
33722 elif test $pkg_failed = untried; then
33723
33724                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
33725 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
33726                     wxUSE_PRINTING_ARCHITECTURE="no"
33727
33728
33729 else
33730         PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
33731         PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
33732         { echo "$as_me:$LINENO: result: yes" >&5
33733 echo "${ECHO_T}yes" >&6; }
33734
33735                     CFLAGS="$PANGOFT2_CFLAGS $CFLAGS"
33736                     CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
33737                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
33738
33739 fi
33740
33741 pkg_failed=no
33742 { echo "$as_me:$LINENO: checking for PANGOXFT" >&5
33743 echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6; }
33744
33745 if test -n "$PKG_CONFIG"; then
33746     if test -n "$PANGOXFT_CFLAGS"; then
33747         pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
33748     else
33749         if test -n "$PKG_CONFIG" && \
33750     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
33751   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
33752   ac_status=$?
33753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33754   (exit $ac_status); }; then
33755   pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
33756 else
33757   pkg_failed=yes
33758 fi
33759     fi
33760 else
33761         pkg_failed=untried
33762 fi
33763 if test -n "$PKG_CONFIG"; then
33764     if test -n "$PANGOXFT_LIBS"; then
33765         pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
33766     else
33767         if test -n "$PKG_CONFIG" && \
33768     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
33769   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
33770   ac_status=$?
33771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33772   (exit $ac_status); }; then
33773   pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
33774 else
33775   pkg_failed=yes
33776 fi
33777     fi
33778 else
33779         pkg_failed=untried
33780 fi
33781
33782
33783
33784 if test $pkg_failed = yes; then
33785
33786 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33787         _pkg_short_errors_supported=yes
33788 else
33789         _pkg_short_errors_supported=no
33790 fi
33791         if test $_pkg_short_errors_supported = yes; then
33792                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
33793         else
33794                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
33795         fi
33796         # Put the nasty error message in config.log where it belongs
33797         echo "$PANGOXFT_PKG_ERRORS" >&5
33798
33799
33800                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
33801 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
33802
33803
33804 elif test $pkg_failed = untried; then
33805
33806                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
33807 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
33808
33809
33810 else
33811         PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
33812         PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
33813         { echo "$as_me:$LINENO: result: yes" >&5
33814 echo "${ECHO_T}yes" >&6; }
33815
33816                     cat >>confdefs.h <<\_ACEOF
33817 #define HAVE_PANGO_XFT 1
33818 _ACEOF
33819
33820                     CFLAGS="$PANGOXFT_CFLAGS $CFLAGS"
33821                     CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
33822                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
33823
33824 fi
33825             save_LIBS="$LIBS"
33826             LIBS="$LIBS $PANGOX_LIBS"
33827
33828 for ac_func in pango_font_family_is_monospace
33829 do
33830 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33831 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33832 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33833 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33834   echo $ECHO_N "(cached) $ECHO_C" >&6
33835 else
33836   cat >conftest.$ac_ext <<_ACEOF
33837 /* confdefs.h.  */
33838 _ACEOF
33839 cat confdefs.h >>conftest.$ac_ext
33840 cat >>conftest.$ac_ext <<_ACEOF
33841 /* end confdefs.h.  */
33842 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33843    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33844 #define $ac_func innocuous_$ac_func
33845
33846 /* System header to define __stub macros and hopefully few prototypes,
33847     which can conflict with char $ac_func (); below.
33848     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33849     <limits.h> exists even on freestanding compilers.  */
33850
33851 #ifdef __STDC__
33852 # include <limits.h>
33853 #else
33854 # include <assert.h>
33855 #endif
33856
33857 #undef $ac_func
33858
33859 /* Override any GCC internal prototype to avoid an error.
33860    Use char because int might match the return type of a GCC
33861    builtin and then its argument prototype would still apply.  */
33862 #ifdef __cplusplus
33863 extern "C"
33864 #endif
33865 char $ac_func ();
33866 /* The GNU C library defines this for functions which it implements
33867     to always fail with ENOSYS.  Some functions are actually named
33868     something starting with __ and the normal name is an alias.  */
33869 #if defined __stub_$ac_func || defined __stub___$ac_func
33870 choke me
33871 #endif
33872
33873 int
33874 main ()
33875 {
33876 return $ac_func ();
33877   ;
33878   return 0;
33879 }
33880 _ACEOF
33881 rm -f conftest.$ac_objext conftest$ac_exeext
33882 if { (ac_try="$ac_link"
33883 case "(($ac_try" in
33884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33885   *) ac_try_echo=$ac_try;;
33886 esac
33887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33888   (eval "$ac_link") 2>conftest.er1
33889   ac_status=$?
33890   grep -v '^ *+' conftest.er1 >conftest.err
33891   rm -f conftest.er1
33892   cat conftest.err >&5
33893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33894   (exit $ac_status); } && {
33895          test -z "$ac_c_werror_flag" ||
33896          test ! -s conftest.err
33897        } && test -s conftest$ac_exeext &&
33898        $as_test_x conftest$ac_exeext; then
33899   eval "$as_ac_var=yes"
33900 else
33901   echo "$as_me: failed program was:" >&5
33902 sed 's/^/| /' conftest.$ac_ext >&5
33903
33904         eval "$as_ac_var=no"
33905 fi
33906
33907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33908       conftest$ac_exeext conftest.$ac_ext
33909 fi
33910 ac_res=`eval echo '${'$as_ac_var'}'`
33911                { echo "$as_me:$LINENO: result: $ac_res" >&5
33912 echo "${ECHO_T}$ac_res" >&6; }
33913 if test `eval echo '${'$as_ac_var'}'` = yes; then
33914   cat >>confdefs.h <<_ACEOF
33915 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33916 _ACEOF
33917
33918 fi
33919 done
33920
33921             LIBS="$save_LIBS"
33922         fi
33923
33924         wxUSE_UNIVERSAL="yes"
33925
33926         if test "$wxUSE_NANOX" = "yes"; then
33927             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
33928             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"
33929             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
33930         else
33931             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
33932         fi
33933
33934         TOOLKIT=X11
33935         GUIDIST=X11_DIST
33936     fi
33937
33938     if test "$wxUSE_MOTIF" = 1; then
33939         if test "$wxUSE_UNICODE" = "yes"; then
33940             { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
33941 echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
33942    { (exit 1); exit 1; }; }
33943         fi
33944
33945         { echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
33946 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6; }
33947
33948 ac_find_includes=
33949 for ac_dir in $SEARCH_INCLUDE /usr/include;
33950   do
33951     if test -f "$ac_dir/Xm/Xm.h"; then
33952       ac_find_includes=$ac_dir
33953       break
33954     fi
33955   done
33956
33957         if test "$ac_find_includes" != "" ; then
33958             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
33959 echo "${ECHO_T}found in $ac_find_includes" >&6; }
33960
33961     if test "x$ac_find_includes" = "x/usr/include"; then
33962     ac_path_to_include=""
33963   else
33964     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
33965     result=$?
33966     if test $result = 0; then
33967       ac_path_to_include=""
33968     else
33969       ac_path_to_include=" -I$ac_find_includes"
33970     fi
33971   fi
33972
33973             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
33974         else
33975             save_CFLAGS=$CFLAGS
33976             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33977
33978             cat >conftest.$ac_ext <<_ACEOF
33979 /* confdefs.h.  */
33980 _ACEOF
33981 cat confdefs.h >>conftest.$ac_ext
33982 cat >>conftest.$ac_ext <<_ACEOF
33983 /* end confdefs.h.  */
33984
33985                     #include <Xm/Xm.h>
33986
33987 int
33988 main ()
33989 {
33990
33991                     int version;
33992                     version = xmUseVersion;
33993
33994   ;
33995   return 0;
33996 }
33997 _ACEOF
33998 rm -f conftest.$ac_objext
33999 if { (ac_try="$ac_compile"
34000 case "(($ac_try" in
34001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34002   *) ac_try_echo=$ac_try;;
34003 esac
34004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34005   (eval "$ac_compile") 2>conftest.er1
34006   ac_status=$?
34007   grep -v '^ *+' conftest.er1 >conftest.err
34008   rm -f conftest.er1
34009   cat conftest.err >&5
34010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34011   (exit $ac_status); } && {
34012          test -z "$ac_c_werror_flag" ||
34013          test ! -s conftest.err
34014        } && test -s conftest.$ac_objext; then
34015
34016                     { echo "$as_me:$LINENO: result: found in default search path" >&5
34017 echo "${ECHO_T}found in default search path" >&6; }
34018                     COMPILED_X_PROGRAM=1
34019
34020 else
34021   echo "$as_me: failed program was:" >&5
34022 sed 's/^/| /' conftest.$ac_ext >&5
34023
34024
34025                     { echo "$as_me:$LINENO: result: no" >&5
34026 echo "${ECHO_T}no" >&6; }
34027                     { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
34028 echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
34029    { (exit 1); exit 1; }; }
34030
34031
34032 fi
34033
34034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34035
34036             CFLAGS=$save_CFLAGS
34037         fi
34038
34039
34040         { echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
34041 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6; }
34042
34043   ac_find_libraries=
34044   for ac_dir in $SEARCH_LIB;
34045   do
34046     for ac_extension in a so sl dylib dll.a; do
34047       if test -f "$ac_dir/libXm.$ac_extension"; then
34048         ac_find_libraries=$ac_dir
34049         break 2
34050       fi
34051     done
34052   done
34053
34054
34055         if test "x$ac_find_libraries" != "x" ; then
34056             { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
34057 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
34058
34059
34060     if test "$ac_find_libraries" = "default location"; then
34061     ac_path_to_link=""
34062   else
34063     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
34064     result=$?
34065     if test $result = 0; then
34066       ac_path_to_link=""
34067     else
34068       ac_path_to_link=" -L$ac_find_libraries"
34069     fi
34070   fi
34071
34072             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
34073         else
34074                                                 save_CFLAGS=$CFLAGS
34075             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34076             save_LIBS="$LIBS"
34077             LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
34078
34079             cat >conftest.$ac_ext <<_ACEOF
34080 /* confdefs.h.  */
34081 _ACEOF
34082 cat confdefs.h >>conftest.$ac_ext
34083 cat >>conftest.$ac_ext <<_ACEOF
34084 /* end confdefs.h.  */
34085
34086                     #include <Xm/Xm.h>
34087
34088 int
34089 main ()
34090 {
34091
34092                     int version;
34093                     version = xmUseVersion;
34094
34095   ;
34096   return 0;
34097 }
34098 _ACEOF
34099 rm -f conftest.$ac_objext conftest$ac_exeext
34100 if { (ac_try="$ac_link"
34101 case "(($ac_try" in
34102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34103   *) ac_try_echo=$ac_try;;
34104 esac
34105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34106   (eval "$ac_link") 2>conftest.er1
34107   ac_status=$?
34108   grep -v '^ *+' conftest.er1 >conftest.err
34109   rm -f conftest.er1
34110   cat conftest.err >&5
34111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34112   (exit $ac_status); } && {
34113          test -z "$ac_c_werror_flag" ||
34114          test ! -s conftest.err
34115        } && test -s conftest$ac_exeext &&
34116        $as_test_x conftest$ac_exeext; then
34117
34118                     { echo "$as_me:$LINENO: result: found in default search path" >&5
34119 echo "${ECHO_T}found in default search path" >&6; }
34120                     COMPILED_X_PROGRAM=1
34121
34122 else
34123   echo "$as_me: failed program was:" >&5
34124 sed 's/^/| /' conftest.$ac_ext >&5
34125
34126
34127                     { echo "$as_me:$LINENO: result: no" >&5
34128 echo "${ECHO_T}no" >&6; }
34129                     { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
34130 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
34131    { (exit 1); exit 1; }; }
34132
34133
34134 fi
34135
34136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34137       conftest$ac_exeext conftest.$ac_ext
34138
34139             CFLAGS=$save_CFLAGS
34140             LIBS="$save_LIBS"
34141         fi
34142
34143         { echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
34144 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6; }
34145         libp_link=""
34146         libsm_ice_link=""
34147         libs_found=0
34148         for libp in "" " -lXp"; do
34149             if test "$libs_found" = "0"; then
34150                 for libsm_ice in "" " -lSM -lICE"; do
34151                     if test "$libs_found" = "0"; then
34152                         save_LIBS="$LIBS"
34153                         LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
34154                         save_CFLAGS=$CFLAGS
34155                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34156
34157                         cat >conftest.$ac_ext <<_ACEOF
34158 /* confdefs.h.  */
34159 _ACEOF
34160 cat confdefs.h >>conftest.$ac_ext
34161 cat >>conftest.$ac_ext <<_ACEOF
34162 /* end confdefs.h.  */
34163
34164                                 #include <Xm/Xm.h>
34165                                 #include <Xm/List.h>
34166
34167 int
34168 main ()
34169 {
34170
34171                                 XmString string = NULL;
34172                                 Widget w = NULL;
34173                                 int position = 0;
34174                                 XmListAddItem(w, string, position);
34175
34176   ;
34177   return 0;
34178 }
34179 _ACEOF
34180 rm -f conftest.$ac_objext conftest$ac_exeext
34181 if { (ac_try="$ac_link"
34182 case "(($ac_try" in
34183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34184   *) ac_try_echo=$ac_try;;
34185 esac
34186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34187   (eval "$ac_link") 2>conftest.er1
34188   ac_status=$?
34189   grep -v '^ *+' conftest.er1 >conftest.err
34190   rm -f conftest.er1
34191   cat conftest.err >&5
34192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34193   (exit $ac_status); } && {
34194          test -z "$ac_c_werror_flag" ||
34195          test ! -s conftest.err
34196        } && test -s conftest$ac_exeext &&
34197        $as_test_x conftest$ac_exeext; then
34198
34199                                 libp_link="$libp"
34200                                 libsm_ice_link="$libsm_ice"
34201                                 { echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
34202 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6; }
34203                                 libs_found=1
34204
34205 else
34206   echo "$as_me: failed program was:" >&5
34207 sed 's/^/| /' conftest.$ac_ext >&5
34208
34209
34210
34211 fi
34212
34213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34214       conftest$ac_exeext conftest.$ac_ext
34215
34216                         LIBS="$save_LIBS"
34217                         CFLAGS=$save_CFLAGS
34218                     fi
34219                 done
34220             fi
34221         done
34222
34223         if test "$libs_found" = "0"; then
34224             { echo "$as_me:$LINENO: result: can't find the right libraries" >&5
34225 echo "${ECHO_T}can't find the right libraries" >&6; }
34226             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
34227 echo "$as_me: error: can't link a simple motif program" >&2;}
34228    { (exit 1); exit 1; }; }
34229         fi
34230
34231                         { echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
34232 echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6; }
34233 if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
34234   echo $ECHO_N "(cached) $ECHO_C" >&6
34235 else
34236   ac_check_lib_save_LIBS=$LIBS
34237 LIBS="-lSgm  $LIBS"
34238 cat >conftest.$ac_ext <<_ACEOF
34239 /* confdefs.h.  */
34240 _ACEOF
34241 cat confdefs.h >>conftest.$ac_ext
34242 cat >>conftest.$ac_ext <<_ACEOF
34243 /* end confdefs.h.  */
34244
34245 /* Override any GCC internal prototype to avoid an error.
34246    Use char because int might match the return type of a GCC
34247    builtin and then its argument prototype would still apply.  */
34248 #ifdef __cplusplus
34249 extern "C"
34250 #endif
34251 char SgCreateList ();
34252 int
34253 main ()
34254 {
34255 return SgCreateList ();
34256   ;
34257   return 0;
34258 }
34259 _ACEOF
34260 rm -f conftest.$ac_objext conftest$ac_exeext
34261 if { (ac_try="$ac_link"
34262 case "(($ac_try" in
34263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34264   *) ac_try_echo=$ac_try;;
34265 esac
34266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34267   (eval "$ac_link") 2>conftest.er1
34268   ac_status=$?
34269   grep -v '^ *+' conftest.er1 >conftest.err
34270   rm -f conftest.er1
34271   cat conftest.err >&5
34272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34273   (exit $ac_status); } && {
34274          test -z "$ac_c_werror_flag" ||
34275          test ! -s conftest.err
34276        } && test -s conftest$ac_exeext &&
34277        $as_test_x conftest$ac_exeext; then
34278   ac_cv_lib_Sgm_SgCreateList=yes
34279 else
34280   echo "$as_me: failed program was:" >&5
34281 sed 's/^/| /' conftest.$ac_ext >&5
34282
34283         ac_cv_lib_Sgm_SgCreateList=no
34284 fi
34285
34286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34287       conftest$ac_exeext conftest.$ac_ext
34288 LIBS=$ac_check_lib_save_LIBS
34289 fi
34290 { echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
34291 echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6; }
34292 if test $ac_cv_lib_Sgm_SgCreateList = yes; then
34293   libsgm_link=" -lSgm"
34294 fi
34295
34296
34297         save_CFLAGS=$CFLAGS
34298         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34299
34300         { echo "$as_me:$LINENO: checking for Motif 2" >&5
34301 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6; }
34302 if test "${wx_cv_lib_motif2+set}" = set; then
34303   echo $ECHO_N "(cached) $ECHO_C" >&6
34304 else
34305   cat >conftest.$ac_ext <<_ACEOF
34306 /* confdefs.h.  */
34307 _ACEOF
34308 cat confdefs.h >>conftest.$ac_ext
34309 cat >>conftest.$ac_ext <<_ACEOF
34310 /* end confdefs.h.  */
34311
34312                             #include <Xm/Xm.h>
34313
34314 int
34315 main ()
34316 {
34317
34318                             #if XmVersion < 2000
34319                             Not Motif 2
34320                             #endif
34321
34322   ;
34323   return 0;
34324 }
34325 _ACEOF
34326 rm -f conftest.$ac_objext
34327 if { (ac_try="$ac_compile"
34328 case "(($ac_try" in
34329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34330   *) ac_try_echo=$ac_try;;
34331 esac
34332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34333   (eval "$ac_compile") 2>conftest.er1
34334   ac_status=$?
34335   grep -v '^ *+' conftest.er1 >conftest.err
34336   rm -f conftest.er1
34337   cat conftest.err >&5
34338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34339   (exit $ac_status); } && {
34340          test -z "$ac_c_werror_flag" ||
34341          test ! -s conftest.err
34342        } && test -s conftest.$ac_objext; then
34343   wx_cv_lib_motif2="yes"
34344 else
34345   echo "$as_me: failed program was:" >&5
34346 sed 's/^/| /' conftest.$ac_ext >&5
34347
34348         wx_cv_lib_motif2="no"
34349 fi
34350
34351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34352 fi
34353 { echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
34354 echo "${ECHO_T}$wx_cv_lib_motif2" >&6; }
34355         if test "$wx_cv_lib_motif2" = "yes"; then
34356             cat >>confdefs.h <<\_ACEOF
34357 #define __WXMOTIF20__ 1
34358 _ACEOF
34359
34360         else
34361             cat >>confdefs.h <<\_ACEOF
34362 #define __WXMOTIF20__ 0
34363 _ACEOF
34364
34365         fi
34366
34367         { echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
34368 echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6; }
34369 if test "${wx_cv_lib_lesstif+set}" = set; then
34370   echo $ECHO_N "(cached) $ECHO_C" >&6
34371 else
34372   cat >conftest.$ac_ext <<_ACEOF
34373 /* confdefs.h.  */
34374 _ACEOF
34375 cat confdefs.h >>conftest.$ac_ext
34376 cat >>conftest.$ac_ext <<_ACEOF
34377 /* end confdefs.h.  */
34378
34379                             #include <Xm/Xm.h>
34380
34381 int
34382 main ()
34383 {
34384
34385                             #if !defined(LesstifVersion) || LesstifVersion <= 0
34386                             Not Lesstif
34387                             #endif
34388
34389   ;
34390   return 0;
34391 }
34392 _ACEOF
34393 rm -f conftest.$ac_objext
34394 if { (ac_try="$ac_compile"
34395 case "(($ac_try" in
34396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34397   *) ac_try_echo=$ac_try;;
34398 esac
34399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34400   (eval "$ac_compile") 2>conftest.er1
34401   ac_status=$?
34402   grep -v '^ *+' conftest.er1 >conftest.err
34403   rm -f conftest.er1
34404   cat conftest.err >&5
34405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34406   (exit $ac_status); } && {
34407          test -z "$ac_c_werror_flag" ||
34408          test ! -s conftest.err
34409        } && test -s conftest.$ac_objext; then
34410   wx_cv_lib_lesstif="yes"
34411 else
34412   echo "$as_me: failed program was:" >&5
34413 sed 's/^/| /' conftest.$ac_ext >&5
34414
34415         wx_cv_lib_lesstif="no"
34416 fi
34417
34418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34419
34420 fi
34421 { echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
34422 echo "${ECHO_T}$wx_cv_lib_lesstif" >&6; }
34423         if test "$wx_cv_lib_lesstif" = "yes"; then
34424             cat >>confdefs.h <<\_ACEOF
34425 #define __WXLESSTIF__ 1
34426 _ACEOF
34427
34428         else
34429             cat >>confdefs.h <<\_ACEOF
34430 #define __WXLESSTIF__ 0
34431 _ACEOF
34432
34433         fi
34434
34435         CFLAGS=$save_CFLAGS
34436
34437         GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
34438         TOOLKIT=MOTIF
34439         GUIDIST=MOTIF_DIST
34440     fi
34441
34442         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
34443                 if test "$wxUSE_LIBXPM" = "sys"; then
34444             { echo "$as_me:$LINENO: checking for Xpm library" >&5
34445 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6; }
34446
34447   ac_find_libraries=
34448   for ac_dir in $SEARCH_LIB;
34449   do
34450     for ac_extension in a so sl dylib dll.a; do
34451       if test -f "$ac_dir/libXpm.$ac_extension"; then
34452         ac_find_libraries=$ac_dir
34453         break 2
34454       fi
34455     done
34456   done
34457
34458             if test "$ac_find_libraries" != "" ; then
34459
34460     if test "$ac_find_libraries" = "default location"; then
34461     ac_path_to_link=""
34462   else
34463     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
34464     result=$?
34465     if test $result = 0; then
34466       ac_path_to_link=""
34467     else
34468       ac_path_to_link=" -L$ac_find_libraries"
34469     fi
34470   fi
34471
34472                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
34473                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
34474 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
34475
34476                 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
34477 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
34478 if test "${wx_cv_x11_xpm_h+set}" = set; then
34479   echo $ECHO_N "(cached) $ECHO_C" >&6
34480 else
34481
34482                         save_CFLAGS=$CFLAGS
34483                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34484
34485                         cat >conftest.$ac_ext <<_ACEOF
34486 /* confdefs.h.  */
34487 _ACEOF
34488 cat confdefs.h >>conftest.$ac_ext
34489 cat >>conftest.$ac_ext <<_ACEOF
34490 /* end confdefs.h.  */
34491
34492                                 #include <X11/xpm.h>
34493
34494 int
34495 main ()
34496 {
34497
34498                                 int version;
34499                                 version = XpmLibraryVersion();
34500
34501   ;
34502   return 0;
34503 }
34504 _ACEOF
34505 rm -f conftest.$ac_objext
34506 if { (ac_try="$ac_compile"
34507 case "(($ac_try" in
34508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34509   *) ac_try_echo=$ac_try;;
34510 esac
34511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34512   (eval "$ac_compile") 2>conftest.er1
34513   ac_status=$?
34514   grep -v '^ *+' conftest.er1 >conftest.err
34515   rm -f conftest.er1
34516   cat conftest.err >&5
34517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34518   (exit $ac_status); } && {
34519          test -z "$ac_c_werror_flag" ||
34520          test ! -s conftest.err
34521        } && test -s conftest.$ac_objext; then
34522   wx_cv_x11_xpm_h=yes
34523 else
34524   echo "$as_me: failed program was:" >&5
34525 sed 's/^/| /' conftest.$ac_ext >&5
34526
34527         wx_cv_x11_xpm_h=no
34528
34529 fi
34530
34531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34532
34533                         CFLAGS=$save_CFLAGS
34534
34535
34536 fi
34537 { echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
34538 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6; }
34539
34540                 if test $wx_cv_x11_xpm_h = "yes"; then
34541                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
34542                     cat >>confdefs.h <<\_ACEOF
34543 #define wxHAVE_LIB_XPM 1
34544 _ACEOF
34545
34546                 else
34547                     { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
34548 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
34549                 fi
34550             fi
34551
34552         fi
34553
34554                 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
34555 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
34556 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
34557   echo $ECHO_N "(cached) $ECHO_C" >&6
34558 else
34559   ac_check_lib_save_LIBS=$LIBS
34560 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
34561 cat >conftest.$ac_ext <<_ACEOF
34562 /* confdefs.h.  */
34563 _ACEOF
34564 cat confdefs.h >>conftest.$ac_ext
34565 cat >>conftest.$ac_ext <<_ACEOF
34566 /* end confdefs.h.  */
34567
34568 /* Override any GCC internal prototype to avoid an error.
34569    Use char because int might match the return type of a GCC
34570    builtin and then its argument prototype would still apply.  */
34571 #ifdef __cplusplus
34572 extern "C"
34573 #endif
34574 char XShapeQueryExtension ();
34575 int
34576 main ()
34577 {
34578 return XShapeQueryExtension ();
34579   ;
34580   return 0;
34581 }
34582 _ACEOF
34583 rm -f conftest.$ac_objext conftest$ac_exeext
34584 if { (ac_try="$ac_link"
34585 case "(($ac_try" in
34586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34587   *) ac_try_echo=$ac_try;;
34588 esac
34589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34590   (eval "$ac_link") 2>conftest.er1
34591   ac_status=$?
34592   grep -v '^ *+' conftest.er1 >conftest.err
34593   rm -f conftest.er1
34594   cat conftest.err >&5
34595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34596   (exit $ac_status); } && {
34597          test -z "$ac_c_werror_flag" ||
34598          test ! -s conftest.err
34599        } && test -s conftest$ac_exeext &&
34600        $as_test_x conftest$ac_exeext; then
34601   ac_cv_lib_Xext_XShapeQueryExtension=yes
34602 else
34603   echo "$as_me: failed program was:" >&5
34604 sed 's/^/| /' conftest.$ac_ext >&5
34605
34606         ac_cv_lib_Xext_XShapeQueryExtension=no
34607 fi
34608
34609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34610       conftest$ac_exeext conftest.$ac_ext
34611 LIBS=$ac_check_lib_save_LIBS
34612 fi
34613 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
34614 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
34615 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
34616
34617                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
34618                       wxHAVE_XEXT_LIB=1
34619
34620 fi
34621
34622
34623         if test "$wxHAVE_XEXT_LIB" = 1; then
34624             save_CFLAGS="$CFLAGS"
34625             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34626
34627             { echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
34628 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6; }
34629             cat >conftest.$ac_ext <<_ACEOF
34630 /* confdefs.h.  */
34631 _ACEOF
34632 cat confdefs.h >>conftest.$ac_ext
34633 cat >>conftest.$ac_ext <<_ACEOF
34634 /* end confdefs.h.  */
34635
34636                             #include <X11/Xlib.h>
34637                             #include <X11/extensions/shape.h>
34638
34639 int
34640 main ()
34641 {
34642
34643                             int dummy1, dummy2;
34644                             XShapeQueryExtension((Display*)NULL,
34645                                                  (int*)NULL, (int*)NULL);
34646
34647   ;
34648   return 0;
34649 }
34650 _ACEOF
34651 rm -f conftest.$ac_objext
34652 if { (ac_try="$ac_compile"
34653 case "(($ac_try" in
34654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34655   *) ac_try_echo=$ac_try;;
34656 esac
34657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34658   (eval "$ac_compile") 2>conftest.er1
34659   ac_status=$?
34660   grep -v '^ *+' conftest.er1 >conftest.err
34661   rm -f conftest.er1
34662   cat conftest.err >&5
34663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34664   (exit $ac_status); } && {
34665          test -z "$ac_c_werror_flag" ||
34666          test ! -s conftest.err
34667        } && test -s conftest.$ac_objext; then
34668
34669                             cat >>confdefs.h <<\_ACEOF
34670 #define HAVE_XSHAPE 1
34671 _ACEOF
34672
34673                             { echo "$as_me:$LINENO: result: found" >&5
34674 echo "${ECHO_T}found" >&6; }
34675
34676 else
34677   echo "$as_me: failed program was:" >&5
34678 sed 's/^/| /' conftest.$ac_ext >&5
34679
34680
34681                             { echo "$as_me:$LINENO: result: not found" >&5
34682 echo "${ECHO_T}not found" >&6; }
34683
34684 fi
34685
34686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34687             CFLAGS="$save_CFLAGS"
34688
34689         fi
34690     fi
34691
34692     if test "$wxUSE_MAC" = 1; then
34693         { echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
34694 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6; }
34695         if test "$GCC" = yes; then
34696             { echo "$as_me:$LINENO: result: gcc" >&5
34697 echo "${ECHO_T}gcc" >&6; }
34698             CPPFLAGS_PASCAL="-fpascal-strings"
34699         elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
34700             { echo "$as_me:$LINENO: result: xlc" >&5
34701 echo "${ECHO_T}xlc" >&6; }
34702             CPPFLAGS_PASCAL="-qmacpstr"
34703         else
34704             { echo "$as_me:$LINENO: result: none" >&5
34705 echo "${ECHO_T}none" >&6; }
34706         fi
34707
34708         if test "x$wxUSE_UNIX" = "xyes"; then
34709             CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
34710         else
34711                         CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
34712         fi
34713
34714         TOOLKIT=MAC
34715                 GUIDIST=MACX_DIST
34716                         WXBASEPORT="_carbon"
34717     fi
34718
34719     if test "$wxUSE_COCOA" = 1; then
34720         TOOLKIT=COCOA
34721         GUIDIST=COCOA_DIST
34722     fi
34723
34724     if test "$wxUSE_PM" = 1; then
34725         TOOLKIT=PM
34726         GUIDIST=PM_DIST
34727         { echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
34728 echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6; }
34729 if test "${wx_cv_spbcdata+set}" = set; then
34730   echo $ECHO_N "(cached) $ECHO_C" >&6
34731 else
34732
34733                 cat >conftest.$ac_ext <<_ACEOF
34734 /* confdefs.h.  */
34735 _ACEOF
34736 cat confdefs.h >>conftest.$ac_ext
34737 cat >>conftest.$ac_ext <<_ACEOF
34738 /* end confdefs.h.  */
34739
34740                         #define INCL_PM
34741                         #include <os2.h>
34742
34743 int
34744 main ()
34745 {
34746
34747                         SPBCDATA test;
34748
34749   ;
34750   return 0;
34751 }
34752 _ACEOF
34753 rm -f conftest.$ac_objext
34754 if { (ac_try="$ac_compile"
34755 case "(($ac_try" in
34756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34757   *) ac_try_echo=$ac_try;;
34758 esac
34759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34760   (eval "$ac_compile") 2>conftest.er1
34761   ac_status=$?
34762   grep -v '^ *+' conftest.er1 >conftest.err
34763   rm -f conftest.er1
34764   cat conftest.err >&5
34765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34766   (exit $ac_status); } && {
34767          test -z "$ac_c_werror_flag" ||
34768          test ! -s conftest.err
34769        } && test -s conftest.$ac_objext; then
34770   wx_cv_spbcdata=yes
34771 else
34772   echo "$as_me: failed program was:" >&5
34773 sed 's/^/| /' conftest.$ac_ext >&5
34774
34775         wx_cv_spbcdata=no
34776
34777 fi
34778
34779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34780
34781
34782 fi
34783 { echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
34784 echo "${ECHO_T}$wx_cv_spbcdata" >&6; }
34785
34786         if test $wx_cv_spbcdata = "yes"; then
34787             cat >>confdefs.h <<\_ACEOF
34788 #define HAVE_SPBCDATA 1
34789 _ACEOF
34790
34791         fi
34792     fi
34793
34794         if test "$TOOLKIT" = "PM" ; then
34795         TOOLKIT_DIR="os2"
34796     else
34797         TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
34798     fi
34799
34800     if test "$wxUSE_UNIVERSAL" = "yes"; then
34801         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
34802         WIDGET_SET=univ
34803     fi
34804
34805         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
34806     DISTDIR="wx\$(TOOLKIT)"
34807 else
34808     USE_GUI=0
34809
34810             TOOLKIT_DIR="base"
34811
34812         if test "$USE_WIN32" = 1 ; then
34813                         TOOLKIT="MSW"
34814     fi
34815
34816         GUIDIST="BASE_DIST"
34817     DISTDIR="wxBase"
34818 fi
34819
34820
34821
34822 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "auto" ; then
34823     if test "$TOOLKIT" = "DFB" ; then
34824         wxUSE_UNICODE_UTF8=yes
34825     elif test "$TOOLKIT" = "GTK" -a "$WXGTK20" = "1" ; then
34826         wxUSE_UNICODE_UTF8=yes
34827     elif test "$USE_OS2" = "1" ; then
34828                                 wxUSE_UNICODE_UTF8=yes
34829     else
34830         wxUSE_UNICODE_UTF8=no
34831     fi
34832 fi
34833
34834
34835 if test "$wxUSE_GUI" = "yes"; then
34836     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
34837
34838 for ac_header in X11/Xlib.h
34839 do
34840 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34841 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34844   echo $ECHO_N "(cached) $ECHO_C" >&6
34845 else
34846   cat >conftest.$ac_ext <<_ACEOF
34847 /* confdefs.h.  */
34848 _ACEOF
34849 cat confdefs.h >>conftest.$ac_ext
34850 cat >>conftest.$ac_ext <<_ACEOF
34851 /* end confdefs.h.  */
34852
34853
34854 #include <$ac_header>
34855 _ACEOF
34856 rm -f conftest.$ac_objext
34857 if { (ac_try="$ac_compile"
34858 case "(($ac_try" in
34859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34860   *) ac_try_echo=$ac_try;;
34861 esac
34862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34863   (eval "$ac_compile") 2>conftest.er1
34864   ac_status=$?
34865   grep -v '^ *+' conftest.er1 >conftest.err
34866   rm -f conftest.er1
34867   cat conftest.err >&5
34868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34869   (exit $ac_status); } && {
34870          test -z "$ac_c_werror_flag" ||
34871          test ! -s conftest.err
34872        } && test -s conftest.$ac_objext; then
34873   eval "$as_ac_Header=yes"
34874 else
34875   echo "$as_me: failed program was:" >&5
34876 sed 's/^/| /' conftest.$ac_ext >&5
34877
34878         eval "$as_ac_Header=no"
34879 fi
34880
34881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34882 fi
34883 ac_res=`eval echo '${'$as_ac_Header'}'`
34884                { echo "$as_me:$LINENO: result: $ac_res" >&5
34885 echo "${ECHO_T}$ac_res" >&6; }
34886 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34887   cat >>confdefs.h <<_ACEOF
34888 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34889 _ACEOF
34890
34891 fi
34892
34893 done
34894
34895
34896 for ac_header in X11/XKBlib.h
34897 do
34898 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34899 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34901 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34902   echo $ECHO_N "(cached) $ECHO_C" >&6
34903 else
34904   cat >conftest.$ac_ext <<_ACEOF
34905 /* confdefs.h.  */
34906 _ACEOF
34907 cat confdefs.h >>conftest.$ac_ext
34908 cat >>conftest.$ac_ext <<_ACEOF
34909 /* end confdefs.h.  */
34910
34911                           #if HAVE_X11_XLIB_H
34912                             #include <X11/Xlib.h>
34913                           #endif
34914
34915
34916 #include <$ac_header>
34917 _ACEOF
34918 rm -f conftest.$ac_objext
34919 if { (ac_try="$ac_compile"
34920 case "(($ac_try" in
34921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34922   *) ac_try_echo=$ac_try;;
34923 esac
34924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34925   (eval "$ac_compile") 2>conftest.er1
34926   ac_status=$?
34927   grep -v '^ *+' conftest.er1 >conftest.err
34928   rm -f conftest.er1
34929   cat conftest.err >&5
34930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34931   (exit $ac_status); } && {
34932          test -z "$ac_c_werror_flag" ||
34933          test ! -s conftest.err
34934        } && test -s conftest.$ac_objext; then
34935   eval "$as_ac_Header=yes"
34936 else
34937   echo "$as_me: failed program was:" >&5
34938 sed 's/^/| /' conftest.$ac_ext >&5
34939
34940         eval "$as_ac_Header=no"
34941 fi
34942
34943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34944 fi
34945 ac_res=`eval echo '${'$as_ac_Header'}'`
34946                { echo "$as_me:$LINENO: result: $ac_res" >&5
34947 echo "${ECHO_T}$ac_res" >&6; }
34948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34949   cat >>confdefs.h <<_ACEOF
34950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34951 _ACEOF
34952
34953 fi
34954
34955 done
34956
34957     fi
34958 fi
34959
34960
34961
34962 IODBC_C_SRC=""
34963
34964
34965 if test "$TOOLKIT" != "MSW" ; then
34966
34967     if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
34968
34969         { echo "$as_me:$LINENO: checking for sql.h" >&5
34970 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
34971 if test "${ac_cv_header_sql_h+set}" = set; then
34972   echo $ECHO_N "(cached) $ECHO_C" >&6
34973 else
34974   cat >conftest.$ac_ext <<_ACEOF
34975 /* confdefs.h.  */
34976 _ACEOF
34977 cat confdefs.h >>conftest.$ac_ext
34978 cat >>conftest.$ac_ext <<_ACEOF
34979 /* end confdefs.h.  */
34980
34981
34982 #include <sql.h>
34983 _ACEOF
34984 rm -f conftest.$ac_objext
34985 if { (ac_try="$ac_compile"
34986 case "(($ac_try" in
34987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34988   *) ac_try_echo=$ac_try;;
34989 esac
34990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34991   (eval "$ac_compile") 2>conftest.er1
34992   ac_status=$?
34993   grep -v '^ *+' conftest.er1 >conftest.err
34994   rm -f conftest.er1
34995   cat conftest.err >&5
34996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34997   (exit $ac_status); } && {
34998          test -z "$ac_c_werror_flag" ||
34999          test ! -s conftest.err
35000        } && test -s conftest.$ac_objext; then
35001   ac_cv_header_sql_h=yes
35002 else
35003   echo "$as_me: failed program was:" >&5
35004 sed 's/^/| /' conftest.$ac_ext >&5
35005
35006         ac_cv_header_sql_h=no
35007 fi
35008
35009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35010 fi
35011 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
35012 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
35013 if test $ac_cv_header_sql_h = yes; then
35014   found_sql_h=1
35015 fi
35016
35017
35018         if test "x$found_sql_h" = "x1" ; then
35019             { echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
35020 echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6; }
35021 if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
35022   echo $ECHO_N "(cached) $ECHO_C" >&6
35023 else
35024   ac_check_lib_save_LIBS=$LIBS
35025 LIBS="-liodbc  $LIBS"
35026 cat >conftest.$ac_ext <<_ACEOF
35027 /* confdefs.h.  */
35028 _ACEOF
35029 cat confdefs.h >>conftest.$ac_ext
35030 cat >>conftest.$ac_ext <<_ACEOF
35031 /* end confdefs.h.  */
35032
35033 /* Override any GCC internal prototype to avoid an error.
35034    Use char because int might match the return type of a GCC
35035    builtin and then its argument prototype would still apply.  */
35036 #ifdef __cplusplus
35037 extern "C"
35038 #endif
35039 char SQLAllocEnv ();
35040 int
35041 main ()
35042 {
35043 return SQLAllocEnv ();
35044   ;
35045   return 0;
35046 }
35047 _ACEOF
35048 rm -f conftest.$ac_objext conftest$ac_exeext
35049 if { (ac_try="$ac_link"
35050 case "(($ac_try" in
35051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35052   *) ac_try_echo=$ac_try;;
35053 esac
35054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35055   (eval "$ac_link") 2>conftest.er1
35056   ac_status=$?
35057   grep -v '^ *+' conftest.er1 >conftest.err
35058   rm -f conftest.er1
35059   cat conftest.err >&5
35060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35061   (exit $ac_status); } && {
35062          test -z "$ac_c_werror_flag" ||
35063          test ! -s conftest.err
35064        } && test -s conftest$ac_exeext &&
35065        $as_test_x conftest$ac_exeext; then
35066   ac_cv_lib_iodbc_SQLAllocEnv=yes
35067 else
35068   echo "$as_me: failed program was:" >&5
35069 sed 's/^/| /' conftest.$ac_ext >&5
35070
35071         ac_cv_lib_iodbc_SQLAllocEnv=no
35072 fi
35073
35074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35075       conftest$ac_exeext conftest.$ac_ext
35076 LIBS=$ac_check_lib_save_LIBS
35077 fi
35078 { echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
35079 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6; }
35080 if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
35081   ODBC_LINK=" -liodbc"
35082 else
35083
35084                 { echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
35085 echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6; }
35086 if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
35087   echo $ECHO_N "(cached) $ECHO_C" >&6
35088 else
35089   ac_check_lib_save_LIBS=$LIBS
35090 LIBS="-lunixodbc  $LIBS"
35091 cat >conftest.$ac_ext <<_ACEOF
35092 /* confdefs.h.  */
35093 _ACEOF
35094 cat confdefs.h >>conftest.$ac_ext
35095 cat >>conftest.$ac_ext <<_ACEOF
35096 /* end confdefs.h.  */
35097
35098 /* Override any GCC internal prototype to avoid an error.
35099    Use char because int might match the return type of a GCC
35100    builtin and then its argument prototype would still apply.  */
35101 #ifdef __cplusplus
35102 extern "C"
35103 #endif
35104 char SQLAllocEnv ();
35105 int
35106 main ()
35107 {
35108 return SQLAllocEnv ();
35109   ;
35110   return 0;
35111 }
35112 _ACEOF
35113 rm -f conftest.$ac_objext conftest$ac_exeext
35114 if { (ac_try="$ac_link"
35115 case "(($ac_try" in
35116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35117   *) ac_try_echo=$ac_try;;
35118 esac
35119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35120   (eval "$ac_link") 2>conftest.er1
35121   ac_status=$?
35122   grep -v '^ *+' conftest.er1 >conftest.err
35123   rm -f conftest.er1
35124   cat conftest.err >&5
35125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35126   (exit $ac_status); } && {
35127          test -z "$ac_c_werror_flag" ||
35128          test ! -s conftest.err
35129        } && test -s conftest$ac_exeext &&
35130        $as_test_x conftest$ac_exeext; then
35131   ac_cv_lib_unixodbc_SQLAllocEnv=yes
35132 else
35133   echo "$as_me: failed program was:" >&5
35134 sed 's/^/| /' conftest.$ac_ext >&5
35135
35136         ac_cv_lib_unixodbc_SQLAllocEnv=no
35137 fi
35138
35139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35140       conftest$ac_exeext conftest.$ac_ext
35141 LIBS=$ac_check_lib_save_LIBS
35142 fi
35143 { echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
35144 echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6; }
35145 if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
35146   ODBC_LINK=" -lunixodbc"
35147 else
35148
35149                     { echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
35150 echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6; }
35151 if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
35152   echo $ECHO_N "(cached) $ECHO_C" >&6
35153 else
35154   ac_check_lib_save_LIBS=$LIBS
35155 LIBS="-lodbc  $LIBS"
35156 cat >conftest.$ac_ext <<_ACEOF
35157 /* confdefs.h.  */
35158 _ACEOF
35159 cat confdefs.h >>conftest.$ac_ext
35160 cat >>conftest.$ac_ext <<_ACEOF
35161 /* end confdefs.h.  */
35162
35163 /* Override any GCC internal prototype to avoid an error.
35164    Use char because int might match the return type of a GCC
35165    builtin and then its argument prototype would still apply.  */
35166 #ifdef __cplusplus
35167 extern "C"
35168 #endif
35169 char SQLAllocEnv ();
35170 int
35171 main ()
35172 {
35173 return SQLAllocEnv ();
35174   ;
35175   return 0;
35176 }
35177 _ACEOF
35178 rm -f conftest.$ac_objext conftest$ac_exeext
35179 if { (ac_try="$ac_link"
35180 case "(($ac_try" in
35181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35182   *) ac_try_echo=$ac_try;;
35183 esac
35184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35185   (eval "$ac_link") 2>conftest.er1
35186   ac_status=$?
35187   grep -v '^ *+' conftest.er1 >conftest.err
35188   rm -f conftest.er1
35189   cat conftest.err >&5
35190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35191   (exit $ac_status); } && {
35192          test -z "$ac_c_werror_flag" ||
35193          test ! -s conftest.err
35194        } && test -s conftest$ac_exeext &&
35195        $as_test_x conftest$ac_exeext; then
35196   ac_cv_lib_odbc_SQLAllocEnv=yes
35197 else
35198   echo "$as_me: failed program was:" >&5
35199 sed 's/^/| /' conftest.$ac_ext >&5
35200
35201         ac_cv_lib_odbc_SQLAllocEnv=no
35202 fi
35203
35204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35205       conftest$ac_exeext conftest.$ac_ext
35206 LIBS=$ac_check_lib_save_LIBS
35207 fi
35208 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
35209 echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6; }
35210 if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
35211   ODBC_LINK=" -lodbc"
35212 fi
35213
35214
35215 fi
35216
35217
35218 fi
35219
35220         fi
35221         if test "x$ODBC_LINK" = "x" ; then
35222             if test "$wxUSE_ODBC" = "sys" ; then
35223                 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
35224 echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
35225    { (exit 1); exit 1; }; }
35226             else
35227                 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
35228 echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
35229                 wxUSE_ODBC=builtin
35230             fi
35231         else
35232                         wxUSE_ODBC=sys
35233         fi
35234     fi
35235
35236     if test "$wxUSE_ODBC" = "builtin" ; then
35237         cat >>confdefs.h <<\_ACEOF
35238 #define wxUSE_BUILTIN_IODBC 1
35239 _ACEOF
35240
35241     fi
35242 fi
35243
35244 if test "$wxUSE_ODBC" != "no" ; then
35245     cat >>confdefs.h <<\_ACEOF
35246 #define wxUSE_ODBC 1
35247 _ACEOF
35248
35249     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
35250
35251         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_"
35252 fi
35253
35254
35255 if test "$wxUSE_DISPLAY" = "yes"; then
35256     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
35257         { echo "$as_me:$LINENO: checking for Xinerama" >&5
35258 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6; }
35259
35260   ac_find_libraries=
35261   for ac_dir in $SEARCH_LIB;
35262   do
35263     for ac_extension in a so sl dylib dll.a; do
35264       if test -f "$ac_dir/libXinerama.$ac_extension"; then
35265         ac_find_libraries=$ac_dir
35266         break 2
35267       fi
35268     done
35269   done
35270
35271         if test "$ac_find_libraries" != "" ; then
35272
35273     if test "$ac_find_libraries" = "default location"; then
35274     ac_path_to_link=""
35275   else
35276     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
35277     result=$?
35278     if test $result = 0; then
35279       ac_path_to_link=""
35280     else
35281       ac_path_to_link=" -L$ac_find_libraries"
35282     fi
35283   fi
35284
35285             if test "$ac_path_to_link" != " -L/usr/lib" ; then
35286                 LDFLAGS="$LDFLAGS $ac_path_to_link"
35287             fi
35288             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
35289             { echo "$as_me:$LINENO: result: yes" >&5
35290 echo "${ECHO_T}yes" >&6; }
35291
35292             { echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
35293 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6; }
35294
35295   ac_find_libraries=
35296   for ac_dir in $SEARCH_LIB;
35297   do
35298     for ac_extension in a so sl dylib dll.a; do
35299       if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
35300         ac_find_libraries=$ac_dir
35301         break 2
35302       fi
35303     done
35304   done
35305
35306             if test "$ac_find_libraries" != "" ; then
35307                 { echo "$as_me:$LINENO: result: yes" >&5
35308 echo "${ECHO_T}yes" >&6; }
35309
35310 for ac_header in X11/extensions/xf86vmode.h
35311 do
35312 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35313 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35315 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35316   echo $ECHO_N "(cached) $ECHO_C" >&6
35317 else
35318   cat >conftest.$ac_ext <<_ACEOF
35319 /* confdefs.h.  */
35320 _ACEOF
35321 cat confdefs.h >>conftest.$ac_ext
35322 cat >>conftest.$ac_ext <<_ACEOF
35323 /* end confdefs.h.  */
35324
35325                                       #if HAVE_X11_XLIB_H
35326                                         #include <X11/Xlib.h>
35327                                       #endif
35328
35329
35330 #include <$ac_header>
35331 _ACEOF
35332 rm -f conftest.$ac_objext
35333 if { (ac_try="$ac_compile"
35334 case "(($ac_try" in
35335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35336   *) ac_try_echo=$ac_try;;
35337 esac
35338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35339   (eval "$ac_compile") 2>conftest.er1
35340   ac_status=$?
35341   grep -v '^ *+' conftest.er1 >conftest.err
35342   rm -f conftest.er1
35343   cat conftest.err >&5
35344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35345   (exit $ac_status); } && {
35346          test -z "$ac_c_werror_flag" ||
35347          test ! -s conftest.err
35348        } && test -s conftest.$ac_objext; then
35349   eval "$as_ac_Header=yes"
35350 else
35351   echo "$as_me: failed program was:" >&5
35352 sed 's/^/| /' conftest.$ac_ext >&5
35353
35354         eval "$as_ac_Header=no"
35355 fi
35356
35357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35358 fi
35359 ac_res=`eval echo '${'$as_ac_Header'}'`
35360                { echo "$as_me:$LINENO: result: $ac_res" >&5
35361 echo "${ECHO_T}$ac_res" >&6; }
35362 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35363   cat >>confdefs.h <<_ACEOF
35364 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35365 _ACEOF
35366
35367                                   GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
35368
35369 fi
35370
35371 done
35372
35373             else
35374                 { echo "$as_me:$LINENO: result: no" >&5
35375 echo "${ECHO_T}no" >&6; }
35376             fi
35377
35378         else
35379             { echo "$as_me:$LINENO: result: no" >&5
35380 echo "${ECHO_T}no" >&6; }
35381             { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
35382 echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
35383             wxUSE_DISPLAY="no"
35384         fi
35385     elif test "$wxUSE_MSW" = 1; then
35386         { echo "$as_me:$LINENO: checking for ddraw.h" >&5
35387 echo $ECHO_N "checking for ddraw.h... $ECHO_C" >&6; }
35388 if test "${ac_cv_header_ddraw_h+set}" = set; then
35389   echo $ECHO_N "(cached) $ECHO_C" >&6
35390 else
35391   cat >conftest.$ac_ext <<_ACEOF
35392 /* confdefs.h.  */
35393 _ACEOF
35394 cat confdefs.h >>conftest.$ac_ext
35395 cat >>conftest.$ac_ext <<_ACEOF
35396 /* end confdefs.h.  */
35397 #include <windows.h>
35398
35399 #include <ddraw.h>
35400 _ACEOF
35401 rm -f conftest.$ac_objext
35402 if { (ac_try="$ac_compile"
35403 case "(($ac_try" in
35404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35405   *) ac_try_echo=$ac_try;;
35406 esac
35407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35408   (eval "$ac_compile") 2>conftest.er1
35409   ac_status=$?
35410   grep -v '^ *+' conftest.er1 >conftest.err
35411   rm -f conftest.er1
35412   cat conftest.err >&5
35413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35414   (exit $ac_status); } && {
35415          test -z "$ac_c_werror_flag" ||
35416          test ! -s conftest.err
35417        } && test -s conftest.$ac_objext; then
35418   ac_cv_header_ddraw_h=yes
35419 else
35420   echo "$as_me: failed program was:" >&5
35421 sed 's/^/| /' conftest.$ac_ext >&5
35422
35423         ac_cv_header_ddraw_h=no
35424 fi
35425
35426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35427 fi
35428 { echo "$as_me:$LINENO: result: $ac_cv_header_ddraw_h" >&5
35429 echo "${ECHO_T}$ac_cv_header_ddraw_h" >&6; }
35430
35431
35432     fi
35433 fi
35434
35435 if test "$wxUSE_DETECT_SM" = "yes"; then
35436     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
35437         { echo "$as_me:$LINENO: checking for -lSM - X11 session management" >&5
35438 echo $ECHO_N "checking for -lSM - X11 session management... $ECHO_C" >&6; }
35439
35440   ac_find_libraries=
35441   for ac_dir in $SEARCH_LIB;
35442   do
35443     for ac_extension in a so sl dylib dll.a; do
35444       if test -f "$ac_dir/libSM.$ac_extension"; then
35445         ac_find_libraries=$ac_dir
35446         break 2
35447       fi
35448     done
35449   done
35450
35451         if test "$ac_find_libraries" != "" ; then
35452
35453     if test "$ac_find_libraries" = "default location"; then
35454     ac_path_to_link=""
35455   else
35456     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
35457     result=$?
35458     if test $result = 0; then
35459       ac_path_to_link=""
35460     else
35461       ac_path_to_link=" -L$ac_find_libraries"
35462     fi
35463   fi
35464
35465             if test "$ac_path_to_link" != " -L/usr/lib" ; then
35466                 LDFLAGS="$LDFLAGS $ac_path_to_link"
35467             fi
35468             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lSM"
35469             { echo "$as_me:$LINENO: result: yes" >&5
35470 echo "${ECHO_T}yes" >&6; }
35471         else
35472             { echo "$as_me:$LINENO: result: no" >&5
35473 echo "${ECHO_T}no" >&6; }
35474             { echo "$as_me:$LINENO: WARNING: libSM not found; disabling session management detection" >&5
35475 echo "$as_me: WARNING: libSM not found; disabling session management detection" >&2;}
35476             wxUSE_DETECT_SM="no"
35477         fi
35478     else
35479         wxUSE_DETECT_SM="no"
35480     fi
35481 fi
35482
35483
35484
35485 USE_OPENGL=0
35486 if test "$wxUSE_OPENGL" = "yes"; then
35487     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = "1"; then
35488         { echo "$as_me:$LINENO: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&5
35489 echo "$as_me: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&2;}
35490         wxUSE_OPENGL="no"
35491     elif test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
35492         OPENGL_LIBS="-framework OpenGL -framework AGL"
35493     elif test "$wxUSE_MSW" = 1; then
35494         OPENGL_LIBS="-lopengl32 -lglu32"
35495     else
35496                         { echo "$as_me:$LINENO: checking for OpenGL headers" >&5
35497 echo $ECHO_N "checking for OpenGL headers... $ECHO_C" >&6; }
35498
35499 ac_find_includes=
35500 for ac_dir in $SEARCH_INCLUDE /opt/graphics/OpenGL/include /usr/include;
35501   do
35502     if test -f "$ac_dir/GL/gl.h"; then
35503       ac_find_includes=$ac_dir
35504       break
35505     fi
35506   done
35507
35508         if test "$ac_find_includes" != "" ; then
35509             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
35510 echo "${ECHO_T}found in $ac_find_includes" >&6; }
35511
35512     if test "x$ac_find_includes" = "x/usr/include"; then
35513     ac_path_to_include=""
35514   else
35515     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
35516     result=$?
35517     if test $result = 0; then
35518       ac_path_to_include=""
35519     else
35520       ac_path_to_include=" -I$ac_find_includes"
35521     fi
35522   fi
35523
35524             CPPFLAGS="$ac_path_to_include $CPPFLAGS"
35525         else
35526             { echo "$as_me:$LINENO: result: not found" >&5
35527 echo "${ECHO_T}not found" >&6; }
35528         fi
35529
35530         { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
35531 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
35532 if test "${ac_cv_header_GL_gl_h+set}" = set; then
35533   echo $ECHO_N "(cached) $ECHO_C" >&6
35534 else
35535   cat >conftest.$ac_ext <<_ACEOF
35536 /* confdefs.h.  */
35537 _ACEOF
35538 cat confdefs.h >>conftest.$ac_ext
35539 cat >>conftest.$ac_ext <<_ACEOF
35540 /* end confdefs.h.  */
35541
35542
35543 #include <GL/gl.h>
35544 _ACEOF
35545 rm -f conftest.$ac_objext
35546 if { (ac_try="$ac_compile"
35547 case "(($ac_try" in
35548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35549   *) ac_try_echo=$ac_try;;
35550 esac
35551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35552   (eval "$ac_compile") 2>conftest.er1
35553   ac_status=$?
35554   grep -v '^ *+' conftest.er1 >conftest.err
35555   rm -f conftest.er1
35556   cat conftest.err >&5
35557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35558   (exit $ac_status); } && {
35559          test -z "$ac_c_werror_flag" ||
35560          test ! -s conftest.err
35561        } && test -s conftest.$ac_objext; then
35562   ac_cv_header_GL_gl_h=yes
35563 else
35564   echo "$as_me: failed program was:" >&5
35565 sed 's/^/| /' conftest.$ac_ext >&5
35566
35567         ac_cv_header_GL_gl_h=no
35568 fi
35569
35570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35571 fi
35572 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
35573 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
35574 if test $ac_cv_header_GL_gl_h = yes; then
35575
35576             if test "${ac_cv_header_GL_glu_h+set}" = set; then
35577   { echo "$as_me:$LINENO: checking for GL/glu.h" >&5
35578 echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6; }
35579 if test "${ac_cv_header_GL_glu_h+set}" = set; then
35580   echo $ECHO_N "(cached) $ECHO_C" >&6
35581 fi
35582 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
35583 echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6; }
35584 else
35585   # Is the header compilable?
35586 { echo "$as_me:$LINENO: checking GL/glu.h usability" >&5
35587 echo $ECHO_N "checking GL/glu.h usability... $ECHO_C" >&6; }
35588 cat >conftest.$ac_ext <<_ACEOF
35589 /* confdefs.h.  */
35590 _ACEOF
35591 cat confdefs.h >>conftest.$ac_ext
35592 cat >>conftest.$ac_ext <<_ACEOF
35593 /* end confdefs.h.  */
35594 $ac_includes_default
35595 #include <GL/glu.h>
35596 _ACEOF
35597 rm -f conftest.$ac_objext
35598 if { (ac_try="$ac_compile"
35599 case "(($ac_try" in
35600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35601   *) ac_try_echo=$ac_try;;
35602 esac
35603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35604   (eval "$ac_compile") 2>conftest.er1
35605   ac_status=$?
35606   grep -v '^ *+' conftest.er1 >conftest.err
35607   rm -f conftest.er1
35608   cat conftest.err >&5
35609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35610   (exit $ac_status); } && {
35611          test -z "$ac_c_werror_flag" ||
35612          test ! -s conftest.err
35613        } && test -s conftest.$ac_objext; then
35614   ac_header_compiler=yes
35615 else
35616   echo "$as_me: failed program was:" >&5
35617 sed 's/^/| /' conftest.$ac_ext >&5
35618
35619         ac_header_compiler=no
35620 fi
35621
35622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35623 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35624 echo "${ECHO_T}$ac_header_compiler" >&6; }
35625
35626 # Is the header present?
35627 { echo "$as_me:$LINENO: checking GL/glu.h presence" >&5
35628 echo $ECHO_N "checking GL/glu.h presence... $ECHO_C" >&6; }
35629 cat >conftest.$ac_ext <<_ACEOF
35630 /* confdefs.h.  */
35631 _ACEOF
35632 cat confdefs.h >>conftest.$ac_ext
35633 cat >>conftest.$ac_ext <<_ACEOF
35634 /* end confdefs.h.  */
35635 #include <GL/glu.h>
35636 _ACEOF
35637 if { (ac_try="$ac_cpp conftest.$ac_ext"
35638 case "(($ac_try" in
35639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35640   *) ac_try_echo=$ac_try;;
35641 esac
35642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35643   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35644   ac_status=$?
35645   grep -v '^ *+' conftest.er1 >conftest.err
35646   rm -f conftest.er1
35647   cat conftest.err >&5
35648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35649   (exit $ac_status); } >/dev/null && {
35650          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35651          test ! -s conftest.err
35652        }; then
35653   ac_header_preproc=yes
35654 else
35655   echo "$as_me: failed program was:" >&5
35656 sed 's/^/| /' conftest.$ac_ext >&5
35657
35658   ac_header_preproc=no
35659 fi
35660
35661 rm -f conftest.err conftest.$ac_ext
35662 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35663 echo "${ECHO_T}$ac_header_preproc" >&6; }
35664
35665 # So?  What about this header?
35666 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35667   yes:no: )
35668     { echo "$as_me:$LINENO: WARNING: GL/glu.h: accepted by the compiler, rejected by the preprocessor!" >&5
35669 echo "$as_me: WARNING: GL/glu.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35670     { echo "$as_me:$LINENO: WARNING: GL/glu.h: proceeding with the compiler's result" >&5
35671 echo "$as_me: WARNING: GL/glu.h: proceeding with the compiler's result" >&2;}
35672     ac_header_preproc=yes
35673     ;;
35674   no:yes:* )
35675     { echo "$as_me:$LINENO: WARNING: GL/glu.h: present but cannot be compiled" >&5
35676 echo "$as_me: WARNING: GL/glu.h: present but cannot be compiled" >&2;}
35677     { echo "$as_me:$LINENO: WARNING: GL/glu.h:     check for missing prerequisite headers?" >&5
35678 echo "$as_me: WARNING: GL/glu.h:     check for missing prerequisite headers?" >&2;}
35679     { echo "$as_me:$LINENO: WARNING: GL/glu.h: see the Autoconf documentation" >&5
35680 echo "$as_me: WARNING: GL/glu.h: see the Autoconf documentation" >&2;}
35681     { echo "$as_me:$LINENO: WARNING: GL/glu.h:     section \"Present But Cannot Be Compiled\"" >&5
35682 echo "$as_me: WARNING: GL/glu.h:     section \"Present But Cannot Be Compiled\"" >&2;}
35683     { echo "$as_me:$LINENO: WARNING: GL/glu.h: proceeding with the preprocessor's result" >&5
35684 echo "$as_me: WARNING: GL/glu.h: proceeding with the preprocessor's result" >&2;}
35685     { echo "$as_me:$LINENO: WARNING: GL/glu.h: in the future, the compiler will take precedence" >&5
35686 echo "$as_me: WARNING: GL/glu.h: in the future, the compiler will take precedence" >&2;}
35687     ( cat <<\_ASBOX
35688 ## ----------------------------------------- ##
35689 ## Report this to wx-dev@lists.wxwidgets.org ##
35690 ## ----------------------------------------- ##
35691 _ASBOX
35692      ) | sed "s/^/$as_me: WARNING:     /" >&2
35693     ;;
35694 esac
35695 { echo "$as_me:$LINENO: checking for GL/glu.h" >&5
35696 echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6; }
35697 if test "${ac_cv_header_GL_glu_h+set}" = set; then
35698   echo $ECHO_N "(cached) $ECHO_C" >&6
35699 else
35700   ac_cv_header_GL_glu_h=$ac_header_preproc
35701 fi
35702 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
35703 echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6; }
35704
35705 fi
35706 if test $ac_cv_header_GL_glu_h = yes; then
35707
35708                 found_gl=0
35709
35710                 { echo "$as_me:$LINENO: checking for -lGL" >&5
35711 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6; }
35712
35713   ac_find_libraries=
35714   for ac_dir in $SEARCH_LIB /opt/graphics/OpenGL/lib;
35715   do
35716     for ac_extension in a so sl dylib dll.a; do
35717       if test -f "$ac_dir/libGL.$ac_extension"; then
35718         ac_find_libraries=$ac_dir
35719         break 2
35720       fi
35721     done
35722   done
35723
35724                 if test "$ac_find_libraries" != "" ; then
35725                     { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
35726 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
35727
35728
35729     if test "$ac_find_libraries" = "default location"; then
35730     ac_path_to_link=""
35731   else
35732     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
35733     result=$?
35734     if test $result = 0; then
35735       ac_path_to_link=""
35736     else
35737       ac_path_to_link=" -L$ac_find_libraries"
35738     fi
35739   fi
35740
35741                     if test "$ac_path_to_link" != " -L/usr/lib" ; then
35742                         LDFLAGS_GL="$ac_path_to_link"
35743                     fi
35744
35745                                                                                 { echo "$as_me:$LINENO: checking for -lGLU" >&5
35746 echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6; }
35747
35748   ac_find_libraries=
35749   for ac_dir in $SEARCH_LIB;
35750   do
35751     for ac_extension in a so sl dylib dll.a; do
35752       if test -f "$ac_dir/libGLU.$ac_extension"; then
35753         ac_find_libraries=$ac_dir
35754         break 2
35755       fi
35756     done
35757   done
35758
35759                     if test "$ac_find_libraries" != "" ; then
35760
35761     if test "$ac_find_libraries" = "default location"; then
35762     ac_path_to_link=""
35763   else
35764     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
35765     result=$?
35766     if test $result = 0; then
35767       ac_path_to_link=""
35768     else
35769       ac_path_to_link=" -L$ac_find_libraries"
35770     fi
35771   fi
35772
35773                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
35774                                     "$ac_path_to_link" != "$LDFLAGS_GL"; then
35775                             LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
35776                         fi
35777
35778                         found_gl=1
35779                         OPENGL_LIBS="-lGL -lGLU"
35780                         { echo "$as_me:$LINENO: result: yes" >&5
35781 echo "${ECHO_T}yes" >&6; }
35782                     else
35783                         { echo "$as_me:$LINENO: result: no" >&5
35784 echo "${ECHO_T}no" >&6; }
35785                     fi
35786                 else
35787                     { echo "$as_me:$LINENO: result: no" >&5
35788 echo "${ECHO_T}no" >&6; }
35789                 fi
35790
35791                 if test "$found_gl" != 1; then
35792                     { echo "$as_me:$LINENO: checking for -lMesaGL" >&5
35793 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6; }
35794
35795   ac_find_libraries=
35796   for ac_dir in $SEARCH_LIB;
35797   do
35798     for ac_extension in a so sl dylib dll.a; do
35799       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
35800         ac_find_libraries=$ac_dir
35801         break 2
35802       fi
35803     done
35804   done
35805
35806                     if test "$ac_find_libraries" != "" ; then
35807
35808     if test "$ac_find_libraries" = "default location"; then
35809     ac_path_to_link=""
35810   else
35811     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
35812     result=$?
35813     if test $result = 0; then
35814       ac_path_to_link=""
35815     else
35816       ac_path_to_link=" -L$ac_find_libraries"
35817     fi
35818   fi
35819
35820                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
35821                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
35822                         { echo "$as_me:$LINENO: result: yes" >&5
35823 echo "${ECHO_T}yes" >&6; }
35824                     else
35825                         { echo "$as_me:$LINENO: result: no" >&5
35826 echo "${ECHO_T}no" >&6; }
35827                     fi
35828                 fi
35829
35830 fi
35831
35832
35833
35834 fi
35835
35836
35837
35838         if test "x$OPENGL_LIBS" = "x"; then
35839                                                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
35840 echo "$as_me: error: OpenGL libraries not available" >&2;}
35841    { (exit 1); exit 1; }; }
35842         fi
35843     fi
35844
35845     if test "$wxUSE_OPENGL" = "yes"; then
35846         USE_OPENGL=1
35847         cat >>confdefs.h <<\_ACEOF
35848 #define wxUSE_OPENGL 1
35849 _ACEOF
35850
35851         cat >>confdefs.h <<\_ACEOF
35852 #define wxUSE_GLCANVAS 1
35853 _ACEOF
35854
35855         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
35856     fi
35857 fi
35858
35859
35860 if test -n "$TOOLKIT" ; then
35861     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
35862 fi
35863
35864
35865
35866 if test "$wxUSE_SHARED" = "yes"; then
35867     case "${host}" in
35868       *-pc-msdosdjgpp )
35869                 wxUSE_SHARED=no
35870         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
35871 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
35872       ;;
35873     esac
35874 fi
35875
35876 if test "$wxUSE_SHARED" = "yes"; then
35877
35878
35879     case "${host}" in
35880         *-*-cygwin* | *-*-mingw* )
35881                                                                                                 wx_cv_version_script=no
35882             ;;
35883
35884         *)
35885             { echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
35886 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6; }
35887 if test "${wx_cv_version_script+set}" = set; then
35888   echo $ECHO_N "(cached) $ECHO_C" >&6
35889 else
35890
35891                 echo "VER_1 { *; };" >conftest.sym
35892                 echo "int main() { return 0; }" >conftest.cpp
35893
35894                 if { ac_try='
35895                         $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
35896                         -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
35897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35898   (eval $ac_try) 2>&5
35899   ac_status=$?
35900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35901   (exit $ac_status); }; } ; then
35902                   if test -s conftest.stderr ; then
35903                       wx_cv_version_script=no
35904                   else
35905                       wx_cv_version_script=yes
35906                   fi
35907                 else
35908                   wx_cv_version_script=no
35909                 fi
35910
35911                                                                                                                                                                                                 if test $wx_cv_version_script = yes
35912                 then
35913                   echo "struct B { virtual ~B() { } }; \
35914                         struct D : public B { }; \
35915                         void F() { D d; }" > conftest.cpp
35916
35917                   if { ac_try='
35918                         $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
35919                         -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
35920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35921   (eval $ac_try) 2>&5
35922   ac_status=$?
35923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35924   (exit $ac_status); }; } &&
35925                      { ac_try='
35926                         $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
35927                         -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
35928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35929   (eval $ac_try) 2>&5
35930   ac_status=$?
35931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35932   (exit $ac_status); }; }
35933                   then
35934                     if { ac_try='
35935                           $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
35936                           -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
35937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35938   (eval $ac_try) 2>&5
35939   ac_status=$?
35940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35941   (exit $ac_status); }; }
35942                     then
35943                       wx_cv_version_script=yes
35944                     else
35945                       wx_cv_version_script=no
35946                     fi
35947                   fi
35948                 fi
35949
35950                 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
35951                 rm -f conftest1.output conftest2.output conftest3.output
35952
35953 fi
35954 { echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
35955 echo "${ECHO_T}$wx_cv_version_script" >&6; }
35956
35957             if test $wx_cv_version_script = yes ; then
35958                 LDFLAGS_VERSIONING="-Wl,--version-script,\$(wx_top_builddir)/version-script"
35959             fi
35960             ;;
35961     esac
35962
35963
35964             if test "$wxUSE_VISIBILITY" != "no"; then
35965
35966
35967   if test -n "$GCC"; then
35968     CFLAGS_VISIBILITY="-fvisibility=hidden"
35969     CXXFLAGS_VISIBILITY="-fvisibility=hidden -fvisibility-inlines-hidden"
35970     { echo "$as_me:$LINENO: checking for symbols visibility support" >&5
35971 echo $ECHO_N "checking for symbols visibility support... $ECHO_C" >&6; }
35972     if test "${wx_cv_cc_visibility+set}" = set; then
35973   echo $ECHO_N "(cached) $ECHO_C" >&6
35974 else
35975
35976       wx_save_CXXFLAGS="$CXXFLAGS"
35977       CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
35978       ac_ext=cpp
35979 ac_cpp='$CXXCPP $CPPFLAGS'
35980 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35981 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35982 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35983
35984       cat >conftest.$ac_ext <<_ACEOF
35985 /* confdefs.h.  */
35986 _ACEOF
35987 cat confdefs.h >>conftest.$ac_ext
35988 cat >>conftest.$ac_ext <<_ACEOF
35989 /* end confdefs.h.  */
35990
35991          /* we need gcc >= 4.0, older versions with visibility support
35992             didn't have class visibility: */
35993          #if defined(__GNUC__) && __GNUC__ < 4
35994          error this gcc is too old;
35995          #endif
35996
35997          extern __attribute__((__visibility__("hidden"))) int hiddenvar;
35998          extern __attribute__((__visibility__("default"))) int exportedvar;
35999          extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
36000          extern __attribute__((__visibility__("default"))) int exportedfunc (void);
36001          class __attribute__((__visibility__("default"))) Foo {
36002            Foo() {}
36003          };
36004
36005 int
36006 main ()
36007 {
36008
36009   ;
36010   return 0;
36011 }
36012 _ACEOF
36013 rm -f conftest.$ac_objext
36014 if { (ac_try="$ac_compile"
36015 case "(($ac_try" in
36016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36017   *) ac_try_echo=$ac_try;;
36018 esac
36019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36020   (eval "$ac_compile") 2>conftest.er1
36021   ac_status=$?
36022   grep -v '^ *+' conftest.er1 >conftest.err
36023   rm -f conftest.er1
36024   cat conftest.err >&5
36025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36026   (exit $ac_status); } && {
36027          test -z "$ac_cxx_werror_flag" ||
36028          test ! -s conftest.err
36029        } && test -s conftest.$ac_objext; then
36030   wx_cv_cc_visibility=yes
36031 else
36032   echo "$as_me: failed program was:" >&5
36033 sed 's/^/| /' conftest.$ac_ext >&5
36034
36035         wx_cv_cc_visibility=no
36036 fi
36037
36038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36039       ac_ext=c
36040 ac_cpp='$CPP $CPPFLAGS'
36041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36044
36045       CXXFLAGS="$wx_save_CXXFLAGS"
36046 fi
36047
36048     { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility" >&5
36049 echo "${ECHO_T}$wx_cv_cc_visibility" >&6; }
36050     if test $wx_cv_cc_visibility = yes; then
36051       cat >>confdefs.h <<\_ACEOF
36052 #define HAVE_VISIBILITY 1
36053 _ACEOF
36054
36055     else
36056       CFLAGS_VISIBILITY=""
36057       CXXFLAGS_VISIBILITY=""
36058     fi
36059
36060
36061   fi
36062
36063     fi
36064
36065         if test "x$SUNCXX" = xyes; then
36066         SAMPLES_RPATH_FLAG="-R\$(wx_top_builddir)/lib"
36067         WXCONFIG_RPATH="-R\$libdir"
36068     else
36069     case "${host}" in
36070       *-*-linux* | *-*-gnu* )
36071         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
36072         WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
36073         ;;
36074
36075       *-*-solaris2* )
36076
36077                         CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
36078
36079                         saveLdflags="$LDFLAGS"
36080         LDFLAGS="$saveLdflags -Wl,-rpath,/"
36081         { echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
36082 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6; }
36083         cat >conftest.$ac_ext <<_ACEOF
36084 /* confdefs.h.  */
36085 _ACEOF
36086 cat confdefs.h >>conftest.$ac_ext
36087 cat >>conftest.$ac_ext <<_ACEOF
36088 /* end confdefs.h.  */
36089
36090 int
36091 main ()
36092 {
36093
36094   ;
36095   return 0;
36096 }
36097 _ACEOF
36098 rm -f conftest.$ac_objext conftest$ac_exeext
36099 if { (ac_try="$ac_link"
36100 case "(($ac_try" in
36101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36102   *) ac_try_echo=$ac_try;;
36103 esac
36104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36105   (eval "$ac_link") 2>conftest.er1
36106   ac_status=$?
36107   grep -v '^ *+' conftest.er1 >conftest.err
36108   rm -f conftest.er1
36109   cat conftest.err >&5
36110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36111   (exit $ac_status); } && {
36112          test -z "$ac_c_werror_flag" ||
36113          test ! -s conftest.err
36114        } && test -s conftest$ac_exeext &&
36115        $as_test_x conftest$ac_exeext; then
36116
36117                 { echo "$as_me:$LINENO: result: yes" >&5
36118 echo "${ECHO_T}yes" >&6; }
36119                 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
36120                 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
36121
36122 else
36123   echo "$as_me: failed program was:" >&5
36124 sed 's/^/| /' conftest.$ac_ext >&5
36125
36126
36127                 { echo "$as_me:$LINENO: result: no" >&5
36128 echo "${ECHO_T}no" >&6; }
36129                 { echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
36130 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6; }
36131                 LDFLAGS="$saveLdflags -Wl,-R,/"
36132                 cat >conftest.$ac_ext <<_ACEOF
36133 /* confdefs.h.  */
36134 _ACEOF
36135 cat confdefs.h >>conftest.$ac_ext
36136 cat >>conftest.$ac_ext <<_ACEOF
36137 /* end confdefs.h.  */
36138
36139 int
36140 main ()
36141 {
36142
36143   ;
36144   return 0;
36145 }
36146 _ACEOF
36147 rm -f conftest.$ac_objext conftest$ac_exeext
36148 if { (ac_try="$ac_link"
36149 case "(($ac_try" in
36150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36151   *) ac_try_echo=$ac_try;;
36152 esac
36153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36154   (eval "$ac_link") 2>conftest.er1
36155   ac_status=$?
36156   grep -v '^ *+' conftest.er1 >conftest.err
36157   rm -f conftest.er1
36158   cat conftest.err >&5
36159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36160   (exit $ac_status); } && {
36161          test -z "$ac_c_werror_flag" ||
36162          test ! -s conftest.err
36163        } && test -s conftest$ac_exeext &&
36164        $as_test_x conftest$ac_exeext; then
36165
36166                         { echo "$as_me:$LINENO: result: yes" >&5
36167 echo "${ECHO_T}yes" >&6; }
36168                         SAMPLES_RPATH_FLAG="-Wl,-R,\$(wx_top_builddir)/lib"
36169                         WXCONFIG_RPATH="-Wl,-R,\$libdir"
36170
36171 else
36172   echo "$as_me: failed program was:" >&5
36173 sed 's/^/| /' conftest.$ac_ext >&5
36174
36175
36176                         { echo "$as_me:$LINENO: result: no" >&5
36177 echo "${ECHO_T}no" >&6; }
36178
36179 fi
36180
36181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36182       conftest$ac_exeext conftest.$ac_ext
36183
36184 fi
36185
36186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36187       conftest$ac_exeext conftest.$ac_ext
36188         LDFLAGS="$saveLdflags"
36189       ;;
36190
36191       *-*-darwin* )
36192         install_name_tool=`which install_name_tool`
36193         if test "$install_name_tool" -a -x "$install_name_tool"; then
36194             SAMPLES_RPATH_POSTLINK="\$(wx_top_builddir)/change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
36195             cat <<EOF >change-install-names
36196 #!/bin/sh
36197 libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
36198 inst_cmd="install_name_tool "
36199 for i in \${libnames} ; do
36200     inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
36201 done
36202 \${inst_cmd} \${3}
36203 EOF
36204             chmod +x change-install-names
36205         fi
36206       ;;
36207
36208       *-*-cygwin* | *-*-mingw32* )
36209                         WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
36210         ;;
36211
36212       *-*-hpux* )
36213         SAMPLES_RPATH_FLAG="-Wl,+b,\$(wx_top_builddir)/lib"
36214         WXCONFIG_RPATH="-Wl,+b,\$libdir"
36215         ;;
36216
36217     esac
36218     fi
36219
36220     if test $wxUSE_RPATH = "no"; then
36221         SAMPLES_RPATH_FLAG=''
36222         SAMPLES_RPATH_POSTLINK=''
36223         WXCONFIG_RPATH=''
36224     fi
36225
36226     SHARED=1
36227
36228 else
36229
36230     config_linkage_component="-static"
36231     SHARED=0
36232
36233 fi
36234
36235
36236 UNICODE=0
36237 lib_unicode_suffix=
36238 WX_CHARTYPE="ansi"
36239 if test "$wxUSE_UNICODE" = "yes"; then
36240     lib_unicode_suffix=u
36241     WX_CHARTYPE="unicode"
36242     UNICODE=1
36243 fi
36244
36245 lib_debug_suffix=
36246 WX_DEBUGTYPE="release"
36247 DEBUG_FLAG=0
36248 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
36249     lib_debug_suffix=d
36250     WX_DEBUGTYPE="debug"
36251     DEBUG_FLAG=1
36252 fi
36253
36254 WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
36255 WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
36256
36257 DEBUG_INFO=0
36258 if test "$wxUSE_DEBUG_INFO" = "yes"; then
36259     DEBUG_INFO=1
36260 fi
36261
36262 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
36263
36264 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
36265
36266 TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
36267
36268 if test "$cross_compiling" = "yes"; then
36269     HOST_SUFFIX="-$host_alias"
36270     TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
36271     TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
36272 fi
36273
36274 WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
36275 if test "${TOOLKIT_DIR}" = "os2"; then
36276     WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
36277 else
36278     WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
36279 fi
36280
36281
36282
36283 if test "$wxUSE_COCOA" = 1; then
36284
36285     ac_ext=c
36286 ac_cpp='$CPP $CPPFLAGS'
36287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36290
36291 ac_ext=m
36292
36293     { echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
36294 echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6; }
36295     cat >conftest.$ac_ext <<_ACEOF
36296 /* confdefs.h.  */
36297 _ACEOF
36298 cat confdefs.h >>conftest.$ac_ext
36299 cat >>conftest.$ac_ext <<_ACEOF
36300 /* end confdefs.h.  */
36301 #include <AppKit/NSEvent.h>
36302 #include <CoreFoundation/CoreFoundation.h>
36303
36304 int
36305 main ()
36306 {
36307
36308   ;
36309   return 0;
36310 }
36311 _ACEOF
36312 rm -f conftest.$ac_objext
36313 if { (ac_try="$ac_compile"
36314 case "(($ac_try" in
36315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36316   *) ac_try_echo=$ac_try;;
36317 esac
36318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36319   (eval "$ac_compile") 2>conftest.er1
36320   ac_status=$?
36321   grep -v '^ *+' conftest.er1 >conftest.err
36322   rm -f conftest.er1
36323   cat conftest.err >&5
36324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36325   (exit $ac_status); } && {
36326          test -z "$ac_c_werror_flag" ||
36327          test ! -s conftest.err
36328        } && test -s conftest.$ac_objext; then
36329   { echo "$as_me:$LINENO: result: no" >&5
36330 echo "${ECHO_T}no" >&6; }
36331 else
36332   echo "$as_me: failed program was:" >&5
36333 sed 's/^/| /' conftest.$ac_ext >&5
36334
36335         { echo "$as_me:$LINENO: result: yes" >&5
36336 echo "${ECHO_T}yes" >&6; }
36337         { echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
36338 echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6; }
36339         cat >conftest.$ac_ext <<_ACEOF
36340 /* confdefs.h.  */
36341 _ACEOF
36342 cat confdefs.h >>conftest.$ac_ext
36343 cat >>conftest.$ac_ext <<_ACEOF
36344 /* end confdefs.h.  */
36345 #define __Point__ 1
36346 #include <AppKit/NSEvent.h>
36347 #include <CoreFoundation/CoreFoundation.h>
36348
36349 int
36350 main ()
36351 {
36352
36353   ;
36354   return 0;
36355 }
36356 _ACEOF
36357 rm -f conftest.$ac_objext
36358 if { (ac_try="$ac_compile"
36359 case "(($ac_try" in
36360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36361   *) ac_try_echo=$ac_try;;
36362 esac
36363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36364   (eval "$ac_compile") 2>conftest.er1
36365   ac_status=$?
36366   grep -v '^ *+' conftest.er1 >conftest.err
36367   rm -f conftest.er1
36368   cat conftest.err >&5
36369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36370   (exit $ac_status); } && {
36371          test -z "$ac_c_werror_flag" ||
36372          test ! -s conftest.err
36373        } && test -s conftest.$ac_objext; then
36374   { echo "$as_me:$LINENO: result: yes" >&5
36375 echo "${ECHO_T}yes" >&6; }
36376             cat >>confdefs.h <<\_ACEOF
36377 #define __Point__ 1
36378 _ACEOF
36379
36380
36381 else
36382   echo "$as_me: failed program was:" >&5
36383 sed 's/^/| /' conftest.$ac_ext >&5
36384
36385         { { echo "$as_me:$LINENO: error: no
36386 See \`config.log' for more details." >&5
36387 echo "$as_me: error: no
36388 See \`config.log' for more details." >&2;}
36389    { (exit 1); exit 1; }; }
36390
36391 fi
36392
36393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36394
36395 fi
36396
36397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36398     ac_ext=c
36399 ac_cpp='$CPP $CPPFLAGS'
36400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36403
36404 fi
36405
36406 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
36407             WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
36408     WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
36409
36410         LIBWXMACRES="\$(wx_top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
36411
36412     # Extract the first word of "Rez", so it can be a program name with args.
36413 set dummy Rez; ac_word=$2
36414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
36415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
36416 if test "${ac_cv_prog_REZ+set}" = set; then
36417   echo $ECHO_N "(cached) $ECHO_C" >&6
36418 else
36419   if test -n "$REZ"; then
36420   ac_cv_prog_REZ="$REZ" # Let the user override the test.
36421 else
36422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36423 for as_dir in $PATH
36424 do
36425   IFS=$as_save_IFS
36426   test -z "$as_dir" && as_dir=.
36427   for ac_exec_ext in '' $ac_executable_extensions; do
36428   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36429     ac_cv_prog_REZ="Rez"
36430     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36431     break 2
36432   fi
36433 done
36434 done
36435 IFS=$as_save_IFS
36436
36437   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
36438 fi
36439 fi
36440 REZ=$ac_cv_prog_REZ
36441 if test -n "$REZ"; then
36442   { echo "$as_me:$LINENO: result: $REZ" >&5
36443 echo "${ECHO_T}$REZ" >&6; }
36444 else
36445   { echo "$as_me:$LINENO: result: no" >&5
36446 echo "${ECHO_T}no" >&6; }
36447 fi
36448
36449
36450     # Extract the first word of "DeRez", so it can be a program name with args.
36451 set dummy DeRez; ac_word=$2
36452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
36453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
36454 if test "${ac_cv_prog_DEREZ+set}" = set; then
36455   echo $ECHO_N "(cached) $ECHO_C" >&6
36456 else
36457   if test -n "$DEREZ"; then
36458   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
36459 else
36460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36461 for as_dir in $PATH
36462 do
36463   IFS=$as_save_IFS
36464   test -z "$as_dir" && as_dir=.
36465   for ac_exec_ext in '' $ac_executable_extensions; do
36466   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36467     ac_cv_prog_DEREZ="DeRez"
36468     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36469     break 2
36470   fi
36471 done
36472 done
36473 IFS=$as_save_IFS
36474
36475   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
36476 fi
36477 fi
36478 DEREZ=$ac_cv_prog_DEREZ
36479 if test -n "$DEREZ"; then
36480   { echo "$as_me:$LINENO: result: $DEREZ" >&5
36481 echo "${ECHO_T}$DEREZ" >&6; }
36482 else
36483   { echo "$as_me:$LINENO: result: no" >&5
36484 echo "${ECHO_T}no" >&6; }
36485 fi
36486
36487
36488     # Extract the first word of "SetFile", so it can be a program name with args.
36489 set dummy SetFile; ac_word=$2
36490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
36491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
36492 if test "${ac_cv_prog_SETFILE+set}" = set; then
36493   echo $ECHO_N "(cached) $ECHO_C" >&6
36494 else
36495   if test -n "$SETFILE"; then
36496   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
36497 else
36498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36499 for as_dir in $PATH
36500 do
36501   IFS=$as_save_IFS
36502   test -z "$as_dir" && as_dir=.
36503   for ac_exec_ext in '' $ac_executable_extensions; do
36504   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36505     ac_cv_prog_SETFILE="SetFile"
36506     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36507     break 2
36508   fi
36509 done
36510 done
36511 IFS=$as_save_IFS
36512
36513   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
36514 fi
36515 fi
36516 SETFILE=$ac_cv_prog_SETFILE
36517 if test -n "$SETFILE"; then
36518   { echo "$as_me:$LINENO: result: $SETFILE" >&5
36519 echo "${ECHO_T}$SETFILE" >&6; }
36520 else
36521   { echo "$as_me:$LINENO: result: no" >&5
36522 echo "${ECHO_T}no" >&6; }
36523 fi
36524
36525
36526
36527     MACSETFILE="\$(SETFILE)"
36528
36529             if test "$wxUSE_MAC" = 1; then
36530         POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
36531         RESCOMP="$REZ"
36532         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
36533     else
36534         POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
36535         RESCOMP="echo -n \| $REZ"
36536         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
36537     fi
36538
36539 else
36540         MACSETFILE="@true"
36541
36542     if test "$wxUSE_PM" = 1; then
36543         RESCOMP="emxbind"
36544         WXCONFIG_RESFLAGS="-ep"
36545
36546                 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
36547     else
36548         POSTLINK_COMMAND="@true"
36549     fi
36550
36551 fi
36552
36553
36554
36555 { echo "$as_me:$LINENO: checking for mode_t" >&5
36556 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
36557 if test "${ac_cv_type_mode_t+set}" = set; then
36558   echo $ECHO_N "(cached) $ECHO_C" >&6
36559 else
36560   cat >conftest.$ac_ext <<_ACEOF
36561 /* confdefs.h.  */
36562 _ACEOF
36563 cat confdefs.h >>conftest.$ac_ext
36564 cat >>conftest.$ac_ext <<_ACEOF
36565 /* end confdefs.h.  */
36566 $ac_includes_default
36567 typedef mode_t ac__type_new_;
36568 int
36569 main ()
36570 {
36571 if ((ac__type_new_ *) 0)
36572   return 0;
36573 if (sizeof (ac__type_new_))
36574   return 0;
36575   ;
36576   return 0;
36577 }
36578 _ACEOF
36579 rm -f conftest.$ac_objext
36580 if { (ac_try="$ac_compile"
36581 case "(($ac_try" in
36582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36583   *) ac_try_echo=$ac_try;;
36584 esac
36585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36586   (eval "$ac_compile") 2>conftest.er1
36587   ac_status=$?
36588   grep -v '^ *+' conftest.er1 >conftest.err
36589   rm -f conftest.er1
36590   cat conftest.err >&5
36591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36592   (exit $ac_status); } && {
36593          test -z "$ac_c_werror_flag" ||
36594          test ! -s conftest.err
36595        } && test -s conftest.$ac_objext; then
36596   ac_cv_type_mode_t=yes
36597 else
36598   echo "$as_me: failed program was:" >&5
36599 sed 's/^/| /' conftest.$ac_ext >&5
36600
36601         ac_cv_type_mode_t=no
36602 fi
36603
36604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36605 fi
36606 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
36607 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
36608 if test $ac_cv_type_mode_t = yes; then
36609   :
36610 else
36611
36612 cat >>confdefs.h <<_ACEOF
36613 #define mode_t int
36614 _ACEOF
36615
36616 fi
36617
36618 { echo "$as_me:$LINENO: checking for off_t" >&5
36619 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
36620 if test "${ac_cv_type_off_t+set}" = set; then
36621   echo $ECHO_N "(cached) $ECHO_C" >&6
36622 else
36623   cat >conftest.$ac_ext <<_ACEOF
36624 /* confdefs.h.  */
36625 _ACEOF
36626 cat confdefs.h >>conftest.$ac_ext
36627 cat >>conftest.$ac_ext <<_ACEOF
36628 /* end confdefs.h.  */
36629 $ac_includes_default
36630 typedef off_t ac__type_new_;
36631 int
36632 main ()
36633 {
36634 if ((ac__type_new_ *) 0)
36635   return 0;
36636 if (sizeof (ac__type_new_))
36637   return 0;
36638   ;
36639   return 0;
36640 }
36641 _ACEOF
36642 rm -f conftest.$ac_objext
36643 if { (ac_try="$ac_compile"
36644 case "(($ac_try" in
36645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36646   *) ac_try_echo=$ac_try;;
36647 esac
36648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36649   (eval "$ac_compile") 2>conftest.er1
36650   ac_status=$?
36651   grep -v '^ *+' conftest.er1 >conftest.err
36652   rm -f conftest.er1
36653   cat conftest.err >&5
36654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36655   (exit $ac_status); } && {
36656          test -z "$ac_c_werror_flag" ||
36657          test ! -s conftest.err
36658        } && test -s conftest.$ac_objext; then
36659   ac_cv_type_off_t=yes
36660 else
36661   echo "$as_me: failed program was:" >&5
36662 sed 's/^/| /' conftest.$ac_ext >&5
36663
36664         ac_cv_type_off_t=no
36665 fi
36666
36667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36668 fi
36669 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
36670 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
36671 if test $ac_cv_type_off_t = yes; then
36672   :
36673 else
36674
36675 cat >>confdefs.h <<_ACEOF
36676 #define off_t long int
36677 _ACEOF
36678
36679 fi
36680
36681 { echo "$as_me:$LINENO: checking for pid_t" >&5
36682 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
36683 if test "${ac_cv_type_pid_t+set}" = set; then
36684   echo $ECHO_N "(cached) $ECHO_C" >&6
36685 else
36686   cat >conftest.$ac_ext <<_ACEOF
36687 /* confdefs.h.  */
36688 _ACEOF
36689 cat confdefs.h >>conftest.$ac_ext
36690 cat >>conftest.$ac_ext <<_ACEOF
36691 /* end confdefs.h.  */
36692 $ac_includes_default
36693 typedef pid_t ac__type_new_;
36694 int
36695 main ()
36696 {
36697 if ((ac__type_new_ *) 0)
36698   return 0;
36699 if (sizeof (ac__type_new_))
36700   return 0;
36701   ;
36702   return 0;
36703 }
36704 _ACEOF
36705 rm -f conftest.$ac_objext
36706 if { (ac_try="$ac_compile"
36707 case "(($ac_try" in
36708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36709   *) ac_try_echo=$ac_try;;
36710 esac
36711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36712   (eval "$ac_compile") 2>conftest.er1
36713   ac_status=$?
36714   grep -v '^ *+' conftest.er1 >conftest.err
36715   rm -f conftest.er1
36716   cat conftest.err >&5
36717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36718   (exit $ac_status); } && {
36719          test -z "$ac_c_werror_flag" ||
36720          test ! -s conftest.err
36721        } && test -s conftest.$ac_objext; then
36722   ac_cv_type_pid_t=yes
36723 else
36724   echo "$as_me: failed program was:" >&5
36725 sed 's/^/| /' conftest.$ac_ext >&5
36726
36727         ac_cv_type_pid_t=no
36728 fi
36729
36730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36731 fi
36732 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
36733 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
36734 if test $ac_cv_type_pid_t = yes; then
36735   :
36736 else
36737
36738 cat >>confdefs.h <<_ACEOF
36739 #define pid_t int
36740 _ACEOF
36741
36742 fi
36743
36744 { echo "$as_me:$LINENO: checking for size_t" >&5
36745 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
36746 if test "${ac_cv_type_size_t+set}" = set; then
36747   echo $ECHO_N "(cached) $ECHO_C" >&6
36748 else
36749   cat >conftest.$ac_ext <<_ACEOF
36750 /* confdefs.h.  */
36751 _ACEOF
36752 cat confdefs.h >>conftest.$ac_ext
36753 cat >>conftest.$ac_ext <<_ACEOF
36754 /* end confdefs.h.  */
36755 $ac_includes_default
36756 typedef size_t ac__type_new_;
36757 int
36758 main ()
36759 {
36760 if ((ac__type_new_ *) 0)
36761   return 0;
36762 if (sizeof (ac__type_new_))
36763   return 0;
36764   ;
36765   return 0;
36766 }
36767 _ACEOF
36768 rm -f conftest.$ac_objext
36769 if { (ac_try="$ac_compile"
36770 case "(($ac_try" in
36771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36772   *) ac_try_echo=$ac_try;;
36773 esac
36774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36775   (eval "$ac_compile") 2>conftest.er1
36776   ac_status=$?
36777   grep -v '^ *+' conftest.er1 >conftest.err
36778   rm -f conftest.er1
36779   cat conftest.err >&5
36780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36781   (exit $ac_status); } && {
36782          test -z "$ac_c_werror_flag" ||
36783          test ! -s conftest.err
36784        } && test -s conftest.$ac_objext; then
36785   ac_cv_type_size_t=yes
36786 else
36787   echo "$as_me: failed program was:" >&5
36788 sed 's/^/| /' conftest.$ac_ext >&5
36789
36790         ac_cv_type_size_t=no
36791 fi
36792
36793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36794 fi
36795 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
36796 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
36797 if test $ac_cv_type_size_t = yes; then
36798   :
36799 else
36800
36801 cat >>confdefs.h <<_ACEOF
36802 #define size_t unsigned int
36803 _ACEOF
36804
36805 fi
36806
36807 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
36808 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
36809 if test "${ac_cv_type_uid_t+set}" = set; then
36810   echo $ECHO_N "(cached) $ECHO_C" >&6
36811 else
36812   cat >conftest.$ac_ext <<_ACEOF
36813 /* confdefs.h.  */
36814 _ACEOF
36815 cat confdefs.h >>conftest.$ac_ext
36816 cat >>conftest.$ac_ext <<_ACEOF
36817 /* end confdefs.h.  */
36818 #include <sys/types.h>
36819
36820 _ACEOF
36821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36822   $EGREP "uid_t" >/dev/null 2>&1; then
36823   ac_cv_type_uid_t=yes
36824 else
36825   ac_cv_type_uid_t=no
36826 fi
36827 rm -f conftest*
36828
36829 fi
36830 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
36831 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
36832 if test $ac_cv_type_uid_t = no; then
36833
36834 cat >>confdefs.h <<\_ACEOF
36835 #define uid_t int
36836 _ACEOF
36837
36838
36839 cat >>confdefs.h <<\_ACEOF
36840 #define gid_t int
36841 _ACEOF
36842
36843 fi
36844
36845
36846 { echo "$as_me:$LINENO: checking for ssize_t" >&5
36847 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
36848 if test "${ac_cv_type_ssize_t+set}" = set; then
36849   echo $ECHO_N "(cached) $ECHO_C" >&6
36850 else
36851   cat >conftest.$ac_ext <<_ACEOF
36852 /* confdefs.h.  */
36853 _ACEOF
36854 cat confdefs.h >>conftest.$ac_ext
36855 cat >>conftest.$ac_ext <<_ACEOF
36856 /* end confdefs.h.  */
36857 $ac_includes_default
36858 typedef ssize_t ac__type_new_;
36859 int
36860 main ()
36861 {
36862 if ((ac__type_new_ *) 0)
36863   return 0;
36864 if (sizeof (ac__type_new_))
36865   return 0;
36866   ;
36867   return 0;
36868 }
36869 _ACEOF
36870 rm -f conftest.$ac_objext
36871 if { (ac_try="$ac_compile"
36872 case "(($ac_try" in
36873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36874   *) ac_try_echo=$ac_try;;
36875 esac
36876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36877   (eval "$ac_compile") 2>conftest.er1
36878   ac_status=$?
36879   grep -v '^ *+' conftest.er1 >conftest.err
36880   rm -f conftest.er1
36881   cat conftest.err >&5
36882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36883   (exit $ac_status); } && {
36884          test -z "$ac_c_werror_flag" ||
36885          test ! -s conftest.err
36886        } && test -s conftest.$ac_objext; then
36887   ac_cv_type_ssize_t=yes
36888 else
36889   echo "$as_me: failed program was:" >&5
36890 sed 's/^/| /' conftest.$ac_ext >&5
36891
36892         ac_cv_type_ssize_t=no
36893 fi
36894
36895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36896 fi
36897 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
36898 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
36899 if test $ac_cv_type_ssize_t = yes; then
36900
36901 cat >>confdefs.h <<_ACEOF
36902 #define HAVE_SSIZE_T 1
36903 _ACEOF
36904
36905
36906 fi
36907
36908
36909 ac_ext=cpp
36910 ac_cpp='$CXXCPP $CPPFLAGS'
36911 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36912 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36913 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36914  { echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
36915 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6; }
36916 if test "${wx_cv_size_t_is_uint+set}" = set; then
36917   echo $ECHO_N "(cached) $ECHO_C" >&6
36918 else
36919
36920                             cat >conftest.$ac_ext <<_ACEOF
36921 /* confdefs.h.  */
36922 _ACEOF
36923 cat confdefs.h >>conftest.$ac_ext
36924 cat >>conftest.$ac_ext <<_ACEOF
36925 /* end confdefs.h.  */
36926 #include <stddef.h>
36927 int
36928 main ()
36929 {
36930
36931             return 0; }
36932
36933             struct Foo { void foo(size_t); void foo(unsigned int); };
36934
36935             int bar() {
36936
36937   ;
36938   return 0;
36939 }
36940 _ACEOF
36941 rm -f conftest.$ac_objext
36942 if { (ac_try="$ac_compile"
36943 case "(($ac_try" in
36944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36945   *) ac_try_echo=$ac_try;;
36946 esac
36947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36948   (eval "$ac_compile") 2>conftest.er1
36949   ac_status=$?
36950   grep -v '^ *+' conftest.er1 >conftest.err
36951   rm -f conftest.er1
36952   cat conftest.err >&5
36953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36954   (exit $ac_status); } && {
36955          test -z "$ac_cxx_werror_flag" ||
36956          test ! -s conftest.err
36957        } && test -s conftest.$ac_objext; then
36958   wx_cv_size_t_is_uint=no
36959 else
36960   echo "$as_me: failed program was:" >&5
36961 sed 's/^/| /' conftest.$ac_ext >&5
36962
36963         wx_cv_size_t_is_uint=yes
36964
36965 fi
36966
36967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36968
36969
36970 fi
36971 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
36972 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6; }
36973
36974 if test "$wx_cv_size_t_is_uint" = "yes"; then
36975     cat >>confdefs.h <<\_ACEOF
36976 #define wxSIZE_T_IS_UINT 1
36977 _ACEOF
36978
36979 else
36980     { echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
36981 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6; }
36982 if test "${wx_cv_size_t_is_ulong+set}" = set; then
36983   echo $ECHO_N "(cached) $ECHO_C" >&6
36984 else
36985   cat >conftest.$ac_ext <<_ACEOF
36986 /* confdefs.h.  */
36987 _ACEOF
36988 cat confdefs.h >>conftest.$ac_ext
36989 cat >>conftest.$ac_ext <<_ACEOF
36990 /* end confdefs.h.  */
36991 #include <stddef.h>
36992 int
36993 main ()
36994 {
36995
36996                 return 0; }
36997
36998                 struct Foo { void foo(size_t); void foo(unsigned long); };
36999
37000                 int bar() {
37001
37002   ;
37003   return 0;
37004 }
37005 _ACEOF
37006 rm -f conftest.$ac_objext
37007 if { (ac_try="$ac_compile"
37008 case "(($ac_try" in
37009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37010   *) ac_try_echo=$ac_try;;
37011 esac
37012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37013   (eval "$ac_compile") 2>conftest.er1
37014   ac_status=$?
37015   grep -v '^ *+' conftest.er1 >conftest.err
37016   rm -f conftest.er1
37017   cat conftest.err >&5
37018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37019   (exit $ac_status); } && {
37020          test -z "$ac_cxx_werror_flag" ||
37021          test ! -s conftest.err
37022        } && test -s conftest.$ac_objext; then
37023   wx_cv_size_t_is_ulong=no
37024 else
37025   echo "$as_me: failed program was:" >&5
37026 sed 's/^/| /' conftest.$ac_ext >&5
37027
37028         wx_cv_size_t_is_ulong=yes
37029
37030 fi
37031
37032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37033
37034 fi
37035 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
37036 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6; }
37037
37038     if test "$wx_cv_size_t_is_ulong" = "yes"; then
37039         cat >>confdefs.h <<\_ACEOF
37040 #define wxSIZE_T_IS_ULONG 1
37041 _ACEOF
37042
37043     fi
37044 fi
37045
37046 { echo "$as_me:$LINENO: checking if wchar_t is separate type" >&5
37047 echo $ECHO_N "checking if wchar_t is separate type... $ECHO_C" >&6; }
37048 if test "${wx_cv_wchar_t_is_separate_type+set}" = set; then
37049   echo $ECHO_N "(cached) $ECHO_C" >&6
37050 else
37051   cat >conftest.$ac_ext <<_ACEOF
37052 /* confdefs.h.  */
37053 _ACEOF
37054 cat confdefs.h >>conftest.$ac_ext
37055 cat >>conftest.$ac_ext <<_ACEOF
37056 /* end confdefs.h.  */
37057 #include <wchar.h>
37058 int
37059 main ()
37060 {
37061
37062             return 0; }
37063
37064             struct Foo { void foo(wchar_t);
37065                          void foo(unsigned short);
37066                          void foo(unsigned int);
37067                          void foo(unsigned long); };
37068
37069             int bar() {
37070
37071   ;
37072   return 0;
37073 }
37074 _ACEOF
37075 rm -f conftest.$ac_objext
37076 if { (ac_try="$ac_compile"
37077 case "(($ac_try" in
37078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37079   *) ac_try_echo=$ac_try;;
37080 esac
37081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37082   (eval "$ac_compile") 2>conftest.er1
37083   ac_status=$?
37084   grep -v '^ *+' conftest.er1 >conftest.err
37085   rm -f conftest.er1
37086   cat conftest.err >&5
37087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37088   (exit $ac_status); } && {
37089          test -z "$ac_cxx_werror_flag" ||
37090          test ! -s conftest.err
37091        } && test -s conftest.$ac_objext; then
37092   wx_cv_wchar_t_is_separate_type=yes
37093 else
37094   echo "$as_me: failed program was:" >&5
37095 sed 's/^/| /' conftest.$ac_ext >&5
37096
37097         wx_cv_wchar_t_is_separate_type=no
37098
37099 fi
37100
37101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37102
37103 fi
37104 { echo "$as_me:$LINENO: result: $wx_cv_wchar_t_is_separate_type" >&5
37105 echo "${ECHO_T}$wx_cv_wchar_t_is_separate_type" >&6; }
37106
37107 if test "$wx_cv_wchar_t_is_separate_type" = "yes"; then
37108     cat >>confdefs.h <<\_ACEOF
37109 #define wxWCHAR_T_IS_REAL_TYPE 1
37110 _ACEOF
37111
37112 else
37113     cat >>confdefs.h <<\_ACEOF
37114 #define wxWCHAR_T_IS_REAL_TYPE 0
37115 _ACEOF
37116
37117 fi
37118
37119 ac_ext=c
37120 ac_cpp='$CPP $CPPFLAGS'
37121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37124
37125
37126 { echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
37127 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6; }
37128 if test "${wx_cv_struct_pw_gecos+set}" = set; then
37129   echo $ECHO_N "(cached) $ECHO_C" >&6
37130 else
37131
37132         cat >conftest.$ac_ext <<_ACEOF
37133 /* confdefs.h.  */
37134 _ACEOF
37135 cat confdefs.h >>conftest.$ac_ext
37136 cat >>conftest.$ac_ext <<_ACEOF
37137 /* end confdefs.h.  */
37138 #include <pwd.h>
37139 int
37140 main ()
37141 {
37142
37143                 char *p;
37144                 struct passwd *pw;
37145                 p = pw->pw_gecos;
37146
37147   ;
37148   return 0;
37149 }
37150 _ACEOF
37151 rm -f conftest.$ac_objext
37152 if { (ac_try="$ac_compile"
37153 case "(($ac_try" in
37154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37155   *) ac_try_echo=$ac_try;;
37156 esac
37157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37158   (eval "$ac_compile") 2>conftest.er1
37159   ac_status=$?
37160   grep -v '^ *+' conftest.er1 >conftest.err
37161   rm -f conftest.er1
37162   cat conftest.err >&5
37163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37164   (exit $ac_status); } && {
37165          test -z "$ac_c_werror_flag" ||
37166          test ! -s conftest.err
37167        } && test -s conftest.$ac_objext; then
37168
37169                 wx_cv_struct_pw_gecos=yes
37170
37171 else
37172   echo "$as_me: failed program was:" >&5
37173 sed 's/^/| /' conftest.$ac_ext >&5
37174
37175
37176                 wx_cv_struct_pw_gecos=no
37177
37178
37179 fi
37180
37181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37182
37183
37184 fi
37185 { echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
37186 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6; }
37187
37188 if test "$wx_cv_struct_pw_gecos" = "yes"; then
37189     cat >>confdefs.h <<\_ACEOF
37190 #define HAVE_PW_GECOS 1
37191 _ACEOF
37192
37193 fi
37194
37195
37196 if test "$wxUSE_WCHAR_T" = "yes"; then
37197     cat >>confdefs.h <<\_ACEOF
37198 #define wxUSE_WCHAR_T 1
37199 _ACEOF
37200
37201
37202         WCSLEN_FOUND=0
37203     WCHAR_LINK=
37204
37205 for ac_func in wcslen
37206 do
37207 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37208 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37209 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37210 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37211   echo $ECHO_N "(cached) $ECHO_C" >&6
37212 else
37213   cat >conftest.$ac_ext <<_ACEOF
37214 /* confdefs.h.  */
37215 _ACEOF
37216 cat confdefs.h >>conftest.$ac_ext
37217 cat >>conftest.$ac_ext <<_ACEOF
37218 /* end confdefs.h.  */
37219 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37220    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37221 #define $ac_func innocuous_$ac_func
37222
37223 /* System header to define __stub macros and hopefully few prototypes,
37224     which can conflict with char $ac_func (); below.
37225     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37226     <limits.h> exists even on freestanding compilers.  */
37227
37228 #ifdef __STDC__
37229 # include <limits.h>
37230 #else
37231 # include <assert.h>
37232 #endif
37233
37234 #undef $ac_func
37235
37236 /* Override any GCC internal prototype to avoid an error.
37237    Use char because int might match the return type of a GCC
37238    builtin and then its argument prototype would still apply.  */
37239 #ifdef __cplusplus
37240 extern "C"
37241 #endif
37242 char $ac_func ();
37243 /* The GNU C library defines this for functions which it implements
37244     to always fail with ENOSYS.  Some functions are actually named
37245     something starting with __ and the normal name is an alias.  */
37246 #if defined __stub_$ac_func || defined __stub___$ac_func
37247 choke me
37248 #endif
37249
37250 int
37251 main ()
37252 {
37253 return $ac_func ();
37254   ;
37255   return 0;
37256 }
37257 _ACEOF
37258 rm -f conftest.$ac_objext conftest$ac_exeext
37259 if { (ac_try="$ac_link"
37260 case "(($ac_try" in
37261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37262   *) ac_try_echo=$ac_try;;
37263 esac
37264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37265   (eval "$ac_link") 2>conftest.er1
37266   ac_status=$?
37267   grep -v '^ *+' conftest.er1 >conftest.err
37268   rm -f conftest.er1
37269   cat conftest.err >&5
37270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37271   (exit $ac_status); } && {
37272          test -z "$ac_c_werror_flag" ||
37273          test ! -s conftest.err
37274        } && test -s conftest$ac_exeext &&
37275        $as_test_x conftest$ac_exeext; then
37276   eval "$as_ac_var=yes"
37277 else
37278   echo "$as_me: failed program was:" >&5
37279 sed 's/^/| /' conftest.$ac_ext >&5
37280
37281         eval "$as_ac_var=no"
37282 fi
37283
37284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37285       conftest$ac_exeext conftest.$ac_ext
37286 fi
37287 ac_res=`eval echo '${'$as_ac_var'}'`
37288                { echo "$as_me:$LINENO: result: $ac_res" >&5
37289 echo "${ECHO_T}$ac_res" >&6; }
37290 if test `eval echo '${'$as_ac_var'}'` = yes; then
37291   cat >>confdefs.h <<_ACEOF
37292 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37293 _ACEOF
37294  WCSLEN_FOUND=1
37295 fi
37296 done
37297
37298
37299     if test "$WCSLEN_FOUND" = 0; then
37300         if test "$TOOLKIT" = "MSW"; then
37301             { echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
37302 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6; }
37303 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
37304   echo $ECHO_N "(cached) $ECHO_C" >&6
37305 else
37306   ac_check_lib_save_LIBS=$LIBS
37307 LIBS="-lmsvcrt  $LIBS"
37308 cat >conftest.$ac_ext <<_ACEOF
37309 /* confdefs.h.  */
37310 _ACEOF
37311 cat confdefs.h >>conftest.$ac_ext
37312 cat >>conftest.$ac_ext <<_ACEOF
37313 /* end confdefs.h.  */
37314
37315 /* Override any GCC internal prototype to avoid an error.
37316    Use char because int might match the return type of a GCC
37317    builtin and then its argument prototype would still apply.  */
37318 #ifdef __cplusplus
37319 extern "C"
37320 #endif
37321 char wcslen ();
37322 int
37323 main ()
37324 {
37325 return wcslen ();
37326   ;
37327   return 0;
37328 }
37329 _ACEOF
37330 rm -f conftest.$ac_objext conftest$ac_exeext
37331 if { (ac_try="$ac_link"
37332 case "(($ac_try" in
37333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37334   *) ac_try_echo=$ac_try;;
37335 esac
37336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37337   (eval "$ac_link") 2>conftest.er1
37338   ac_status=$?
37339   grep -v '^ *+' conftest.er1 >conftest.err
37340   rm -f conftest.er1
37341   cat conftest.err >&5
37342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37343   (exit $ac_status); } && {
37344          test -z "$ac_c_werror_flag" ||
37345          test ! -s conftest.err
37346        } && test -s conftest$ac_exeext &&
37347        $as_test_x conftest$ac_exeext; then
37348   ac_cv_lib_msvcrt_wcslen=yes
37349 else
37350   echo "$as_me: failed program was:" >&5
37351 sed 's/^/| /' conftest.$ac_ext >&5
37352
37353         ac_cv_lib_msvcrt_wcslen=no
37354 fi
37355
37356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37357       conftest$ac_exeext conftest.$ac_ext
37358 LIBS=$ac_check_lib_save_LIBS
37359 fi
37360 { echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
37361 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6; }
37362 if test $ac_cv_lib_msvcrt_wcslen = yes; then
37363   WCHAR_OK=1
37364 fi
37365
37366         else
37367             { echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
37368 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6; }
37369 if test "${ac_cv_lib_w_wcslen+set}" = set; then
37370   echo $ECHO_N "(cached) $ECHO_C" >&6
37371 else
37372   ac_check_lib_save_LIBS=$LIBS
37373 LIBS="-lw  $LIBS"
37374 cat >conftest.$ac_ext <<_ACEOF
37375 /* confdefs.h.  */
37376 _ACEOF
37377 cat confdefs.h >>conftest.$ac_ext
37378 cat >>conftest.$ac_ext <<_ACEOF
37379 /* end confdefs.h.  */
37380
37381 /* Override any GCC internal prototype to avoid an error.
37382    Use char because int might match the return type of a GCC
37383    builtin and then its argument prototype would still apply.  */
37384 #ifdef __cplusplus
37385 extern "C"
37386 #endif
37387 char wcslen ();
37388 int
37389 main ()
37390 {
37391 return wcslen ();
37392   ;
37393   return 0;
37394 }
37395 _ACEOF
37396 rm -f conftest.$ac_objext conftest$ac_exeext
37397 if { (ac_try="$ac_link"
37398 case "(($ac_try" in
37399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37400   *) ac_try_echo=$ac_try;;
37401 esac
37402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37403   (eval "$ac_link") 2>conftest.er1
37404   ac_status=$?
37405   grep -v '^ *+' conftest.er1 >conftest.err
37406   rm -f conftest.er1
37407   cat conftest.err >&5
37408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37409   (exit $ac_status); } && {
37410          test -z "$ac_c_werror_flag" ||
37411          test ! -s conftest.err
37412        } && test -s conftest$ac_exeext &&
37413        $as_test_x conftest$ac_exeext; then
37414   ac_cv_lib_w_wcslen=yes
37415 else
37416   echo "$as_me: failed program was:" >&5
37417 sed 's/^/| /' conftest.$ac_ext >&5
37418
37419         ac_cv_lib_w_wcslen=no
37420 fi
37421
37422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37423       conftest$ac_exeext conftest.$ac_ext
37424 LIBS=$ac_check_lib_save_LIBS
37425 fi
37426 { echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
37427 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6; }
37428 if test $ac_cv_lib_w_wcslen = yes; then
37429
37430                             WCHAR_LINK=" -lw"
37431                             WCSLEN_FOUND=1
37432
37433 fi
37434
37435         fi
37436     fi
37437
37438     if test "$WCSLEN_FOUND" = 1; then
37439         cat >>confdefs.h <<\_ACEOF
37440 #define HAVE_WCSLEN 1
37441 _ACEOF
37442
37443     fi
37444
37445
37446 for ac_func in wcsdup
37447 do
37448 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37449 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37450 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37451 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37452   echo $ECHO_N "(cached) $ECHO_C" >&6
37453 else
37454   cat >conftest.$ac_ext <<_ACEOF
37455 /* confdefs.h.  */
37456 _ACEOF
37457 cat confdefs.h >>conftest.$ac_ext
37458 cat >>conftest.$ac_ext <<_ACEOF
37459 /* end confdefs.h.  */
37460 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37461    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37462 #define $ac_func innocuous_$ac_func
37463
37464 /* System header to define __stub macros and hopefully few prototypes,
37465     which can conflict with char $ac_func (); below.
37466     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37467     <limits.h> exists even on freestanding compilers.  */
37468
37469 #ifdef __STDC__
37470 # include <limits.h>
37471 #else
37472 # include <assert.h>
37473 #endif
37474
37475 #undef $ac_func
37476
37477 /* Override any GCC internal prototype to avoid an error.
37478    Use char because int might match the return type of a GCC
37479    builtin and then its argument prototype would still apply.  */
37480 #ifdef __cplusplus
37481 extern "C"
37482 #endif
37483 char $ac_func ();
37484 /* The GNU C library defines this for functions which it implements
37485     to always fail with ENOSYS.  Some functions are actually named
37486     something starting with __ and the normal name is an alias.  */
37487 #if defined __stub_$ac_func || defined __stub___$ac_func
37488 choke me
37489 #endif
37490
37491 int
37492 main ()
37493 {
37494 return $ac_func ();
37495   ;
37496   return 0;
37497 }
37498 _ACEOF
37499 rm -f conftest.$ac_objext conftest$ac_exeext
37500 if { (ac_try="$ac_link"
37501 case "(($ac_try" in
37502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37503   *) ac_try_echo=$ac_try;;
37504 esac
37505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37506   (eval "$ac_link") 2>conftest.er1
37507   ac_status=$?
37508   grep -v '^ *+' conftest.er1 >conftest.err
37509   rm -f conftest.er1
37510   cat conftest.err >&5
37511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37512   (exit $ac_status); } && {
37513          test -z "$ac_c_werror_flag" ||
37514          test ! -s conftest.err
37515        } && test -s conftest$ac_exeext &&
37516        $as_test_x conftest$ac_exeext; then
37517   eval "$as_ac_var=yes"
37518 else
37519   echo "$as_me: failed program was:" >&5
37520 sed 's/^/| /' conftest.$ac_ext >&5
37521
37522         eval "$as_ac_var=no"
37523 fi
37524
37525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37526       conftest$ac_exeext conftest.$ac_ext
37527 fi
37528 ac_res=`eval echo '${'$as_ac_var'}'`
37529                { echo "$as_me:$LINENO: result: $ac_res" >&5
37530 echo "${ECHO_T}$ac_res" >&6; }
37531 if test `eval echo '${'$as_ac_var'}'` = yes; then
37532   cat >>confdefs.h <<_ACEOF
37533 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37534 _ACEOF
37535
37536 fi
37537 done
37538
37539
37540                     if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
37541         CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
37542     fi
37543
37544                 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
37545 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
37546 if test "${ac_cv_type_mbstate_t+set}" = set; then
37547   echo $ECHO_N "(cached) $ECHO_C" >&6
37548 else
37549   cat >conftest.$ac_ext <<_ACEOF
37550 /* confdefs.h.  */
37551 _ACEOF
37552 cat confdefs.h >>conftest.$ac_ext
37553 cat >>conftest.$ac_ext <<_ACEOF
37554 /* end confdefs.h.  */
37555 #include <wchar.h>
37556
37557 typedef mbstate_t ac__type_new_;
37558 int
37559 main ()
37560 {
37561 if ((ac__type_new_ *) 0)
37562   return 0;
37563 if (sizeof (ac__type_new_))
37564   return 0;
37565   ;
37566   return 0;
37567 }
37568 _ACEOF
37569 rm -f conftest.$ac_objext
37570 if { (ac_try="$ac_compile"
37571 case "(($ac_try" in
37572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37573   *) ac_try_echo=$ac_try;;
37574 esac
37575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37576   (eval "$ac_compile") 2>conftest.er1
37577   ac_status=$?
37578   grep -v '^ *+' conftest.er1 >conftest.err
37579   rm -f conftest.er1
37580   cat conftest.err >&5
37581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37582   (exit $ac_status); } && {
37583          test -z "$ac_c_werror_flag" ||
37584          test ! -s conftest.err
37585        } && test -s conftest.$ac_objext; then
37586   ac_cv_type_mbstate_t=yes
37587 else
37588   echo "$as_me: failed program was:" >&5
37589 sed 's/^/| /' conftest.$ac_ext >&5
37590
37591         ac_cv_type_mbstate_t=no
37592 fi
37593
37594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37595 fi
37596 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
37597 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
37598 if test $ac_cv_type_mbstate_t = yes; then
37599
37600 cat >>confdefs.h <<_ACEOF
37601 #define HAVE_MBSTATE_T 1
37602 _ACEOF
37603
37604
37605 for ac_func in wcsrtombs
37606 do
37607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37608 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37610 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37611   echo $ECHO_N "(cached) $ECHO_C" >&6
37612 else
37613   cat >conftest.$ac_ext <<_ACEOF
37614 /* confdefs.h.  */
37615 _ACEOF
37616 cat confdefs.h >>conftest.$ac_ext
37617 cat >>conftest.$ac_ext <<_ACEOF
37618 /* end confdefs.h.  */
37619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37620    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37621 #define $ac_func innocuous_$ac_func
37622
37623 /* System header to define __stub macros and hopefully few prototypes,
37624     which can conflict with char $ac_func (); below.
37625     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37626     <limits.h> exists even on freestanding compilers.  */
37627
37628 #ifdef __STDC__
37629 # include <limits.h>
37630 #else
37631 # include <assert.h>
37632 #endif
37633
37634 #undef $ac_func
37635
37636 /* Override any GCC internal prototype to avoid an error.
37637    Use char because int might match the return type of a GCC
37638    builtin and then its argument prototype would still apply.  */
37639 #ifdef __cplusplus
37640 extern "C"
37641 #endif
37642 char $ac_func ();
37643 /* The GNU C library defines this for functions which it implements
37644     to always fail with ENOSYS.  Some functions are actually named
37645     something starting with __ and the normal name is an alias.  */
37646 #if defined __stub_$ac_func || defined __stub___$ac_func
37647 choke me
37648 #endif
37649
37650 int
37651 main ()
37652 {
37653 return $ac_func ();
37654   ;
37655   return 0;
37656 }
37657 _ACEOF
37658 rm -f conftest.$ac_objext conftest$ac_exeext
37659 if { (ac_try="$ac_link"
37660 case "(($ac_try" in
37661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37662   *) ac_try_echo=$ac_try;;
37663 esac
37664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37665   (eval "$ac_link") 2>conftest.er1
37666   ac_status=$?
37667   grep -v '^ *+' conftest.er1 >conftest.err
37668   rm -f conftest.er1
37669   cat conftest.err >&5
37670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37671   (exit $ac_status); } && {
37672          test -z "$ac_c_werror_flag" ||
37673          test ! -s conftest.err
37674        } && test -s conftest$ac_exeext &&
37675        $as_test_x conftest$ac_exeext; then
37676   eval "$as_ac_var=yes"
37677 else
37678   echo "$as_me: failed program was:" >&5
37679 sed 's/^/| /' conftest.$ac_ext >&5
37680
37681         eval "$as_ac_var=no"
37682 fi
37683
37684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37685       conftest$ac_exeext conftest.$ac_ext
37686 fi
37687 ac_res=`eval echo '${'$as_ac_var'}'`
37688                { echo "$as_me:$LINENO: result: $ac_res" >&5
37689 echo "${ECHO_T}$ac_res" >&6; }
37690 if test `eval echo '${'$as_ac_var'}'` = yes; then
37691   cat >>confdefs.h <<_ACEOF
37692 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37693 _ACEOF
37694
37695 fi
37696 done
37697
37698 fi
37699
37700 else
37701     { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
37702 echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
37703 fi
37704
37705
37706
37707 for ac_func in snprintf vsnprintf
37708 do
37709 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37710 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37711 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37712 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37713   echo $ECHO_N "(cached) $ECHO_C" >&6
37714 else
37715   cat >conftest.$ac_ext <<_ACEOF
37716 /* confdefs.h.  */
37717 _ACEOF
37718 cat confdefs.h >>conftest.$ac_ext
37719 cat >>conftest.$ac_ext <<_ACEOF
37720 /* end confdefs.h.  */
37721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37722    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37723 #define $ac_func innocuous_$ac_func
37724
37725 /* System header to define __stub macros and hopefully few prototypes,
37726     which can conflict with char $ac_func (); below.
37727     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37728     <limits.h> exists even on freestanding compilers.  */
37729
37730 #ifdef __STDC__
37731 # include <limits.h>
37732 #else
37733 # include <assert.h>
37734 #endif
37735
37736 #undef $ac_func
37737
37738 /* Override any GCC internal prototype to avoid an error.
37739    Use char because int might match the return type of a GCC
37740    builtin and then its argument prototype would still apply.  */
37741 #ifdef __cplusplus
37742 extern "C"
37743 #endif
37744 char $ac_func ();
37745 /* The GNU C library defines this for functions which it implements
37746     to always fail with ENOSYS.  Some functions are actually named
37747     something starting with __ and the normal name is an alias.  */
37748 #if defined __stub_$ac_func || defined __stub___$ac_func
37749 choke me
37750 #endif
37751
37752 int
37753 main ()
37754 {
37755 return $ac_func ();
37756   ;
37757   return 0;
37758 }
37759 _ACEOF
37760 rm -f conftest.$ac_objext conftest$ac_exeext
37761 if { (ac_try="$ac_link"
37762 case "(($ac_try" in
37763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37764   *) ac_try_echo=$ac_try;;
37765 esac
37766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37767   (eval "$ac_link") 2>conftest.er1
37768   ac_status=$?
37769   grep -v '^ *+' conftest.er1 >conftest.err
37770   rm -f conftest.er1
37771   cat conftest.err >&5
37772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37773   (exit $ac_status); } && {
37774          test -z "$ac_c_werror_flag" ||
37775          test ! -s conftest.err
37776        } && test -s conftest$ac_exeext &&
37777        $as_test_x conftest$ac_exeext; then
37778   eval "$as_ac_var=yes"
37779 else
37780   echo "$as_me: failed program was:" >&5
37781 sed 's/^/| /' conftest.$ac_ext >&5
37782
37783         eval "$as_ac_var=no"
37784 fi
37785
37786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37787       conftest$ac_exeext conftest.$ac_ext
37788 fi
37789 ac_res=`eval echo '${'$as_ac_var'}'`
37790                { echo "$as_me:$LINENO: result: $ac_res" >&5
37791 echo "${ECHO_T}$ac_res" >&6; }
37792 if test `eval echo '${'$as_ac_var'}'` = yes; then
37793   cat >>confdefs.h <<_ACEOF
37794 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37795 _ACEOF
37796
37797 fi
37798 done
37799
37800
37801 if test "$ac_cv_func_vsnprintf" = "yes"; then
37802         { echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
37803 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6; }
37804 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
37805   echo $ECHO_N "(cached) $ECHO_C" >&6
37806 else
37807
37808                                                             cat >conftest.$ac_ext <<_ACEOF
37809 /* confdefs.h.  */
37810 _ACEOF
37811 cat confdefs.h >>conftest.$ac_ext
37812 cat >>conftest.$ac_ext <<_ACEOF
37813 /* end confdefs.h.  */
37814
37815                     #include <stdio.h>
37816                     #include <stdarg.h>
37817                     #ifdef __MSL__
37818                     #if __MSL__ >= 0x6000
37819                     namespace std {}
37820                     using namespace std;
37821                     #endif
37822                     #endif
37823
37824 int
37825 main ()
37826 {
37827
37828                     char *buf;
37829                     va_list ap;
37830                     vsnprintf(buf, 10u, "%s", ap);
37831
37832   ;
37833   return 0;
37834 }
37835 _ACEOF
37836 rm -f conftest.$ac_objext
37837 if { (ac_try="$ac_compile"
37838 case "(($ac_try" in
37839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37840   *) ac_try_echo=$ac_try;;
37841 esac
37842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37843   (eval "$ac_compile") 2>conftest.er1
37844   ac_status=$?
37845   grep -v '^ *+' conftest.er1 >conftest.err
37846   rm -f conftest.er1
37847   cat conftest.err >&5
37848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37849   (exit $ac_status); } && {
37850          test -z "$ac_c_werror_flag" ||
37851          test ! -s conftest.err
37852        } && test -s conftest.$ac_objext; then
37853   wx_cv_func_vsnprintf_decl=yes
37854 else
37855   echo "$as_me: failed program was:" >&5
37856 sed 's/^/| /' conftest.$ac_ext >&5
37857
37858         wx_cv_func_vsnprintf_decl=no
37859
37860 fi
37861
37862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37863
37864
37865 fi
37866 { echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
37867 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6; }
37868
37869     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
37870         cat >>confdefs.h <<\_ACEOF
37871 #define HAVE_VSNPRINTF_DECL 1
37872 _ACEOF
37873
37874
37875                         { echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
37876 echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6; }
37877 if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
37878   echo $ECHO_N "(cached) $ECHO_C" >&6
37879 else
37880
37881                 cat >conftest.$ac_ext <<_ACEOF
37882 /* confdefs.h.  */
37883 _ACEOF
37884 cat confdefs.h >>conftest.$ac_ext
37885 cat >>conftest.$ac_ext <<_ACEOF
37886 /* end confdefs.h.  */
37887
37888                         #include <stdio.h>
37889                         #include <stdarg.h>
37890                         #ifdef __MSL__
37891                         #if __MSL__ >= 0x6000
37892                         namespace std {}
37893                         using namespace std;
37894                         #endif
37895                         #endif
37896
37897 int
37898 main ()
37899 {
37900
37901                         char *buf;
37902                         va_list ap;
37903                         const char *fmt = "%s";
37904                         vsnprintf(buf, 10u, fmt, ap);
37905
37906   ;
37907   return 0;
37908 }
37909 _ACEOF
37910 rm -f conftest.$ac_objext
37911 if { (ac_try="$ac_compile"
37912 case "(($ac_try" in
37913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37914   *) ac_try_echo=$ac_try;;
37915 esac
37916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37917   (eval "$ac_compile") 2>conftest.er1
37918   ac_status=$?
37919   grep -v '^ *+' conftest.er1 >conftest.err
37920   rm -f conftest.er1
37921   cat conftest.err >&5
37922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37923   (exit $ac_status); } && {
37924          test -z "$ac_c_werror_flag" ||
37925          test ! -s conftest.err
37926        } && test -s conftest.$ac_objext; then
37927   wx_cv_func_broken_vsnprintf_decl=no
37928 else
37929   echo "$as_me: failed program was:" >&5
37930 sed 's/^/| /' conftest.$ac_ext >&5
37931
37932         wx_cv_func_broken_vsnprintf_decl=yes
37933
37934 fi
37935
37936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37937
37938
37939 fi
37940 { echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
37941 echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6; }
37942
37943         if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
37944             cat >>confdefs.h <<\_ACEOF
37945 #define HAVE_BROKEN_VSNPRINTF_DECL 1
37946 _ACEOF
37947
37948         fi
37949     fi
37950 fi
37951
37952 if test "$ac_cv_func_snprintf" = "yes"; then
37953     { echo "$as_me:$LINENO: checking for snprintf declaration" >&5
37954 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6; }
37955 if test "${wx_cv_func_snprintf_decl+set}" = set; then
37956   echo $ECHO_N "(cached) $ECHO_C" >&6
37957 else
37958
37959             cat >conftest.$ac_ext <<_ACEOF
37960 /* confdefs.h.  */
37961 _ACEOF
37962 cat confdefs.h >>conftest.$ac_ext
37963 cat >>conftest.$ac_ext <<_ACEOF
37964 /* end confdefs.h.  */
37965
37966                     #include <stdio.h>
37967                     #include <stdarg.h>
37968                     #ifdef __MSL__
37969                     #if __MSL__ >= 0x6000
37970                     namespace std {}
37971                     using namespace std;
37972                     #endif
37973                     #endif
37974
37975 int
37976 main ()
37977 {
37978
37979                     char *buf;
37980                     snprintf(buf, 10u, "%s", "wx");
37981
37982   ;
37983   return 0;
37984 }
37985 _ACEOF
37986 rm -f conftest.$ac_objext
37987 if { (ac_try="$ac_compile"
37988 case "(($ac_try" in
37989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37990   *) ac_try_echo=$ac_try;;
37991 esac
37992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37993   (eval "$ac_compile") 2>conftest.er1
37994   ac_status=$?
37995   grep -v '^ *+' conftest.er1 >conftest.err
37996   rm -f conftest.er1
37997   cat conftest.err >&5
37998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37999   (exit $ac_status); } && {
38000          test -z "$ac_c_werror_flag" ||
38001          test ! -s conftest.err
38002        } && test -s conftest.$ac_objext; then
38003   wx_cv_func_snprintf_decl=yes
38004 else
38005   echo "$as_me: failed program was:" >&5
38006 sed 's/^/| /' conftest.$ac_ext >&5
38007
38008         wx_cv_func_snprintf_decl=no
38009
38010 fi
38011
38012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38013
38014
38015 fi
38016 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
38017 echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6; }
38018
38019     if test "$wx_cv_func_snprintf_decl" = "yes"; then
38020         cat >>confdefs.h <<\_ACEOF
38021 #define HAVE_SNPRINTF_DECL 1
38022 _ACEOF
38023
38024
38025                         { echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
38026 echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6; }
38027 if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
38028   echo $ECHO_N "(cached) $ECHO_C" >&6
38029 else
38030
38031                 cat >conftest.$ac_ext <<_ACEOF
38032 /* confdefs.h.  */
38033 _ACEOF
38034 cat confdefs.h >>conftest.$ac_ext
38035 cat >>conftest.$ac_ext <<_ACEOF
38036 /* end confdefs.h.  */
38037
38038                         #include <stdio.h>
38039                         #include <stdarg.h>
38040                         #ifdef __MSL__
38041                         #if __MSL__ >= 0x6000
38042                         namespace std {}
38043                         using namespace std;
38044                         #endif
38045                         #endif
38046
38047 int
38048 main ()
38049 {
38050
38051                         char *buf;
38052                         const char *fmt = "%s";
38053                         snprintf(buf, 10u, fmt, "wx");
38054
38055   ;
38056   return 0;
38057 }
38058 _ACEOF
38059 rm -f conftest.$ac_objext
38060 if { (ac_try="$ac_compile"
38061 case "(($ac_try" in
38062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38063   *) ac_try_echo=$ac_try;;
38064 esac
38065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38066   (eval "$ac_compile") 2>conftest.er1
38067   ac_status=$?
38068   grep -v '^ *+' conftest.er1 >conftest.err
38069   rm -f conftest.er1
38070   cat conftest.err >&5
38071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38072   (exit $ac_status); } && {
38073          test -z "$ac_c_werror_flag" ||
38074          test ! -s conftest.err
38075        } && test -s conftest.$ac_objext; then
38076   wx_cv_func_broken_snprintf_decl=no
38077 else
38078   echo "$as_me: failed program was:" >&5
38079 sed 's/^/| /' conftest.$ac_ext >&5
38080
38081         wx_cv_func_broken_snprintf_decl=yes
38082
38083 fi
38084
38085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38086
38087
38088 fi
38089 { echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
38090 echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6; }
38091
38092         if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
38093             cat >>confdefs.h <<\_ACEOF
38094 #define HAVE_BROKEN_SNPRINTF_DECL 1
38095 _ACEOF
38096
38097         fi
38098     fi
38099
38100     if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
38101
38102                                         { echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
38103 echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6; }
38104 if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
38105   echo $ECHO_N "(cached) $ECHO_C" >&6
38106 else
38107
38108                 if test "$cross_compiling" = yes; then
38109
38110                         { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
38111 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
38112 echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
38113 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
38114                         wx_cv_func_snprintf_pos_params=no
38115
38116
38117 else
38118   cat >conftest.$ac_ext <<_ACEOF
38119 /* confdefs.h.  */
38120 _ACEOF
38121 cat confdefs.h >>conftest.$ac_ext
38122 cat >>conftest.$ac_ext <<_ACEOF
38123 /* end confdefs.h.  */
38124
38125                         #include <stdio.h>
38126
38127                         int main (void)
38128                         {
38129                             char buffer[128];
38130                             snprintf (buffer, 128, "%2$d %3$d %1$d", 1, 2, 3);
38131                             if (strcmp ("2 3 1", buffer) == 0)
38132                                 exit (0);
38133                             exit (1);
38134                         }
38135
38136 _ACEOF
38137 rm -f conftest$ac_exeext
38138 if { (ac_try="$ac_link"
38139 case "(($ac_try" in
38140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38141   *) ac_try_echo=$ac_try;;
38142 esac
38143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38144   (eval "$ac_link") 2>&5
38145   ac_status=$?
38146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38147   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38148   { (case "(($ac_try" in
38149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38150   *) ac_try_echo=$ac_try;;
38151 esac
38152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38153   (eval "$ac_try") 2>&5
38154   ac_status=$?
38155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38156   (exit $ac_status); }; }; then
38157   wx_cv_func_snprintf_pos_params=no
38158 else
38159   echo "$as_me: program exited with status $ac_status" >&5
38160 echo "$as_me: failed program was:" >&5
38161 sed 's/^/| /' conftest.$ac_ext >&5
38162
38163 ( exit $ac_status )
38164 wx_cv_func_snprintf_pos_params=yes
38165 fi
38166 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38167 fi
38168
38169
38170
38171
38172 fi
38173 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
38174 echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6; }
38175
38176         if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
38177             cat >>confdefs.h <<\_ACEOF
38178 #define HAVE_UNIX98_PRINTF 1
38179 _ACEOF
38180
38181         fi
38182     fi
38183 fi
38184
38185 if test "$wxUSE_UNICODE" = yes; then
38186
38187
38188 for ac_func in swprintf
38189 do
38190 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38191 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38192 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38193 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38194   echo $ECHO_N "(cached) $ECHO_C" >&6
38195 else
38196   cat >conftest.$ac_ext <<_ACEOF
38197 /* confdefs.h.  */
38198 _ACEOF
38199 cat confdefs.h >>conftest.$ac_ext
38200 cat >>conftest.$ac_ext <<_ACEOF
38201 /* end confdefs.h.  */
38202 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38203    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38204 #define $ac_func innocuous_$ac_func
38205
38206 /* System header to define __stub macros and hopefully few prototypes,
38207     which can conflict with char $ac_func (); below.
38208     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38209     <limits.h> exists even on freestanding compilers.  */
38210
38211 #ifdef __STDC__
38212 # include <limits.h>
38213 #else
38214 # include <assert.h>
38215 #endif
38216
38217 #undef $ac_func
38218
38219 /* Override any GCC internal prototype to avoid an error.
38220    Use char because int might match the return type of a GCC
38221    builtin and then its argument prototype would still apply.  */
38222 #ifdef __cplusplus
38223 extern "C"
38224 #endif
38225 char $ac_func ();
38226 /* The GNU C library defines this for functions which it implements
38227     to always fail with ENOSYS.  Some functions are actually named
38228     something starting with __ and the normal name is an alias.  */
38229 #if defined __stub_$ac_func || defined __stub___$ac_func
38230 choke me
38231 #endif
38232
38233 int
38234 main ()
38235 {
38236 return $ac_func ();
38237   ;
38238   return 0;
38239 }
38240 _ACEOF
38241 rm -f conftest.$ac_objext conftest$ac_exeext
38242 if { (ac_try="$ac_link"
38243 case "(($ac_try" in
38244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38245   *) ac_try_echo=$ac_try;;
38246 esac
38247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38248   (eval "$ac_link") 2>conftest.er1
38249   ac_status=$?
38250   grep -v '^ *+' conftest.er1 >conftest.err
38251   rm -f conftest.er1
38252   cat conftest.err >&5
38253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38254   (exit $ac_status); } && {
38255          test -z "$ac_c_werror_flag" ||
38256          test ! -s conftest.err
38257        } && test -s conftest$ac_exeext &&
38258        $as_test_x conftest$ac_exeext; then
38259   eval "$as_ac_var=yes"
38260 else
38261   echo "$as_me: failed program was:" >&5
38262 sed 's/^/| /' conftest.$ac_ext >&5
38263
38264         eval "$as_ac_var=no"
38265 fi
38266
38267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38268       conftest$ac_exeext conftest.$ac_ext
38269 fi
38270 ac_res=`eval echo '${'$as_ac_var'}'`
38271                { echo "$as_me:$LINENO: result: $ac_res" >&5
38272 echo "${ECHO_T}$ac_res" >&6; }
38273 if test `eval echo '${'$as_ac_var'}'` = yes; then
38274   cat >>confdefs.h <<_ACEOF
38275 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38276 _ACEOF
38277
38278 fi
38279 done
38280
38281
38282     if test "$ac_cv_func_swprintf" = "yes"; then
38283         { echo "$as_me:$LINENO: checking if swprintf declaration is broken" >&5
38284 echo $ECHO_N "checking if swprintf declaration is broken... $ECHO_C" >&6; }
38285 if test "${wx_cv_func_broken_swprintf_decl+set}" = set; then
38286   echo $ECHO_N "(cached) $ECHO_C" >&6
38287 else
38288
38289                 cat >conftest.$ac_ext <<_ACEOF
38290 /* confdefs.h.  */
38291 _ACEOF
38292 cat confdefs.h >>conftest.$ac_ext
38293 cat >>conftest.$ac_ext <<_ACEOF
38294 /* end confdefs.h.  */
38295
38296                         #include <stdio.h>
38297                         #include <stdarg.h>
38298                         #include <wchar.h>
38299
38300 int
38301 main ()
38302 {
38303
38304                         wchar_t *buf;
38305                         const wchar_t *fmt = L"test";
38306                         swprintf(buf, 10u, fmt);
38307
38308   ;
38309   return 0;
38310 }
38311 _ACEOF
38312 rm -f conftest.$ac_objext
38313 if { (ac_try="$ac_compile"
38314 case "(($ac_try" in
38315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38316   *) ac_try_echo=$ac_try;;
38317 esac
38318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38319   (eval "$ac_compile") 2>conftest.er1
38320   ac_status=$?
38321   grep -v '^ *+' conftest.er1 >conftest.err
38322   rm -f conftest.er1
38323   cat conftest.err >&5
38324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38325   (exit $ac_status); } && {
38326          test -z "$ac_c_werror_flag" ||
38327          test ! -s conftest.err
38328        } && test -s conftest.$ac_objext; then
38329   wx_cv_func_broken_swprintf_decl=no
38330 else
38331   echo "$as_me: failed program was:" >&5
38332 sed 's/^/| /' conftest.$ac_ext >&5
38333
38334         wx_cv_func_broken_swprintf_decl=yes
38335
38336 fi
38337
38338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38339
38340
38341 fi
38342 { echo "$as_me:$LINENO: result: $wx_cv_func_broken_swprintf_decl" >&5
38343 echo "${ECHO_T}$wx_cv_func_broken_swprintf_decl" >&6; }
38344
38345         if test "$wx_cv_func_broken_swprintf_decl" = "yes"; then
38346             cat >>confdefs.h <<\_ACEOF
38347 #define HAVE_BROKEN_SWPRINTF_DECL 1
38348 _ACEOF
38349
38350         fi
38351     fi
38352
38353             wchar_headers="#include <stdio.h>
38354 #include <wchar.h>"
38355     case "${host}" in
38356         *-*-solaris2* )
38357
38358 for ac_header in widec.h
38359 do
38360 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38361 { echo "$as_me:$LINENO: checking for $ac_header" >&5
38362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
38363 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38364   echo $ECHO_N "(cached) $ECHO_C" >&6
38365 else
38366   cat >conftest.$ac_ext <<_ACEOF
38367 /* confdefs.h.  */
38368 _ACEOF
38369 cat confdefs.h >>conftest.$ac_ext
38370 cat >>conftest.$ac_ext <<_ACEOF
38371 /* end confdefs.h.  */
38372 $ac_includes_default
38373
38374 #include <$ac_header>
38375 _ACEOF
38376 rm -f conftest.$ac_objext
38377 if { (ac_try="$ac_compile"
38378 case "(($ac_try" in
38379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38380   *) ac_try_echo=$ac_try;;
38381 esac
38382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38383   (eval "$ac_compile") 2>conftest.er1
38384   ac_status=$?
38385   grep -v '^ *+' conftest.er1 >conftest.err
38386   rm -f conftest.er1
38387   cat conftest.err >&5
38388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38389   (exit $ac_status); } && {
38390          test -z "$ac_c_werror_flag" ||
38391          test ! -s conftest.err
38392        } && test -s conftest.$ac_objext; then
38393   eval "$as_ac_Header=yes"
38394 else
38395   echo "$as_me: failed program was:" >&5
38396 sed 's/^/| /' conftest.$ac_ext >&5
38397
38398         eval "$as_ac_Header=no"
38399 fi
38400
38401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38402 fi
38403 ac_res=`eval echo '${'$as_ac_Header'}'`
38404                { echo "$as_me:$LINENO: result: $ac_res" >&5
38405 echo "${ECHO_T}$ac_res" >&6; }
38406 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38407   cat >>confdefs.h <<_ACEOF
38408 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38409 _ACEOF
38410
38411 fi
38412
38413 done
38414
38415             if test "$ac_cv_header_widec_h" = "yes"; then
38416                 wchar_headers="$wchar_headers
38417 #include <widec.h>"
38418             fi
38419     esac
38420
38421
38422   for wx_func in wputc wputchar putws fputws wprintf vswprintf
38423   do
38424     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38425 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38426 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38427   echo $ECHO_N "(cached) $ECHO_C" >&6
38428 else
38429
38430         cat >conftest.$ac_ext <<_ACEOF
38431
38432             /* confdefs.h.  */
38433 _ACEOF
38434 cat confdefs.h >>conftest.$ac_ext
38435 cat >>conftest.$ac_ext <<_ACEOF
38436 /* end confdefs.h.  */
38437
38438                 $wchar_headers
38439                 $ac_includes_default
38440
38441 int
38442 main ()
38443 {
38444
38445                 #ifndef $wx_func
38446                   &$wx_func;
38447                 #endif
38448
38449
38450   ;
38451   return 0;
38452 }
38453
38454 _ACEOF
38455 rm -f conftest.$ac_objext conftest$ac_exeext
38456 if { (ac_try="$ac_link"
38457 case "(($ac_try" in
38458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38459   *) ac_try_echo=$ac_try;;
38460 esac
38461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38462   (eval "$ac_link") 2>conftest.er1
38463   ac_status=$?
38464   grep -v '^ *+' conftest.er1 >conftest.err
38465   rm -f conftest.er1
38466   cat conftest.err >&5
38467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38468   (exit $ac_status); } && {
38469          test -z "$ac_c_werror_flag" ||
38470          test ! -s conftest.err
38471        } && test -s conftest$ac_exeext &&
38472        $as_test_x conftest$ac_exeext; then
38473   eval wx_cv_func_$wx_func=yes
38474 else
38475   echo "$as_me: failed program was:" >&5
38476 sed 's/^/| /' conftest.$ac_ext >&5
38477
38478         eval wx_cv_func_$wx_func=no
38479 fi
38480
38481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38482       conftest$ac_exeext conftest.$ac_ext
38483
38484 fi
38485 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38486                { echo "$as_me:$LINENO: result: $ac_res" >&5
38487 echo "${ECHO_T}$ac_res" >&6; }
38488
38489     if eval test \$wx_cv_func_$wx_func = yes
38490     then
38491       cat >>confdefs.h <<_ACEOF
38492 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
38493 _ACEOF
38494
38495
38496     else
38497       :
38498
38499     fi
38500   done
38501
38502
38503                 { echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
38504 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6; }
38505     cat >conftest.$ac_ext <<_ACEOF
38506 /* confdefs.h.  */
38507 _ACEOF
38508 cat confdefs.h >>conftest.$ac_ext
38509 cat >>conftest.$ac_ext <<_ACEOF
38510 /* end confdefs.h.  */
38511 #include <wchar.h>
38512 int
38513 main ()
38514 {
38515 &_vsnwprintf;
38516   ;
38517   return 0;
38518 }
38519 _ACEOF
38520 rm -f conftest.$ac_objext
38521 if { (ac_try="$ac_compile"
38522 case "(($ac_try" in
38523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38524   *) ac_try_echo=$ac_try;;
38525 esac
38526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38527   (eval "$ac_compile") 2>conftest.er1
38528   ac_status=$?
38529   grep -v '^ *+' conftest.er1 >conftest.err
38530   rm -f conftest.er1
38531   cat conftest.err >&5
38532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38533   (exit $ac_status); } && {
38534          test -z "$ac_c_werror_flag" ||
38535          test ! -s conftest.err
38536        } && test -s conftest.$ac_objext; then
38537   { echo "$as_me:$LINENO: result: yes" >&5
38538 echo "${ECHO_T}yes" >&6; }
38539                     cat >>confdefs.h <<\_ACEOF
38540 #define HAVE__VSNWPRINTF 1
38541 _ACEOF
38542
38543 else
38544   echo "$as_me: failed program was:" >&5
38545 sed 's/^/| /' conftest.$ac_ext >&5
38546
38547         { echo "$as_me:$LINENO: result: no" >&5
38548 echo "${ECHO_T}no" >&6; }
38549 fi
38550
38551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
38552 fi
38553
38554 if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
38555
38556   for wx_func in fnmatch
38557   do
38558     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38559 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38560 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38561   echo $ECHO_N "(cached) $ECHO_C" >&6
38562 else
38563
38564         cat >conftest.$ac_ext <<_ACEOF
38565
38566             /* confdefs.h.  */
38567 _ACEOF
38568 cat confdefs.h >>conftest.$ac_ext
38569 cat >>conftest.$ac_ext <<_ACEOF
38570 /* end confdefs.h.  */
38571
38572                 #include <fnmatch.h>
38573                 $ac_includes_default
38574
38575 int
38576 main ()
38577 {
38578
38579                 #ifndef $wx_func
38580                   &$wx_func;
38581                 #endif
38582
38583
38584   ;
38585   return 0;
38586 }
38587
38588 _ACEOF
38589 rm -f conftest.$ac_objext conftest$ac_exeext
38590 if { (ac_try="$ac_link"
38591 case "(($ac_try" in
38592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38593   *) ac_try_echo=$ac_try;;
38594 esac
38595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38596   (eval "$ac_link") 2>conftest.er1
38597   ac_status=$?
38598   grep -v '^ *+' conftest.er1 >conftest.err
38599   rm -f conftest.er1
38600   cat conftest.err >&5
38601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38602   (exit $ac_status); } && {
38603          test -z "$ac_c_werror_flag" ||
38604          test ! -s conftest.err
38605        } && test -s conftest$ac_exeext &&
38606        $as_test_x conftest$ac_exeext; then
38607   eval wx_cv_func_$wx_func=yes
38608 else
38609   echo "$as_me: failed program was:" >&5
38610 sed 's/^/| /' conftest.$ac_ext >&5
38611
38612         eval wx_cv_func_$wx_func=no
38613 fi
38614
38615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38616       conftest$ac_exeext conftest.$ac_ext
38617
38618 fi
38619 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38620                { echo "$as_me:$LINENO: result: $ac_res" >&5
38621 echo "${ECHO_T}$ac_res" >&6; }
38622
38623     if eval test \$wx_cv_func_$wx_func = yes
38624     then
38625       cat >>confdefs.h <<_ACEOF
38626 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
38627 _ACEOF
38628
38629
38630     else
38631       :
38632
38633     fi
38634   done
38635
38636 fi
38637
38638 if test "$wxUSE_FILE" = "yes"; then
38639
38640   for wx_func in fsync
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
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_c_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 fi
38721
38722 ac_ext=cpp
38723 ac_cpp='$CXXCPP $CPPFLAGS'
38724 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38725 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38726 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38727
38728
38729   for wx_func in round
38730   do
38731     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38732 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38733 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38734   echo $ECHO_N "(cached) $ECHO_C" >&6
38735 else
38736
38737         cat >conftest.$ac_ext <<_ACEOF
38738
38739             /* confdefs.h.  */
38740 _ACEOF
38741 cat confdefs.h >>conftest.$ac_ext
38742 cat >>conftest.$ac_ext <<_ACEOF
38743 /* end confdefs.h.  */
38744
38745                 #include <math.h>
38746                 $ac_includes_default
38747
38748 int
38749 main ()
38750 {
38751
38752                 #ifndef $wx_func
38753                   &$wx_func;
38754                 #endif
38755
38756
38757   ;
38758   return 0;
38759 }
38760
38761 _ACEOF
38762 rm -f conftest.$ac_objext conftest$ac_exeext
38763 if { (ac_try="$ac_link"
38764 case "(($ac_try" in
38765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38766   *) ac_try_echo=$ac_try;;
38767 esac
38768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38769   (eval "$ac_link") 2>conftest.er1
38770   ac_status=$?
38771   grep -v '^ *+' conftest.er1 >conftest.err
38772   rm -f conftest.er1
38773   cat conftest.err >&5
38774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38775   (exit $ac_status); } && {
38776          test -z "$ac_cxx_werror_flag" ||
38777          test ! -s conftest.err
38778        } && test -s conftest$ac_exeext &&
38779        $as_test_x conftest$ac_exeext; then
38780   eval wx_cv_func_$wx_func=yes
38781 else
38782   echo "$as_me: failed program was:" >&5
38783 sed 's/^/| /' conftest.$ac_ext >&5
38784
38785         eval wx_cv_func_$wx_func=no
38786 fi
38787
38788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38789       conftest$ac_exeext conftest.$ac_ext
38790
38791 fi
38792 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38793                { echo "$as_me:$LINENO: result: $ac_res" >&5
38794 echo "${ECHO_T}$ac_res" >&6; }
38795
38796     if eval test \$wx_cv_func_$wx_func = yes
38797     then
38798       cat >>confdefs.h <<_ACEOF
38799 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
38800 _ACEOF
38801
38802
38803     else
38804       :
38805
38806     fi
38807   done
38808
38809 ac_ext=c
38810 ac_cpp='$CPP $CPPFLAGS'
38811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38814
38815
38816 if test "$TOOLKIT" != "MSW"; then
38817
38818
38819
38820
38821
38822 # Check whether --with-libiconv-prefix was given.
38823 if test "${with_libiconv_prefix+set}" = set; then
38824   withval=$with_libiconv_prefix;
38825     for dir in `echo "$withval" | tr : ' '`; do
38826       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
38827       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
38828     done
38829
38830 fi
38831
38832
38833   { echo "$as_me:$LINENO: checking for iconv" >&5
38834 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
38835 if test "${am_cv_func_iconv+set}" = set; then
38836   echo $ECHO_N "(cached) $ECHO_C" >&6
38837 else
38838
38839     am_cv_func_iconv="no, consider installing GNU libiconv"
38840     am_cv_lib_iconv=no
38841     cat >conftest.$ac_ext <<_ACEOF
38842 /* confdefs.h.  */
38843 _ACEOF
38844 cat confdefs.h >>conftest.$ac_ext
38845 cat >>conftest.$ac_ext <<_ACEOF
38846 /* end confdefs.h.  */
38847 #include <stdlib.h>
38848 #include <iconv.h>
38849 int
38850 main ()
38851 {
38852 iconv_t cd = iconv_open("","");
38853        iconv(cd,NULL,NULL,NULL,NULL);
38854        iconv_close(cd);
38855   ;
38856   return 0;
38857 }
38858 _ACEOF
38859 rm -f conftest.$ac_objext conftest$ac_exeext
38860 if { (ac_try="$ac_link"
38861 case "(($ac_try" in
38862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38863   *) ac_try_echo=$ac_try;;
38864 esac
38865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38866   (eval "$ac_link") 2>conftest.er1
38867   ac_status=$?
38868   grep -v '^ *+' conftest.er1 >conftest.err
38869   rm -f conftest.er1
38870   cat conftest.err >&5
38871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38872   (exit $ac_status); } && {
38873          test -z "$ac_c_werror_flag" ||
38874          test ! -s conftest.err
38875        } && test -s conftest$ac_exeext &&
38876        $as_test_x conftest$ac_exeext; then
38877   am_cv_func_iconv=yes
38878 else
38879   echo "$as_me: failed program was:" >&5
38880 sed 's/^/| /' conftest.$ac_ext >&5
38881
38882
38883 fi
38884
38885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38886       conftest$ac_exeext conftest.$ac_ext
38887     if test "$am_cv_func_iconv" != yes; then
38888       am_save_LIBS="$LIBS"
38889       LIBS="$LIBS -liconv"
38890       cat >conftest.$ac_ext <<_ACEOF
38891 /* confdefs.h.  */
38892 _ACEOF
38893 cat confdefs.h >>conftest.$ac_ext
38894 cat >>conftest.$ac_ext <<_ACEOF
38895 /* end confdefs.h.  */
38896 #include <stdlib.h>
38897 #include <iconv.h>
38898 int
38899 main ()
38900 {
38901 iconv_t cd = iconv_open("","");
38902          iconv(cd,NULL,NULL,NULL,NULL);
38903          iconv_close(cd);
38904   ;
38905   return 0;
38906 }
38907 _ACEOF
38908 rm -f conftest.$ac_objext conftest$ac_exeext
38909 if { (ac_try="$ac_link"
38910 case "(($ac_try" in
38911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38912   *) ac_try_echo=$ac_try;;
38913 esac
38914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38915   (eval "$ac_link") 2>conftest.er1
38916   ac_status=$?
38917   grep -v '^ *+' conftest.er1 >conftest.err
38918   rm -f conftest.er1
38919   cat conftest.err >&5
38920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38921   (exit $ac_status); } && {
38922          test -z "$ac_c_werror_flag" ||
38923          test ! -s conftest.err
38924        } && test -s conftest$ac_exeext &&
38925        $as_test_x conftest$ac_exeext; then
38926   am_cv_lib_iconv=yes
38927         am_cv_func_iconv=yes
38928 else
38929   echo "$as_me: failed program was:" >&5
38930 sed 's/^/| /' conftest.$ac_ext >&5
38931
38932
38933 fi
38934
38935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38936       conftest$ac_exeext conftest.$ac_ext
38937       LIBS="$am_save_LIBS"
38938     fi
38939
38940 fi
38941 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
38942 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
38943   if test "$am_cv_func_iconv" = yes; then
38944
38945 cat >>confdefs.h <<\_ACEOF
38946 #define HAVE_ICONV 1
38947 _ACEOF
38948
38949     { echo "$as_me:$LINENO: checking if iconv needs const" >&5
38950 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6; }
38951 if test "${wx_cv_func_iconv_const+set}" = set; then
38952   echo $ECHO_N "(cached) $ECHO_C" >&6
38953 else
38954   cat >conftest.$ac_ext <<_ACEOF
38955 /* confdefs.h.  */
38956 _ACEOF
38957 cat confdefs.h >>conftest.$ac_ext
38958 cat >>conftest.$ac_ext <<_ACEOF
38959 /* end confdefs.h.  */
38960
38961 #include <stdlib.h>
38962 #include <iconv.h>
38963 extern
38964 #ifdef __cplusplus
38965 "C"
38966 #endif
38967 #if defined(__STDC__) || defined(__cplusplus)
38968 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
38969 #else
38970 size_t iconv();
38971 #endif
38972
38973 int
38974 main ()
38975 {
38976
38977   ;
38978   return 0;
38979 }
38980 _ACEOF
38981 rm -f conftest.$ac_objext
38982 if { (ac_try="$ac_compile"
38983 case "(($ac_try" in
38984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38985   *) ac_try_echo=$ac_try;;
38986 esac
38987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38988   (eval "$ac_compile") 2>conftest.er1
38989   ac_status=$?
38990   grep -v '^ *+' conftest.er1 >conftest.err
38991   rm -f conftest.er1
38992   cat conftest.err >&5
38993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38994   (exit $ac_status); } && {
38995          test -z "$ac_c_werror_flag" ||
38996          test ! -s conftest.err
38997        } && test -s conftest.$ac_objext; then
38998   wx_cv_func_iconv_const="no"
38999 else
39000   echo "$as_me: failed program was:" >&5
39001 sed 's/^/| /' conftest.$ac_ext >&5
39002
39003         wx_cv_func_iconv_const="yes"
39004
39005 fi
39006
39007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39008
39009 fi
39010 { echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
39011 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6; }
39012
39013     iconv_const=
39014     if test "x$wx_cv_func_iconv_const" = "xyes"; then
39015         iconv_const="const"
39016     fi
39017
39018
39019 cat >>confdefs.h <<_ACEOF
39020 #define ICONV_CONST $iconv_const
39021 _ACEOF
39022
39023   fi
39024   LIBICONV=
39025   if test "$am_cv_lib_iconv" = yes; then
39026     LIBICONV="-liconv"
39027   fi
39028
39029
39030 LIBS="$LIBICONV $LIBS"
39031
39032 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
39033
39034 for ac_func in sigaction
39035 do
39036 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39037 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39039 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39040   echo $ECHO_N "(cached) $ECHO_C" >&6
39041 else
39042   cat >conftest.$ac_ext <<_ACEOF
39043 /* confdefs.h.  */
39044 _ACEOF
39045 cat confdefs.h >>conftest.$ac_ext
39046 cat >>conftest.$ac_ext <<_ACEOF
39047 /* end confdefs.h.  */
39048 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39049    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39050 #define $ac_func innocuous_$ac_func
39051
39052 /* System header to define __stub macros and hopefully few prototypes,
39053     which can conflict with char $ac_func (); below.
39054     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39055     <limits.h> exists even on freestanding compilers.  */
39056
39057 #ifdef __STDC__
39058 # include <limits.h>
39059 #else
39060 # include <assert.h>
39061 #endif
39062
39063 #undef $ac_func
39064
39065 /* Override any GCC internal prototype to avoid an error.
39066    Use char because int might match the return type of a GCC
39067    builtin and then its argument prototype would still apply.  */
39068 #ifdef __cplusplus
39069 extern "C"
39070 #endif
39071 char $ac_func ();
39072 /* The GNU C library defines this for functions which it implements
39073     to always fail with ENOSYS.  Some functions are actually named
39074     something starting with __ and the normal name is an alias.  */
39075 #if defined __stub_$ac_func || defined __stub___$ac_func
39076 choke me
39077 #endif
39078
39079 int
39080 main ()
39081 {
39082 return $ac_func ();
39083   ;
39084   return 0;
39085 }
39086 _ACEOF
39087 rm -f conftest.$ac_objext conftest$ac_exeext
39088 if { (ac_try="$ac_link"
39089 case "(($ac_try" in
39090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39091   *) ac_try_echo=$ac_try;;
39092 esac
39093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39094   (eval "$ac_link") 2>conftest.er1
39095   ac_status=$?
39096   grep -v '^ *+' conftest.er1 >conftest.err
39097   rm -f conftest.er1
39098   cat conftest.err >&5
39099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39100   (exit $ac_status); } && {
39101          test -z "$ac_c_werror_flag" ||
39102          test ! -s conftest.err
39103        } && test -s conftest$ac_exeext &&
39104        $as_test_x conftest$ac_exeext; then
39105   eval "$as_ac_var=yes"
39106 else
39107   echo "$as_me: failed program was:" >&5
39108 sed 's/^/| /' conftest.$ac_ext >&5
39109
39110         eval "$as_ac_var=no"
39111 fi
39112
39113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39114       conftest$ac_exeext conftest.$ac_ext
39115 fi
39116 ac_res=`eval echo '${'$as_ac_var'}'`
39117                { echo "$as_me:$LINENO: result: $ac_res" >&5
39118 echo "${ECHO_T}$ac_res" >&6; }
39119 if test `eval echo '${'$as_ac_var'}'` = yes; then
39120   cat >>confdefs.h <<_ACEOF
39121 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39122 _ACEOF
39123
39124 fi
39125 done
39126
39127
39128     if test "$ac_cv_func_sigaction" = "no"; then
39129         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
39130 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
39131         wxUSE_ON_FATAL_EXCEPTION=no
39132     fi
39133
39134     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
39135       { echo "$as_me:$LINENO: checking for sa_handler type" >&5
39136 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6; }
39137 if test "${wx_cv_type_sa_handler+set}" = set; then
39138   echo $ECHO_N "(cached) $ECHO_C" >&6
39139 else
39140
39141                 ac_ext=cpp
39142 ac_cpp='$CXXCPP $CPPFLAGS'
39143 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39144 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39145 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39146
39147         cat >conftest.$ac_ext <<_ACEOF
39148 /* confdefs.h.  */
39149 _ACEOF
39150 cat confdefs.h >>conftest.$ac_ext
39151 cat >>conftest.$ac_ext <<_ACEOF
39152 /* end confdefs.h.  */
39153 #include <signal.h>
39154 int
39155 main ()
39156 {
39157
39158                         extern void testSigHandler(int);
39159
39160                         struct sigaction sa;
39161                         sa.sa_handler = testSigHandler;
39162
39163   ;
39164   return 0;
39165 }
39166 _ACEOF
39167 rm -f conftest.$ac_objext
39168 if { (ac_try="$ac_compile"
39169 case "(($ac_try" in
39170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39171   *) ac_try_echo=$ac_try;;
39172 esac
39173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39174   (eval "$ac_compile") 2>conftest.er1
39175   ac_status=$?
39176   grep -v '^ *+' conftest.er1 >conftest.err
39177   rm -f conftest.er1
39178   cat conftest.err >&5
39179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39180   (exit $ac_status); } && {
39181          test -z "$ac_cxx_werror_flag" ||
39182          test ! -s conftest.err
39183        } && test -s conftest.$ac_objext; then
39184
39185                         wx_cv_type_sa_handler=int
39186
39187 else
39188   echo "$as_me: failed program was:" >&5
39189 sed 's/^/| /' conftest.$ac_ext >&5
39190
39191
39192                         wx_cv_type_sa_handler=void
39193
39194 fi
39195
39196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39197         ac_ext=c
39198 ac_cpp='$CPP $CPPFLAGS'
39199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39202
39203
39204 fi
39205 { echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
39206 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6; }
39207
39208       cat >>confdefs.h <<_ACEOF
39209 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
39210 _ACEOF
39211
39212     fi
39213 fi
39214
39215 if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
39216     { echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
39217 echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6; }
39218 if test "${wx_cv_func_backtrace+set}" = set; then
39219   echo $ECHO_N "(cached) $ECHO_C" >&6
39220 else
39221
39222             ac_ext=cpp
39223 ac_cpp='$CXXCPP $CPPFLAGS'
39224 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39225 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39226 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39227
39228             cat >conftest.$ac_ext <<_ACEOF
39229 /* confdefs.h.  */
39230 _ACEOF
39231 cat confdefs.h >>conftest.$ac_ext
39232 cat >>conftest.$ac_ext <<_ACEOF
39233 /* end confdefs.h.  */
39234 #include <execinfo.h>
39235 int
39236 main ()
39237 {
39238
39239                     void *trace[1];
39240                     char **messages;
39241
39242                     backtrace(trace, 1);
39243                     messages = backtrace_symbols(trace, 1);
39244
39245   ;
39246   return 0;
39247 }
39248 _ACEOF
39249 rm -f conftest.$ac_objext
39250 if { (ac_try="$ac_compile"
39251 case "(($ac_try" in
39252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39253   *) ac_try_echo=$ac_try;;
39254 esac
39255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39256   (eval "$ac_compile") 2>conftest.er1
39257   ac_status=$?
39258   grep -v '^ *+' conftest.er1 >conftest.err
39259   rm -f conftest.er1
39260   cat conftest.err >&5
39261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39262   (exit $ac_status); } && {
39263          test -z "$ac_cxx_werror_flag" ||
39264          test ! -s conftest.err
39265        } && test -s conftest.$ac_objext; then
39266   wx_cv_func_backtrace=yes
39267 else
39268   echo "$as_me: failed program was:" >&5
39269 sed 's/^/| /' conftest.$ac_ext >&5
39270
39271         wx_cv_func_backtrace=no
39272
39273 fi
39274
39275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39276             ac_ext=c
39277 ac_cpp='$CPP $CPPFLAGS'
39278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39281
39282
39283
39284 fi
39285 { echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
39286 echo "${ECHO_T}$wx_cv_func_backtrace" >&6; }
39287
39288
39289     if test "$wx_cv_func_backtrace" = "no"; then
39290         { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
39291 echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
39292         wxUSE_STACKWALKER=no
39293     else
39294         { echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
39295 echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6; }
39296 if test "${wx_cv_func_cxa_demangle+set}" = set; then
39297   echo $ECHO_N "(cached) $ECHO_C" >&6
39298 else
39299
39300                 ac_ext=cpp
39301 ac_cpp='$CXXCPP $CPPFLAGS'
39302 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39303 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39304 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39305
39306                 cat >conftest.$ac_ext <<_ACEOF
39307 /* confdefs.h.  */
39308 _ACEOF
39309 cat confdefs.h >>conftest.$ac_ext
39310 cat >>conftest.$ac_ext <<_ACEOF
39311 /* end confdefs.h.  */
39312 #include <cxxabi.h>
39313 int
39314 main ()
39315 {
39316
39317                         int rc;
39318                         __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
39319
39320   ;
39321   return 0;
39322 }
39323 _ACEOF
39324 rm -f conftest.$ac_objext conftest$ac_exeext
39325 if { (ac_try="$ac_link"
39326 case "(($ac_try" in
39327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39328   *) ac_try_echo=$ac_try;;
39329 esac
39330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39331   (eval "$ac_link") 2>conftest.er1
39332   ac_status=$?
39333   grep -v '^ *+' conftest.er1 >conftest.err
39334   rm -f conftest.er1
39335   cat conftest.err >&5
39336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39337   (exit $ac_status); } && {
39338          test -z "$ac_cxx_werror_flag" ||
39339          test ! -s conftest.err
39340        } && test -s conftest$ac_exeext &&
39341        $as_test_x conftest$ac_exeext; then
39342   wx_cv_func_cxa_demangle=yes
39343 else
39344   echo "$as_me: failed program was:" >&5
39345 sed 's/^/| /' conftest.$ac_ext >&5
39346
39347         wx_cv_func_cxa_demangle=no
39348
39349 fi
39350
39351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39352       conftest$ac_exeext conftest.$ac_ext
39353                 ac_ext=c
39354 ac_cpp='$CPP $CPPFLAGS'
39355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39358
39359
39360
39361 fi
39362 { echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
39363 echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6; }
39364
39365         if test "$wx_cv_func_cxa_demangle" = "yes"; then
39366             cat >>confdefs.h <<\_ACEOF
39367 #define HAVE_CXA_DEMANGLE 1
39368 _ACEOF
39369
39370         fi
39371     fi
39372 fi
39373
39374 if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
39375     { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
39376 echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
39377     wxUSE_STACKWALKER=no
39378 fi
39379
39380
39381
39382
39383 for ac_func in mkstemp mktemp
39384 do
39385 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39386 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39387 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39388 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39389   echo $ECHO_N "(cached) $ECHO_C" >&6
39390 else
39391   cat >conftest.$ac_ext <<_ACEOF
39392 /* confdefs.h.  */
39393 _ACEOF
39394 cat confdefs.h >>conftest.$ac_ext
39395 cat >>conftest.$ac_ext <<_ACEOF
39396 /* end confdefs.h.  */
39397 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39398    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39399 #define $ac_func innocuous_$ac_func
39400
39401 /* System header to define __stub macros and hopefully few prototypes,
39402     which can conflict with char $ac_func (); below.
39403     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39404     <limits.h> exists even on freestanding compilers.  */
39405
39406 #ifdef __STDC__
39407 # include <limits.h>
39408 #else
39409 # include <assert.h>
39410 #endif
39411
39412 #undef $ac_func
39413
39414 /* Override any GCC internal prototype to avoid an error.
39415    Use char because int might match the return type of a GCC
39416    builtin and then its argument prototype would still apply.  */
39417 #ifdef __cplusplus
39418 extern "C"
39419 #endif
39420 char $ac_func ();
39421 /* The GNU C library defines this for functions which it implements
39422     to always fail with ENOSYS.  Some functions are actually named
39423     something starting with __ and the normal name is an alias.  */
39424 #if defined __stub_$ac_func || defined __stub___$ac_func
39425 choke me
39426 #endif
39427
39428 int
39429 main ()
39430 {
39431 return $ac_func ();
39432   ;
39433   return 0;
39434 }
39435 _ACEOF
39436 rm -f conftest.$ac_objext conftest$ac_exeext
39437 if { (ac_try="$ac_link"
39438 case "(($ac_try" in
39439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39440   *) ac_try_echo=$ac_try;;
39441 esac
39442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39443   (eval "$ac_link") 2>conftest.er1
39444   ac_status=$?
39445   grep -v '^ *+' conftest.er1 >conftest.err
39446   rm -f conftest.er1
39447   cat conftest.err >&5
39448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39449   (exit $ac_status); } && {
39450          test -z "$ac_c_werror_flag" ||
39451          test ! -s conftest.err
39452        } && test -s conftest$ac_exeext &&
39453        $as_test_x conftest$ac_exeext; then
39454   eval "$as_ac_var=yes"
39455 else
39456   echo "$as_me: failed program was:" >&5
39457 sed 's/^/| /' conftest.$ac_ext >&5
39458
39459         eval "$as_ac_var=no"
39460 fi
39461
39462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39463       conftest$ac_exeext conftest.$ac_ext
39464 fi
39465 ac_res=`eval echo '${'$as_ac_var'}'`
39466                { echo "$as_me:$LINENO: result: $ac_res" >&5
39467 echo "${ECHO_T}$ac_res" >&6; }
39468 if test `eval echo '${'$as_ac_var'}'` = yes; then
39469   cat >>confdefs.h <<_ACEOF
39470 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39471 _ACEOF
39472  break
39473 fi
39474 done
39475
39476
39477 { echo "$as_me:$LINENO: checking for statfs" >&5
39478 echo $ECHO_N "checking for statfs... $ECHO_C" >&6; }
39479 if test "${wx_cv_func_statfs+set}" = set; then
39480   echo $ECHO_N "(cached) $ECHO_C" >&6
39481 else
39482   cat >conftest.$ac_ext <<_ACEOF
39483 /* confdefs.h.  */
39484 _ACEOF
39485 cat confdefs.h >>conftest.$ac_ext
39486 cat >>conftest.$ac_ext <<_ACEOF
39487 /* end confdefs.h.  */
39488
39489              #if defined(__BSD__)
39490              #include <sys/param.h>
39491              #include <sys/mount.h>
39492              #else
39493              #include <sys/vfs.h>
39494              #endif
39495
39496 int
39497 main ()
39498 {
39499
39500              long l;
39501              struct statfs fs;
39502              statfs("/", &fs);
39503              l = fs.f_bsize;
39504              l += fs.f_blocks;
39505              l += fs.f_bavail;
39506
39507   ;
39508   return 0;
39509 }
39510 _ACEOF
39511 rm -f conftest.$ac_objext
39512 if { (ac_try="$ac_compile"
39513 case "(($ac_try" in
39514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39515   *) ac_try_echo=$ac_try;;
39516 esac
39517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39518   (eval "$ac_compile") 2>conftest.er1
39519   ac_status=$?
39520   grep -v '^ *+' conftest.er1 >conftest.err
39521   rm -f conftest.er1
39522   cat conftest.err >&5
39523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39524   (exit $ac_status); } && {
39525          test -z "$ac_c_werror_flag" ||
39526          test ! -s conftest.err
39527        } && test -s conftest.$ac_objext; then
39528   wx_cv_func_statfs=yes
39529 else
39530   echo "$as_me: failed program was:" >&5
39531 sed 's/^/| /' conftest.$ac_ext >&5
39532
39533         wx_cv_func_statfs=no
39534
39535 fi
39536
39537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39538
39539 fi
39540 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
39541 echo "${ECHO_T}$wx_cv_func_statfs" >&6; }
39542
39543 if test "$wx_cv_func_statfs" = "yes"; then
39544         { echo "$as_me:$LINENO: checking for statfs declaration" >&5
39545 echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6; }
39546 if test "${wx_cv_func_statfs_decl+set}" = set; then
39547   echo $ECHO_N "(cached) $ECHO_C" >&6
39548 else
39549   ac_ext=cpp
39550 ac_cpp='$CXXCPP $CPPFLAGS'
39551 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39552 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39553 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39554
39555         cat >conftest.$ac_ext <<_ACEOF
39556 /* confdefs.h.  */
39557 _ACEOF
39558 cat confdefs.h >>conftest.$ac_ext
39559 cat >>conftest.$ac_ext <<_ACEOF
39560 /* end confdefs.h.  */
39561
39562                  #if defined(__BSD__)
39563                  #include <sys/param.h>
39564                  #include <sys/mount.h>
39565                  #else
39566                  #include <sys/vfs.h>
39567                  #endif
39568
39569 int
39570 main ()
39571 {
39572
39573                 struct statfs fs;
39574                 statfs("", &fs);
39575
39576   ;
39577   return 0;
39578 }
39579 _ACEOF
39580 rm -f conftest.$ac_objext
39581 if { (ac_try="$ac_compile"
39582 case "(($ac_try" in
39583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39584   *) ac_try_echo=$ac_try;;
39585 esac
39586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39587   (eval "$ac_compile") 2>conftest.er1
39588   ac_status=$?
39589   grep -v '^ *+' conftest.er1 >conftest.err
39590   rm -f conftest.er1
39591   cat conftest.err >&5
39592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39593   (exit $ac_status); } && {
39594          test -z "$ac_cxx_werror_flag" ||
39595          test ! -s conftest.err
39596        } && test -s conftest.$ac_objext; then
39597   wx_cv_func_statfs_decl=yes
39598 else
39599   echo "$as_me: failed program was:" >&5
39600 sed 's/^/| /' conftest.$ac_ext >&5
39601
39602         wx_cv_func_statfs_decl=no
39603
39604 fi
39605
39606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39607         ac_ext=c
39608 ac_cpp='$CPP $CPPFLAGS'
39609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39612
39613
39614 fi
39615 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
39616 echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6; }
39617
39618     if test "$wx_cv_func_statfs_decl" = "yes"; then
39619         cat >>confdefs.h <<\_ACEOF
39620 #define HAVE_STATFS_DECL 1
39621 _ACEOF
39622
39623     fi
39624
39625     wx_cv_type_statvfs_t="struct statfs"
39626     cat >>confdefs.h <<\_ACEOF
39627 #define HAVE_STATFS 1
39628 _ACEOF
39629
39630 else
39631     { echo "$as_me:$LINENO: checking for statvfs" >&5
39632 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6; }
39633 if test "${wx_cv_func_statvfs+set}" = set; then
39634   echo $ECHO_N "(cached) $ECHO_C" >&6
39635 else
39636   cat >conftest.$ac_ext <<_ACEOF
39637 /* confdefs.h.  */
39638 _ACEOF
39639 cat confdefs.h >>conftest.$ac_ext
39640 cat >>conftest.$ac_ext <<_ACEOF
39641 /* end confdefs.h.  */
39642
39643                 #include <stddef.h>
39644                 #include <sys/statvfs.h>
39645
39646 int
39647 main ()
39648 {
39649
39650                 statvfs("/", NULL);
39651
39652   ;
39653   return 0;
39654 }
39655 _ACEOF
39656 rm -f conftest.$ac_objext
39657 if { (ac_try="$ac_compile"
39658 case "(($ac_try" in
39659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39660   *) ac_try_echo=$ac_try;;
39661 esac
39662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39663   (eval "$ac_compile") 2>conftest.er1
39664   ac_status=$?
39665   grep -v '^ *+' conftest.er1 >conftest.err
39666   rm -f conftest.er1
39667   cat conftest.err >&5
39668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39669   (exit $ac_status); } && {
39670          test -z "$ac_c_werror_flag" ||
39671          test ! -s conftest.err
39672        } && test -s conftest.$ac_objext; then
39673   wx_cv_func_statvfs=yes
39674 else
39675   echo "$as_me: failed program was:" >&5
39676 sed 's/^/| /' conftest.$ac_ext >&5
39677
39678         wx_cv_func_statvfs=no
39679
39680 fi
39681
39682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39683
39684 fi
39685 { echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
39686 echo "${ECHO_T}$wx_cv_func_statvfs" >&6; }
39687
39688     if test "$wx_cv_func_statvfs" = "yes"; then
39689                                                                 { echo "$as_me:$LINENO: checking for statvfs argument type" >&5
39690 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6; }
39691 if test "${wx_cv_type_statvfs_t+set}" = set; then
39692   echo $ECHO_N "(cached) $ECHO_C" >&6
39693 else
39694   ac_ext=cpp
39695 ac_cpp='$CXXCPP $CPPFLAGS'
39696 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39697 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39698 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39699
39700             cat >conftest.$ac_ext <<_ACEOF
39701 /* confdefs.h.  */
39702 _ACEOF
39703 cat confdefs.h >>conftest.$ac_ext
39704 cat >>conftest.$ac_ext <<_ACEOF
39705 /* end confdefs.h.  */
39706
39707                     #include <sys/statvfs.h>
39708
39709 int
39710 main ()
39711 {
39712
39713                     long l;
39714                     statvfs_t fs;
39715                     statvfs("/", &fs);
39716                     l = fs.f_bsize;
39717                     l += fs.f_blocks;
39718                     l += fs.f_bavail;
39719
39720   ;
39721   return 0;
39722 }
39723 _ACEOF
39724 rm -f conftest.$ac_objext
39725 if { (ac_try="$ac_compile"
39726 case "(($ac_try" in
39727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39728   *) ac_try_echo=$ac_try;;
39729 esac
39730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39731   (eval "$ac_compile") 2>conftest.er1
39732   ac_status=$?
39733   grep -v '^ *+' conftest.er1 >conftest.err
39734   rm -f conftest.er1
39735   cat conftest.err >&5
39736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39737   (exit $ac_status); } && {
39738          test -z "$ac_cxx_werror_flag" ||
39739          test ! -s conftest.err
39740        } && test -s conftest.$ac_objext; then
39741   wx_cv_type_statvfs_t=statvfs_t
39742 else
39743   echo "$as_me: failed program was:" >&5
39744 sed 's/^/| /' conftest.$ac_ext >&5
39745
39746
39747                     cat >conftest.$ac_ext <<_ACEOF
39748 /* confdefs.h.  */
39749 _ACEOF
39750 cat confdefs.h >>conftest.$ac_ext
39751 cat >>conftest.$ac_ext <<_ACEOF
39752 /* end confdefs.h.  */
39753
39754                             #include <sys/statvfs.h>
39755
39756 int
39757 main ()
39758 {
39759
39760                             long l;
39761                             struct statvfs fs;
39762                             statvfs("/", &fs);
39763                             l = fs.f_bsize;
39764                             l += fs.f_blocks;
39765                             l += fs.f_bavail;
39766
39767   ;
39768   return 0;
39769 }
39770 _ACEOF
39771 rm -f conftest.$ac_objext
39772 if { (ac_try="$ac_compile"
39773 case "(($ac_try" in
39774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39775   *) ac_try_echo=$ac_try;;
39776 esac
39777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39778   (eval "$ac_compile") 2>conftest.er1
39779   ac_status=$?
39780   grep -v '^ *+' conftest.er1 >conftest.err
39781   rm -f conftest.er1
39782   cat conftest.err >&5
39783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39784   (exit $ac_status); } && {
39785          test -z "$ac_cxx_werror_flag" ||
39786          test ! -s conftest.err
39787        } && test -s conftest.$ac_objext; then
39788   wx_cv_type_statvfs_t="struct statvfs"
39789 else
39790   echo "$as_me: failed program was:" >&5
39791 sed 's/^/| /' conftest.$ac_ext >&5
39792
39793         wx_cv_type_statvfs_t="unknown"
39794
39795 fi
39796
39797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39798
39799
39800 fi
39801
39802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39803             ac_ext=c
39804 ac_cpp='$CPP $CPPFLAGS'
39805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39808
39809
39810 fi
39811 { echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
39812 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6; }
39813
39814         if test "$wx_cv_type_statvfs_t" != "unknown"; then
39815             cat >>confdefs.h <<\_ACEOF
39816 #define HAVE_STATVFS 1
39817 _ACEOF
39818
39819         fi
39820     else
39821                 wx_cv_type_statvfs_t="unknown"
39822     fi
39823 fi
39824
39825 if test "$wx_cv_type_statvfs_t" != "unknown"; then
39826     cat >>confdefs.h <<_ACEOF
39827 #define WX_STATFS_T $wx_cv_type_statvfs_t
39828 _ACEOF
39829
39830 else
39831     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
39832 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
39833 fi
39834
39835 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
39836
39837
39838 for ac_func in fcntl flock
39839 do
39840 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39841 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39842 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39843 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39844   echo $ECHO_N "(cached) $ECHO_C" >&6
39845 else
39846   cat >conftest.$ac_ext <<_ACEOF
39847 /* confdefs.h.  */
39848 _ACEOF
39849 cat confdefs.h >>conftest.$ac_ext
39850 cat >>conftest.$ac_ext <<_ACEOF
39851 /* end confdefs.h.  */
39852 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39853    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39854 #define $ac_func innocuous_$ac_func
39855
39856 /* System header to define __stub macros and hopefully few prototypes,
39857     which can conflict with char $ac_func (); below.
39858     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39859     <limits.h> exists even on freestanding compilers.  */
39860
39861 #ifdef __STDC__
39862 # include <limits.h>
39863 #else
39864 # include <assert.h>
39865 #endif
39866
39867 #undef $ac_func
39868
39869 /* Override any GCC internal prototype to avoid an error.
39870    Use char because int might match the return type of a GCC
39871    builtin and then its argument prototype would still apply.  */
39872 #ifdef __cplusplus
39873 extern "C"
39874 #endif
39875 char $ac_func ();
39876 /* The GNU C library defines this for functions which it implements
39877     to always fail with ENOSYS.  Some functions are actually named
39878     something starting with __ and the normal name is an alias.  */
39879 #if defined __stub_$ac_func || defined __stub___$ac_func
39880 choke me
39881 #endif
39882
39883 int
39884 main ()
39885 {
39886 return $ac_func ();
39887   ;
39888   return 0;
39889 }
39890 _ACEOF
39891 rm -f conftest.$ac_objext conftest$ac_exeext
39892 if { (ac_try="$ac_link"
39893 case "(($ac_try" in
39894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39895   *) ac_try_echo=$ac_try;;
39896 esac
39897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39898   (eval "$ac_link") 2>conftest.er1
39899   ac_status=$?
39900   grep -v '^ *+' conftest.er1 >conftest.err
39901   rm -f conftest.er1
39902   cat conftest.err >&5
39903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39904   (exit $ac_status); } && {
39905          test -z "$ac_c_werror_flag" ||
39906          test ! -s conftest.err
39907        } && test -s conftest$ac_exeext &&
39908        $as_test_x conftest$ac_exeext; then
39909   eval "$as_ac_var=yes"
39910 else
39911   echo "$as_me: failed program was:" >&5
39912 sed 's/^/| /' conftest.$ac_ext >&5
39913
39914         eval "$as_ac_var=no"
39915 fi
39916
39917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39918       conftest$ac_exeext conftest.$ac_ext
39919 fi
39920 ac_res=`eval echo '${'$as_ac_var'}'`
39921                { echo "$as_me:$LINENO: result: $ac_res" >&5
39922 echo "${ECHO_T}$ac_res" >&6; }
39923 if test `eval echo '${'$as_ac_var'}'` = yes; then
39924   cat >>confdefs.h <<_ACEOF
39925 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39926 _ACEOF
39927  break
39928 fi
39929 done
39930
39931
39932     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
39933         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
39934 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
39935         wxUSE_SNGLINST_CHECKER=no
39936     fi
39937 fi
39938
39939
39940 for ac_func in timegm
39941 do
39942 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39943 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39944 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39945 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39946   echo $ECHO_N "(cached) $ECHO_C" >&6
39947 else
39948   cat >conftest.$ac_ext <<_ACEOF
39949 /* confdefs.h.  */
39950 _ACEOF
39951 cat confdefs.h >>conftest.$ac_ext
39952 cat >>conftest.$ac_ext <<_ACEOF
39953 /* end confdefs.h.  */
39954 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39955    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39956 #define $ac_func innocuous_$ac_func
39957
39958 /* System header to define __stub macros and hopefully few prototypes,
39959     which can conflict with char $ac_func (); below.
39960     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39961     <limits.h> exists even on freestanding compilers.  */
39962
39963 #ifdef __STDC__
39964 # include <limits.h>
39965 #else
39966 # include <assert.h>
39967 #endif
39968
39969 #undef $ac_func
39970
39971 /* Override any GCC internal prototype to avoid an error.
39972    Use char because int might match the return type of a GCC
39973    builtin and then its argument prototype would still apply.  */
39974 #ifdef __cplusplus
39975 extern "C"
39976 #endif
39977 char $ac_func ();
39978 /* The GNU C library defines this for functions which it implements
39979     to always fail with ENOSYS.  Some functions are actually named
39980     something starting with __ and the normal name is an alias.  */
39981 #if defined __stub_$ac_func || defined __stub___$ac_func
39982 choke me
39983 #endif
39984
39985 int
39986 main ()
39987 {
39988 return $ac_func ();
39989   ;
39990   return 0;
39991 }
39992 _ACEOF
39993 rm -f conftest.$ac_objext conftest$ac_exeext
39994 if { (ac_try="$ac_link"
39995 case "(($ac_try" in
39996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39997   *) ac_try_echo=$ac_try;;
39998 esac
39999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40000   (eval "$ac_link") 2>conftest.er1
40001   ac_status=$?
40002   grep -v '^ *+' conftest.er1 >conftest.err
40003   rm -f conftest.er1
40004   cat conftest.err >&5
40005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40006   (exit $ac_status); } && {
40007          test -z "$ac_c_werror_flag" ||
40008          test ! -s conftest.err
40009        } && test -s conftest$ac_exeext &&
40010        $as_test_x conftest$ac_exeext; then
40011   eval "$as_ac_var=yes"
40012 else
40013   echo "$as_me: failed program was:" >&5
40014 sed 's/^/| /' conftest.$ac_ext >&5
40015
40016         eval "$as_ac_var=no"
40017 fi
40018
40019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40020       conftest$ac_exeext conftest.$ac_ext
40021 fi
40022 ac_res=`eval echo '${'$as_ac_var'}'`
40023                { echo "$as_me:$LINENO: result: $ac_res" >&5
40024 echo "${ECHO_T}$ac_res" >&6; }
40025 if test `eval echo '${'$as_ac_var'}'` = yes; then
40026   cat >>confdefs.h <<_ACEOF
40027 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40028 _ACEOF
40029
40030 fi
40031 done
40032
40033
40034
40035
40036 for ac_func in setenv putenv
40037 do
40038 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40039 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40040 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40041 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40042   echo $ECHO_N "(cached) $ECHO_C" >&6
40043 else
40044   cat >conftest.$ac_ext <<_ACEOF
40045 /* confdefs.h.  */
40046 _ACEOF
40047 cat confdefs.h >>conftest.$ac_ext
40048 cat >>conftest.$ac_ext <<_ACEOF
40049 /* end confdefs.h.  */
40050 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40051    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40052 #define $ac_func innocuous_$ac_func
40053
40054 /* System header to define __stub macros and hopefully few prototypes,
40055     which can conflict with char $ac_func (); below.
40056     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40057     <limits.h> exists even on freestanding compilers.  */
40058
40059 #ifdef __STDC__
40060 # include <limits.h>
40061 #else
40062 # include <assert.h>
40063 #endif
40064
40065 #undef $ac_func
40066
40067 /* Override any GCC internal prototype to avoid an error.
40068    Use char because int might match the return type of a GCC
40069    builtin and then its argument prototype would still apply.  */
40070 #ifdef __cplusplus
40071 extern "C"
40072 #endif
40073 char $ac_func ();
40074 /* The GNU C library defines this for functions which it implements
40075     to always fail with ENOSYS.  Some functions are actually named
40076     something starting with __ and the normal name is an alias.  */
40077 #if defined __stub_$ac_func || defined __stub___$ac_func
40078 choke me
40079 #endif
40080
40081 int
40082 main ()
40083 {
40084 return $ac_func ();
40085   ;
40086   return 0;
40087 }
40088 _ACEOF
40089 rm -f conftest.$ac_objext conftest$ac_exeext
40090 if { (ac_try="$ac_link"
40091 case "(($ac_try" in
40092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40093   *) ac_try_echo=$ac_try;;
40094 esac
40095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40096   (eval "$ac_link") 2>conftest.er1
40097   ac_status=$?
40098   grep -v '^ *+' conftest.er1 >conftest.err
40099   rm -f conftest.er1
40100   cat conftest.err >&5
40101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40102   (exit $ac_status); } && {
40103          test -z "$ac_c_werror_flag" ||
40104          test ! -s conftest.err
40105        } && test -s conftest$ac_exeext &&
40106        $as_test_x conftest$ac_exeext; then
40107   eval "$as_ac_var=yes"
40108 else
40109   echo "$as_me: failed program was:" >&5
40110 sed 's/^/| /' conftest.$ac_ext >&5
40111
40112         eval "$as_ac_var=no"
40113 fi
40114
40115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40116       conftest$ac_exeext conftest.$ac_ext
40117 fi
40118 ac_res=`eval echo '${'$as_ac_var'}'`
40119                { echo "$as_me:$LINENO: result: $ac_res" >&5
40120 echo "${ECHO_T}$ac_res" >&6; }
40121 if test `eval echo '${'$as_ac_var'}'` = yes; then
40122   cat >>confdefs.h <<_ACEOF
40123 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40124 _ACEOF
40125  break
40126 fi
40127 done
40128
40129
40130 HAVE_SOME_SLEEP_FUNC=0
40131 if test "$USE_BEOS" = 1; then
40132             cat >>confdefs.h <<\_ACEOF
40133 #define HAVE_SLEEP 1
40134 _ACEOF
40135
40136     HAVE_SOME_SLEEP_FUNC=1
40137 fi
40138
40139 if test "$USE_DARWIN" = 1; then
40140             cat >>confdefs.h <<\_ACEOF
40141 #define HAVE_USLEEP 1
40142 _ACEOF
40143
40144     HAVE_SOME_SLEEP_FUNC=1
40145 fi
40146
40147 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
40148         POSIX4_LINK=
40149
40150 for ac_func in nanosleep
40151 do
40152 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40153 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40154 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40155 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40156   echo $ECHO_N "(cached) $ECHO_C" >&6
40157 else
40158   cat >conftest.$ac_ext <<_ACEOF
40159 /* confdefs.h.  */
40160 _ACEOF
40161 cat confdefs.h >>conftest.$ac_ext
40162 cat >>conftest.$ac_ext <<_ACEOF
40163 /* end confdefs.h.  */
40164 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40165    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40166 #define $ac_func innocuous_$ac_func
40167
40168 /* System header to define __stub macros and hopefully few prototypes,
40169     which can conflict with char $ac_func (); below.
40170     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40171     <limits.h> exists even on freestanding compilers.  */
40172
40173 #ifdef __STDC__
40174 # include <limits.h>
40175 #else
40176 # include <assert.h>
40177 #endif
40178
40179 #undef $ac_func
40180
40181 /* Override any GCC internal prototype to avoid an error.
40182    Use char because int might match the return type of a GCC
40183    builtin and then its argument prototype would still apply.  */
40184 #ifdef __cplusplus
40185 extern "C"
40186 #endif
40187 char $ac_func ();
40188 /* The GNU C library defines this for functions which it implements
40189     to always fail with ENOSYS.  Some functions are actually named
40190     something starting with __ and the normal name is an alias.  */
40191 #if defined __stub_$ac_func || defined __stub___$ac_func
40192 choke me
40193 #endif
40194
40195 int
40196 main ()
40197 {
40198 return $ac_func ();
40199   ;
40200   return 0;
40201 }
40202 _ACEOF
40203 rm -f conftest.$ac_objext conftest$ac_exeext
40204 if { (ac_try="$ac_link"
40205 case "(($ac_try" in
40206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40207   *) ac_try_echo=$ac_try;;
40208 esac
40209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40210   (eval "$ac_link") 2>conftest.er1
40211   ac_status=$?
40212   grep -v '^ *+' conftest.er1 >conftest.err
40213   rm -f conftest.er1
40214   cat conftest.err >&5
40215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40216   (exit $ac_status); } && {
40217          test -z "$ac_c_werror_flag" ||
40218          test ! -s conftest.err
40219        } && test -s conftest$ac_exeext &&
40220        $as_test_x conftest$ac_exeext; then
40221   eval "$as_ac_var=yes"
40222 else
40223   echo "$as_me: failed program was:" >&5
40224 sed 's/^/| /' conftest.$ac_ext >&5
40225
40226         eval "$as_ac_var=no"
40227 fi
40228
40229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40230       conftest$ac_exeext conftest.$ac_ext
40231 fi
40232 ac_res=`eval echo '${'$as_ac_var'}'`
40233                { echo "$as_me:$LINENO: result: $ac_res" >&5
40234 echo "${ECHO_T}$ac_res" >&6; }
40235 if test `eval echo '${'$as_ac_var'}'` = yes; then
40236   cat >>confdefs.h <<_ACEOF
40237 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40238 _ACEOF
40239  cat >>confdefs.h <<\_ACEOF
40240 #define HAVE_NANOSLEEP 1
40241 _ACEOF
40242
40243 else
40244
40245             { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
40246 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; }
40247 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
40248   echo $ECHO_N "(cached) $ECHO_C" >&6
40249 else
40250   ac_check_lib_save_LIBS=$LIBS
40251 LIBS="-lposix4  $LIBS"
40252 cat >conftest.$ac_ext <<_ACEOF
40253 /* confdefs.h.  */
40254 _ACEOF
40255 cat confdefs.h >>conftest.$ac_ext
40256 cat >>conftest.$ac_ext <<_ACEOF
40257 /* end confdefs.h.  */
40258
40259 /* Override any GCC internal prototype to avoid an error.
40260    Use char because int might match the return type of a GCC
40261    builtin and then its argument prototype would still apply.  */
40262 #ifdef __cplusplus
40263 extern "C"
40264 #endif
40265 char nanosleep ();
40266 int
40267 main ()
40268 {
40269 return nanosleep ();
40270   ;
40271   return 0;
40272 }
40273 _ACEOF
40274 rm -f conftest.$ac_objext conftest$ac_exeext
40275 if { (ac_try="$ac_link"
40276 case "(($ac_try" in
40277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40278   *) ac_try_echo=$ac_try;;
40279 esac
40280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40281   (eval "$ac_link") 2>conftest.er1
40282   ac_status=$?
40283   grep -v '^ *+' conftest.er1 >conftest.err
40284   rm -f conftest.er1
40285   cat conftest.err >&5
40286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40287   (exit $ac_status); } && {
40288          test -z "$ac_c_werror_flag" ||
40289          test ! -s conftest.err
40290        } && test -s conftest$ac_exeext &&
40291        $as_test_x conftest$ac_exeext; then
40292   ac_cv_lib_posix4_nanosleep=yes
40293 else
40294   echo "$as_me: failed program was:" >&5
40295 sed 's/^/| /' conftest.$ac_ext >&5
40296
40297         ac_cv_lib_posix4_nanosleep=no
40298 fi
40299
40300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40301       conftest$ac_exeext conftest.$ac_ext
40302 LIBS=$ac_check_lib_save_LIBS
40303 fi
40304 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
40305 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; }
40306 if test $ac_cv_lib_posix4_nanosleep = yes; then
40307
40308                     cat >>confdefs.h <<\_ACEOF
40309 #define HAVE_NANOSLEEP 1
40310 _ACEOF
40311
40312                     POSIX4_LINK=" -lposix4"
40313
40314 else
40315
40316
40317   for wx_func in usleep
40318   do
40319     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40320 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40321 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40322   echo $ECHO_N "(cached) $ECHO_C" >&6
40323 else
40324
40325         cat >conftest.$ac_ext <<_ACEOF
40326
40327             /* confdefs.h.  */
40328 _ACEOF
40329 cat confdefs.h >>conftest.$ac_ext
40330 cat >>conftest.$ac_ext <<_ACEOF
40331 /* end confdefs.h.  */
40332
40333
40334                 $ac_includes_default
40335
40336 int
40337 main ()
40338 {
40339
40340                 #ifndef $wx_func
40341                   &$wx_func;
40342                 #endif
40343
40344
40345   ;
40346   return 0;
40347 }
40348
40349 _ACEOF
40350 rm -f conftest.$ac_objext conftest$ac_exeext
40351 if { (ac_try="$ac_link"
40352 case "(($ac_try" in
40353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40354   *) ac_try_echo=$ac_try;;
40355 esac
40356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40357   (eval "$ac_link") 2>conftest.er1
40358   ac_status=$?
40359   grep -v '^ *+' conftest.er1 >conftest.err
40360   rm -f conftest.er1
40361   cat conftest.err >&5
40362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40363   (exit $ac_status); } && {
40364          test -z "$ac_c_werror_flag" ||
40365          test ! -s conftest.err
40366        } && test -s conftest$ac_exeext &&
40367        $as_test_x conftest$ac_exeext; then
40368   eval wx_cv_func_$wx_func=yes
40369 else
40370   echo "$as_me: failed program was:" >&5
40371 sed 's/^/| /' conftest.$ac_ext >&5
40372
40373         eval wx_cv_func_$wx_func=no
40374 fi
40375
40376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40377       conftest$ac_exeext conftest.$ac_ext
40378
40379 fi
40380 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40381                { echo "$as_me:$LINENO: result: $ac_res" >&5
40382 echo "${ECHO_T}$ac_res" >&6; }
40383
40384     if eval test \$wx_cv_func_$wx_func = yes
40385     then
40386       cat >>confdefs.h <<_ACEOF
40387 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
40388 _ACEOF
40389
40390
40391     else
40392       :
40393       { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
40394 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
40395
40396     fi
40397   done
40398
40399
40400
40401 fi
40402
40403
40404
40405 fi
40406 done
40407
40408 fi
40409
40410
40411   for wx_func in uname
40412   do
40413     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40414 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40415 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40416   echo $ECHO_N "(cached) $ECHO_C" >&6
40417 else
40418
40419         cat >conftest.$ac_ext <<_ACEOF
40420
40421             /* confdefs.h.  */
40422 _ACEOF
40423 cat confdefs.h >>conftest.$ac_ext
40424 cat >>conftest.$ac_ext <<_ACEOF
40425 /* end confdefs.h.  */
40426
40427                 #include <sys/utsname.h>
40428                 $ac_includes_default
40429
40430 int
40431 main ()
40432 {
40433
40434                 #ifndef $wx_func
40435                   &$wx_func;
40436                 #endif
40437
40438
40439   ;
40440   return 0;
40441 }
40442
40443 _ACEOF
40444 rm -f conftest.$ac_objext conftest$ac_exeext
40445 if { (ac_try="$ac_link"
40446 case "(($ac_try" in
40447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40448   *) ac_try_echo=$ac_try;;
40449 esac
40450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40451   (eval "$ac_link") 2>conftest.er1
40452   ac_status=$?
40453   grep -v '^ *+' conftest.er1 >conftest.err
40454   rm -f conftest.er1
40455   cat conftest.err >&5
40456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40457   (exit $ac_status); } && {
40458          test -z "$ac_c_werror_flag" ||
40459          test ! -s conftest.err
40460        } && test -s conftest$ac_exeext &&
40461        $as_test_x conftest$ac_exeext; then
40462   eval wx_cv_func_$wx_func=yes
40463 else
40464   echo "$as_me: failed program was:" >&5
40465 sed 's/^/| /' conftest.$ac_ext >&5
40466
40467         eval wx_cv_func_$wx_func=no
40468 fi
40469
40470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40471       conftest$ac_exeext conftest.$ac_ext
40472
40473 fi
40474 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40475                { echo "$as_me:$LINENO: result: $ac_res" >&5
40476 echo "${ECHO_T}$ac_res" >&6; }
40477
40478     if eval test \$wx_cv_func_$wx_func = yes
40479     then
40480       cat >>confdefs.h <<_ACEOF
40481 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
40482 _ACEOF
40483
40484
40485     else
40486       :
40487
40488     fi
40489   done
40490
40491 if test "$wx_cv_func_uname" != yes; then
40492
40493   for wx_func in gethostname
40494   do
40495     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40496 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40497 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40498   echo $ECHO_N "(cached) $ECHO_C" >&6
40499 else
40500
40501         cat >conftest.$ac_ext <<_ACEOF
40502
40503             /* confdefs.h.  */
40504 _ACEOF
40505 cat confdefs.h >>conftest.$ac_ext
40506 cat >>conftest.$ac_ext <<_ACEOF
40507 /* end confdefs.h.  */
40508
40509
40510                 $ac_includes_default
40511
40512 int
40513 main ()
40514 {
40515
40516                 #ifndef $wx_func
40517                   &$wx_func;
40518                 #endif
40519
40520
40521   ;
40522   return 0;
40523 }
40524
40525 _ACEOF
40526 rm -f conftest.$ac_objext conftest$ac_exeext
40527 if { (ac_try="$ac_link"
40528 case "(($ac_try" in
40529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40530   *) ac_try_echo=$ac_try;;
40531 esac
40532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40533   (eval "$ac_link") 2>conftest.er1
40534   ac_status=$?
40535   grep -v '^ *+' conftest.er1 >conftest.err
40536   rm -f conftest.er1
40537   cat conftest.err >&5
40538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40539   (exit $ac_status); } && {
40540          test -z "$ac_c_werror_flag" ||
40541          test ! -s conftest.err
40542        } && test -s conftest$ac_exeext &&
40543        $as_test_x conftest$ac_exeext; then
40544   eval wx_cv_func_$wx_func=yes
40545 else
40546   echo "$as_me: failed program was:" >&5
40547 sed 's/^/| /' conftest.$ac_ext >&5
40548
40549         eval wx_cv_func_$wx_func=no
40550 fi
40551
40552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40553       conftest$ac_exeext conftest.$ac_ext
40554
40555 fi
40556 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40557                { echo "$as_me:$LINENO: result: $ac_res" >&5
40558 echo "${ECHO_T}$ac_res" >&6; }
40559
40560     if eval test \$wx_cv_func_$wx_func = yes
40561     then
40562       cat >>confdefs.h <<_ACEOF
40563 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
40564 _ACEOF
40565
40566
40567     else
40568       :
40569
40570     fi
40571   done
40572
40573 fi
40574
40575
40576   for wx_func in strtok_r
40577   do
40578     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40579 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40580 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40581   echo $ECHO_N "(cached) $ECHO_C" >&6
40582 else
40583
40584         cat >conftest.$ac_ext <<_ACEOF
40585
40586             /* confdefs.h.  */
40587 _ACEOF
40588 cat confdefs.h >>conftest.$ac_ext
40589 cat >>conftest.$ac_ext <<_ACEOF
40590 /* end confdefs.h.  */
40591
40592                 #define _REENTRANT
40593                 $ac_includes_default
40594
40595 int
40596 main ()
40597 {
40598
40599                 #ifndef $wx_func
40600                   &$wx_func;
40601                 #endif
40602
40603
40604   ;
40605   return 0;
40606 }
40607
40608 _ACEOF
40609 rm -f conftest.$ac_objext conftest$ac_exeext
40610 if { (ac_try="$ac_link"
40611 case "(($ac_try" in
40612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40613   *) ac_try_echo=$ac_try;;
40614 esac
40615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40616   (eval "$ac_link") 2>conftest.er1
40617   ac_status=$?
40618   grep -v '^ *+' conftest.er1 >conftest.err
40619   rm -f conftest.er1
40620   cat conftest.err >&5
40621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40622   (exit $ac_status); } && {
40623          test -z "$ac_c_werror_flag" ||
40624          test ! -s conftest.err
40625        } && test -s conftest$ac_exeext &&
40626        $as_test_x conftest$ac_exeext; then
40627   eval wx_cv_func_$wx_func=yes
40628 else
40629   echo "$as_me: failed program was:" >&5
40630 sed 's/^/| /' conftest.$ac_ext >&5
40631
40632         eval wx_cv_func_$wx_func=no
40633 fi
40634
40635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40636       conftest$ac_exeext conftest.$ac_ext
40637
40638 fi
40639 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40640                { echo "$as_me:$LINENO: result: $ac_res" >&5
40641 echo "${ECHO_T}$ac_res" >&6; }
40642
40643     if eval test \$wx_cv_func_$wx_func = yes
40644     then
40645       cat >>confdefs.h <<_ACEOF
40646 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
40647 _ACEOF
40648
40649
40650     else
40651       :
40652
40653     fi
40654   done
40655
40656
40657 INET_LINK=
40658
40659 for ac_func in inet_addr
40660 do
40661 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40662 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40663 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40664 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40665   echo $ECHO_N "(cached) $ECHO_C" >&6
40666 else
40667   cat >conftest.$ac_ext <<_ACEOF
40668 /* confdefs.h.  */
40669 _ACEOF
40670 cat confdefs.h >>conftest.$ac_ext
40671 cat >>conftest.$ac_ext <<_ACEOF
40672 /* end confdefs.h.  */
40673 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40674    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40675 #define $ac_func innocuous_$ac_func
40676
40677 /* System header to define __stub macros and hopefully few prototypes,
40678     which can conflict with char $ac_func (); below.
40679     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40680     <limits.h> exists even on freestanding compilers.  */
40681
40682 #ifdef __STDC__
40683 # include <limits.h>
40684 #else
40685 # include <assert.h>
40686 #endif
40687
40688 #undef $ac_func
40689
40690 /* Override any GCC internal prototype to avoid an error.
40691    Use char because int might match the return type of a GCC
40692    builtin and then its argument prototype would still apply.  */
40693 #ifdef __cplusplus
40694 extern "C"
40695 #endif
40696 char $ac_func ();
40697 /* The GNU C library defines this for functions which it implements
40698     to always fail with ENOSYS.  Some functions are actually named
40699     something starting with __ and the normal name is an alias.  */
40700 #if defined __stub_$ac_func || defined __stub___$ac_func
40701 choke me
40702 #endif
40703
40704 int
40705 main ()
40706 {
40707 return $ac_func ();
40708   ;
40709   return 0;
40710 }
40711 _ACEOF
40712 rm -f conftest.$ac_objext conftest$ac_exeext
40713 if { (ac_try="$ac_link"
40714 case "(($ac_try" in
40715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40716   *) ac_try_echo=$ac_try;;
40717 esac
40718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40719   (eval "$ac_link") 2>conftest.er1
40720   ac_status=$?
40721   grep -v '^ *+' conftest.er1 >conftest.err
40722   rm -f conftest.er1
40723   cat conftest.err >&5
40724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40725   (exit $ac_status); } && {
40726          test -z "$ac_c_werror_flag" ||
40727          test ! -s conftest.err
40728        } && test -s conftest$ac_exeext &&
40729        $as_test_x conftest$ac_exeext; then
40730   eval "$as_ac_var=yes"
40731 else
40732   echo "$as_me: failed program was:" >&5
40733 sed 's/^/| /' conftest.$ac_ext >&5
40734
40735         eval "$as_ac_var=no"
40736 fi
40737
40738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40739       conftest$ac_exeext conftest.$ac_ext
40740 fi
40741 ac_res=`eval echo '${'$as_ac_var'}'`
40742                { echo "$as_me:$LINENO: result: $ac_res" >&5
40743 echo "${ECHO_T}$ac_res" >&6; }
40744 if test `eval echo '${'$as_ac_var'}'` = yes; then
40745   cat >>confdefs.h <<_ACEOF
40746 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40747 _ACEOF
40748  cat >>confdefs.h <<\_ACEOF
40749 #define HAVE_INET_ADDR 1
40750 _ACEOF
40751
40752 else
40753
40754         { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
40755 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
40756 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
40757   echo $ECHO_N "(cached) $ECHO_C" >&6
40758 else
40759   ac_check_lib_save_LIBS=$LIBS
40760 LIBS="-lnsl  $LIBS"
40761 cat >conftest.$ac_ext <<_ACEOF
40762 /* confdefs.h.  */
40763 _ACEOF
40764 cat confdefs.h >>conftest.$ac_ext
40765 cat >>conftest.$ac_ext <<_ACEOF
40766 /* end confdefs.h.  */
40767
40768 /* Override any GCC internal prototype to avoid an error.
40769    Use char because int might match the return type of a GCC
40770    builtin and then its argument prototype would still apply.  */
40771 #ifdef __cplusplus
40772 extern "C"
40773 #endif
40774 char inet_addr ();
40775 int
40776 main ()
40777 {
40778 return inet_addr ();
40779   ;
40780   return 0;
40781 }
40782 _ACEOF
40783 rm -f conftest.$ac_objext conftest$ac_exeext
40784 if { (ac_try="$ac_link"
40785 case "(($ac_try" in
40786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40787   *) ac_try_echo=$ac_try;;
40788 esac
40789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40790   (eval "$ac_link") 2>conftest.er1
40791   ac_status=$?
40792   grep -v '^ *+' conftest.er1 >conftest.err
40793   rm -f conftest.er1
40794   cat conftest.err >&5
40795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40796   (exit $ac_status); } && {
40797          test -z "$ac_c_werror_flag" ||
40798          test ! -s conftest.err
40799        } && test -s conftest$ac_exeext &&
40800        $as_test_x conftest$ac_exeext; then
40801   ac_cv_lib_nsl_inet_addr=yes
40802 else
40803   echo "$as_me: failed program was:" >&5
40804 sed 's/^/| /' conftest.$ac_ext >&5
40805
40806         ac_cv_lib_nsl_inet_addr=no
40807 fi
40808
40809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40810       conftest$ac_exeext conftest.$ac_ext
40811 LIBS=$ac_check_lib_save_LIBS
40812 fi
40813 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
40814 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
40815 if test $ac_cv_lib_nsl_inet_addr = yes; then
40816   INET_LINK="nsl"
40817 else
40818
40819                 { echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
40820 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6; }
40821 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
40822   echo $ECHO_N "(cached) $ECHO_C" >&6
40823 else
40824   ac_check_lib_save_LIBS=$LIBS
40825 LIBS="-lresolv  $LIBS"
40826 cat >conftest.$ac_ext <<_ACEOF
40827 /* confdefs.h.  */
40828 _ACEOF
40829 cat confdefs.h >>conftest.$ac_ext
40830 cat >>conftest.$ac_ext <<_ACEOF
40831 /* end confdefs.h.  */
40832
40833 /* Override any GCC internal prototype to avoid an error.
40834    Use char because int might match the return type of a GCC
40835    builtin and then its argument prototype would still apply.  */
40836 #ifdef __cplusplus
40837 extern "C"
40838 #endif
40839 char inet_addr ();
40840 int
40841 main ()
40842 {
40843 return inet_addr ();
40844   ;
40845   return 0;
40846 }
40847 _ACEOF
40848 rm -f conftest.$ac_objext conftest$ac_exeext
40849 if { (ac_try="$ac_link"
40850 case "(($ac_try" in
40851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40852   *) ac_try_echo=$ac_try;;
40853 esac
40854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40855   (eval "$ac_link") 2>conftest.er1
40856   ac_status=$?
40857   grep -v '^ *+' conftest.er1 >conftest.err
40858   rm -f conftest.er1
40859   cat conftest.err >&5
40860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40861   (exit $ac_status); } && {
40862          test -z "$ac_c_werror_flag" ||
40863          test ! -s conftest.err
40864        } && test -s conftest$ac_exeext &&
40865        $as_test_x conftest$ac_exeext; then
40866   ac_cv_lib_resolv_inet_addr=yes
40867 else
40868   echo "$as_me: failed program was:" >&5
40869 sed 's/^/| /' conftest.$ac_ext >&5
40870
40871         ac_cv_lib_resolv_inet_addr=no
40872 fi
40873
40874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40875       conftest$ac_exeext conftest.$ac_ext
40876 LIBS=$ac_check_lib_save_LIBS
40877 fi
40878 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
40879 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6; }
40880 if test $ac_cv_lib_resolv_inet_addr = yes; then
40881   INET_LINK="resolv"
40882 else
40883
40884                         { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
40885 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
40886 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
40887   echo $ECHO_N "(cached) $ECHO_C" >&6
40888 else
40889   ac_check_lib_save_LIBS=$LIBS
40890 LIBS="-lsocket  $LIBS"
40891 cat >conftest.$ac_ext <<_ACEOF
40892 /* confdefs.h.  */
40893 _ACEOF
40894 cat confdefs.h >>conftest.$ac_ext
40895 cat >>conftest.$ac_ext <<_ACEOF
40896 /* end confdefs.h.  */
40897
40898 /* Override any GCC internal prototype to avoid an error.
40899    Use char because int might match the return type of a GCC
40900    builtin and then its argument prototype would still apply.  */
40901 #ifdef __cplusplus
40902 extern "C"
40903 #endif
40904 char inet_addr ();
40905 int
40906 main ()
40907 {
40908 return inet_addr ();
40909   ;
40910   return 0;
40911 }
40912 _ACEOF
40913 rm -f conftest.$ac_objext conftest$ac_exeext
40914 if { (ac_try="$ac_link"
40915 case "(($ac_try" in
40916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40917   *) ac_try_echo=$ac_try;;
40918 esac
40919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40920   (eval "$ac_link") 2>conftest.er1
40921   ac_status=$?
40922   grep -v '^ *+' conftest.er1 >conftest.err
40923   rm -f conftest.er1
40924   cat conftest.err >&5
40925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40926   (exit $ac_status); } && {
40927          test -z "$ac_c_werror_flag" ||
40928          test ! -s conftest.err
40929        } && test -s conftest$ac_exeext &&
40930        $as_test_x conftest$ac_exeext; then
40931   ac_cv_lib_socket_inet_addr=yes
40932 else
40933   echo "$as_me: failed program was:" >&5
40934 sed 's/^/| /' conftest.$ac_ext >&5
40935
40936         ac_cv_lib_socket_inet_addr=no
40937 fi
40938
40939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40940       conftest$ac_exeext conftest.$ac_ext
40941 LIBS=$ac_check_lib_save_LIBS
40942 fi
40943 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
40944 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6; }
40945 if test $ac_cv_lib_socket_inet_addr = yes; then
40946   INET_LINK="socket"
40947
40948 fi
40949
40950
40951
40952 fi
40953
40954
40955
40956 fi
40957
40958
40959
40960 fi
40961 done
40962
40963
40964
40965 for ac_func in inet_aton
40966 do
40967 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40968 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40969 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40970 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40971   echo $ECHO_N "(cached) $ECHO_C" >&6
40972 else
40973   cat >conftest.$ac_ext <<_ACEOF
40974 /* confdefs.h.  */
40975 _ACEOF
40976 cat confdefs.h >>conftest.$ac_ext
40977 cat >>conftest.$ac_ext <<_ACEOF
40978 /* end confdefs.h.  */
40979 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40980    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40981 #define $ac_func innocuous_$ac_func
40982
40983 /* System header to define __stub macros and hopefully few prototypes,
40984     which can conflict with char $ac_func (); below.
40985     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40986     <limits.h> exists even on freestanding compilers.  */
40987
40988 #ifdef __STDC__
40989 # include <limits.h>
40990 #else
40991 # include <assert.h>
40992 #endif
40993
40994 #undef $ac_func
40995
40996 /* Override any GCC internal prototype to avoid an error.
40997    Use char because int might match the return type of a GCC
40998    builtin and then its argument prototype would still apply.  */
40999 #ifdef __cplusplus
41000 extern "C"
41001 #endif
41002 char $ac_func ();
41003 /* The GNU C library defines this for functions which it implements
41004     to always fail with ENOSYS.  Some functions are actually named
41005     something starting with __ and the normal name is an alias.  */
41006 #if defined __stub_$ac_func || defined __stub___$ac_func
41007 choke me
41008 #endif
41009
41010 int
41011 main ()
41012 {
41013 return $ac_func ();
41014   ;
41015   return 0;
41016 }
41017 _ACEOF
41018 rm -f conftest.$ac_objext conftest$ac_exeext
41019 if { (ac_try="$ac_link"
41020 case "(($ac_try" in
41021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41022   *) ac_try_echo=$ac_try;;
41023 esac
41024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41025   (eval "$ac_link") 2>conftest.er1
41026   ac_status=$?
41027   grep -v '^ *+' conftest.er1 >conftest.err
41028   rm -f conftest.er1
41029   cat conftest.err >&5
41030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41031   (exit $ac_status); } && {
41032          test -z "$ac_c_werror_flag" ||
41033          test ! -s conftest.err
41034        } && test -s conftest$ac_exeext &&
41035        $as_test_x conftest$ac_exeext; then
41036   eval "$as_ac_var=yes"
41037 else
41038   echo "$as_me: failed program was:" >&5
41039 sed 's/^/| /' conftest.$ac_ext >&5
41040
41041         eval "$as_ac_var=no"
41042 fi
41043
41044 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41045       conftest$ac_exeext conftest.$ac_ext
41046 fi
41047 ac_res=`eval echo '${'$as_ac_var'}'`
41048                { echo "$as_me:$LINENO: result: $ac_res" >&5
41049 echo "${ECHO_T}$ac_res" >&6; }
41050 if test `eval echo '${'$as_ac_var'}'` = yes; then
41051   cat >>confdefs.h <<_ACEOF
41052 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41053 _ACEOF
41054  cat >>confdefs.h <<\_ACEOF
41055 #define HAVE_INET_ATON 1
41056 _ACEOF
41057
41058 else
41059
41060                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
41061 { echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
41062 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6; }
41063 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
41064   echo $ECHO_N "(cached) $ECHO_C" >&6
41065 else
41066   ac_check_lib_save_LIBS=$LIBS
41067 LIBS="-l$INET_LINK  $LIBS"
41068 cat >conftest.$ac_ext <<_ACEOF
41069 /* confdefs.h.  */
41070 _ACEOF
41071 cat confdefs.h >>conftest.$ac_ext
41072 cat >>conftest.$ac_ext <<_ACEOF
41073 /* end confdefs.h.  */
41074
41075 /* Override any GCC internal prototype to avoid an error.
41076    Use char because int might match the return type of a GCC
41077    builtin and then its argument prototype would still apply.  */
41078 #ifdef __cplusplus
41079 extern "C"
41080 #endif
41081 char inet_aton ();
41082 int
41083 main ()
41084 {
41085 return inet_aton ();
41086   ;
41087   return 0;
41088 }
41089 _ACEOF
41090 rm -f conftest.$ac_objext conftest$ac_exeext
41091 if { (ac_try="$ac_link"
41092 case "(($ac_try" in
41093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41094   *) ac_try_echo=$ac_try;;
41095 esac
41096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41097   (eval "$ac_link") 2>conftest.er1
41098   ac_status=$?
41099   grep -v '^ *+' conftest.er1 >conftest.err
41100   rm -f conftest.er1
41101   cat conftest.err >&5
41102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41103   (exit $ac_status); } && {
41104          test -z "$ac_c_werror_flag" ||
41105          test ! -s conftest.err
41106        } && test -s conftest$ac_exeext &&
41107        $as_test_x conftest$ac_exeext; then
41108   eval "$as_ac_Lib=yes"
41109 else
41110   echo "$as_me: failed program was:" >&5
41111 sed 's/^/| /' conftest.$ac_ext >&5
41112
41113         eval "$as_ac_Lib=no"
41114 fi
41115
41116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41117       conftest$ac_exeext conftest.$ac_ext
41118 LIBS=$ac_check_lib_save_LIBS
41119 fi
41120 ac_res=`eval echo '${'$as_ac_Lib'}'`
41121                { echo "$as_me:$LINENO: result: $ac_res" >&5
41122 echo "${ECHO_T}$ac_res" >&6; }
41123 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
41124   cat >>confdefs.h <<\_ACEOF
41125 #define HAVE_INET_ATON 1
41126 _ACEOF
41127
41128 fi
41129
41130
41131 fi
41132 done
41133
41134
41135 if test "x$INET_LINK" != "x"; then
41136     cat >>confdefs.h <<\_ACEOF
41137 #define HAVE_INET_ADDR 1
41138 _ACEOF
41139
41140     INET_LINK=" -l$INET_LINK"
41141 fi
41142
41143
41144   for wx_func in fdopen
41145   do
41146     { echo "$as_me:$LINENO: checking for $wx_func" >&5
41147 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
41148 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
41149   echo $ECHO_N "(cached) $ECHO_C" >&6
41150 else
41151
41152         cat >conftest.$ac_ext <<_ACEOF
41153
41154             /* confdefs.h.  */
41155 _ACEOF
41156 cat confdefs.h >>conftest.$ac_ext
41157 cat >>conftest.$ac_ext <<_ACEOF
41158 /* end confdefs.h.  */
41159
41160
41161                 $ac_includes_default
41162
41163 int
41164 main ()
41165 {
41166
41167                 #ifndef $wx_func
41168                   &$wx_func;
41169                 #endif
41170
41171
41172   ;
41173   return 0;
41174 }
41175
41176 _ACEOF
41177 rm -f conftest.$ac_objext conftest$ac_exeext
41178 if { (ac_try="$ac_link"
41179 case "(($ac_try" in
41180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41181   *) ac_try_echo=$ac_try;;
41182 esac
41183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41184   (eval "$ac_link") 2>conftest.er1
41185   ac_status=$?
41186   grep -v '^ *+' conftest.er1 >conftest.err
41187   rm -f conftest.er1
41188   cat conftest.err >&5
41189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41190   (exit $ac_status); } && {
41191          test -z "$ac_c_werror_flag" ||
41192          test ! -s conftest.err
41193        } && test -s conftest$ac_exeext &&
41194        $as_test_x conftest$ac_exeext; then
41195   eval wx_cv_func_$wx_func=yes
41196 else
41197   echo "$as_me: failed program was:" >&5
41198 sed 's/^/| /' conftest.$ac_ext >&5
41199
41200         eval wx_cv_func_$wx_func=no
41201 fi
41202
41203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41204       conftest$ac_exeext conftest.$ac_ext
41205
41206 fi
41207 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
41208                { echo "$as_me:$LINENO: result: $ac_res" >&5
41209 echo "${ECHO_T}$ac_res" >&6; }
41210
41211     if eval test \$wx_cv_func_$wx_func = yes
41212     then
41213       cat >>confdefs.h <<_ACEOF
41214 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
41215 _ACEOF
41216
41217
41218     else
41219       :
41220
41221     fi
41222   done
41223
41224
41225 fi
41226
41227
41228
41229 cat >confcache <<\_ACEOF
41230 # This file is a shell script that caches the results of configure
41231 # tests run on this system so they can be shared between configure
41232 # scripts and configure runs, see configure's option --config-cache.
41233 # It is not useful on other systems.  If it contains results you don't
41234 # want to keep, you may remove or edit it.
41235 #
41236 # config.status only pays attention to the cache file if you give it
41237 # the --recheck option to rerun configure.
41238 #
41239 # `ac_cv_env_foo' variables (set or unset) will be overridden when
41240 # loading this file, other *unset* `ac_cv_foo' will be assigned the
41241 # following values.
41242
41243 _ACEOF
41244
41245 # The following way of writing the cache mishandles newlines in values,
41246 # but we know of no workaround that is simple, portable, and efficient.
41247 # So, we kill variables containing newlines.
41248 # Ultrix sh set writes to stderr and can't be redirected directly,
41249 # and sets the high bit in the cache file unless we assign to the vars.
41250 (
41251   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
41252     eval ac_val=\$$ac_var
41253     case $ac_val in #(
41254     *${as_nl}*)
41255       case $ac_var in #(
41256       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
41257 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
41258       esac
41259       case $ac_var in #(
41260       _ | IFS | as_nl) ;; #(
41261       *) $as_unset $ac_var ;;
41262       esac ;;
41263     esac
41264   done
41265
41266   (set) 2>&1 |
41267     case $as_nl`(ac_space=' '; set) 2>&1` in #(
41268     *${as_nl}ac_space=\ *)
41269       # `set' does not quote correctly, so add quotes (double-quote
41270       # substitution turns \\\\ into \\, and sed turns \\ into \).
41271       sed -n \
41272         "s/'/'\\\\''/g;
41273           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41274       ;; #(
41275     *)
41276       # `set' quotes correctly as required by POSIX, so do not add quotes.
41277       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
41278       ;;
41279     esac |
41280     sort
41281 ) |
41282   sed '
41283      /^ac_cv_env_/b end
41284      t clear
41285      :clear
41286      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41287      t end
41288      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41289      :end' >>confcache
41290 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
41291   if test -w "$cache_file"; then
41292     test "x$cache_file" != "x/dev/null" &&
41293       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
41294 echo "$as_me: updating cache $cache_file" >&6;}
41295     cat confcache >$cache_file
41296   else
41297     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
41298 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
41299   fi
41300 fi
41301 rm -f confcache
41302
41303
41304 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
41305
41306
41307     THREADS_LINK=
41308     THREADS_CFLAGS=
41309
41310     if test "$wxUSE_THREADS" = "yes" ; then
41311         if test "$USE_BEOS" = 1; then
41312             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
41313 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
41314             wxUSE_THREADS="no"
41315         fi
41316     fi
41317
41318     if test "$wxUSE_THREADS" = "yes" ; then
41319
41320
41321                                 THREAD_OPTS="-pthread"
41322         if test "x$SUNCXX" = xyes; then
41323             THREAD_OPTS="-mt lthread $THREAD_OPTS"
41324         fi
41325
41326         case "${host}" in
41327           *-*-solaris2* | *-*-sunos4* )
41328                 if test "x$GCC" = "xyes"; then
41329                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
41330                 fi
41331                 ;;
41332           *-*-freebsd*)
41333                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
41334                 ;;
41335           *-*-darwin* | *-*-cygwin* )
41336                                                 THREAD_OPTS=""
41337                 ;;
41338           *-*-aix*)
41339                                 THREAD_OPTS="pthreads"
41340                 ;;
41341           *-hp-hpux* )
41342                 if test "x$GCC" = "xyes"; then
41343                                         $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
41344                         THREAD_OPTS=""
41345                 else
41346                                                             THREAD_OPTS="-mt"
41347                 fi
41348                 ;;
41349
41350           *-*-irix* )
41351                                                                 if test "x$GCC" = "xyes"; then
41352                     THREAD_OPTS=""
41353                 fi
41354                 ;;
41355
41356           *-*-*UnixWare*)
41357                                 if test "x$GCC" != "xyes"; then
41358                     THREAD_OPTS="-Ethread"
41359                 fi
41360                 ;;
41361         esac
41362
41363                                 THREAD_OPTS="$THREAD_OPTS pthread none"
41364
41365                 THREADS_OK=no
41366         for flag in $THREAD_OPTS; do
41367             case $flag in
41368                 none)
41369                     { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
41370 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
41371                     ;;
41372
41373                 -*)
41374                     { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
41375 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
41376                     THREADS_CFLAGS="$flag"
41377                     ;;
41378
41379                 *)
41380                     { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
41381 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
41382                     THREADS_LINK="-l$flag"
41383                     ;;
41384               esac
41385
41386               save_LIBS="$LIBS"
41387               save_CFLAGS="$CFLAGS"
41388               LIBS="$THREADS_LINK $LIBS"
41389               CFLAGS="$THREADS_CFLAGS $CFLAGS"
41390
41391               cat >conftest.$ac_ext <<_ACEOF
41392 /* confdefs.h.  */
41393 _ACEOF
41394 cat confdefs.h >>conftest.$ac_ext
41395 cat >>conftest.$ac_ext <<_ACEOF
41396 /* end confdefs.h.  */
41397 #include <pthread.h>
41398 int
41399 main ()
41400 {
41401 pthread_create(0,0,0,0);
41402   ;
41403   return 0;
41404 }
41405 _ACEOF
41406 rm -f conftest.$ac_objext conftest$ac_exeext
41407 if { (ac_try="$ac_link"
41408 case "(($ac_try" in
41409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41410   *) ac_try_echo=$ac_try;;
41411 esac
41412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41413   (eval "$ac_link") 2>conftest.er1
41414   ac_status=$?
41415   grep -v '^ *+' conftest.er1 >conftest.err
41416   rm -f conftest.er1
41417   cat conftest.err >&5
41418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41419   (exit $ac_status); } && {
41420          test -z "$ac_c_werror_flag" ||
41421          test ! -s conftest.err
41422        } && test -s conftest$ac_exeext &&
41423        $as_test_x conftest$ac_exeext; then
41424   THREADS_OK=yes
41425 else
41426   echo "$as_me: failed program was:" >&5
41427 sed 's/^/| /' conftest.$ac_ext >&5
41428
41429
41430 fi
41431
41432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41433       conftest$ac_exeext conftest.$ac_ext
41434
41435               LIBS="$save_LIBS"
41436               CFLAGS="$save_CFLAGS"
41437
41438               { echo "$as_me:$LINENO: result: $THREADS_OK" >&5
41439 echo "${ECHO_T}$THREADS_OK" >&6; }
41440               if test "x$THREADS_OK" = "xyes"; then
41441                       break;
41442               fi
41443
41444               THREADS_LINK=""
41445               THREADS_CFLAGS=""
41446       done
41447
41448       if test "x$THREADS_OK" != "xyes"; then
41449           wxUSE_THREADS=no
41450           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
41451 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
41452       else
41453                               LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
41454           LIBS="$THREADS_LINK $LIBS"
41455
41456           { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
41457 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
41458           flag=no
41459           case "${host}" in
41460             *-aix*)
41461                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
41462                 flag="-D_THREAD_SAFE"
41463                 ;;
41464             *-freebsd*)
41465                 flag="-D_THREAD_SAFE"
41466                 ;;
41467             *-hp-hpux* )
41468                 flag="-D_REENTRANT"
41469                 if test "x$GCC" != "xyes"; then
41470                                         flag="$flag -D_RWSTD_MULTI_THREAD"
41471                 fi
41472                 ;;
41473             *solaris* | alpha*-osf*)
41474                 flag="-D_REENTRANT"
41475                 ;;
41476           esac
41477           { echo "$as_me:$LINENO: result: ${flag}" >&5
41478 echo "${ECHO_T}${flag}" >&6; }
41479           if test "x$flag" != xno; then
41480               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
41481           fi
41482
41483                     WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS"
41484       fi
41485     fi
41486
41487         if test "$wxUSE_THREADS" = "yes" ; then
41488
41489 for ac_func in thr_setconcurrency
41490 do
41491 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41492 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41493 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41494 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41495   echo $ECHO_N "(cached) $ECHO_C" >&6
41496 else
41497   cat >conftest.$ac_ext <<_ACEOF
41498 /* confdefs.h.  */
41499 _ACEOF
41500 cat confdefs.h >>conftest.$ac_ext
41501 cat >>conftest.$ac_ext <<_ACEOF
41502 /* end confdefs.h.  */
41503 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41504    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41505 #define $ac_func innocuous_$ac_func
41506
41507 /* System header to define __stub macros and hopefully few prototypes,
41508     which can conflict with char $ac_func (); below.
41509     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41510     <limits.h> exists even on freestanding compilers.  */
41511
41512 #ifdef __STDC__
41513 # include <limits.h>
41514 #else
41515 # include <assert.h>
41516 #endif
41517
41518 #undef $ac_func
41519
41520 /* Override any GCC internal prototype to avoid an error.
41521    Use char because int might match the return type of a GCC
41522    builtin and then its argument prototype would still apply.  */
41523 #ifdef __cplusplus
41524 extern "C"
41525 #endif
41526 char $ac_func ();
41527 /* The GNU C library defines this for functions which it implements
41528     to always fail with ENOSYS.  Some functions are actually named
41529     something starting with __ and the normal name is an alias.  */
41530 #if defined __stub_$ac_func || defined __stub___$ac_func
41531 choke me
41532 #endif
41533
41534 int
41535 main ()
41536 {
41537 return $ac_func ();
41538   ;
41539   return 0;
41540 }
41541 _ACEOF
41542 rm -f conftest.$ac_objext conftest$ac_exeext
41543 if { (ac_try="$ac_link"
41544 case "(($ac_try" in
41545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41546   *) ac_try_echo=$ac_try;;
41547 esac
41548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41549   (eval "$ac_link") 2>conftest.er1
41550   ac_status=$?
41551   grep -v '^ *+' conftest.er1 >conftest.err
41552   rm -f conftest.er1
41553   cat conftest.err >&5
41554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41555   (exit $ac_status); } && {
41556          test -z "$ac_c_werror_flag" ||
41557          test ! -s conftest.err
41558        } && test -s conftest$ac_exeext &&
41559        $as_test_x conftest$ac_exeext; then
41560   eval "$as_ac_var=yes"
41561 else
41562   echo "$as_me: failed program was:" >&5
41563 sed 's/^/| /' conftest.$ac_ext >&5
41564
41565         eval "$as_ac_var=no"
41566 fi
41567
41568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41569       conftest$ac_exeext conftest.$ac_ext
41570 fi
41571 ac_res=`eval echo '${'$as_ac_var'}'`
41572                { echo "$as_me:$LINENO: result: $ac_res" >&5
41573 echo "${ECHO_T}$ac_res" >&6; }
41574 if test `eval echo '${'$as_ac_var'}'` = yes; then
41575   cat >>confdefs.h <<_ACEOF
41576 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41577 _ACEOF
41578
41579 fi
41580 done
41581
41582
41583                   { echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
41584 echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6; }
41585 if test "${wx_cv_func_pthread_cleanup+set}" = set; then
41586   echo $ECHO_N "(cached) $ECHO_C" >&6
41587 else
41588
41589                                 ac_ext=cpp
41590 ac_cpp='$CXXCPP $CPPFLAGS'
41591 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41592 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41593 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41594
41595         cat >conftest.$ac_ext <<_ACEOF
41596 /* confdefs.h.  */
41597 _ACEOF
41598 cat confdefs.h >>conftest.$ac_ext
41599 cat >>conftest.$ac_ext <<_ACEOF
41600 /* end confdefs.h.  */
41601 #include <pthread.h>
41602                void ThreadCleanupFunc(void *p);
41603
41604 int
41605 main ()
41606 {
41607
41608                 void *p;
41609                 pthread_cleanup_push(ThreadCleanupFunc, p);
41610                 pthread_cleanup_pop(0);
41611
41612   ;
41613   return 0;
41614 }
41615 _ACEOF
41616 rm -f conftest.$ac_objext
41617 if { (ac_try="$ac_compile"
41618 case "(($ac_try" in
41619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41620   *) ac_try_echo=$ac_try;;
41621 esac
41622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41623   (eval "$ac_compile") 2>conftest.er1
41624   ac_status=$?
41625   grep -v '^ *+' conftest.er1 >conftest.err
41626   rm -f conftest.er1
41627   cat conftest.err >&5
41628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41629   (exit $ac_status); } && {
41630          test -z "$ac_cxx_werror_flag" ||
41631          test ! -s conftest.err
41632        } && test -s conftest.$ac_objext; then
41633
41634                wx_cv_func_pthread_cleanup=yes
41635
41636 else
41637   echo "$as_me: failed program was:" >&5
41638 sed 's/^/| /' conftest.$ac_ext >&5
41639
41640
41641                wx_cv_func_pthread_cleanup=no
41642
41643
41644 fi
41645
41646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41647         ac_ext=c
41648 ac_cpp='$CPP $CPPFLAGS'
41649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41652
41653
41654 fi
41655 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
41656 echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6; }
41657       if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
41658         cat >>confdefs.h <<\_ACEOF
41659 #define wxHAVE_PTHREAD_CLEANUP 1
41660 _ACEOF
41661
41662       fi
41663
41664
41665 for ac_header in sched.h
41666 do
41667 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41668 { echo "$as_me:$LINENO: checking for $ac_header" >&5
41669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
41670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41671   echo $ECHO_N "(cached) $ECHO_C" >&6
41672 else
41673   cat >conftest.$ac_ext <<_ACEOF
41674 /* confdefs.h.  */
41675 _ACEOF
41676 cat confdefs.h >>conftest.$ac_ext
41677 cat >>conftest.$ac_ext <<_ACEOF
41678 /* end confdefs.h.  */
41679 $ac_includes_default
41680
41681 #include <$ac_header>
41682 _ACEOF
41683 rm -f conftest.$ac_objext
41684 if { (ac_try="$ac_compile"
41685 case "(($ac_try" in
41686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41687   *) ac_try_echo=$ac_try;;
41688 esac
41689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41690   (eval "$ac_compile") 2>conftest.er1
41691   ac_status=$?
41692   grep -v '^ *+' conftest.er1 >conftest.err
41693   rm -f conftest.er1
41694   cat conftest.err >&5
41695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41696   (exit $ac_status); } && {
41697          test -z "$ac_c_werror_flag" ||
41698          test ! -s conftest.err
41699        } && test -s conftest.$ac_objext; then
41700   eval "$as_ac_Header=yes"
41701 else
41702   echo "$as_me: failed program was:" >&5
41703 sed 's/^/| /' conftest.$ac_ext >&5
41704
41705         eval "$as_ac_Header=no"
41706 fi
41707
41708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41709 fi
41710 ac_res=`eval echo '${'$as_ac_Header'}'`
41711                { echo "$as_me:$LINENO: result: $ac_res" >&5
41712 echo "${ECHO_T}$ac_res" >&6; }
41713 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41714   cat >>confdefs.h <<_ACEOF
41715 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41716 _ACEOF
41717
41718 fi
41719
41720 done
41721
41722       if test "$ac_cv_header_sched_h" = "yes"; then
41723           { echo "$as_me:$LINENO: checking for sched_yield" >&5
41724 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6; }
41725 if test "${ac_cv_func_sched_yield+set}" = set; then
41726   echo $ECHO_N "(cached) $ECHO_C" >&6
41727 else
41728   cat >conftest.$ac_ext <<_ACEOF
41729 /* confdefs.h.  */
41730 _ACEOF
41731 cat confdefs.h >>conftest.$ac_ext
41732 cat >>conftest.$ac_ext <<_ACEOF
41733 /* end confdefs.h.  */
41734 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
41735    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41736 #define sched_yield innocuous_sched_yield
41737
41738 /* System header to define __stub macros and hopefully few prototypes,
41739     which can conflict with char sched_yield (); below.
41740     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41741     <limits.h> exists even on freestanding compilers.  */
41742
41743 #ifdef __STDC__
41744 # include <limits.h>
41745 #else
41746 # include <assert.h>
41747 #endif
41748
41749 #undef sched_yield
41750
41751 /* Override any GCC internal prototype to avoid an error.
41752    Use char because int might match the return type of a GCC
41753    builtin and then its argument prototype would still apply.  */
41754 #ifdef __cplusplus
41755 extern "C"
41756 #endif
41757 char sched_yield ();
41758 /* The GNU C library defines this for functions which it implements
41759     to always fail with ENOSYS.  Some functions are actually named
41760     something starting with __ and the normal name is an alias.  */
41761 #if defined __stub_sched_yield || defined __stub___sched_yield
41762 choke me
41763 #endif
41764
41765 int
41766 main ()
41767 {
41768 return sched_yield ();
41769   ;
41770   return 0;
41771 }
41772 _ACEOF
41773 rm -f conftest.$ac_objext conftest$ac_exeext
41774 if { (ac_try="$ac_link"
41775 case "(($ac_try" in
41776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41777   *) ac_try_echo=$ac_try;;
41778 esac
41779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41780   (eval "$ac_link") 2>conftest.er1
41781   ac_status=$?
41782   grep -v '^ *+' conftest.er1 >conftest.err
41783   rm -f conftest.er1
41784   cat conftest.err >&5
41785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41786   (exit $ac_status); } && {
41787          test -z "$ac_c_werror_flag" ||
41788          test ! -s conftest.err
41789        } && test -s conftest$ac_exeext &&
41790        $as_test_x conftest$ac_exeext; then
41791   ac_cv_func_sched_yield=yes
41792 else
41793   echo "$as_me: failed program was:" >&5
41794 sed 's/^/| /' conftest.$ac_ext >&5
41795
41796         ac_cv_func_sched_yield=no
41797 fi
41798
41799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41800       conftest$ac_exeext conftest.$ac_ext
41801 fi
41802 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
41803 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6; }
41804 if test $ac_cv_func_sched_yield = yes; then
41805   cat >>confdefs.h <<\_ACEOF
41806 #define HAVE_SCHED_YIELD 1
41807 _ACEOF
41808
41809 else
41810
41811                 { echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
41812 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6; }
41813 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
41814   echo $ECHO_N "(cached) $ECHO_C" >&6
41815 else
41816   ac_check_lib_save_LIBS=$LIBS
41817 LIBS="-lposix4  $LIBS"
41818 cat >conftest.$ac_ext <<_ACEOF
41819 /* confdefs.h.  */
41820 _ACEOF
41821 cat confdefs.h >>conftest.$ac_ext
41822 cat >>conftest.$ac_ext <<_ACEOF
41823 /* end confdefs.h.  */
41824
41825 /* Override any GCC internal prototype to avoid an error.
41826    Use char because int might match the return type of a GCC
41827    builtin and then its argument prototype would still apply.  */
41828 #ifdef __cplusplus
41829 extern "C"
41830 #endif
41831 char sched_yield ();
41832 int
41833 main ()
41834 {
41835 return sched_yield ();
41836   ;
41837   return 0;
41838 }
41839 _ACEOF
41840 rm -f conftest.$ac_objext conftest$ac_exeext
41841 if { (ac_try="$ac_link"
41842 case "(($ac_try" in
41843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41844   *) ac_try_echo=$ac_try;;
41845 esac
41846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41847   (eval "$ac_link") 2>conftest.er1
41848   ac_status=$?
41849   grep -v '^ *+' conftest.er1 >conftest.err
41850   rm -f conftest.er1
41851   cat conftest.err >&5
41852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41853   (exit $ac_status); } && {
41854          test -z "$ac_c_werror_flag" ||
41855          test ! -s conftest.err
41856        } && test -s conftest$ac_exeext &&
41857        $as_test_x conftest$ac_exeext; then
41858   ac_cv_lib_posix4_sched_yield=yes
41859 else
41860   echo "$as_me: failed program was:" >&5
41861 sed 's/^/| /' conftest.$ac_ext >&5
41862
41863         ac_cv_lib_posix4_sched_yield=no
41864 fi
41865
41866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41867       conftest$ac_exeext conftest.$ac_ext
41868 LIBS=$ac_check_lib_save_LIBS
41869 fi
41870 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
41871 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6; }
41872 if test $ac_cv_lib_posix4_sched_yield = yes; then
41873   cat >>confdefs.h <<\_ACEOF
41874 #define HAVE_SCHED_YIELD 1
41875 _ACEOF
41876  POSIX4_LINK=" -lposix4"
41877 else
41878   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
41879 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
41880
41881 fi
41882
41883
41884
41885 fi
41886
41887       fi
41888
41889                                           HAVE_PRIOR_FUNCS=0
41890       { echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
41891 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6; }
41892 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
41893   echo $ECHO_N "(cached) $ECHO_C" >&6
41894 else
41895   cat >conftest.$ac_ext <<_ACEOF
41896 /* confdefs.h.  */
41897 _ACEOF
41898 cat confdefs.h >>conftest.$ac_ext
41899 cat >>conftest.$ac_ext <<_ACEOF
41900 /* end confdefs.h.  */
41901 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
41902    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41903 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
41904
41905 /* System header to define __stub macros and hopefully few prototypes,
41906     which can conflict with char pthread_attr_getschedpolicy (); below.
41907     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41908     <limits.h> exists even on freestanding compilers.  */
41909
41910 #ifdef __STDC__
41911 # include <limits.h>
41912 #else
41913 # include <assert.h>
41914 #endif
41915
41916 #undef pthread_attr_getschedpolicy
41917
41918 /* Override any GCC internal prototype to avoid an error.
41919    Use char because int might match the return type of a GCC
41920    builtin and then its argument prototype would still apply.  */
41921 #ifdef __cplusplus
41922 extern "C"
41923 #endif
41924 char pthread_attr_getschedpolicy ();
41925 /* The GNU C library defines this for functions which it implements
41926     to always fail with ENOSYS.  Some functions are actually named
41927     something starting with __ and the normal name is an alias.  */
41928 #if defined __stub_pthread_attr_getschedpolicy || defined __stub___pthread_attr_getschedpolicy
41929 choke me
41930 #endif
41931
41932 int
41933 main ()
41934 {
41935 return pthread_attr_getschedpolicy ();
41936   ;
41937   return 0;
41938 }
41939 _ACEOF
41940 rm -f conftest.$ac_objext conftest$ac_exeext
41941 if { (ac_try="$ac_link"
41942 case "(($ac_try" in
41943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41944   *) ac_try_echo=$ac_try;;
41945 esac
41946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41947   (eval "$ac_link") 2>conftest.er1
41948   ac_status=$?
41949   grep -v '^ *+' conftest.er1 >conftest.err
41950   rm -f conftest.er1
41951   cat conftest.err >&5
41952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41953   (exit $ac_status); } && {
41954          test -z "$ac_c_werror_flag" ||
41955          test ! -s conftest.err
41956        } && test -s conftest$ac_exeext &&
41957        $as_test_x conftest$ac_exeext; then
41958   ac_cv_func_pthread_attr_getschedpolicy=yes
41959 else
41960   echo "$as_me: failed program was:" >&5
41961 sed 's/^/| /' conftest.$ac_ext >&5
41962
41963         ac_cv_func_pthread_attr_getschedpolicy=no
41964 fi
41965
41966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41967       conftest$ac_exeext conftest.$ac_ext
41968 fi
41969 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
41970 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6; }
41971 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
41972   { echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
41973 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6; }
41974 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
41975   echo $ECHO_N "(cached) $ECHO_C" >&6
41976 else
41977   cat >conftest.$ac_ext <<_ACEOF
41978 /* confdefs.h.  */
41979 _ACEOF
41980 cat confdefs.h >>conftest.$ac_ext
41981 cat >>conftest.$ac_ext <<_ACEOF
41982 /* end confdefs.h.  */
41983 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
41984    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41985 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
41986
41987 /* System header to define __stub macros and hopefully few prototypes,
41988     which can conflict with char pthread_attr_setschedparam (); below.
41989     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41990     <limits.h> exists even on freestanding compilers.  */
41991
41992 #ifdef __STDC__
41993 # include <limits.h>
41994 #else
41995 # include <assert.h>
41996 #endif
41997
41998 #undef pthread_attr_setschedparam
41999
42000 /* Override any GCC internal prototype to avoid an error.
42001    Use char because int might match the return type of a GCC
42002    builtin and then its argument prototype would still apply.  */
42003 #ifdef __cplusplus
42004 extern "C"
42005 #endif
42006 char pthread_attr_setschedparam ();
42007 /* The GNU C library defines this for functions which it implements
42008     to always fail with ENOSYS.  Some functions are actually named
42009     something starting with __ and the normal name is an alias.  */
42010 #if defined __stub_pthread_attr_setschedparam || defined __stub___pthread_attr_setschedparam
42011 choke me
42012 #endif
42013
42014 int
42015 main ()
42016 {
42017 return pthread_attr_setschedparam ();
42018   ;
42019   return 0;
42020 }
42021 _ACEOF
42022 rm -f conftest.$ac_objext conftest$ac_exeext
42023 if { (ac_try="$ac_link"
42024 case "(($ac_try" in
42025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42026   *) ac_try_echo=$ac_try;;
42027 esac
42028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42029   (eval "$ac_link") 2>conftest.er1
42030   ac_status=$?
42031   grep -v '^ *+' conftest.er1 >conftest.err
42032   rm -f conftest.er1
42033   cat conftest.err >&5
42034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42035   (exit $ac_status); } && {
42036          test -z "$ac_c_werror_flag" ||
42037          test ! -s conftest.err
42038        } && test -s conftest$ac_exeext &&
42039        $as_test_x conftest$ac_exeext; then
42040   ac_cv_func_pthread_attr_setschedparam=yes
42041 else
42042   echo "$as_me: failed program was:" >&5
42043 sed 's/^/| /' conftest.$ac_ext >&5
42044
42045         ac_cv_func_pthread_attr_setschedparam=no
42046 fi
42047
42048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42049       conftest$ac_exeext conftest.$ac_ext
42050 fi
42051 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
42052 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6; }
42053 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
42054   { echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
42055 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6; }
42056 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
42057   echo $ECHO_N "(cached) $ECHO_C" >&6
42058 else
42059   cat >conftest.$ac_ext <<_ACEOF
42060 /* confdefs.h.  */
42061 _ACEOF
42062 cat confdefs.h >>conftest.$ac_ext
42063 cat >>conftest.$ac_ext <<_ACEOF
42064 /* end confdefs.h.  */
42065 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
42066    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42067 #define sched_get_priority_max innocuous_sched_get_priority_max
42068
42069 /* System header to define __stub macros and hopefully few prototypes,
42070     which can conflict with char sched_get_priority_max (); below.
42071     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42072     <limits.h> exists even on freestanding compilers.  */
42073
42074 #ifdef __STDC__
42075 # include <limits.h>
42076 #else
42077 # include <assert.h>
42078 #endif
42079
42080 #undef sched_get_priority_max
42081
42082 /* Override any GCC internal prototype to avoid an error.
42083    Use char because int might match the return type of a GCC
42084    builtin and then its argument prototype would still apply.  */
42085 #ifdef __cplusplus
42086 extern "C"
42087 #endif
42088 char sched_get_priority_max ();
42089 /* The GNU C library defines this for functions which it implements
42090     to always fail with ENOSYS.  Some functions are actually named
42091     something starting with __ and the normal name is an alias.  */
42092 #if defined __stub_sched_get_priority_max || defined __stub___sched_get_priority_max
42093 choke me
42094 #endif
42095
42096 int
42097 main ()
42098 {
42099 return sched_get_priority_max ();
42100   ;
42101   return 0;
42102 }
42103 _ACEOF
42104 rm -f conftest.$ac_objext conftest$ac_exeext
42105 if { (ac_try="$ac_link"
42106 case "(($ac_try" in
42107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42108   *) ac_try_echo=$ac_try;;
42109 esac
42110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42111   (eval "$ac_link") 2>conftest.er1
42112   ac_status=$?
42113   grep -v '^ *+' conftest.er1 >conftest.err
42114   rm -f conftest.er1
42115   cat conftest.err >&5
42116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42117   (exit $ac_status); } && {
42118          test -z "$ac_c_werror_flag" ||
42119          test ! -s conftest.err
42120        } && test -s conftest$ac_exeext &&
42121        $as_test_x conftest$ac_exeext; then
42122   ac_cv_func_sched_get_priority_max=yes
42123 else
42124   echo "$as_me: failed program was:" >&5
42125 sed 's/^/| /' conftest.$ac_ext >&5
42126
42127         ac_cv_func_sched_get_priority_max=no
42128 fi
42129
42130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42131       conftest$ac_exeext conftest.$ac_ext
42132 fi
42133 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
42134 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6; }
42135 if test $ac_cv_func_sched_get_priority_max = yes; then
42136   HAVE_PRIOR_FUNCS=1
42137 else
42138   { echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
42139 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6; }
42140 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
42141   echo $ECHO_N "(cached) $ECHO_C" >&6
42142 else
42143   ac_check_lib_save_LIBS=$LIBS
42144 LIBS="-lposix4  $LIBS"
42145 cat >conftest.$ac_ext <<_ACEOF
42146 /* confdefs.h.  */
42147 _ACEOF
42148 cat confdefs.h >>conftest.$ac_ext
42149 cat >>conftest.$ac_ext <<_ACEOF
42150 /* end confdefs.h.  */
42151
42152 /* Override any GCC internal prototype to avoid an error.
42153    Use char because int might match the return type of a GCC
42154    builtin and then its argument prototype would still apply.  */
42155 #ifdef __cplusplus
42156 extern "C"
42157 #endif
42158 char sched_get_priority_max ();
42159 int
42160 main ()
42161 {
42162 return sched_get_priority_max ();
42163   ;
42164   return 0;
42165 }
42166 _ACEOF
42167 rm -f conftest.$ac_objext conftest$ac_exeext
42168 if { (ac_try="$ac_link"
42169 case "(($ac_try" in
42170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42171   *) ac_try_echo=$ac_try;;
42172 esac
42173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42174   (eval "$ac_link") 2>conftest.er1
42175   ac_status=$?
42176   grep -v '^ *+' conftest.er1 >conftest.err
42177   rm -f conftest.er1
42178   cat conftest.err >&5
42179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42180   (exit $ac_status); } && {
42181          test -z "$ac_c_werror_flag" ||
42182          test ! -s conftest.err
42183        } && test -s conftest$ac_exeext &&
42184        $as_test_x conftest$ac_exeext; then
42185   ac_cv_lib_posix4_sched_get_priority_max=yes
42186 else
42187   echo "$as_me: failed program was:" >&5
42188 sed 's/^/| /' conftest.$ac_ext >&5
42189
42190         ac_cv_lib_posix4_sched_get_priority_max=no
42191 fi
42192
42193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42194       conftest$ac_exeext conftest.$ac_ext
42195 LIBS=$ac_check_lib_save_LIBS
42196 fi
42197 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
42198 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6; }
42199 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
42200
42201                                 HAVE_PRIOR_FUNCS=1
42202                                 POSIX4_LINK=" -lposix4"
42203
42204 fi
42205
42206
42207 fi
42208
42209
42210 fi
42211
42212
42213 fi
42214
42215
42216       if test "$HAVE_PRIOR_FUNCS" = 1; then
42217         cat >>confdefs.h <<\_ACEOF
42218 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
42219 _ACEOF
42220
42221       else
42222         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
42223 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
42224       fi
42225
42226       { echo "$as_me:$LINENO: checking for pthread_cancel" >&5
42227 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6; }
42228 if test "${ac_cv_func_pthread_cancel+set}" = set; then
42229   echo $ECHO_N "(cached) $ECHO_C" >&6
42230 else
42231   cat >conftest.$ac_ext <<_ACEOF
42232 /* confdefs.h.  */
42233 _ACEOF
42234 cat confdefs.h >>conftest.$ac_ext
42235 cat >>conftest.$ac_ext <<_ACEOF
42236 /* end confdefs.h.  */
42237 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
42238    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42239 #define pthread_cancel innocuous_pthread_cancel
42240
42241 /* System header to define __stub macros and hopefully few prototypes,
42242     which can conflict with char pthread_cancel (); below.
42243     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42244     <limits.h> exists even on freestanding compilers.  */
42245
42246 #ifdef __STDC__
42247 # include <limits.h>
42248 #else
42249 # include <assert.h>
42250 #endif
42251
42252 #undef pthread_cancel
42253
42254 /* Override any GCC internal prototype to avoid an error.
42255    Use char because int might match the return type of a GCC
42256    builtin and then its argument prototype would still apply.  */
42257 #ifdef __cplusplus
42258 extern "C"
42259 #endif
42260 char pthread_cancel ();
42261 /* The GNU C library defines this for functions which it implements
42262     to always fail with ENOSYS.  Some functions are actually named
42263     something starting with __ and the normal name is an alias.  */
42264 #if defined __stub_pthread_cancel || defined __stub___pthread_cancel
42265 choke me
42266 #endif
42267
42268 int
42269 main ()
42270 {
42271 return pthread_cancel ();
42272   ;
42273   return 0;
42274 }
42275 _ACEOF
42276 rm -f conftest.$ac_objext conftest$ac_exeext
42277 if { (ac_try="$ac_link"
42278 case "(($ac_try" in
42279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42280   *) ac_try_echo=$ac_try;;
42281 esac
42282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42283   (eval "$ac_link") 2>conftest.er1
42284   ac_status=$?
42285   grep -v '^ *+' conftest.er1 >conftest.err
42286   rm -f conftest.er1
42287   cat conftest.err >&5
42288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42289   (exit $ac_status); } && {
42290          test -z "$ac_c_werror_flag" ||
42291          test ! -s conftest.err
42292        } && test -s conftest$ac_exeext &&
42293        $as_test_x conftest$ac_exeext; then
42294   ac_cv_func_pthread_cancel=yes
42295 else
42296   echo "$as_me: failed program was:" >&5
42297 sed 's/^/| /' conftest.$ac_ext >&5
42298
42299         ac_cv_func_pthread_cancel=no
42300 fi
42301
42302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42303       conftest$ac_exeext conftest.$ac_ext
42304 fi
42305 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
42306 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6; }
42307 if test $ac_cv_func_pthread_cancel = yes; then
42308   cat >>confdefs.h <<\_ACEOF
42309 #define HAVE_PTHREAD_CANCEL 1
42310 _ACEOF
42311
42312 else
42313   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
42314 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
42315 fi
42316
42317
42318       { echo "$as_me:$LINENO: checking for pthread_mutex_timedlock" >&5
42319 echo $ECHO_N "checking for pthread_mutex_timedlock... $ECHO_C" >&6; }
42320 if test "${ac_cv_func_pthread_mutex_timedlock+set}" = set; then
42321   echo $ECHO_N "(cached) $ECHO_C" >&6
42322 else
42323   cat >conftest.$ac_ext <<_ACEOF
42324 /* confdefs.h.  */
42325 _ACEOF
42326 cat confdefs.h >>conftest.$ac_ext
42327 cat >>conftest.$ac_ext <<_ACEOF
42328 /* end confdefs.h.  */
42329 /* Define pthread_mutex_timedlock to an innocuous variant, in case <limits.h> declares pthread_mutex_timedlock.
42330    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42331 #define pthread_mutex_timedlock innocuous_pthread_mutex_timedlock
42332
42333 /* System header to define __stub macros and hopefully few prototypes,
42334     which can conflict with char pthread_mutex_timedlock (); below.
42335     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42336     <limits.h> exists even on freestanding compilers.  */
42337
42338 #ifdef __STDC__
42339 # include <limits.h>
42340 #else
42341 # include <assert.h>
42342 #endif
42343
42344 #undef pthread_mutex_timedlock
42345
42346 /* Override any GCC internal prototype to avoid an error.
42347    Use char because int might match the return type of a GCC
42348    builtin and then its argument prototype would still apply.  */
42349 #ifdef __cplusplus
42350 extern "C"
42351 #endif
42352 char pthread_mutex_timedlock ();
42353 /* The GNU C library defines this for functions which it implements
42354     to always fail with ENOSYS.  Some functions are actually named
42355     something starting with __ and the normal name is an alias.  */
42356 #if defined __stub_pthread_mutex_timedlock || defined __stub___pthread_mutex_timedlock
42357 choke me
42358 #endif
42359
42360 int
42361 main ()
42362 {
42363 return pthread_mutex_timedlock ();
42364   ;
42365   return 0;
42366 }
42367 _ACEOF
42368 rm -f conftest.$ac_objext conftest$ac_exeext
42369 if { (ac_try="$ac_link"
42370 case "(($ac_try" in
42371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42372   *) ac_try_echo=$ac_try;;
42373 esac
42374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42375   (eval "$ac_link") 2>conftest.er1
42376   ac_status=$?
42377   grep -v '^ *+' conftest.er1 >conftest.err
42378   rm -f conftest.er1
42379   cat conftest.err >&5
42380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42381   (exit $ac_status); } && {
42382          test -z "$ac_c_werror_flag" ||
42383          test ! -s conftest.err
42384        } && test -s conftest$ac_exeext &&
42385        $as_test_x conftest$ac_exeext; then
42386   ac_cv_func_pthread_mutex_timedlock=yes
42387 else
42388   echo "$as_me: failed program was:" >&5
42389 sed 's/^/| /' conftest.$ac_ext >&5
42390
42391         ac_cv_func_pthread_mutex_timedlock=no
42392 fi
42393
42394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42395       conftest$ac_exeext conftest.$ac_ext
42396 fi
42397 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_timedlock" >&5
42398 echo "${ECHO_T}$ac_cv_func_pthread_mutex_timedlock" >&6; }
42399 if test $ac_cv_func_pthread_mutex_timedlock = yes; then
42400   cat >>confdefs.h <<\_ACEOF
42401 #define HAVE_PTHREAD_MUTEX_TIMEDLOCK 1
42402 _ACEOF
42403
42404 else
42405   { echo "$as_me:$LINENO: WARNING: wxMutex::LockTimeout() will not work" >&5
42406 echo "$as_me: WARNING: wxMutex::LockTimeout() will not work" >&2;}
42407 fi
42408
42409
42410       { echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
42411 echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6; }
42412 if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
42413   echo $ECHO_N "(cached) $ECHO_C" >&6
42414 else
42415   cat >conftest.$ac_ext <<_ACEOF
42416 /* confdefs.h.  */
42417 _ACEOF
42418 cat confdefs.h >>conftest.$ac_ext
42419 cat >>conftest.$ac_ext <<_ACEOF
42420 /* end confdefs.h.  */
42421 /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
42422    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42423 #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
42424
42425 /* System header to define __stub macros and hopefully few prototypes,
42426     which can conflict with char pthread_attr_setstacksize (); below.
42427     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42428     <limits.h> exists even on freestanding compilers.  */
42429
42430 #ifdef __STDC__
42431 # include <limits.h>
42432 #else
42433 # include <assert.h>
42434 #endif
42435
42436 #undef pthread_attr_setstacksize
42437
42438 /* Override any GCC internal prototype to avoid an error.
42439    Use char because int might match the return type of a GCC
42440    builtin and then its argument prototype would still apply.  */
42441 #ifdef __cplusplus
42442 extern "C"
42443 #endif
42444 char pthread_attr_setstacksize ();
42445 /* The GNU C library defines this for functions which it implements
42446     to always fail with ENOSYS.  Some functions are actually named
42447     something starting with __ and the normal name is an alias.  */
42448 #if defined __stub_pthread_attr_setstacksize || defined __stub___pthread_attr_setstacksize
42449 choke me
42450 #endif
42451
42452 int
42453 main ()
42454 {
42455 return pthread_attr_setstacksize ();
42456   ;
42457   return 0;
42458 }
42459 _ACEOF
42460 rm -f conftest.$ac_objext conftest$ac_exeext
42461 if { (ac_try="$ac_link"
42462 case "(($ac_try" in
42463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42464   *) ac_try_echo=$ac_try;;
42465 esac
42466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42467   (eval "$ac_link") 2>conftest.er1
42468   ac_status=$?
42469   grep -v '^ *+' conftest.er1 >conftest.err
42470   rm -f conftest.er1
42471   cat conftest.err >&5
42472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42473   (exit $ac_status); } && {
42474          test -z "$ac_c_werror_flag" ||
42475          test ! -s conftest.err
42476        } && test -s conftest$ac_exeext &&
42477        $as_test_x conftest$ac_exeext; then
42478   ac_cv_func_pthread_attr_setstacksize=yes
42479 else
42480   echo "$as_me: failed program was:" >&5
42481 sed 's/^/| /' conftest.$ac_ext >&5
42482
42483         ac_cv_func_pthread_attr_setstacksize=no
42484 fi
42485
42486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42487       conftest$ac_exeext conftest.$ac_ext
42488 fi
42489 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
42490 echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6; }
42491 if test $ac_cv_func_pthread_attr_setstacksize = yes; then
42492   cat >>confdefs.h <<\_ACEOF
42493 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
42494 _ACEOF
42495
42496 fi
42497
42498
42499
42500       { echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
42501 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6; }
42502 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
42503   echo $ECHO_N "(cached) $ECHO_C" >&6
42504 else
42505
42506         cat >conftest.$ac_ext <<_ACEOF
42507 /* confdefs.h.  */
42508 _ACEOF
42509 cat confdefs.h >>conftest.$ac_ext
42510 cat >>conftest.$ac_ext <<_ACEOF
42511 /* end confdefs.h.  */
42512 #include <pthread.h>
42513 int
42514 main ()
42515 {
42516
42517                pthread_mutexattr_t attr;
42518                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
42519
42520   ;
42521   return 0;
42522 }
42523 _ACEOF
42524 rm -f conftest.$ac_objext
42525 if { (ac_try="$ac_compile"
42526 case "(($ac_try" in
42527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42528   *) ac_try_echo=$ac_try;;
42529 esac
42530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42531   (eval "$ac_compile") 2>conftest.er1
42532   ac_status=$?
42533   grep -v '^ *+' conftest.er1 >conftest.err
42534   rm -f conftest.er1
42535   cat conftest.err >&5
42536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42537   (exit $ac_status); } && {
42538          test -z "$ac_c_werror_flag" ||
42539          test ! -s conftest.err
42540        } && test -s conftest.$ac_objext; then
42541   wx_cv_type_pthread_mutexattr_t=yes
42542 else
42543   echo "$as_me: failed program was:" >&5
42544 sed 's/^/| /' conftest.$ac_ext >&5
42545
42546         wx_cv_type_pthread_mutexattr_t=no
42547
42548 fi
42549
42550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42551
42552 fi
42553 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
42554 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6; }
42555
42556       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
42557         cat >>confdefs.h <<\_ACEOF
42558 #define HAVE_PTHREAD_MUTEXATTR_T 1
42559 _ACEOF
42560
42561
42562                         { echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
42563 echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6; }
42564 if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
42565   echo $ECHO_N "(cached) $ECHO_C" >&6
42566 else
42567
42568                        cat >conftest.$ac_ext <<_ACEOF
42569 /* confdefs.h.  */
42570 _ACEOF
42571 cat confdefs.h >>conftest.$ac_ext
42572 cat >>conftest.$ac_ext <<_ACEOF
42573 /* end confdefs.h.  */
42574 #include <pthread.h>
42575 int
42576 main ()
42577 {
42578
42579                                pthread_mutexattr_t attr;
42580                                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
42581
42582   ;
42583   return 0;
42584 }
42585 _ACEOF
42586 rm -f conftest.$ac_objext
42587 if { (ac_try="$ac_compile"
42588 case "(($ac_try" in
42589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42590   *) ac_try_echo=$ac_try;;
42591 esac
42592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42593   (eval "$ac_compile") 2>conftest.er1
42594   ac_status=$?
42595   grep -v '^ *+' conftest.er1 >conftest.err
42596   rm -f conftest.er1
42597   cat conftest.err >&5
42598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42599   (exit $ac_status); } && {
42600          test -z "$ac_c_werror_flag" ||
42601          test ! -s conftest.err
42602        } && test -s conftest.$ac_objext; then
42603   wx_cv_func_pthread_mutexattr_settype_decl=yes
42604 else
42605   echo "$as_me: failed program was:" >&5
42606 sed 's/^/| /' conftest.$ac_ext >&5
42607
42608         wx_cv_func_pthread_mutexattr_settype_decl=no
42609
42610 fi
42611
42612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42613
42614 fi
42615 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
42616 echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6; }
42617         if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
42618             cat >>confdefs.h <<\_ACEOF
42619 #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
42620 _ACEOF
42621
42622         fi
42623       else
42624                 { echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
42625 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6; }
42626 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
42627   echo $ECHO_N "(cached) $ECHO_C" >&6
42628 else
42629
42630             cat >conftest.$ac_ext <<_ACEOF
42631 /* confdefs.h.  */
42632 _ACEOF
42633 cat confdefs.h >>conftest.$ac_ext
42634 cat >>conftest.$ac_ext <<_ACEOF
42635 /* end confdefs.h.  */
42636 #include <pthread.h>
42637 int
42638 main ()
42639 {
42640
42641                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
42642
42643   ;
42644   return 0;
42645 }
42646 _ACEOF
42647 rm -f conftest.$ac_objext
42648 if { (ac_try="$ac_compile"
42649 case "(($ac_try" in
42650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42651   *) ac_try_echo=$ac_try;;
42652 esac
42653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42654   (eval "$ac_compile") 2>conftest.er1
42655   ac_status=$?
42656   grep -v '^ *+' conftest.er1 >conftest.err
42657   rm -f conftest.er1
42658   cat conftest.err >&5
42659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42660   (exit $ac_status); } && {
42661          test -z "$ac_c_werror_flag" ||
42662          test ! -s conftest.err
42663        } && test -s conftest.$ac_objext; then
42664
42665                     wx_cv_type_pthread_rec_mutex_init=yes
42666
42667 else
42668   echo "$as_me: failed program was:" >&5
42669 sed 's/^/| /' conftest.$ac_ext >&5
42670
42671
42672                     wx_cv_type_pthread_rec_mutex_init=no
42673
42674
42675 fi
42676
42677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42678
42679 fi
42680 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
42681 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6; }
42682         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
42683           cat >>confdefs.h <<\_ACEOF
42684 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
42685 _ACEOF
42686
42687         else
42688                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
42689 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
42690         fi
42691       fi
42692     fi
42693
42694 else
42695     if test "$wxUSE_THREADS" = "yes" ; then
42696       case "${host}" in
42697         *-*-mingw32* )
42698                         { echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
42699 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6; }
42700 if test "${wx_cv_cflags_mthread+set}" = set; then
42701   echo $ECHO_N "(cached) $ECHO_C" >&6
42702 else
42703
42704                     CFLAGS_OLD="$CFLAGS"
42705                     CFLAGS="-mthreads $CFLAGS"
42706                     cat >conftest.$ac_ext <<_ACEOF
42707 /* confdefs.h.  */
42708 _ACEOF
42709 cat confdefs.h >>conftest.$ac_ext
42710 cat >>conftest.$ac_ext <<_ACEOF
42711 /* end confdefs.h.  */
42712
42713 int
42714 main ()
42715 {
42716
42717   ;
42718   return 0;
42719 }
42720 _ACEOF
42721 rm -f conftest.$ac_objext
42722 if { (ac_try="$ac_compile"
42723 case "(($ac_try" in
42724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42725   *) ac_try_echo=$ac_try;;
42726 esac
42727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42728   (eval "$ac_compile") 2>conftest.er1
42729   ac_status=$?
42730   grep -v '^ *+' conftest.er1 >conftest.err
42731   rm -f conftest.er1
42732   cat conftest.err >&5
42733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42734   (exit $ac_status); } && {
42735          test -z "$ac_c_werror_flag" ||
42736          test ! -s conftest.err
42737        } && test -s conftest.$ac_objext; then
42738   wx_cv_cflags_mthread=yes
42739 else
42740   echo "$as_me: failed program was:" >&5
42741 sed 's/^/| /' conftest.$ac_ext >&5
42742
42743         wx_cv_cflags_mthread=no
42744
42745 fi
42746
42747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42748
42749
42750 fi
42751 { echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
42752 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6; }
42753
42754             if test "$wx_cv_cflags_mthread" = "yes"; then
42755                                 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads"
42756                 LDFLAGS="$LDFLAGS -mthreads"
42757             else
42758                                 CFLAGS="$CFLAGS_OLD"
42759             fi
42760         ;;
42761         *-pc-os2*emx )
42762             WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
42763             LDFLAGS="$LDFLAGS -Zmt"
42764         ;;
42765       esac
42766     fi
42767 fi
42768
42769 { echo "$as_me:$LINENO: checking for localtime_r" >&5
42770 echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6; }
42771 if test "${ac_cv_func_localtime_r+set}" = set; then
42772   echo $ECHO_N "(cached) $ECHO_C" >&6
42773 else
42774   cat >conftest.$ac_ext <<_ACEOF
42775 /* confdefs.h.  */
42776 _ACEOF
42777 cat confdefs.h >>conftest.$ac_ext
42778 cat >>conftest.$ac_ext <<_ACEOF
42779 /* end confdefs.h.  */
42780 /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
42781    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42782 #define localtime_r innocuous_localtime_r
42783
42784 /* System header to define __stub macros and hopefully few prototypes,
42785     which can conflict with char localtime_r (); below.
42786     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42787     <limits.h> exists even on freestanding compilers.  */
42788
42789 #ifdef __STDC__
42790 # include <limits.h>
42791 #else
42792 # include <assert.h>
42793 #endif
42794
42795 #undef localtime_r
42796
42797 /* Override any GCC internal prototype to avoid an error.
42798    Use char because int might match the return type of a GCC
42799    builtin and then its argument prototype would still apply.  */
42800 #ifdef __cplusplus
42801 extern "C"
42802 #endif
42803 char localtime_r ();
42804 /* The GNU C library defines this for functions which it implements
42805     to always fail with ENOSYS.  Some functions are actually named
42806     something starting with __ and the normal name is an alias.  */
42807 #if defined __stub_localtime_r || defined __stub___localtime_r
42808 choke me
42809 #endif
42810
42811 int
42812 main ()
42813 {
42814 return localtime_r ();
42815   ;
42816   return 0;
42817 }
42818 _ACEOF
42819 rm -f conftest.$ac_objext conftest$ac_exeext
42820 if { (ac_try="$ac_link"
42821 case "(($ac_try" in
42822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42823   *) ac_try_echo=$ac_try;;
42824 esac
42825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42826   (eval "$ac_link") 2>conftest.er1
42827   ac_status=$?
42828   grep -v '^ *+' conftest.er1 >conftest.err
42829   rm -f conftest.er1
42830   cat conftest.err >&5
42831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42832   (exit $ac_status); } && {
42833          test -z "$ac_c_werror_flag" ||
42834          test ! -s conftest.err
42835        } && test -s conftest$ac_exeext &&
42836        $as_test_x conftest$ac_exeext; then
42837   ac_cv_func_localtime_r=yes
42838 else
42839   echo "$as_me: failed program was:" >&5
42840 sed 's/^/| /' conftest.$ac_ext >&5
42841
42842         ac_cv_func_localtime_r=no
42843 fi
42844
42845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42846       conftest$ac_exeext conftest.$ac_ext
42847 fi
42848 { echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
42849 echo "${ECHO_T}$ac_cv_func_localtime_r" >&6; }
42850 if test $ac_cv_func_localtime_r = yes; then
42851    cat >>confdefs.h <<\_ACEOF
42852 #define HAVE_LOCALTIME_R 1
42853 _ACEOF
42854
42855 fi
42856
42857 { echo "$as_me:$LINENO: checking for gmtime_r" >&5
42858 echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6; }
42859 if test "${ac_cv_func_gmtime_r+set}" = set; then
42860   echo $ECHO_N "(cached) $ECHO_C" >&6
42861 else
42862   cat >conftest.$ac_ext <<_ACEOF
42863 /* confdefs.h.  */
42864 _ACEOF
42865 cat confdefs.h >>conftest.$ac_ext
42866 cat >>conftest.$ac_ext <<_ACEOF
42867 /* end confdefs.h.  */
42868 /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
42869    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42870 #define gmtime_r innocuous_gmtime_r
42871
42872 /* System header to define __stub macros and hopefully few prototypes,
42873     which can conflict with char gmtime_r (); below.
42874     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42875     <limits.h> exists even on freestanding compilers.  */
42876
42877 #ifdef __STDC__
42878 # include <limits.h>
42879 #else
42880 # include <assert.h>
42881 #endif
42882
42883 #undef gmtime_r
42884
42885 /* Override any GCC internal prototype to avoid an error.
42886    Use char because int might match the return type of a GCC
42887    builtin and then its argument prototype would still apply.  */
42888 #ifdef __cplusplus
42889 extern "C"
42890 #endif
42891 char gmtime_r ();
42892 /* The GNU C library defines this for functions which it implements
42893     to always fail with ENOSYS.  Some functions are actually named
42894     something starting with __ and the normal name is an alias.  */
42895 #if defined __stub_gmtime_r || defined __stub___gmtime_r
42896 choke me
42897 #endif
42898
42899 int
42900 main ()
42901 {
42902 return gmtime_r ();
42903   ;
42904   return 0;
42905 }
42906 _ACEOF
42907 rm -f conftest.$ac_objext conftest$ac_exeext
42908 if { (ac_try="$ac_link"
42909 case "(($ac_try" in
42910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42911   *) ac_try_echo=$ac_try;;
42912 esac
42913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42914   (eval "$ac_link") 2>conftest.er1
42915   ac_status=$?
42916   grep -v '^ *+' conftest.er1 >conftest.err
42917   rm -f conftest.er1
42918   cat conftest.err >&5
42919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42920   (exit $ac_status); } && {
42921          test -z "$ac_c_werror_flag" ||
42922          test ! -s conftest.err
42923        } && test -s conftest$ac_exeext &&
42924        $as_test_x conftest$ac_exeext; then
42925   ac_cv_func_gmtime_r=yes
42926 else
42927   echo "$as_me: failed program was:" >&5
42928 sed 's/^/| /' conftest.$ac_ext >&5
42929
42930         ac_cv_func_gmtime_r=no
42931 fi
42932
42933 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42934       conftest$ac_exeext conftest.$ac_ext
42935 fi
42936 { echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
42937 echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6; }
42938 if test $ac_cv_func_gmtime_r = yes; then
42939    cat >>confdefs.h <<\_ACEOF
42940 #define HAVE_GMTIME_R 1
42941 _ACEOF
42942
42943 fi
42944
42945 { echo "$as_me:$LINENO: checking for readdir_r" >&5
42946 echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6; }
42947 if test "${ac_cv_func_readdir_r+set}" = set; then
42948   echo $ECHO_N "(cached) $ECHO_C" >&6
42949 else
42950   cat >conftest.$ac_ext <<_ACEOF
42951 /* confdefs.h.  */
42952 _ACEOF
42953 cat confdefs.h >>conftest.$ac_ext
42954 cat >>conftest.$ac_ext <<_ACEOF
42955 /* end confdefs.h.  */
42956 /* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r.
42957    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42958 #define readdir_r innocuous_readdir_r
42959
42960 /* System header to define __stub macros and hopefully few prototypes,
42961     which can conflict with char readdir_r (); below.
42962     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42963     <limits.h> exists even on freestanding compilers.  */
42964
42965 #ifdef __STDC__
42966 # include <limits.h>
42967 #else
42968 # include <assert.h>
42969 #endif
42970
42971 #undef readdir_r
42972
42973 /* Override any GCC internal prototype to avoid an error.
42974    Use char because int might match the return type of a GCC
42975    builtin and then its argument prototype would still apply.  */
42976 #ifdef __cplusplus
42977 extern "C"
42978 #endif
42979 char readdir_r ();
42980 /* The GNU C library defines this for functions which it implements
42981     to always fail with ENOSYS.  Some functions are actually named
42982     something starting with __ and the normal name is an alias.  */
42983 #if defined __stub_readdir_r || defined __stub___readdir_r
42984 choke me
42985 #endif
42986
42987 int
42988 main ()
42989 {
42990 return readdir_r ();
42991   ;
42992   return 0;
42993 }
42994 _ACEOF
42995 rm -f conftest.$ac_objext conftest$ac_exeext
42996 if { (ac_try="$ac_link"
42997 case "(($ac_try" in
42998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42999   *) ac_try_echo=$ac_try;;
43000 esac
43001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43002   (eval "$ac_link") 2>conftest.er1
43003   ac_status=$?
43004   grep -v '^ *+' conftest.er1 >conftest.err
43005   rm -f conftest.er1
43006   cat conftest.err >&5
43007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43008   (exit $ac_status); } && {
43009          test -z "$ac_c_werror_flag" ||
43010          test ! -s conftest.err
43011        } && test -s conftest$ac_exeext &&
43012        $as_test_x conftest$ac_exeext; then
43013   ac_cv_func_readdir_r=yes
43014 else
43015   echo "$as_me: failed program was:" >&5
43016 sed 's/^/| /' conftest.$ac_ext >&5
43017
43018         ac_cv_func_readdir_r=no
43019 fi
43020
43021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43022       conftest$ac_exeext conftest.$ac_ext
43023 fi
43024 { echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5
43025 echo "${ECHO_T}$ac_cv_func_readdir_r" >&6; }
43026 if test $ac_cv_func_readdir_r = yes; then
43027    cat >>confdefs.h <<\_ACEOF
43028 #define HAVE_READDIR_R 1
43029 _ACEOF
43030
43031 fi
43032
43033
43034
43035
43036     ac_ext=c
43037 ac_cpp='$CPP $CPPFLAGS'
43038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43041
43042     { echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
43043 echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6; }
43044
43045     if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
43046   echo $ECHO_N "(cached) $ECHO_C" >&6
43047 else
43048
43049
43050 ################################################################
43051
43052 ac_cv_func_which_gethostbyname_r=unknown
43053
43054 #
43055 # ONE ARGUMENT (sanity check)
43056 #
43057
43058 # This should fail, as there is no variant of gethostbyname_r() that takes
43059 # a single argument. If it actually compiles, then we can assume that
43060 # netdb.h is not declaring the function, and the compiler is thereby
43061 # assuming an implicit prototype. In which case, we're out of luck.
43062 #
43063 cat >conftest.$ac_ext <<_ACEOF
43064 /* confdefs.h.  */
43065 _ACEOF
43066 cat confdefs.h >>conftest.$ac_ext
43067 cat >>conftest.$ac_ext <<_ACEOF
43068 /* end confdefs.h.  */
43069 #include <netdb.h>
43070 int
43071 main ()
43072 {
43073
43074             char *name = "www.gnu.org";
43075             (void)gethostbyname_r(name) /* ; */
43076
43077   ;
43078   return 0;
43079 }
43080 _ACEOF
43081 rm -f conftest.$ac_objext
43082 if { (ac_try="$ac_compile"
43083 case "(($ac_try" in
43084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43085   *) ac_try_echo=$ac_try;;
43086 esac
43087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43088   (eval "$ac_compile") 2>conftest.er1
43089   ac_status=$?
43090   grep -v '^ *+' conftest.er1 >conftest.err
43091   rm -f conftest.er1
43092   cat conftest.err >&5
43093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43094   (exit $ac_status); } && {
43095          test -z "$ac_c_werror_flag" ||
43096          test ! -s conftest.err
43097        } && test -s conftest.$ac_objext; then
43098   ac_cv_func_which_gethostbyname_r=no
43099 else
43100   echo "$as_me: failed program was:" >&5
43101 sed 's/^/| /' conftest.$ac_ext >&5
43102
43103
43104 fi
43105
43106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43107
43108 #
43109 # SIX ARGUMENTS
43110 # (e.g. Linux)
43111 #
43112
43113 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
43114
43115 cat >conftest.$ac_ext <<_ACEOF
43116 /* confdefs.h.  */
43117 _ACEOF
43118 cat confdefs.h >>conftest.$ac_ext
43119 cat >>conftest.$ac_ext <<_ACEOF
43120 /* end confdefs.h.  */
43121 #include <netdb.h>
43122 int
43123 main ()
43124 {
43125
43126             char *name = "www.gnu.org";
43127             struct hostent ret, *retp;
43128             char buf[1024];
43129             int buflen = 1024;
43130             int my_h_errno;
43131             (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
43132
43133   ;
43134   return 0;
43135 }
43136 _ACEOF
43137 rm -f conftest.$ac_objext
43138 if { (ac_try="$ac_compile"
43139 case "(($ac_try" in
43140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43141   *) ac_try_echo=$ac_try;;
43142 esac
43143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43144   (eval "$ac_compile") 2>conftest.er1
43145   ac_status=$?
43146   grep -v '^ *+' conftest.er1 >conftest.err
43147   rm -f conftest.er1
43148   cat conftest.err >&5
43149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43150   (exit $ac_status); } && {
43151          test -z "$ac_c_werror_flag" ||
43152          test ! -s conftest.err
43153        } && test -s conftest.$ac_objext; then
43154   ac_cv_func_which_gethostbyname_r=six
43155 else
43156   echo "$as_me: failed program was:" >&5
43157 sed 's/^/| /' conftest.$ac_ext >&5
43158
43159
43160 fi
43161
43162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43163
43164 fi
43165
43166 #
43167 # FIVE ARGUMENTS
43168 # (e.g. Solaris)
43169 #
43170
43171 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
43172
43173 cat >conftest.$ac_ext <<_ACEOF
43174 /* confdefs.h.  */
43175 _ACEOF
43176 cat confdefs.h >>conftest.$ac_ext
43177 cat >>conftest.$ac_ext <<_ACEOF
43178 /* end confdefs.h.  */
43179 #include <netdb.h>
43180 int
43181 main ()
43182 {
43183
43184             char *name = "www.gnu.org";
43185             struct hostent ret;
43186             char buf[1024];
43187             int buflen = 1024;
43188             int my_h_errno;
43189             (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
43190
43191   ;
43192   return 0;
43193 }
43194 _ACEOF
43195 rm -f conftest.$ac_objext
43196 if { (ac_try="$ac_compile"
43197 case "(($ac_try" in
43198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43199   *) ac_try_echo=$ac_try;;
43200 esac
43201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43202   (eval "$ac_compile") 2>conftest.er1
43203   ac_status=$?
43204   grep -v '^ *+' conftest.er1 >conftest.err
43205   rm -f conftest.er1
43206   cat conftest.err >&5
43207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43208   (exit $ac_status); } && {
43209          test -z "$ac_c_werror_flag" ||
43210          test ! -s conftest.err
43211        } && test -s conftest.$ac_objext; then
43212   ac_cv_func_which_gethostbyname_r=five
43213 else
43214   echo "$as_me: failed program was:" >&5
43215 sed 's/^/| /' conftest.$ac_ext >&5
43216
43217
43218 fi
43219
43220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43221
43222 fi
43223
43224 #
43225 # THREE ARGUMENTS
43226 # (e.g. AIX, HP-UX, Tru64)
43227 #
43228
43229 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
43230
43231 cat >conftest.$ac_ext <<_ACEOF
43232 /* confdefs.h.  */
43233 _ACEOF
43234 cat confdefs.h >>conftest.$ac_ext
43235 cat >>conftest.$ac_ext <<_ACEOF
43236 /* end confdefs.h.  */
43237 #include <netdb.h>
43238 int
43239 main ()
43240 {
43241
43242             char *name = "www.gnu.org";
43243             struct hostent ret;
43244             struct hostent_data data;
43245             (void)gethostbyname_r(name, &ret, &data) /* ; */
43246
43247   ;
43248   return 0;
43249 }
43250 _ACEOF
43251 rm -f conftest.$ac_objext
43252 if { (ac_try="$ac_compile"
43253 case "(($ac_try" in
43254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43255   *) ac_try_echo=$ac_try;;
43256 esac
43257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43258   (eval "$ac_compile") 2>conftest.er1
43259   ac_status=$?
43260   grep -v '^ *+' conftest.er1 >conftest.err
43261   rm -f conftest.er1
43262   cat conftest.err >&5
43263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43264   (exit $ac_status); } && {
43265          test -z "$ac_c_werror_flag" ||
43266          test ! -s conftest.err
43267        } && test -s conftest.$ac_objext; then
43268   ac_cv_func_which_gethostbyname_r=three
43269 else
43270   echo "$as_me: failed program was:" >&5
43271 sed 's/^/| /' conftest.$ac_ext >&5
43272
43273
43274 fi
43275
43276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43277
43278 fi
43279
43280 ################################################################
43281
43282
43283 fi
43284
43285 case "$ac_cv_func_which_gethostbyname_r" in
43286     three)
43287     { echo "$as_me:$LINENO: result: three" >&5
43288 echo "${ECHO_T}three" >&6; }
43289     cat >>confdefs.h <<\_ACEOF
43290 #define HAVE_FUNC_GETHOSTBYNAME_R_3 1
43291 _ACEOF
43292
43293     ;;
43294
43295     five)
43296     { echo "$as_me:$LINENO: result: five" >&5
43297 echo "${ECHO_T}five" >&6; }
43298     cat >>confdefs.h <<\_ACEOF
43299 #define HAVE_FUNC_GETHOSTBYNAME_R_5 1
43300 _ACEOF
43301
43302     ;;
43303
43304     six)
43305     { echo "$as_me:$LINENO: result: six" >&5
43306 echo "${ECHO_T}six" >&6; }
43307     cat >>confdefs.h <<\_ACEOF
43308 #define HAVE_FUNC_GETHOSTBYNAME_R_6 1
43309 _ACEOF
43310
43311     ;;
43312
43313     no)
43314     { echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
43315 echo "${ECHO_T}cannot find function declaration in netdb.h" >&6; }
43316     ;;
43317
43318     unknown)
43319     { echo "$as_me:$LINENO: result: can't tell" >&5
43320 echo "${ECHO_T}can't tell" >&6; }
43321     ;;
43322
43323     *)
43324     { { echo "$as_me:$LINENO: error: internal error" >&5
43325 echo "$as_me: error: internal error" >&2;}
43326    { (exit 1); exit 1; }; }
43327     ;;
43328 esac
43329
43330 ac_ext=c
43331 ac_cpp='$CPP $CPPFLAGS'
43332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43335
43336
43337
43338       if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
43339               "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
43340           { echo "$as_me:$LINENO: checking for gethostbyname" >&5
43341 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
43342 if test "${ac_cv_func_gethostbyname+set}" = set; then
43343   echo $ECHO_N "(cached) $ECHO_C" >&6
43344 else
43345   cat >conftest.$ac_ext <<_ACEOF
43346 /* confdefs.h.  */
43347 _ACEOF
43348 cat confdefs.h >>conftest.$ac_ext
43349 cat >>conftest.$ac_ext <<_ACEOF
43350 /* end confdefs.h.  */
43351 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
43352    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43353 #define gethostbyname innocuous_gethostbyname
43354
43355 /* System header to define __stub macros and hopefully few prototypes,
43356     which can conflict with char gethostbyname (); below.
43357     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43358     <limits.h> exists even on freestanding compilers.  */
43359
43360 #ifdef __STDC__
43361 # include <limits.h>
43362 #else
43363 # include <assert.h>
43364 #endif
43365
43366 #undef gethostbyname
43367
43368 /* Override any GCC internal prototype to avoid an error.
43369    Use char because int might match the return type of a GCC
43370    builtin and then its argument prototype would still apply.  */
43371 #ifdef __cplusplus
43372 extern "C"
43373 #endif
43374 char gethostbyname ();
43375 /* The GNU C library defines this for functions which it implements
43376     to always fail with ENOSYS.  Some functions are actually named
43377     something starting with __ and the normal name is an alias.  */
43378 #if defined __stub_gethostbyname || defined __stub___gethostbyname
43379 choke me
43380 #endif
43381
43382 int
43383 main ()
43384 {
43385 return gethostbyname ();
43386   ;
43387   return 0;
43388 }
43389 _ACEOF
43390 rm -f conftest.$ac_objext conftest$ac_exeext
43391 if { (ac_try="$ac_link"
43392 case "(($ac_try" in
43393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43394   *) ac_try_echo=$ac_try;;
43395 esac
43396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43397   (eval "$ac_link") 2>conftest.er1
43398   ac_status=$?
43399   grep -v '^ *+' conftest.er1 >conftest.err
43400   rm -f conftest.er1
43401   cat conftest.err >&5
43402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43403   (exit $ac_status); } && {
43404          test -z "$ac_c_werror_flag" ||
43405          test ! -s conftest.err
43406        } && test -s conftest$ac_exeext &&
43407        $as_test_x conftest$ac_exeext; then
43408   ac_cv_func_gethostbyname=yes
43409 else
43410   echo "$as_me: failed program was:" >&5
43411 sed 's/^/| /' conftest.$ac_ext >&5
43412
43413         ac_cv_func_gethostbyname=no
43414 fi
43415
43416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43417       conftest$ac_exeext conftest.$ac_ext
43418 fi
43419 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
43420 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
43421 if test $ac_cv_func_gethostbyname = yes; then
43422    cat >>confdefs.h <<\_ACEOF
43423 #define HAVE_GETHOSTBYNAME 1
43424 _ACEOF
43425
43426 fi
43427
43428       fi
43429
43430 { echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
43431 echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6; }
43432 if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
43433   echo $ECHO_N "(cached) $ECHO_C" >&6
43434 else
43435
43436                 ac_ext=cpp
43437 ac_cpp='$CXXCPP $CPPFLAGS'
43438 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43439 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43440 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43441
43442
43443         cat >conftest.$ac_ext <<_ACEOF
43444 /* confdefs.h.  */
43445 _ACEOF
43446 cat confdefs.h >>conftest.$ac_ext
43447 cat >>conftest.$ac_ext <<_ACEOF
43448 /* end confdefs.h.  */
43449 #include <netdb.h>
43450 int
43451 main ()
43452 {
43453
43454                 char *name;
43455                 char *proto;
43456                 struct servent *se, *res;
43457                 char buffer[2048];
43458                 int buflen = 2048;
43459                 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
43460
43461   ;
43462   return 0;
43463 }
43464 _ACEOF
43465 rm -f conftest.$ac_objext
43466 if { (ac_try="$ac_compile"
43467 case "(($ac_try" in
43468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43469   *) ac_try_echo=$ac_try;;
43470 esac
43471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43472   (eval "$ac_compile") 2>conftest.er1
43473   ac_status=$?
43474   grep -v '^ *+' conftest.er1 >conftest.err
43475   rm -f conftest.er1
43476   cat conftest.err >&5
43477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43478   (exit $ac_status); } && {
43479          test -z "$ac_cxx_werror_flag" ||
43480          test ! -s conftest.err
43481        } && test -s conftest.$ac_objext; then
43482   ac_cv_func_which_getservbyname_r=six
43483 else
43484   echo "$as_me: failed program was:" >&5
43485 sed 's/^/| /' conftest.$ac_ext >&5
43486
43487
43488                 cat >conftest.$ac_ext <<_ACEOF
43489 /* confdefs.h.  */
43490 _ACEOF
43491 cat confdefs.h >>conftest.$ac_ext
43492 cat >>conftest.$ac_ext <<_ACEOF
43493 /* end confdefs.h.  */
43494 #include <netdb.h>
43495 int
43496 main ()
43497 {
43498
43499                         char *name;
43500                         char *proto;
43501                         struct servent *se;
43502                         char buffer[2048];
43503                         int buflen = 2048;
43504                         (void) getservbyname_r(name, proto, se, buffer, buflen)
43505
43506   ;
43507   return 0;
43508 }
43509 _ACEOF
43510 rm -f conftest.$ac_objext
43511 if { (ac_try="$ac_compile"
43512 case "(($ac_try" in
43513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43514   *) ac_try_echo=$ac_try;;
43515 esac
43516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43517   (eval "$ac_compile") 2>conftest.er1
43518   ac_status=$?
43519   grep -v '^ *+' conftest.er1 >conftest.err
43520   rm -f conftest.er1
43521   cat conftest.err >&5
43522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43523   (exit $ac_status); } && {
43524          test -z "$ac_cxx_werror_flag" ||
43525          test ! -s conftest.err
43526        } && test -s conftest.$ac_objext; then
43527   ac_cv_func_which_getservbyname_r=five
43528 else
43529   echo "$as_me: failed program was:" >&5
43530 sed 's/^/| /' conftest.$ac_ext >&5
43531
43532
43533                         cat >conftest.$ac_ext <<_ACEOF
43534 /* confdefs.h.  */
43535 _ACEOF
43536 cat confdefs.h >>conftest.$ac_ext
43537 cat >>conftest.$ac_ext <<_ACEOF
43538 /* end confdefs.h.  */
43539 #include <netdb.h>
43540 int
43541 main ()
43542 {
43543
43544                                 char *name;
43545                                 char *proto;
43546                                 struct servent *se;
43547                                 struct servent_data data;
43548                                 (void) getservbyname_r(name, proto, se, &data);
43549
43550   ;
43551   return 0;
43552 }
43553 _ACEOF
43554 rm -f conftest.$ac_objext
43555 if { (ac_try="$ac_compile"
43556 case "(($ac_try" in
43557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43558   *) ac_try_echo=$ac_try;;
43559 esac
43560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43561   (eval "$ac_compile") 2>conftest.er1
43562   ac_status=$?
43563   grep -v '^ *+' conftest.er1 >conftest.err
43564   rm -f conftest.er1
43565   cat conftest.err >&5
43566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43567   (exit $ac_status); } && {
43568          test -z "$ac_cxx_werror_flag" ||
43569          test ! -s conftest.err
43570        } && test -s conftest.$ac_objext; then
43571   ac_cv_func_which_getservbyname_r=four
43572 else
43573   echo "$as_me: failed program was:" >&5
43574 sed 's/^/| /' conftest.$ac_ext >&5
43575
43576         ac_cv_func_which_getservbyname_r=no
43577
43578 fi
43579
43580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43581
43582
43583 fi
43584
43585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43586
43587
43588 fi
43589
43590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43591         ac_ext=c
43592 ac_cpp='$CPP $CPPFLAGS'
43593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43596
43597
43598
43599 fi
43600 { echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
43601 echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6; }
43602
43603 if test $ac_cv_func_which_getservbyname_r = six; then
43604   cat >>confdefs.h <<\_ACEOF
43605 #define HAVE_FUNC_GETSERVBYNAME_R_6 1
43606 _ACEOF
43607
43608 elif test $ac_cv_func_which_getservbyname_r = five; then
43609   cat >>confdefs.h <<\_ACEOF
43610 #define HAVE_FUNC_GETSERVBYNAME_R_5 1
43611 _ACEOF
43612
43613 elif test $ac_cv_func_which_getservbyname_r = four; then
43614   cat >>confdefs.h <<\_ACEOF
43615 #define HAVE_FUNC_GETSERVBYNAME_R_4 1
43616 _ACEOF
43617
43618 fi
43619
43620
43621       if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
43622               "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
43623
43624 for ac_func in getservbyname
43625 do
43626 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43627 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43628 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43629 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43630   echo $ECHO_N "(cached) $ECHO_C" >&6
43631 else
43632   cat >conftest.$ac_ext <<_ACEOF
43633 /* confdefs.h.  */
43634 _ACEOF
43635 cat confdefs.h >>conftest.$ac_ext
43636 cat >>conftest.$ac_ext <<_ACEOF
43637 /* end confdefs.h.  */
43638 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43639    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43640 #define $ac_func innocuous_$ac_func
43641
43642 /* System header to define __stub macros and hopefully few prototypes,
43643     which can conflict with char $ac_func (); below.
43644     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43645     <limits.h> exists even on freestanding compilers.  */
43646
43647 #ifdef __STDC__
43648 # include <limits.h>
43649 #else
43650 # include <assert.h>
43651 #endif
43652
43653 #undef $ac_func
43654
43655 /* Override any GCC internal prototype to avoid an error.
43656    Use char because int might match the return type of a GCC
43657    builtin and then its argument prototype would still apply.  */
43658 #ifdef __cplusplus
43659 extern "C"
43660 #endif
43661 char $ac_func ();
43662 /* The GNU C library defines this for functions which it implements
43663     to always fail with ENOSYS.  Some functions are actually named
43664     something starting with __ and the normal name is an alias.  */
43665 #if defined __stub_$ac_func || defined __stub___$ac_func
43666 choke me
43667 #endif
43668
43669 int
43670 main ()
43671 {
43672 return $ac_func ();
43673   ;
43674   return 0;
43675 }
43676 _ACEOF
43677 rm -f conftest.$ac_objext conftest$ac_exeext
43678 if { (ac_try="$ac_link"
43679 case "(($ac_try" in
43680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43681   *) ac_try_echo=$ac_try;;
43682 esac
43683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43684   (eval "$ac_link") 2>conftest.er1
43685   ac_status=$?
43686   grep -v '^ *+' conftest.er1 >conftest.err
43687   rm -f conftest.er1
43688   cat conftest.err >&5
43689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43690   (exit $ac_status); } && {
43691          test -z "$ac_c_werror_flag" ||
43692          test ! -s conftest.err
43693        } && test -s conftest$ac_exeext &&
43694        $as_test_x conftest$ac_exeext; then
43695   eval "$as_ac_var=yes"
43696 else
43697   echo "$as_me: failed program was:" >&5
43698 sed 's/^/| /' conftest.$ac_ext >&5
43699
43700         eval "$as_ac_var=no"
43701 fi
43702
43703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43704       conftest$ac_exeext conftest.$ac_ext
43705 fi
43706 ac_res=`eval echo '${'$as_ac_var'}'`
43707                { echo "$as_me:$LINENO: result: $ac_res" >&5
43708 echo "${ECHO_T}$ac_res" >&6; }
43709 if test `eval echo '${'$as_ac_var'}'` = yes; then
43710   cat >>confdefs.h <<_ACEOF
43711 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43712 _ACEOF
43713   cat >>confdefs.h <<\_ACEOF
43714 #define HAVE_GETSERVBYNAME 1
43715 _ACEOF
43716
43717 fi
43718 done
43719
43720       fi
43721
43722 if test "$wxUSE_THREADS" = "yes"; then
43723   cat >>confdefs.h <<\_ACEOF
43724 #define wxUSE_THREADS 1
43725 _ACEOF
43726
43727
43728   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
43729 else
43730       if test "$wx_cv_func_strtok_r" = "yes"; then
43731     { echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
43732 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6; }
43733     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
43734         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
43735         { echo "$as_me:$LINENO: result: yes" >&5
43736 echo "${ECHO_T}yes" >&6; }
43737     else
43738         { echo "$as_me:$LINENO: result: no" >&5
43739 echo "${ECHO_T}no" >&6; }
43740     fi
43741   fi
43742 fi
43743
43744 if test "$WXGTK20" = 1 ; then
43745   cat >>confdefs.h <<_ACEOF
43746 #define __WXGTK20__ $WXGTK20
43747 _ACEOF
43748
43749   WXGTK12=1
43750 fi
43751
43752 if test "$WXGTK12" = 1 ; then
43753   cat >>confdefs.h <<_ACEOF
43754 #define __WXGTK12__ $WXGTK12
43755 _ACEOF
43756
43757 fi
43758
43759 if test "$WXGTK127" = 1 ; then
43760   cat >>confdefs.h <<_ACEOF
43761 #define __WXGTK127__ $WXGTK127
43762 _ACEOF
43763
43764 fi
43765
43766 if test "$WXGPE" = 1 ; then
43767   cat >>confdefs.h <<_ACEOF
43768 #define __WXGPE__ $WXGPE
43769 _ACEOF
43770
43771 fi
43772
43773 DEBUG_CFLAGS=
43774 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
43775     DEBUG_CFLAGS="-g"
43776     wxUSE_OPTIMISE=no
43777 fi
43778
43779 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
43780     wxUSE_DEBUG_INFO=yes
43781     if test "$GCC" = yes; then
43782         DEBUG_CFLAGS="-ggdb"
43783     fi
43784 fi
43785
43786 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
43787     cat >>confdefs.h <<\_ACEOF
43788 #define WXDEBUG 1
43789 _ACEOF
43790
43791     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
43792 else
43793     if test "$wxUSE_GTK" = 1 ; then
43794         if test "x$wxGTK_VERSION" = "x1" ; then
43795             CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
43796         fi
43797     fi
43798 fi
43799
43800 if test "$wxUSE_MEM_TRACING" = "yes" ; then
43801     cat >>confdefs.h <<\_ACEOF
43802 #define wxUSE_MEMORY_TRACING 1
43803 _ACEOF
43804
43805     cat >>confdefs.h <<\_ACEOF
43806 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
43807 _ACEOF
43808
43809     cat >>confdefs.h <<\_ACEOF
43810 #define wxUSE_DEBUG_NEW_ALWAYS 1
43811 _ACEOF
43812
43813     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
43814 fi
43815
43816 if test "$wxUSE_DMALLOC" = "yes" ; then
43817     DMALLOC_LIBS="-ldmallocthcxx"
43818 fi
43819
43820 PROFILE_FLAGS=
43821 if test "$wxUSE_PROFILE" = "yes" ; then
43822     PROFILE_FLAGS=" -pg"
43823 fi
43824
43825 if test "$GCC" = "yes" ; then
43826     if test "$wxUSE_NO_RTTI" = "yes" ; then
43827         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
43828     fi
43829     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
43830         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
43831     fi
43832     if test "$wxUSE_PERMISSIVE" = "yes" ; then
43833         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
43834     fi
43835
43836                                                 case "${host}" in
43837       powerpc*-*-aix* )
43838         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
43839         ;;
43840       *-hppa* )
43841         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
43842         ;;
43843     esac
43844 fi
43845
43846 OPTIMISE_CFLAGS=
43847 if test "$wxUSE_OPTIMISE" = "no" ; then
43848     if test "$GCC" = yes ; then
43849                         OPTIMISE_CFLAGS="-O0"
43850     fi
43851 else
43852     if test "$GCC" = yes ; then
43853         case "${host}" in
43854             *-pc-os2_emx | *-pc-os2-emx )
43855                                                 OPTIMISE_CFLAGS="-O2"
43856             ;;
43857             *)
43858                                                                 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
43859             ;;
43860         esac
43861     else
43862         OPTIMISE_CFLAGS="-O"
43863     fi
43864 fi
43865
43866
43867 if test "x$WXWIN_COMPATIBILITY_2_6" = "xyes"; then
43868     cat >>confdefs.h <<\_ACEOF
43869 #define WXWIN_COMPATIBILITY_2_6 1
43870 _ACEOF
43871
43872
43873     WXWIN_COMPATIBILITY_2_8="yes"
43874 fi
43875
43876 if test "x$WXWIN_COMPATIBILITY_2_8" != "xno"; then
43877     cat >>confdefs.h <<\_ACEOF
43878 #define WXWIN_COMPATIBILITY_2_8 1
43879 _ACEOF
43880
43881 fi
43882
43883
43884 if test "$wxUSE_GUI" = "yes"; then
43885     cat >>confdefs.h <<\_ACEOF
43886 #define wxUSE_GUI 1
43887 _ACEOF
43888
43889
43890                                             fi
43891
43892
43893 if test "$wxUSE_UNIX" = "yes"; then
43894   cat >>confdefs.h <<\_ACEOF
43895 #define wxUSE_UNIX 1
43896 _ACEOF
43897
43898 fi
43899
43900
43901 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
43902
43903     HAVE_DL_FUNCS=0
43904     HAVE_SHL_FUNCS=0
43905     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
43906         if test "$USE_DARWIN" = 1; then
43907                         HAVE_DL_FUNCS=1
43908         elif test "$USE_DOS" = 1; then
43909             HAVE_DL_FUNCS=0
43910         else
43911
43912 for ac_func in dlopen
43913 do
43914 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43915 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43916 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43917 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43918   echo $ECHO_N "(cached) $ECHO_C" >&6
43919 else
43920   cat >conftest.$ac_ext <<_ACEOF
43921 /* confdefs.h.  */
43922 _ACEOF
43923 cat confdefs.h >>conftest.$ac_ext
43924 cat >>conftest.$ac_ext <<_ACEOF
43925 /* end confdefs.h.  */
43926 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43927    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43928 #define $ac_func innocuous_$ac_func
43929
43930 /* System header to define __stub macros and hopefully few prototypes,
43931     which can conflict with char $ac_func (); below.
43932     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43933     <limits.h> exists even on freestanding compilers.  */
43934
43935 #ifdef __STDC__
43936 # include <limits.h>
43937 #else
43938 # include <assert.h>
43939 #endif
43940
43941 #undef $ac_func
43942
43943 /* Override any GCC internal prototype to avoid an error.
43944    Use char because int might match the return type of a GCC
43945    builtin and then its argument prototype would still apply.  */
43946 #ifdef __cplusplus
43947 extern "C"
43948 #endif
43949 char $ac_func ();
43950 /* The GNU C library defines this for functions which it implements
43951     to always fail with ENOSYS.  Some functions are actually named
43952     something starting with __ and the normal name is an alias.  */
43953 #if defined __stub_$ac_func || defined __stub___$ac_func
43954 choke me
43955 #endif
43956
43957 int
43958 main ()
43959 {
43960 return $ac_func ();
43961   ;
43962   return 0;
43963 }
43964 _ACEOF
43965 rm -f conftest.$ac_objext conftest$ac_exeext
43966 if { (ac_try="$ac_link"
43967 case "(($ac_try" in
43968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43969   *) ac_try_echo=$ac_try;;
43970 esac
43971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43972   (eval "$ac_link") 2>conftest.er1
43973   ac_status=$?
43974   grep -v '^ *+' conftest.er1 >conftest.err
43975   rm -f conftest.er1
43976   cat conftest.err >&5
43977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43978   (exit $ac_status); } && {
43979          test -z "$ac_c_werror_flag" ||
43980          test ! -s conftest.err
43981        } && test -s conftest$ac_exeext &&
43982        $as_test_x conftest$ac_exeext; then
43983   eval "$as_ac_var=yes"
43984 else
43985   echo "$as_me: failed program was:" >&5
43986 sed 's/^/| /' conftest.$ac_ext >&5
43987
43988         eval "$as_ac_var=no"
43989 fi
43990
43991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43992       conftest$ac_exeext conftest.$ac_ext
43993 fi
43994 ac_res=`eval echo '${'$as_ac_var'}'`
43995                { echo "$as_me:$LINENO: result: $ac_res" >&5
43996 echo "${ECHO_T}$ac_res" >&6; }
43997 if test `eval echo '${'$as_ac_var'}'` = yes; then
43998   cat >>confdefs.h <<_ACEOF
43999 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44000 _ACEOF
44001
44002                 cat >>confdefs.h <<\_ACEOF
44003 #define HAVE_DLOPEN 1
44004 _ACEOF
44005
44006                 HAVE_DL_FUNCS=1
44007
44008 else
44009
44010                 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
44011 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
44012 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
44013   echo $ECHO_N "(cached) $ECHO_C" >&6
44014 else
44015   ac_check_lib_save_LIBS=$LIBS
44016 LIBS="-ldl  $LIBS"
44017 cat >conftest.$ac_ext <<_ACEOF
44018 /* confdefs.h.  */
44019 _ACEOF
44020 cat confdefs.h >>conftest.$ac_ext
44021 cat >>conftest.$ac_ext <<_ACEOF
44022 /* end confdefs.h.  */
44023
44024 /* Override any GCC internal prototype to avoid an error.
44025    Use char because int might match the return type of a GCC
44026    builtin and then its argument prototype would still apply.  */
44027 #ifdef __cplusplus
44028 extern "C"
44029 #endif
44030 char dlopen ();
44031 int
44032 main ()
44033 {
44034 return dlopen ();
44035   ;
44036   return 0;
44037 }
44038 _ACEOF
44039 rm -f conftest.$ac_objext conftest$ac_exeext
44040 if { (ac_try="$ac_link"
44041 case "(($ac_try" in
44042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44043   *) ac_try_echo=$ac_try;;
44044 esac
44045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44046   (eval "$ac_link") 2>conftest.er1
44047   ac_status=$?
44048   grep -v '^ *+' conftest.er1 >conftest.err
44049   rm -f conftest.er1
44050   cat conftest.err >&5
44051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44052   (exit $ac_status); } && {
44053          test -z "$ac_c_werror_flag" ||
44054          test ! -s conftest.err
44055        } && test -s conftest$ac_exeext &&
44056        $as_test_x conftest$ac_exeext; then
44057   ac_cv_lib_dl_dlopen=yes
44058 else
44059   echo "$as_me: failed program was:" >&5
44060 sed 's/^/| /' conftest.$ac_ext >&5
44061
44062         ac_cv_lib_dl_dlopen=no
44063 fi
44064
44065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44066       conftest$ac_exeext conftest.$ac_ext
44067 LIBS=$ac_check_lib_save_LIBS
44068 fi
44069 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
44070 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
44071 if test $ac_cv_lib_dl_dlopen = yes; then
44072
44073                                 cat >>confdefs.h <<\_ACEOF
44074 #define HAVE_DLOPEN 1
44075 _ACEOF
44076
44077                                 HAVE_DL_FUNCS=1
44078                                 DL_LINK=" -ldl$DL_LINK"
44079
44080 else
44081
44082
44083 for ac_func in shl_load
44084 do
44085 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44086 { echo "$as_me:$LINENO: checking for $ac_func" >&5
44087 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
44088 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44089   echo $ECHO_N "(cached) $ECHO_C" >&6
44090 else
44091   cat >conftest.$ac_ext <<_ACEOF
44092 /* confdefs.h.  */
44093 _ACEOF
44094 cat confdefs.h >>conftest.$ac_ext
44095 cat >>conftest.$ac_ext <<_ACEOF
44096 /* end confdefs.h.  */
44097 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44098    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44099 #define $ac_func innocuous_$ac_func
44100
44101 /* System header to define __stub macros and hopefully few prototypes,
44102     which can conflict with char $ac_func (); below.
44103     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44104     <limits.h> exists even on freestanding compilers.  */
44105
44106 #ifdef __STDC__
44107 # include <limits.h>
44108 #else
44109 # include <assert.h>
44110 #endif
44111
44112 #undef $ac_func
44113
44114 /* Override any GCC internal prototype to avoid an error.
44115    Use char because int might match the return type of a GCC
44116    builtin and then its argument prototype would still apply.  */
44117 #ifdef __cplusplus
44118 extern "C"
44119 #endif
44120 char $ac_func ();
44121 /* The GNU C library defines this for functions which it implements
44122     to always fail with ENOSYS.  Some functions are actually named
44123     something starting with __ and the normal name is an alias.  */
44124 #if defined __stub_$ac_func || defined __stub___$ac_func
44125 choke me
44126 #endif
44127
44128 int
44129 main ()
44130 {
44131 return $ac_func ();
44132   ;
44133   return 0;
44134 }
44135 _ACEOF
44136 rm -f conftest.$ac_objext conftest$ac_exeext
44137 if { (ac_try="$ac_link"
44138 case "(($ac_try" in
44139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44140   *) ac_try_echo=$ac_try;;
44141 esac
44142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44143   (eval "$ac_link") 2>conftest.er1
44144   ac_status=$?
44145   grep -v '^ *+' conftest.er1 >conftest.err
44146   rm -f conftest.er1
44147   cat conftest.err >&5
44148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44149   (exit $ac_status); } && {
44150          test -z "$ac_c_werror_flag" ||
44151          test ! -s conftest.err
44152        } && test -s conftest$ac_exeext &&
44153        $as_test_x conftest$ac_exeext; then
44154   eval "$as_ac_var=yes"
44155 else
44156   echo "$as_me: failed program was:" >&5
44157 sed 's/^/| /' conftest.$ac_ext >&5
44158
44159         eval "$as_ac_var=no"
44160 fi
44161
44162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44163       conftest$ac_exeext conftest.$ac_ext
44164 fi
44165 ac_res=`eval echo '${'$as_ac_var'}'`
44166                { echo "$as_me:$LINENO: result: $ac_res" >&5
44167 echo "${ECHO_T}$ac_res" >&6; }
44168 if test `eval echo '${'$as_ac_var'}'` = yes; then
44169   cat >>confdefs.h <<_ACEOF
44170 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44171 _ACEOF
44172
44173                                                 cat >>confdefs.h <<\_ACEOF
44174 #define HAVE_SHL_LOAD 1
44175 _ACEOF
44176
44177                                                 HAVE_SHL_FUNCS=1
44178
44179 else
44180
44181                                                 { echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
44182 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6; }
44183 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
44184   echo $ECHO_N "(cached) $ECHO_C" >&6
44185 else
44186   ac_check_lib_save_LIBS=$LIBS
44187 LIBS="-lshl_load  $LIBS"
44188 cat >conftest.$ac_ext <<_ACEOF
44189 /* confdefs.h.  */
44190 _ACEOF
44191 cat confdefs.h >>conftest.$ac_ext
44192 cat >>conftest.$ac_ext <<_ACEOF
44193 /* end confdefs.h.  */
44194
44195 /* Override any GCC internal prototype to avoid an error.
44196    Use char because int might match the return type of a GCC
44197    builtin and then its argument prototype would still apply.  */
44198 #ifdef __cplusplus
44199 extern "C"
44200 #endif
44201 char dld ();
44202 int
44203 main ()
44204 {
44205 return dld ();
44206   ;
44207   return 0;
44208 }
44209 _ACEOF
44210 rm -f conftest.$ac_objext conftest$ac_exeext
44211 if { (ac_try="$ac_link"
44212 case "(($ac_try" in
44213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44214   *) ac_try_echo=$ac_try;;
44215 esac
44216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44217   (eval "$ac_link") 2>conftest.er1
44218   ac_status=$?
44219   grep -v '^ *+' conftest.er1 >conftest.err
44220   rm -f conftest.er1
44221   cat conftest.err >&5
44222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44223   (exit $ac_status); } && {
44224          test -z "$ac_c_werror_flag" ||
44225          test ! -s conftest.err
44226        } && test -s conftest$ac_exeext &&
44227        $as_test_x conftest$ac_exeext; then
44228   ac_cv_lib_shl_load_dld=yes
44229 else
44230   echo "$as_me: failed program was:" >&5
44231 sed 's/^/| /' conftest.$ac_ext >&5
44232
44233         ac_cv_lib_shl_load_dld=no
44234 fi
44235
44236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44237       conftest$ac_exeext conftest.$ac_ext
44238 LIBS=$ac_check_lib_save_LIBS
44239 fi
44240 { echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
44241 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6; }
44242 if test $ac_cv_lib_shl_load_dld = yes; then
44243
44244                                                                 HAVE_SHL_FUNCS=1
44245                                                                 DL_LINK=" -ldld$DL_LINK"
44246
44247 fi
44248
44249
44250 fi
44251 done
44252
44253
44254 fi
44255
44256
44257 fi
44258 done
44259
44260
44261                 if test "$HAVE_DL_FUNCS" = 1; then
44262
44263 for ac_func in dlerror
44264 do
44265 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44266 { echo "$as_me:$LINENO: checking for $ac_func" >&5
44267 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
44268 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44269   echo $ECHO_N "(cached) $ECHO_C" >&6
44270 else
44271   cat >conftest.$ac_ext <<_ACEOF
44272 /* confdefs.h.  */
44273 _ACEOF
44274 cat confdefs.h >>conftest.$ac_ext
44275 cat >>conftest.$ac_ext <<_ACEOF
44276 /* end confdefs.h.  */
44277 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44278    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44279 #define $ac_func innocuous_$ac_func
44280
44281 /* System header to define __stub macros and hopefully few prototypes,
44282     which can conflict with char $ac_func (); below.
44283     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44284     <limits.h> exists even on freestanding compilers.  */
44285
44286 #ifdef __STDC__
44287 # include <limits.h>
44288 #else
44289 # include <assert.h>
44290 #endif
44291
44292 #undef $ac_func
44293
44294 /* Override any GCC internal prototype to avoid an error.
44295    Use char because int might match the return type of a GCC
44296    builtin and then its argument prototype would still apply.  */
44297 #ifdef __cplusplus
44298 extern "C"
44299 #endif
44300 char $ac_func ();
44301 /* The GNU C library defines this for functions which it implements
44302     to always fail with ENOSYS.  Some functions are actually named
44303     something starting with __ and the normal name is an alias.  */
44304 #if defined __stub_$ac_func || defined __stub___$ac_func
44305 choke me
44306 #endif
44307
44308 int
44309 main ()
44310 {
44311 return $ac_func ();
44312   ;
44313   return 0;
44314 }
44315 _ACEOF
44316 rm -f conftest.$ac_objext conftest$ac_exeext
44317 if { (ac_try="$ac_link"
44318 case "(($ac_try" in
44319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44320   *) ac_try_echo=$ac_try;;
44321 esac
44322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44323   (eval "$ac_link") 2>conftest.er1
44324   ac_status=$?
44325   grep -v '^ *+' conftest.er1 >conftest.err
44326   rm -f conftest.er1
44327   cat conftest.err >&5
44328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44329   (exit $ac_status); } && {
44330          test -z "$ac_c_werror_flag" ||
44331          test ! -s conftest.err
44332        } && test -s conftest$ac_exeext &&
44333        $as_test_x conftest$ac_exeext; then
44334   eval "$as_ac_var=yes"
44335 else
44336   echo "$as_me: failed program was:" >&5
44337 sed 's/^/| /' conftest.$ac_ext >&5
44338
44339         eval "$as_ac_var=no"
44340 fi
44341
44342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44343       conftest$ac_exeext conftest.$ac_ext
44344 fi
44345 ac_res=`eval echo '${'$as_ac_var'}'`
44346                { echo "$as_me:$LINENO: result: $ac_res" >&5
44347 echo "${ECHO_T}$ac_res" >&6; }
44348 if test `eval echo '${'$as_ac_var'}'` = yes; then
44349   cat >>confdefs.h <<_ACEOF
44350 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44351 _ACEOF
44352  cat >>confdefs.h <<\_ACEOF
44353 #define HAVE_DLERROR 1
44354 _ACEOF
44355
44356 else
44357
44358                     { echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
44359 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6; }
44360 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
44361   echo $ECHO_N "(cached) $ECHO_C" >&6
44362 else
44363   ac_check_lib_save_LIBS=$LIBS
44364 LIBS="-ldl  $LIBS"
44365 cat >conftest.$ac_ext <<_ACEOF
44366 /* confdefs.h.  */
44367 _ACEOF
44368 cat confdefs.h >>conftest.$ac_ext
44369 cat >>conftest.$ac_ext <<_ACEOF
44370 /* end confdefs.h.  */
44371
44372 /* Override any GCC internal prototype to avoid an error.
44373    Use char because int might match the return type of a GCC
44374    builtin and then its argument prototype would still apply.  */
44375 #ifdef __cplusplus
44376 extern "C"
44377 #endif
44378 char dlerror ();
44379 int
44380 main ()
44381 {
44382 return dlerror ();
44383   ;
44384   return 0;
44385 }
44386 _ACEOF
44387 rm -f conftest.$ac_objext conftest$ac_exeext
44388 if { (ac_try="$ac_link"
44389 case "(($ac_try" in
44390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44391   *) ac_try_echo=$ac_try;;
44392 esac
44393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44394   (eval "$ac_link") 2>conftest.er1
44395   ac_status=$?
44396   grep -v '^ *+' conftest.er1 >conftest.err
44397   rm -f conftest.er1
44398   cat conftest.err >&5
44399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44400   (exit $ac_status); } && {
44401          test -z "$ac_c_werror_flag" ||
44402          test ! -s conftest.err
44403        } && test -s conftest$ac_exeext &&
44404        $as_test_x conftest$ac_exeext; then
44405   ac_cv_lib_dl_dlerror=yes
44406 else
44407   echo "$as_me: failed program was:" >&5
44408 sed 's/^/| /' conftest.$ac_ext >&5
44409
44410         ac_cv_lib_dl_dlerror=no
44411 fi
44412
44413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44414       conftest$ac_exeext conftest.$ac_ext
44415 LIBS=$ac_check_lib_save_LIBS
44416 fi
44417 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
44418 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6; }
44419 if test $ac_cv_lib_dl_dlerror = yes; then
44420   cat >>confdefs.h <<\_ACEOF
44421 #define HAVE_DLERROR 1
44422 _ACEOF
44423
44424 fi
44425
44426
44427
44428 fi
44429 done
44430
44431         fi
44432         fi
44433
44434         if test "$HAVE_DL_FUNCS" = 0; then
44435             if test "$HAVE_SHL_FUNCS" = 0; then
44436               if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
44437                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
44438 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
44439                   wxUSE_DYNAMIC_LOADER=no
44440                   wxUSE_DYNLIB_CLASS=no
44441               else
44442                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
44443 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
44444               fi
44445             fi
44446         fi
44447     fi
44448 fi
44449
44450 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
44451     cat >>confdefs.h <<\_ACEOF
44452 #define wxUSE_DYNAMIC_LOADER 1
44453 _ACEOF
44454
44455 fi
44456 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
44457     cat >>confdefs.h <<\_ACEOF
44458 #define wxUSE_DYNLIB_CLASS 1
44459 _ACEOF
44460
44461 fi
44462
44463
44464
44465 if test "$wxUSE_PLUGINS" = "yes" ; then
44466     if test "$wxUSE_SHARED" = "no" ; then
44467         { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
44468 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
44469         wxUSE_PLUGINS=no
44470     fi
44471     if test "$wxUSE_MONOLITHIC" = "yes" ; then
44472         { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
44473 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
44474         wxUSE_PLUGINS=no
44475     fi
44476     if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
44477         { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
44478 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
44479         wxUSE_PLUGINS=no
44480     fi
44481     if test "$wxUSE_PLUGINS" = "yes" ; then
44482         cat >>confdefs.h <<\_ACEOF
44483 #define wxUSE_PLUGINS 1
44484 _ACEOF
44485
44486     fi
44487 fi
44488
44489
44490 if test "$wxUSE_STL" = "yes"; then
44491   cat >>confdefs.h <<\_ACEOF
44492 #define wxUSE_STL 1
44493 _ACEOF
44494
44495 fi
44496
44497 if test "$wxUSE_EXTENDED_RTTI" = "yes"; then
44498   cat >>confdefs.h <<\_ACEOF
44499 #define wxUSE_EXTENDED_RTTI 1
44500 _ACEOF
44501
44502 fi
44503
44504 if test "$wxUSE_APPLE_IEEE" = "yes"; then
44505   cat >>confdefs.h <<\_ACEOF
44506 #define wxUSE_APPLE_IEEE 1
44507 _ACEOF
44508
44509 fi
44510
44511 if test "$wxUSE_TIMER" = "yes"; then
44512   cat >>confdefs.h <<\_ACEOF
44513 #define wxUSE_TIMER 1
44514 _ACEOF
44515
44516 fi
44517
44518 if test "$USE_UNIX" = "1" ; then
44519         if test "$wxUSE_MGL" != 1; then
44520                                 { echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
44521 echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6; }
44522 if test "${ac_cv_header_sys_soundcard+set}" = set; then
44523   echo $ECHO_N "(cached) $ECHO_C" >&6
44524 else
44525
44526             cat >conftest.$ac_ext <<_ACEOF
44527 /* confdefs.h.  */
44528 _ACEOF
44529 cat confdefs.h >>conftest.$ac_ext
44530 cat >>conftest.$ac_ext <<_ACEOF
44531 /* end confdefs.h.  */
44532
44533                     #include <sys/ioctl.h>
44534                     #include <sys/soundcard.h>
44535
44536 int
44537 main ()
44538 {
44539
44540                     ioctl(0, SNDCTL_DSP_SPEED, 0);
44541
44542   ;
44543   return 0;
44544 }
44545 _ACEOF
44546 rm -f conftest.$ac_objext conftest$ac_exeext
44547 if { (ac_try="$ac_link"
44548 case "(($ac_try" in
44549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44550   *) ac_try_echo=$ac_try;;
44551 esac
44552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44553   (eval "$ac_link") 2>conftest.er1
44554   ac_status=$?
44555   grep -v '^ *+' conftest.er1 >conftest.err
44556   rm -f conftest.er1
44557   cat conftest.err >&5
44558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44559   (exit $ac_status); } && {
44560          test -z "$ac_c_werror_flag" ||
44561          test ! -s conftest.err
44562        } && test -s conftest$ac_exeext &&
44563        $as_test_x conftest$ac_exeext; then
44564   ac_cv_header_sys_soundcard=yes
44565 else
44566   echo "$as_me: failed program was:" >&5
44567 sed 's/^/| /' conftest.$ac_ext >&5
44568
44569
44570                     saveLibs="$LIBS"
44571                     LIBS="$saveLibs -lossaudio"
44572                     cat >conftest.$ac_ext <<_ACEOF
44573 /* confdefs.h.  */
44574 _ACEOF
44575 cat confdefs.h >>conftest.$ac_ext
44576 cat >>conftest.$ac_ext <<_ACEOF
44577 /* end confdefs.h.  */
44578
44579                             #include <sys/ioctl.h>
44580                             #include <sys/soundcard.h>
44581
44582 int
44583 main ()
44584 {
44585
44586                             ioctl(0, SNDCTL_DSP_SPEED, 0);
44587
44588   ;
44589   return 0;
44590 }
44591 _ACEOF
44592 rm -f conftest.$ac_objext conftest$ac_exeext
44593 if { (ac_try="$ac_link"
44594 case "(($ac_try" in
44595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44596   *) ac_try_echo=$ac_try;;
44597 esac
44598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44599   (eval "$ac_link") 2>conftest.er1
44600   ac_status=$?
44601   grep -v '^ *+' conftest.er1 >conftest.err
44602   rm -f conftest.er1
44603   cat conftest.err >&5
44604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44605   (exit $ac_status); } && {
44606          test -z "$ac_c_werror_flag" ||
44607          test ! -s conftest.err
44608        } && test -s conftest$ac_exeext &&
44609        $as_test_x conftest$ac_exeext; then
44610   ac_cv_header_sys_soundcard=yes
44611 else
44612   echo "$as_me: failed program was:" >&5
44613 sed 's/^/| /' conftest.$ac_ext >&5
44614
44615
44616                             LIBS="$saveLibs"
44617                             ac_cv_header_sys_soundcard=no
44618
44619
44620 fi
44621
44622 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44623       conftest$ac_exeext conftest.$ac_ext
44624
44625
44626 fi
44627
44628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44629       conftest$ac_exeext conftest.$ac_ext
44630
44631 fi
44632 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
44633 echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6; }
44634     fi
44635
44636     if test "$ac_cv_header_sys_soundcard" = "yes"; then
44637         cat >>confdefs.h <<\_ACEOF
44638 #define HAVE_SYS_SOUNDCARD_H 1
44639 _ACEOF
44640
44641     fi
44642 fi
44643
44644 WITH_PLUGIN_SDL=0
44645 if test "$wxUSE_SOUND" = "yes"; then
44646   if test "$USE_UNIX" = "1" ; then
44647     if test "$wxUSE_LIBSDL" != "no"; then
44648
44649 # Check whether --with-sdl-prefix was given.
44650 if test "${with_sdl_prefix+set}" = set; then
44651   withval=$with_sdl_prefix; sdl_prefix="$withval"
44652 else
44653   sdl_prefix=""
44654 fi
44655
44656
44657 # Check whether --with-sdl-exec-prefix was given.
44658 if test "${with_sdl_exec_prefix+set}" = set; then
44659   withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
44660 else
44661   sdl_exec_prefix=""
44662 fi
44663
44664 # Check whether --enable-sdltest was given.
44665 if test "${enable_sdltest+set}" = set; then
44666   enableval=$enable_sdltest;
44667 else
44668   enable_sdltest=yes
44669 fi
44670
44671
44672   if test x$sdl_exec_prefix != x ; then
44673     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
44674     if test x${SDL_CONFIG+set} != xset ; then
44675       SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
44676     fi
44677   fi
44678   if test x$sdl_prefix != x ; then
44679     sdl_args="$sdl_args --prefix=$sdl_prefix"
44680     if test x${SDL_CONFIG+set} != xset ; then
44681       SDL_CONFIG=$sdl_prefix/bin/sdl-config
44682     fi
44683   fi
44684
44685   if test "x$prefix" != xNONE; then
44686     PATH="$prefix/bin:$prefix/usr/bin:$PATH"
44687   fi
44688   # Extract the first word of "sdl-config", so it can be a program name with args.
44689 set dummy sdl-config; ac_word=$2
44690 { echo "$as_me:$LINENO: checking for $ac_word" >&5
44691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
44692 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
44693   echo $ECHO_N "(cached) $ECHO_C" >&6
44694 else
44695   case $SDL_CONFIG in
44696   [\\/]* | ?:[\\/]*)
44697   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
44698   ;;
44699   *)
44700   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44701 for as_dir in $PATH
44702 do
44703   IFS=$as_save_IFS
44704   test -z "$as_dir" && as_dir=.
44705   for ac_exec_ext in '' $ac_executable_extensions; do
44706   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44707     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44708     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44709     break 2
44710   fi
44711 done
44712 done
44713 IFS=$as_save_IFS
44714
44715   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
44716   ;;
44717 esac
44718 fi
44719 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
44720 if test -n "$SDL_CONFIG"; then
44721   { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
44722 echo "${ECHO_T}$SDL_CONFIG" >&6; }
44723 else
44724   { echo "$as_me:$LINENO: result: no" >&5
44725 echo "${ECHO_T}no" >&6; }
44726 fi
44727
44728
44729   min_sdl_version=1.2.0
44730   { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
44731 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
44732   no_sdl=""
44733   if test "$SDL_CONFIG" = "no" ; then
44734     no_sdl=yes
44735   else
44736     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
44737     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
44738
44739     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
44740            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
44741     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
44742            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
44743     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
44744            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
44745     if test "x$enable_sdltest" = "xyes" ; then
44746       ac_save_CFLAGS="$CFLAGS"
44747       ac_save_CXXFLAGS="$CXXFLAGS"
44748       ac_save_LIBS="$LIBS"
44749       CFLAGS="$CFLAGS $SDL_CFLAGS"
44750       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
44751       LIBS="$LIBS $SDL_LIBS"
44752       rm -f conf.sdltest
44753       if test "$cross_compiling" = yes; then
44754   echo $ac_n "cross compiling; assumed OK... $ac_c"
44755 else
44756   cat >conftest.$ac_ext <<_ACEOF
44757 /* confdefs.h.  */
44758 _ACEOF
44759 cat confdefs.h >>conftest.$ac_ext
44760 cat >>conftest.$ac_ext <<_ACEOF
44761 /* end confdefs.h.  */
44762
44763 #include <stdio.h>
44764 #include <stdlib.h>
44765 #include <string.h>
44766 #include "SDL.h"
44767
44768 char*
44769 my_strdup (char *str)
44770 {
44771   char *new_str;
44772
44773   if (str)
44774     {
44775       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
44776       strcpy (new_str, str);
44777     }
44778   else
44779     new_str = NULL;
44780
44781   return new_str;
44782 }
44783
44784 int main (int argc, char *argv[])
44785 {
44786   int major, minor, micro;
44787   char *tmp_version;
44788
44789   /* This hangs on some systems (?)
44790   system ("touch conf.sdltest");
44791   */
44792   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
44793
44794   /* HP/UX 9 (%@#!) writes to sscanf strings */
44795   tmp_version = my_strdup("$min_sdl_version");
44796   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
44797      printf("%s, bad version string\n", "$min_sdl_version");
44798      exit(1);
44799    }
44800
44801    if (($sdl_major_version > major) ||
44802       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
44803       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
44804     {
44805       return 0;
44806     }
44807   else
44808     {
44809       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
44810       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
44811       printf("*** best to upgrade to the required version.\n");
44812       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
44813       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
44814       printf("*** config.cache before re-running configure\n");
44815       return 1;
44816     }
44817 }
44818
44819
44820 _ACEOF
44821 rm -f conftest$ac_exeext
44822 if { (ac_try="$ac_link"
44823 case "(($ac_try" in
44824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44825   *) ac_try_echo=$ac_try;;
44826 esac
44827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44828   (eval "$ac_link") 2>&5
44829   ac_status=$?
44830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44831   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44832   { (case "(($ac_try" in
44833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44834   *) ac_try_echo=$ac_try;;
44835 esac
44836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44837   (eval "$ac_try") 2>&5
44838   ac_status=$?
44839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44840   (exit $ac_status); }; }; then
44841   :
44842 else
44843   echo "$as_me: program exited with status $ac_status" >&5
44844 echo "$as_me: failed program was:" >&5
44845 sed 's/^/| /' conftest.$ac_ext >&5
44846
44847 ( exit $ac_status )
44848 no_sdl=yes
44849 fi
44850 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44851 fi
44852
44853
44854        CFLAGS="$ac_save_CFLAGS"
44855        CXXFLAGS="$ac_save_CXXFLAGS"
44856        LIBS="$ac_save_LIBS"
44857      fi
44858   fi
44859   if test "x$no_sdl" = x ; then
44860      { echo "$as_me:$LINENO: result: yes" >&5
44861 echo "${ECHO_T}yes" >&6; }
44862
44863                     EXTRALIBS_SDL="$SDL_LIBS"
44864                     CFLAGS="$SDL_CFLAGS $CFLAGS"
44865                     CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
44866                     cat >>confdefs.h <<\_ACEOF
44867 #define wxUSE_LIBSDL 1
44868 _ACEOF
44869
44870
44871   else
44872      { echo "$as_me:$LINENO: result: no" >&5
44873 echo "${ECHO_T}no" >&6; }
44874      if test "$SDL_CONFIG" = "no" ; then
44875        echo "*** The sdl-config script installed by SDL could not be found"
44876        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
44877        echo "*** your path, or set the SDL_CONFIG environment variable to the"
44878        echo "*** full path to sdl-config."
44879      else
44880        if test -f conf.sdltest ; then
44881         :
44882        else
44883           echo "*** Could not run SDL test program, checking why..."
44884           CFLAGS="$CFLAGS $SDL_CFLAGS"
44885           CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
44886           LIBS="$LIBS $SDL_LIBS"
44887           cat >conftest.$ac_ext <<_ACEOF
44888 /* confdefs.h.  */
44889 _ACEOF
44890 cat confdefs.h >>conftest.$ac_ext
44891 cat >>conftest.$ac_ext <<_ACEOF
44892 /* end confdefs.h.  */
44893
44894 #include <stdio.h>
44895 #include "SDL.h"
44896
44897 int main(int argc, char *argv[])
44898 { return 0; }
44899 #undef  main
44900 #define main K_and_R_C_main
44901
44902 int
44903 main ()
44904 {
44905  return 0;
44906   ;
44907   return 0;
44908 }
44909 _ACEOF
44910 rm -f conftest.$ac_objext conftest$ac_exeext
44911 if { (ac_try="$ac_link"
44912 case "(($ac_try" in
44913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44914   *) ac_try_echo=$ac_try;;
44915 esac
44916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44917   (eval "$ac_link") 2>conftest.er1
44918   ac_status=$?
44919   grep -v '^ *+' conftest.er1 >conftest.err
44920   rm -f conftest.er1
44921   cat conftest.err >&5
44922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44923   (exit $ac_status); } && {
44924          test -z "$ac_c_werror_flag" ||
44925          test ! -s conftest.err
44926        } && test -s conftest$ac_exeext &&
44927        $as_test_x conftest$ac_exeext; then
44928    echo "*** The test program compiled, but did not run. This usually means"
44929           echo "*** that the run-time linker is not finding SDL or finding the wrong"
44930           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
44931           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
44932           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
44933           echo "*** is required on your system"
44934           echo "***"
44935           echo "*** If you have an old version installed, it is best to remove it, although"
44936           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
44937 else
44938   echo "$as_me: failed program was:" >&5
44939 sed 's/^/| /' conftest.$ac_ext >&5
44940
44941          echo "*** The test program failed to compile or link. See the file config.log for the"
44942           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
44943           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
44944           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
44945 fi
44946
44947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44948       conftest$ac_exeext conftest.$ac_ext
44949           CFLAGS="$ac_save_CFLAGS"
44950           CXXFLAGS="$ac_save_CXXFLAGS"
44951           LIBS="$ac_save_LIBS"
44952        fi
44953      fi
44954      SDL_CFLAGS=""
44955      SDL_LIBS=""
44956      wxUSE_LIBSDL="no"
44957   fi
44958
44959
44960   rm -f conf.sdltest
44961
44962       if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
44963         WITH_PLUGIN_SDL=1
44964       fi
44965     fi
44966   else
44967         if test "$wxUSE_MGL" = 1; then
44968         { echo "$as_me:$LINENO: WARNING: wxSound not supported in MGL under DOS... disabled" >&5
44969 echo "$as_me: WARNING: wxSound not supported in MGL under DOS... disabled" >&2;}
44970         wxUSE_SOUND="no"
44971     fi
44972   fi
44973 fi
44974
44975 if test "$wxUSE_SOUND" = "yes"; then
44976   cat >>confdefs.h <<\_ACEOF
44977 #define wxUSE_SOUND 1
44978 _ACEOF
44979
44980   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
44981 fi
44982
44983 if test "$WXGTK20" = 1; then
44984
44985
44986 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
44987         if test -n "$ac_tool_prefix"; then
44988   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
44989 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
44990 { echo "$as_me:$LINENO: checking for $ac_word" >&5
44991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
44992 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
44993   echo $ECHO_N "(cached) $ECHO_C" >&6
44994 else
44995   case $PKG_CONFIG in
44996   [\\/]* | ?:[\\/]*)
44997   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
44998   ;;
44999   *)
45000   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45001 for as_dir in $PATH
45002 do
45003   IFS=$as_save_IFS
45004   test -z "$as_dir" && as_dir=.
45005   for ac_exec_ext in '' $ac_executable_extensions; do
45006   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45007     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
45008     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45009     break 2
45010   fi
45011 done
45012 done
45013 IFS=$as_save_IFS
45014
45015   ;;
45016 esac
45017 fi
45018 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
45019 if test -n "$PKG_CONFIG"; then
45020   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
45021 echo "${ECHO_T}$PKG_CONFIG" >&6; }
45022 else
45023   { echo "$as_me:$LINENO: result: no" >&5
45024 echo "${ECHO_T}no" >&6; }
45025 fi
45026
45027
45028 fi
45029 if test -z "$ac_cv_path_PKG_CONFIG"; then
45030   ac_pt_PKG_CONFIG=$PKG_CONFIG
45031   # Extract the first word of "pkg-config", so it can be a program name with args.
45032 set dummy pkg-config; ac_word=$2
45033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
45034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
45035 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
45036   echo $ECHO_N "(cached) $ECHO_C" >&6
45037 else
45038   case $ac_pt_PKG_CONFIG in
45039   [\\/]* | ?:[\\/]*)
45040   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
45041   ;;
45042   *)
45043   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45044 for as_dir in $PATH
45045 do
45046   IFS=$as_save_IFS
45047   test -z "$as_dir" && as_dir=.
45048   for ac_exec_ext in '' $ac_executable_extensions; do
45049   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45050     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
45051     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45052     break 2
45053   fi
45054 done
45055 done
45056 IFS=$as_save_IFS
45057
45058   ;;
45059 esac
45060 fi
45061 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
45062 if test -n "$ac_pt_PKG_CONFIG"; then
45063   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
45064 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
45065 else
45066   { echo "$as_me:$LINENO: result: no" >&5
45067 echo "${ECHO_T}no" >&6; }
45068 fi
45069
45070   if test "x$ac_pt_PKG_CONFIG" = x; then
45071     PKG_CONFIG=""
45072   else
45073     case $cross_compiling:$ac_tool_warned in
45074 yes:)
45075 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
45076 whose name does not start with the host triplet.  If you think this
45077 configuration is useful to you, please write to autoconf@gnu.org." >&5
45078 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
45079 whose name does not start with the host triplet.  If you think this
45080 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
45081 ac_tool_warned=yes ;;
45082 esac
45083     PKG_CONFIG=$ac_pt_PKG_CONFIG
45084   fi
45085 else
45086   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
45087 fi
45088
45089 fi
45090 if test -n "$PKG_CONFIG"; then
45091         _pkg_min_version=0.9.0
45092         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
45093 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
45094         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
45095                 { echo "$as_me:$LINENO: result: yes" >&5
45096 echo "${ECHO_T}yes" >&6; }
45097         else
45098                 { echo "$as_me:$LINENO: result: no" >&5
45099 echo "${ECHO_T}no" >&6; }
45100                 PKG_CONFIG=""
45101         fi
45102
45103 fi
45104
45105     if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
45106         if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
45107
45108
45109 pkg_failed=no
45110 { echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
45111 echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6; }
45112
45113 if test -n "$PKG_CONFIG"; then
45114     if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
45115         pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
45116     else
45117         if test -n "$PKG_CONFIG" && \
45118     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
45119   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
45120   ac_status=$?
45121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45122   (exit $ac_status); }; then
45123   pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
45124 else
45125   pkg_failed=yes
45126 fi
45127     fi
45128 else
45129         pkg_failed=untried
45130 fi
45131 if test -n "$PKG_CONFIG"; then
45132     if test -n "$LIBGNOMEPRINTUI_LIBS"; then
45133         pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
45134     else
45135         if test -n "$PKG_CONFIG" && \
45136     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
45137   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
45138   ac_status=$?
45139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45140   (exit $ac_status); }; then
45141   pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
45142 else
45143   pkg_failed=yes
45144 fi
45145     fi
45146 else
45147         pkg_failed=untried
45148 fi
45149
45150
45151
45152 if test $pkg_failed = yes; then
45153
45154 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45155         _pkg_short_errors_supported=yes
45156 else
45157         _pkg_short_errors_supported=no
45158 fi
45159         if test $_pkg_short_errors_supported = yes; then
45160                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
45161         else
45162                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
45163         fi
45164         # Put the nasty error message in config.log where it belongs
45165         echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
45166
45167
45168                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
45169 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
45170                         wxUSE_LIBGNOMEPRINT="no"
45171
45172
45173 elif test $pkg_failed = untried; then
45174
45175                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
45176 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
45177                         wxUSE_LIBGNOMEPRINT="no"
45178
45179
45180 else
45181         LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
45182         LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
45183         { echo "$as_me:$LINENO: result: yes" >&5
45184 echo "${ECHO_T}yes" >&6; }
45185
45186                         CFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CFLAGS"
45187                         CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
45188                         cat >>confdefs.h <<\_ACEOF
45189 #define wxUSE_LIBGNOMEPRINT 1
45190 _ACEOF
45191
45192
45193 fi
45194         fi
45195     fi
45196
45197     if test "$wxUSE_MIMETYPE" = "yes" ; then
45198         if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
45199
45200
45201 pkg_failed=no
45202 { echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
45203 echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6; }
45204
45205 if test -n "$PKG_CONFIG"; then
45206     if test -n "$GNOMEVFS_CFLAGS"; then
45207         pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
45208     else
45209         if test -n "$PKG_CONFIG" && \
45210     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
45211   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
45212   ac_status=$?
45213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45214   (exit $ac_status); }; then
45215   pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
45216 else
45217   pkg_failed=yes
45218 fi
45219     fi
45220 else
45221         pkg_failed=untried
45222 fi
45223 if test -n "$PKG_CONFIG"; then
45224     if test -n "$GNOMEVFS_LIBS"; then
45225         pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
45226     else
45227         if test -n "$PKG_CONFIG" && \
45228     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
45229   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
45230   ac_status=$?
45231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45232   (exit $ac_status); }; then
45233   pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
45234 else
45235   pkg_failed=yes
45236 fi
45237     fi
45238 else
45239         pkg_failed=untried
45240 fi
45241
45242
45243
45244 if test $pkg_failed = yes; then
45245
45246 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45247         _pkg_short_errors_supported=yes
45248 else
45249         _pkg_short_errors_supported=no
45250 fi
45251         if test $_pkg_short_errors_supported = yes; then
45252                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
45253         else
45254                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
45255         fi
45256         # Put the nasty error message in config.log where it belongs
45257         echo "$GNOMEVFS_PKG_ERRORS" >&5
45258
45259
45260                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
45261 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
45262                         wxUSE_LIBGNOMEVFS="no"
45263
45264
45265 elif test $pkg_failed = untried; then
45266
45267                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
45268 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
45269                         wxUSE_LIBGNOMEVFS="no"
45270
45271
45272 else
45273         GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
45274         GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
45275         { echo "$as_me:$LINENO: result: yes" >&5
45276 echo "${ECHO_T}yes" >&6; }
45277
45278                         CFLAGS="$GNOMEVFS_CFLAGS $CFLAGS"
45279                         CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
45280                         cat >>confdefs.h <<\_ACEOF
45281 #define wxUSE_LIBGNOMEVFS 1
45282 _ACEOF
45283
45284
45285 fi
45286         fi
45287     fi
45288
45289     if test "$wxUSE_LIBHILDON" = "yes" ; then
45290
45291 pkg_failed=no
45292 { echo "$as_me:$LINENO: checking for HILDON" >&5
45293 echo $ECHO_N "checking for HILDON... $ECHO_C" >&6; }
45294
45295 if test -n "$PKG_CONFIG"; then
45296     if test -n "$HILDON_CFLAGS"; then
45297         pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
45298     else
45299         if test -n "$PKG_CONFIG" && \
45300     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
45301   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
45302   ac_status=$?
45303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45304   (exit $ac_status); }; then
45305   pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
45306 else
45307   pkg_failed=yes
45308 fi
45309     fi
45310 else
45311         pkg_failed=untried
45312 fi
45313 if test -n "$PKG_CONFIG"; then
45314     if test -n "$HILDON_LIBS"; then
45315         pkg_cv_HILDON_LIBS="$HILDON_LIBS"
45316     else
45317         if test -n "$PKG_CONFIG" && \
45318     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
45319   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
45320   ac_status=$?
45321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45322   (exit $ac_status); }; then
45323   pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
45324 else
45325   pkg_failed=yes
45326 fi
45327     fi
45328 else
45329         pkg_failed=untried
45330 fi
45331
45332
45333
45334 if test $pkg_failed = yes; then
45335
45336 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45337         _pkg_short_errors_supported=yes
45338 else
45339         _pkg_short_errors_supported=no
45340 fi
45341         if test $_pkg_short_errors_supported = yes; then
45342                 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
45343         else
45344                 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
45345         fi
45346         # Put the nasty error message in config.log where it belongs
45347         echo "$HILDON_PKG_ERRORS" >&5
45348
45349
45350                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
45351 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
45352                         wxUSE_LIBHILDON="no"
45353
45354
45355 elif test $pkg_failed = untried; then
45356
45357                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
45358 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
45359                         wxUSE_LIBHILDON="no"
45360
45361
45362 else
45363         HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
45364         HILDON_LIBS=$pkg_cv_HILDON_LIBS
45365         { echo "$as_me:$LINENO: result: yes" >&5
45366 echo "${ECHO_T}yes" >&6; }
45367
45368                 EXTRALIBS_HILDON="$HILDON_LIBS"
45369                 CFLAGS="$CFLAGS $HILDON_CFLAGS"
45370                 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
45371                 cat >>confdefs.h <<\_ACEOF
45372 #define wxUSE_LIBHILDON 1
45373 _ACEOF
45374
45375
45376 fi
45377     fi
45378 fi
45379
45380 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
45381   cat >>confdefs.h <<\_ACEOF
45382 #define wxUSE_CMDLINE_PARSER 1
45383 _ACEOF
45384
45385 fi
45386
45387 if test "$wxUSE_STOPWATCH" = "yes"; then
45388   cat >>confdefs.h <<\_ACEOF
45389 #define wxUSE_STOPWATCH 1
45390 _ACEOF
45391
45392 fi
45393
45394 if test "$wxUSE_DATETIME" = "yes"; then
45395   cat >>confdefs.h <<\_ACEOF
45396 #define wxUSE_DATETIME 1
45397 _ACEOF
45398
45399 fi
45400
45401 if test "$wxUSE_FILE" = "yes"; then
45402   cat >>confdefs.h <<\_ACEOF
45403 #define wxUSE_FILE 1
45404 _ACEOF
45405
45406 fi
45407
45408 if test "$wxUSE_FFILE" = "yes"; then
45409   cat >>confdefs.h <<\_ACEOF
45410 #define wxUSE_FFILE 1
45411 _ACEOF
45412
45413 fi
45414
45415 if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
45416   if test "$wxUSE_STREAMS" != yes; then
45417     { echo "$as_me:$LINENO: WARNING: wxArchive requires wxStreams... disabled" >&5
45418 echo "$as_me: WARNING: wxArchive requires wxStreams... disabled" >&2;}
45419     wxUSE_ARCHIVE_STREAMS=no
45420   else
45421     cat >>confdefs.h <<\_ACEOF
45422 #define wxUSE_ARCHIVE_STREAMS 1
45423 _ACEOF
45424
45425   fi
45426 fi
45427
45428 if test "$wxUSE_ZIPSTREAM" = "yes"; then
45429   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
45430     { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
45431 echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
45432   elif test "$wxUSE_ZLIB" = "no"; then
45433     { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
45434 echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
45435   else
45436     cat >>confdefs.h <<\_ACEOF
45437 #define wxUSE_ZIPSTREAM 1
45438 _ACEOF
45439
45440   fi
45441 fi
45442
45443 if test "$wxUSE_TARSTREAM" = "yes"; then
45444   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
45445     { echo "$as_me:$LINENO: WARNING: wxTar requires wxArchive... disabled" >&5
45446 echo "$as_me: WARNING: wxTar requires wxArchive... disabled" >&2;}
45447   else
45448     cat >>confdefs.h <<\_ACEOF
45449 #define wxUSE_TARSTREAM 1
45450 _ACEOF
45451
45452   fi
45453 fi
45454
45455 if test "$wxUSE_FILESYSTEM" = "yes"; then
45456   if test "$wxUSE_STREAMS" != yes -o \( "$wxUSE_FILE" != yes -a "$wxUSE_FFILE" != yes \); then
45457     { echo "$as_me:$LINENO: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&5
45458 echo "$as_me: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&2;}
45459     wxUSE_FILESYSTEM=no
45460   else
45461     cat >>confdefs.h <<\_ACEOF
45462 #define wxUSE_FILESYSTEM 1
45463 _ACEOF
45464
45465   fi
45466 fi
45467
45468 if test "$wxUSE_FS_ARCHIVE" = "yes"; then
45469   if test "$wxUSE_FILESYSTEM" != yes -o "$wxUSE_ARCHIVE_STREAMS" != yes; then
45470     { echo "$as_me:$LINENO: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&5
45471 echo "$as_me: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&2;}
45472   else
45473     cat >>confdefs.h <<\_ACEOF
45474 #define wxUSE_FS_ARCHIVE 1
45475 _ACEOF
45476
45477   fi
45478 fi
45479
45480 if test "$wxUSE_FS_ZIP" = "yes"; then
45481   if test "$wxUSE_FS_ARCHIVE" != yes; then
45482     { echo "$as_me:$LINENO: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&5
45483 echo "$as_me: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&2;}
45484   else
45485     cat >>confdefs.h <<\_ACEOF
45486 #define wxUSE_FS_ZIP 1
45487 _ACEOF
45488
45489   fi
45490 fi
45491
45492 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
45493   if test "$USE_UNIX" != 1; then
45494     { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
45495 echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
45496     wxUSE_ON_FATAL_EXCEPTION=no
45497   else
45498     cat >>confdefs.h <<\_ACEOF
45499 #define wxUSE_ON_FATAL_EXCEPTION 1
45500 _ACEOF
45501
45502   fi
45503 fi
45504
45505 if test "$wxUSE_STACKWALKER" = "yes"; then
45506     cat >>confdefs.h <<\_ACEOF
45507 #define wxUSE_STACKWALKER 1
45508 _ACEOF
45509
45510 fi
45511
45512 if test "$wxUSE_DEBUGREPORT" = "yes"; then
45513     if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
45514         { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
45515 echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
45516         wxUSE_DEBUGREPORT=no
45517     else
45518         cat >>confdefs.h <<\_ACEOF
45519 #define wxUSE_DEBUGREPORT 1
45520 _ACEOF
45521
45522         if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
45523             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
45524         fi
45525     fi
45526 fi
45527
45528 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
45529   cat >>confdefs.h <<\_ACEOF
45530 #define wxUSE_SNGLINST_CHECKER 1
45531 _ACEOF
45532
45533 fi
45534
45535 if test "$wxUSE_BUSYINFO" = "yes"; then
45536   cat >>confdefs.h <<\_ACEOF
45537 #define wxUSE_BUSYINFO 1
45538 _ACEOF
45539
45540 fi
45541
45542 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
45543   cat >>confdefs.h <<\_ACEOF
45544 #define wxUSE_STD_IOSTREAM 1
45545 _ACEOF
45546
45547 fi
45548
45549 if test "$wxUSE_STD_STRING" = "yes"; then
45550   cat >>confdefs.h <<\_ACEOF
45551 #define wxUSE_STD_STRING 1
45552 _ACEOF
45553
45554 fi
45555
45556 if test "$wxUSE_STDPATHS" = "yes"; then
45557   cat >>confdefs.h <<\_ACEOF
45558 #define wxUSE_STDPATHS 1
45559 _ACEOF
45560
45561 fi
45562
45563 if test "$wxUSE_TEXTBUFFER" = "yes"; then
45564     cat >>confdefs.h <<\_ACEOF
45565 #define wxUSE_TEXTBUFFER 1
45566 _ACEOF
45567
45568 fi
45569
45570 if test "$wxUSE_TEXTFILE" = "yes"; then
45571   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
45572     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
45573 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
45574   else
45575     cat >>confdefs.h <<\_ACEOF
45576 #define wxUSE_TEXTFILE 1
45577 _ACEOF
45578
45579   fi
45580 fi
45581
45582 if test "$wxUSE_CONFIG" = "yes" ; then
45583   if test "$wxUSE_TEXTFILE" != "yes"; then
45584     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
45585 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
45586   else
45587     cat >>confdefs.h <<\_ACEOF
45588 #define wxUSE_CONFIG 1
45589 _ACEOF
45590
45591     cat >>confdefs.h <<\_ACEOF
45592 #define wxUSE_CONFIG_NATIVE 1
45593 _ACEOF
45594
45595     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
45596   fi
45597 fi
45598
45599 if test "$wxUSE_INTL" = "yes" ; then
45600   if test "$wxUSE_FILE" != "yes"; then
45601     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
45602 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
45603   else
45604     cat >>confdefs.h <<\_ACEOF
45605 #define wxUSE_INTL 1
45606 _ACEOF
45607
45608     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
45609     GUIDIST="$GUIDIST INTL_DIST"
45610   fi
45611 fi
45612
45613 if test "$wxUSE_LOG" = "yes"; then
45614   cat >>confdefs.h <<\_ACEOF
45615 #define wxUSE_LOG 1
45616 _ACEOF
45617
45618
45619     if test "$wxUSE_LOGGUI" = "yes"; then
45620       cat >>confdefs.h <<\_ACEOF
45621 #define wxUSE_LOGGUI 1
45622 _ACEOF
45623
45624     fi
45625
45626     if test "$wxUSE_LOGWINDOW" = "yes"; then
45627       cat >>confdefs.h <<\_ACEOF
45628 #define wxUSE_LOGWINDOW 1
45629 _ACEOF
45630
45631     fi
45632
45633     if test "$wxUSE_LOGDIALOG" = "yes"; then
45634       cat >>confdefs.h <<\_ACEOF
45635 #define wxUSE_LOG_DIALOG 1
45636 _ACEOF
45637
45638     fi
45639
45640         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
45641 fi
45642
45643 if test "$wxUSE_LONGLONG" = "yes"; then
45644   cat >>confdefs.h <<\_ACEOF
45645 #define wxUSE_LONGLONG 1
45646 _ACEOF
45647
45648 fi
45649
45650 if test "$wxUSE_GEOMETRY" = "yes"; then
45651   cat >>confdefs.h <<\_ACEOF
45652 #define wxUSE_GEOMETRY 1
45653 _ACEOF
45654
45655 fi
45656
45657 if test "$wxUSE_BASE64" = "yes"; then
45658   cat >>confdefs.h <<\_ACEOF
45659 #define wxUSE_BASE64 1
45660 _ACEOF
45661
45662 fi
45663
45664 if test "$wxUSE_STREAMS" = "yes" ; then
45665   cat >>confdefs.h <<\_ACEOF
45666 #define wxUSE_STREAMS 1
45667 _ACEOF
45668
45669 fi
45670
45671 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
45672   cat >>confdefs.h <<\_ACEOF
45673 #define wxUSE_PRINTF_POS_PARAMS 1
45674 _ACEOF
45675
45676 fi
45677
45678 if test "$wxUSE_OBJC_UNIQUIFYING" = "yes"; then
45679   cat >>confdefs.h <<\_ACEOF
45680 #define wxUSE_OBJC_UNIQUIFYING 1
45681 _ACEOF
45682
45683 fi
45684
45685
45686 if test "$wxUSE_CONSOLE_EVENTLOOP" = "yes"; then
45687     cat >>confdefs.h <<\_ACEOF
45688 #define wxUSE_CONSOLE_EVENTLOOP 1
45689 _ACEOF
45690
45691
45692     if test "$wxUSE_UNIX" = "yes"; then
45693         if test "$wxUSE_SELECT_DISPATCHER" = "yes"; then
45694             cat >>confdefs.h <<\_ACEOF
45695 #define wxUSE_SELECT_DISPATCHER 1
45696 _ACEOF
45697
45698         fi
45699
45700         if test "$wxUSE_EPOLL_DISPATCHER" = "yes"; then
45701
45702 for ac_header in sys/epoll.h
45703 do
45704 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45705 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45706   { echo "$as_me:$LINENO: checking for $ac_header" >&5
45707 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
45708 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45709   echo $ECHO_N "(cached) $ECHO_C" >&6
45710 fi
45711 ac_res=`eval echo '${'$as_ac_Header'}'`
45712                { echo "$as_me:$LINENO: result: $ac_res" >&5
45713 echo "${ECHO_T}$ac_res" >&6; }
45714 else
45715   # Is the header compilable?
45716 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
45717 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
45718 cat >conftest.$ac_ext <<_ACEOF
45719 /* confdefs.h.  */
45720 _ACEOF
45721 cat confdefs.h >>conftest.$ac_ext
45722 cat >>conftest.$ac_ext <<_ACEOF
45723 /* end confdefs.h.  */
45724 $ac_includes_default
45725 #include <$ac_header>
45726 _ACEOF
45727 rm -f conftest.$ac_objext
45728 if { (ac_try="$ac_compile"
45729 case "(($ac_try" in
45730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45731   *) ac_try_echo=$ac_try;;
45732 esac
45733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45734   (eval "$ac_compile") 2>conftest.er1
45735   ac_status=$?
45736   grep -v '^ *+' conftest.er1 >conftest.err
45737   rm -f conftest.er1
45738   cat conftest.err >&5
45739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45740   (exit $ac_status); } && {
45741          test -z "$ac_c_werror_flag" ||
45742          test ! -s conftest.err
45743        } && test -s conftest.$ac_objext; then
45744   ac_header_compiler=yes
45745 else
45746   echo "$as_me: failed program was:" >&5
45747 sed 's/^/| /' conftest.$ac_ext >&5
45748
45749         ac_header_compiler=no
45750 fi
45751
45752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45753 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45754 echo "${ECHO_T}$ac_header_compiler" >&6; }
45755
45756 # Is the header present?
45757 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
45758 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
45759 cat >conftest.$ac_ext <<_ACEOF
45760 /* confdefs.h.  */
45761 _ACEOF
45762 cat confdefs.h >>conftest.$ac_ext
45763 cat >>conftest.$ac_ext <<_ACEOF
45764 /* end confdefs.h.  */
45765 #include <$ac_header>
45766 _ACEOF
45767 if { (ac_try="$ac_cpp conftest.$ac_ext"
45768 case "(($ac_try" in
45769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45770   *) ac_try_echo=$ac_try;;
45771 esac
45772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45773   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
45774   ac_status=$?
45775   grep -v '^ *+' conftest.er1 >conftest.err
45776   rm -f conftest.er1
45777   cat conftest.err >&5
45778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45779   (exit $ac_status); } >/dev/null && {
45780          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
45781          test ! -s conftest.err
45782        }; then
45783   ac_header_preproc=yes
45784 else
45785   echo "$as_me: failed program was:" >&5
45786 sed 's/^/| /' conftest.$ac_ext >&5
45787
45788   ac_header_preproc=no
45789 fi
45790
45791 rm -f conftest.err conftest.$ac_ext
45792 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45793 echo "${ECHO_T}$ac_header_preproc" >&6; }
45794
45795 # So?  What about this header?
45796 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45797   yes:no: )
45798     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45799 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45800     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45801 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45802     ac_header_preproc=yes
45803     ;;
45804   no:yes:* )
45805     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45806 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45807     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
45808 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
45809     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45810 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45811     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
45812 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
45813     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45814 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45815     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45816 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45817     ( cat <<\_ASBOX
45818 ## ----------------------------------------- ##
45819 ## Report this to wx-dev@lists.wxwidgets.org ##
45820 ## ----------------------------------------- ##
45821 _ASBOX
45822      ) | sed "s/^/$as_me: WARNING:     /" >&2
45823     ;;
45824 esac
45825 { echo "$as_me:$LINENO: checking for $ac_header" >&5
45826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
45827 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45828   echo $ECHO_N "(cached) $ECHO_C" >&6
45829 else
45830   eval "$as_ac_Header=\$ac_header_preproc"
45831 fi
45832 ac_res=`eval echo '${'$as_ac_Header'}'`
45833                { echo "$as_me:$LINENO: result: $ac_res" >&5
45834 echo "${ECHO_T}$ac_res" >&6; }
45835
45836 fi
45837 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45838   cat >>confdefs.h <<_ACEOF
45839 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45840 _ACEOF
45841
45842 fi
45843
45844 done
45845
45846             if test "$ac_cv_header_sys_epoll_h" = "yes"; then
45847                 cat >>confdefs.h <<\_ACEOF
45848 #define wxUSE_EPOLL_DISPATCHER 1
45849 _ACEOF
45850
45851             else
45852                 { echo "$as_me:$LINENO: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&5
45853 echo "$as_me: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&2;}
45854             fi
45855         fi
45856     fi
45857 fi
45858
45859
45860
45861
45862 for ac_func in gettimeofday ftime
45863 do
45864 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45865 { echo "$as_me:$LINENO: checking for $ac_func" >&5
45866 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
45867 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45868   echo $ECHO_N "(cached) $ECHO_C" >&6
45869 else
45870   cat >conftest.$ac_ext <<_ACEOF
45871 /* confdefs.h.  */
45872 _ACEOF
45873 cat confdefs.h >>conftest.$ac_ext
45874 cat >>conftest.$ac_ext <<_ACEOF
45875 /* end confdefs.h.  */
45876 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45877    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45878 #define $ac_func innocuous_$ac_func
45879
45880 /* System header to define __stub macros and hopefully few prototypes,
45881     which can conflict with char $ac_func (); below.
45882     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45883     <limits.h> exists even on freestanding compilers.  */
45884
45885 #ifdef __STDC__
45886 # include <limits.h>
45887 #else
45888 # include <assert.h>
45889 #endif
45890
45891 #undef $ac_func
45892
45893 /* Override any GCC internal prototype to avoid an error.
45894    Use char because int might match the return type of a GCC
45895    builtin and then its argument prototype would still apply.  */
45896 #ifdef __cplusplus
45897 extern "C"
45898 #endif
45899 char $ac_func ();
45900 /* The GNU C library defines this for functions which it implements
45901     to always fail with ENOSYS.  Some functions are actually named
45902     something starting with __ and the normal name is an alias.  */
45903 #if defined __stub_$ac_func || defined __stub___$ac_func
45904 choke me
45905 #endif
45906
45907 int
45908 main ()
45909 {
45910 return $ac_func ();
45911   ;
45912   return 0;
45913 }
45914 _ACEOF
45915 rm -f conftest.$ac_objext conftest$ac_exeext
45916 if { (ac_try="$ac_link"
45917 case "(($ac_try" in
45918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45919   *) ac_try_echo=$ac_try;;
45920 esac
45921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45922   (eval "$ac_link") 2>conftest.er1
45923   ac_status=$?
45924   grep -v '^ *+' conftest.er1 >conftest.err
45925   rm -f conftest.er1
45926   cat conftest.err >&5
45927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45928   (exit $ac_status); } && {
45929          test -z "$ac_c_werror_flag" ||
45930          test ! -s conftest.err
45931        } && test -s conftest$ac_exeext &&
45932        $as_test_x conftest$ac_exeext; then
45933   eval "$as_ac_var=yes"
45934 else
45935   echo "$as_me: failed program was:" >&5
45936 sed 's/^/| /' conftest.$ac_ext >&5
45937
45938         eval "$as_ac_var=no"
45939 fi
45940
45941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45942       conftest$ac_exeext conftest.$ac_ext
45943 fi
45944 ac_res=`eval echo '${'$as_ac_var'}'`
45945                { echo "$as_me:$LINENO: result: $ac_res" >&5
45946 echo "${ECHO_T}$ac_res" >&6; }
45947 if test `eval echo '${'$as_ac_var'}'` = yes; then
45948   cat >>confdefs.h <<_ACEOF
45949 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45950 _ACEOF
45951  break
45952 fi
45953 done
45954
45955
45956 if test "$ac_cv_func_gettimeofday" = "yes"; then
45957     { echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
45958 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6; }
45959 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
45960   echo $ECHO_N "(cached) $ECHO_C" >&6
45961 else
45962
45963                 cat >conftest.$ac_ext <<_ACEOF
45964 /* confdefs.h.  */
45965 _ACEOF
45966 cat confdefs.h >>conftest.$ac_ext
45967 cat >>conftest.$ac_ext <<_ACEOF
45968 /* end confdefs.h.  */
45969
45970                 #include <sys/time.h>
45971                 #include <unistd.h>
45972
45973 int
45974 main ()
45975 {
45976
45977                 struct timeval tv;
45978                 gettimeofday(&tv, NULL);
45979
45980   ;
45981   return 0;
45982 }
45983 _ACEOF
45984 rm -f conftest.$ac_objext
45985 if { (ac_try="$ac_compile"
45986 case "(($ac_try" in
45987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45988   *) ac_try_echo=$ac_try;;
45989 esac
45990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45991   (eval "$ac_compile") 2>conftest.er1
45992   ac_status=$?
45993   grep -v '^ *+' conftest.er1 >conftest.err
45994   rm -f conftest.er1
45995   cat conftest.err >&5
45996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45997   (exit $ac_status); } && {
45998          test -z "$ac_c_werror_flag" ||
45999          test ! -s conftest.err
46000        } && test -s conftest.$ac_objext; then
46001   wx_cv_func_gettimeofday_has_2_args=yes
46002 else
46003   echo "$as_me: failed program was:" >&5
46004 sed 's/^/| /' conftest.$ac_ext >&5
46005
46006         cat >conftest.$ac_ext <<_ACEOF
46007 /* confdefs.h.  */
46008 _ACEOF
46009 cat confdefs.h >>conftest.$ac_ext
46010 cat >>conftest.$ac_ext <<_ACEOF
46011 /* end confdefs.h.  */
46012
46013                     #include <sys/time.h>
46014                     #include <unistd.h>
46015
46016 int
46017 main ()
46018 {
46019
46020                     struct timeval tv;
46021                     gettimeofday(&tv);
46022
46023   ;
46024   return 0;
46025 }
46026 _ACEOF
46027 rm -f conftest.$ac_objext
46028 if { (ac_try="$ac_compile"
46029 case "(($ac_try" in
46030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46031   *) ac_try_echo=$ac_try;;
46032 esac
46033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46034   (eval "$ac_compile") 2>conftest.er1
46035   ac_status=$?
46036   grep -v '^ *+' conftest.er1 >conftest.err
46037   rm -f conftest.er1
46038   cat conftest.err >&5
46039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46040   (exit $ac_status); } && {
46041          test -z "$ac_c_werror_flag" ||
46042          test ! -s conftest.err
46043        } && test -s conftest.$ac_objext; then
46044   wx_cv_func_gettimeofday_has_2_args=no
46045 else
46046   echo "$as_me: failed program was:" >&5
46047 sed 's/^/| /' conftest.$ac_ext >&5
46048
46049
46050                     { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
46051 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
46052                     wx_cv_func_gettimeofday_has_2_args=unknown
46053
46054
46055 fi
46056
46057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46058
46059 fi
46060
46061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46062
46063 fi
46064 { echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
46065 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6; }
46066
46067     if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
46068         cat >>confdefs.h <<\_ACEOF
46069 #define WX_GETTIMEOFDAY_NO_TZ 1
46070 _ACEOF
46071
46072     fi
46073 fi
46074
46075 if test "$wxUSE_DATETIME" = "yes"; then
46076         { echo "$as_me:$LINENO: checking for strptime" >&5
46077 echo $ECHO_N "checking for strptime... $ECHO_C" >&6; }
46078 if test "${ac_cv_func_strptime+set}" = set; then
46079   echo $ECHO_N "(cached) $ECHO_C" >&6
46080 else
46081   cat >conftest.$ac_ext <<_ACEOF
46082 /* confdefs.h.  */
46083 _ACEOF
46084 cat confdefs.h >>conftest.$ac_ext
46085 cat >>conftest.$ac_ext <<_ACEOF
46086 /* end confdefs.h.  */
46087 /* Define strptime to an innocuous variant, in case <limits.h> declares strptime.
46088    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46089 #define strptime innocuous_strptime
46090
46091 /* System header to define __stub macros and hopefully few prototypes,
46092     which can conflict with char strptime (); below.
46093     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46094     <limits.h> exists even on freestanding compilers.  */
46095
46096 #ifdef __STDC__
46097 # include <limits.h>
46098 #else
46099 # include <assert.h>
46100 #endif
46101
46102 #undef strptime
46103
46104 /* Override any GCC internal prototype to avoid an error.
46105    Use char because int might match the return type of a GCC
46106    builtin and then its argument prototype would still apply.  */
46107 #ifdef __cplusplus
46108 extern "C"
46109 #endif
46110 char strptime ();
46111 /* The GNU C library defines this for functions which it implements
46112     to always fail with ENOSYS.  Some functions are actually named
46113     something starting with __ and the normal name is an alias.  */
46114 #if defined __stub_strptime || defined __stub___strptime
46115 choke me
46116 #endif
46117
46118 int
46119 main ()
46120 {
46121 return strptime ();
46122   ;
46123   return 0;
46124 }
46125 _ACEOF
46126 rm -f conftest.$ac_objext conftest$ac_exeext
46127 if { (ac_try="$ac_link"
46128 case "(($ac_try" in
46129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46130   *) ac_try_echo=$ac_try;;
46131 esac
46132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46133   (eval "$ac_link") 2>conftest.er1
46134   ac_status=$?
46135   grep -v '^ *+' conftest.er1 >conftest.err
46136   rm -f conftest.er1
46137   cat conftest.err >&5
46138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46139   (exit $ac_status); } && {
46140          test -z "$ac_c_werror_flag" ||
46141          test ! -s conftest.err
46142        } && test -s conftest$ac_exeext &&
46143        $as_test_x conftest$ac_exeext; then
46144   ac_cv_func_strptime=yes
46145 else
46146   echo "$as_me: failed program was:" >&5
46147 sed 's/^/| /' conftest.$ac_ext >&5
46148
46149         ac_cv_func_strptime=no
46150 fi
46151
46152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46153       conftest$ac_exeext conftest.$ac_ext
46154 fi
46155 { echo "$as_me:$LINENO: result: $ac_cv_func_strptime" >&5
46156 echo "${ECHO_T}$ac_cv_func_strptime" >&6; }
46157
46158     if test "$ac_cv_func_strptime" = "yes"; then
46159         { echo "$as_me:$LINENO: checking for strptime declaration" >&5
46160 echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6; }
46161 if test "${wx_cv_func_strptime_decl+set}" = set; then
46162   echo $ECHO_N "(cached) $ECHO_C" >&6
46163 else
46164
46165                 ac_ext=cpp
46166 ac_cpp='$CXXCPP $CPPFLAGS'
46167 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46168 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46169 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46170
46171                 cat >conftest.$ac_ext <<_ACEOF
46172 /* confdefs.h.  */
46173 _ACEOF
46174 cat confdefs.h >>conftest.$ac_ext
46175 cat >>conftest.$ac_ext <<_ACEOF
46176 /* end confdefs.h.  */
46177
46178                         #include <time.h>
46179
46180 int
46181 main ()
46182 {
46183
46184                         struct tm t;
46185                         strptime("foo", "bar", &t);
46186
46187   ;
46188   return 0;
46189 }
46190 _ACEOF
46191 rm -f conftest.$ac_objext
46192 if { (ac_try="$ac_compile"
46193 case "(($ac_try" in
46194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46195   *) ac_try_echo=$ac_try;;
46196 esac
46197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46198   (eval "$ac_compile") 2>conftest.er1
46199   ac_status=$?
46200   grep -v '^ *+' conftest.er1 >conftest.err
46201   rm -f conftest.er1
46202   cat conftest.err >&5
46203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46204   (exit $ac_status); } && {
46205          test -z "$ac_cxx_werror_flag" ||
46206          test ! -s conftest.err
46207        } && test -s conftest.$ac_objext; then
46208   wx_cv_func_strptime_decl=yes
46209 else
46210   echo "$as_me: failed program was:" >&5
46211 sed 's/^/| /' conftest.$ac_ext >&5
46212
46213         wx_cv_func_strptime_decl=no
46214
46215 fi
46216
46217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46218                 ac_ext=c
46219 ac_cpp='$CPP $CPPFLAGS'
46220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46223
46224
46225
46226 fi
46227 { echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
46228 echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6; }
46229     fi
46230     if test "$wx_cv_func_strptime_decl" = "yes"; then
46231         cat >>confdefs.h <<\_ACEOF
46232 #define HAVE_STRPTIME_DECL 1
46233 _ACEOF
46234
46235     else
46236         wx_strptime_decl="extern char *strptime(const char *, const char *, struct tm *);"
46237     fi
46238     if test "$ac_cv_func_strptime" = "yes"; then
46239                                         { echo "$as_me:$LINENO: checking whether strptime() fails on invalid strings" >&5
46240 echo $ECHO_N "checking whether strptime() fails on invalid strings... $ECHO_C" >&6; }
46241 if test "${wx_cv_func_strptime_ok+set}" = set; then
46242   echo $ECHO_N "(cached) $ECHO_C" >&6
46243 else
46244   if test "$cross_compiling" = yes; then
46245                   wx_cv_func_strptime_ok=no
46246
46247 else
46248   cat >conftest.$ac_ext <<_ACEOF
46249
46250                     #include <stdlib.h>
46251                     #include <time.h>
46252                     #include "confdefs.h"
46253
46254                     $wx_strptime_decl
46255
46256                     int main()
46257                     {
46258                         struct tm t;
46259                         return !!strptime("", "%x", &t);
46260                     }
46261
46262 _ACEOF
46263 rm -f conftest$ac_exeext
46264 if { (ac_try="$ac_link"
46265 case "(($ac_try" in
46266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46267   *) ac_try_echo=$ac_try;;
46268 esac
46269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46270   (eval "$ac_link") 2>&5
46271   ac_status=$?
46272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46273   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
46274   { (case "(($ac_try" in
46275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46276   *) ac_try_echo=$ac_try;;
46277 esac
46278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46279   (eval "$ac_try") 2>&5
46280   ac_status=$?
46281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46282   (exit $ac_status); }; }; then
46283   wx_cv_func_strptime_ok=yes
46284 else
46285   echo "$as_me: program exited with status $ac_status" >&5
46286 echo "$as_me: failed program was:" >&5
46287 sed 's/^/| /' conftest.$ac_ext >&5
46288
46289 ( exit $ac_status )
46290 wx_cv_func_strptime_ok=no
46291 fi
46292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
46293 fi
46294
46295
46296
46297 fi
46298 { echo "$as_me:$LINENO: result: $wx_cv_func_strptime_ok" >&5
46299 echo "${ECHO_T}$wx_cv_func_strptime_ok" >&6; }
46300
46301         if test "$wx_cv_func_strptime_ok" = "yes"; then
46302             cat >>confdefs.h <<\_ACEOF
46303 #define HAVE_STRPTIME 1
46304 _ACEOF
46305
46306         fi
46307     fi
46308
46309             { echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
46310 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6; }
46311 if test "${wx_cv_var_timezone+set}" = set; then
46312   echo $ECHO_N "(cached) $ECHO_C" >&6
46313 else
46314
46315                         ac_ext=cpp
46316 ac_cpp='$CXXCPP $CPPFLAGS'
46317 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46318 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46319 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46320
46321                         cat >conftest.$ac_ext <<_ACEOF
46322 /* confdefs.h.  */
46323 _ACEOF
46324 cat confdefs.h >>conftest.$ac_ext
46325 cat >>conftest.$ac_ext <<_ACEOF
46326 /* end confdefs.h.  */
46327
46328                                 #include <time.h>
46329
46330 int
46331 main ()
46332 {
46333
46334                                 int tz;
46335                                 tz = timezone;
46336
46337   ;
46338   return 0;
46339 }
46340 _ACEOF
46341 rm -f conftest.$ac_objext
46342 if { (ac_try="$ac_compile"
46343 case "(($ac_try" in
46344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46345   *) ac_try_echo=$ac_try;;
46346 esac
46347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46348   (eval "$ac_compile") 2>conftest.er1
46349   ac_status=$?
46350   grep -v '^ *+' conftest.er1 >conftest.err
46351   rm -f conftest.er1
46352   cat conftest.err >&5
46353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46354   (exit $ac_status); } && {
46355          test -z "$ac_cxx_werror_flag" ||
46356          test ! -s conftest.err
46357        } && test -s conftest.$ac_objext; then
46358
46359                                 wx_cv_var_timezone=timezone
46360
46361 else
46362   echo "$as_me: failed program was:" >&5
46363 sed 's/^/| /' conftest.$ac_ext >&5
46364
46365
46366                                 cat >conftest.$ac_ext <<_ACEOF
46367 /* confdefs.h.  */
46368 _ACEOF
46369 cat confdefs.h >>conftest.$ac_ext
46370 cat >>conftest.$ac_ext <<_ACEOF
46371 /* end confdefs.h.  */
46372
46373                                         #include <time.h>
46374
46375 int
46376 main ()
46377 {
46378
46379                                         int tz;
46380                                         tz = _timezone;
46381
46382   ;
46383   return 0;
46384 }
46385 _ACEOF
46386 rm -f conftest.$ac_objext
46387 if { (ac_try="$ac_compile"
46388 case "(($ac_try" in
46389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46390   *) ac_try_echo=$ac_try;;
46391 esac
46392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46393   (eval "$ac_compile") 2>conftest.er1
46394   ac_status=$?
46395   grep -v '^ *+' conftest.er1 >conftest.err
46396   rm -f conftest.er1
46397   cat conftest.err >&5
46398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46399   (exit $ac_status); } && {
46400          test -z "$ac_cxx_werror_flag" ||
46401          test ! -s conftest.err
46402        } && test -s conftest.$ac_objext; then
46403
46404                                         wx_cv_var_timezone=_timezone
46405
46406 else
46407   echo "$as_me: failed program was:" >&5
46408 sed 's/^/| /' conftest.$ac_ext >&5
46409
46410
46411                                         cat >conftest.$ac_ext <<_ACEOF
46412 /* confdefs.h.  */
46413 _ACEOF
46414 cat confdefs.h >>conftest.$ac_ext
46415 cat >>conftest.$ac_ext <<_ACEOF
46416 /* end confdefs.h.  */
46417
46418                                                 #include <time.h>
46419
46420 int
46421 main ()
46422 {
46423
46424                                                 int tz;
46425                                                 tz = __timezone;
46426
46427   ;
46428   return 0;
46429 }
46430 _ACEOF
46431 rm -f conftest.$ac_objext
46432 if { (ac_try="$ac_compile"
46433 case "(($ac_try" in
46434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46435   *) ac_try_echo=$ac_try;;
46436 esac
46437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46438   (eval "$ac_compile") 2>conftest.er1
46439   ac_status=$?
46440   grep -v '^ *+' conftest.er1 >conftest.err
46441   rm -f conftest.er1
46442   cat conftest.err >&5
46443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46444   (exit $ac_status); } && {
46445          test -z "$ac_cxx_werror_flag" ||
46446          test ! -s conftest.err
46447        } && test -s conftest.$ac_objext; then
46448
46449                                                 wx_cv_var_timezone=__timezone
46450
46451 else
46452   echo "$as_me: failed program was:" >&5
46453 sed 's/^/| /' conftest.$ac_ext >&5
46454
46455
46456                                                 if test "$USE_DOS" = 0 ; then
46457                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
46458 echo "$as_me: WARNING: no timezone variable" >&2;}
46459                                                 fi
46460
46461
46462 fi
46463
46464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46465
46466
46467 fi
46468
46469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46470
46471
46472 fi
46473
46474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46475                         ac_ext=c
46476 ac_cpp='$CPP $CPPFLAGS'
46477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46480
46481
46482
46483 fi
46484 { echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
46485 echo "${ECHO_T}$wx_cv_var_timezone" >&6; }
46486
46487         if test "x$wx_cv_var_timezone" != x ; then
46488         cat >>confdefs.h <<_ACEOF
46489 #define WX_TIMEZONE $wx_cv_var_timezone
46490 _ACEOF
46491
46492     fi
46493
46494
46495 for ac_func in localtime
46496 do
46497 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46498 { echo "$as_me:$LINENO: checking for $ac_func" >&5
46499 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
46500 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
46501   echo $ECHO_N "(cached) $ECHO_C" >&6
46502 else
46503   cat >conftest.$ac_ext <<_ACEOF
46504 /* confdefs.h.  */
46505 _ACEOF
46506 cat confdefs.h >>conftest.$ac_ext
46507 cat >>conftest.$ac_ext <<_ACEOF
46508 /* end confdefs.h.  */
46509 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46510    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46511 #define $ac_func innocuous_$ac_func
46512
46513 /* System header to define __stub macros and hopefully few prototypes,
46514     which can conflict with char $ac_func (); below.
46515     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46516     <limits.h> exists even on freestanding compilers.  */
46517
46518 #ifdef __STDC__
46519 # include <limits.h>
46520 #else
46521 # include <assert.h>
46522 #endif
46523
46524 #undef $ac_func
46525
46526 /* Override any GCC internal prototype to avoid an error.
46527    Use char because int might match the return type of a GCC
46528    builtin and then its argument prototype would still apply.  */
46529 #ifdef __cplusplus
46530 extern "C"
46531 #endif
46532 char $ac_func ();
46533 /* The GNU C library defines this for functions which it implements
46534     to always fail with ENOSYS.  Some functions are actually named
46535     something starting with __ and the normal name is an alias.  */
46536 #if defined __stub_$ac_func || defined __stub___$ac_func
46537 choke me
46538 #endif
46539
46540 int
46541 main ()
46542 {
46543 return $ac_func ();
46544   ;
46545   return 0;
46546 }
46547 _ACEOF
46548 rm -f conftest.$ac_objext conftest$ac_exeext
46549 if { (ac_try="$ac_link"
46550 case "(($ac_try" in
46551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46552   *) ac_try_echo=$ac_try;;
46553 esac
46554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46555   (eval "$ac_link") 2>conftest.er1
46556   ac_status=$?
46557   grep -v '^ *+' conftest.er1 >conftest.err
46558   rm -f conftest.er1
46559   cat conftest.err >&5
46560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46561   (exit $ac_status); } && {
46562          test -z "$ac_c_werror_flag" ||
46563          test ! -s conftest.err
46564        } && test -s conftest$ac_exeext &&
46565        $as_test_x conftest$ac_exeext; then
46566   eval "$as_ac_var=yes"
46567 else
46568   echo "$as_me: failed program was:" >&5
46569 sed 's/^/| /' conftest.$ac_ext >&5
46570
46571         eval "$as_ac_var=no"
46572 fi
46573
46574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46575       conftest$ac_exeext conftest.$ac_ext
46576 fi
46577 ac_res=`eval echo '${'$as_ac_var'}'`
46578                { echo "$as_me:$LINENO: result: $ac_res" >&5
46579 echo "${ECHO_T}$ac_res" >&6; }
46580 if test `eval echo '${'$as_ac_var'}'` = yes; then
46581   cat >>confdefs.h <<_ACEOF
46582 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46583 _ACEOF
46584
46585 fi
46586 done
46587
46588
46589     if test "$ac_cv_func_localtime" = "yes"; then
46590         { echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
46591 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6; }
46592 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
46593   echo $ECHO_N "(cached) $ECHO_C" >&6
46594 else
46595
46596             cat >conftest.$ac_ext <<_ACEOF
46597 /* confdefs.h.  */
46598 _ACEOF
46599 cat confdefs.h >>conftest.$ac_ext
46600 cat >>conftest.$ac_ext <<_ACEOF
46601 /* end confdefs.h.  */
46602
46603                     #include <time.h>
46604
46605 int
46606 main ()
46607 {
46608
46609                     struct tm tm;
46610                     tm.tm_gmtoff++;
46611
46612   ;
46613   return 0;
46614 }
46615 _ACEOF
46616 rm -f conftest.$ac_objext
46617 if { (ac_try="$ac_compile"
46618 case "(($ac_try" in
46619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46620   *) ac_try_echo=$ac_try;;
46621 esac
46622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46623   (eval "$ac_compile") 2>conftest.er1
46624   ac_status=$?
46625   grep -v '^ *+' conftest.er1 >conftest.err
46626   rm -f conftest.er1
46627   cat conftest.err >&5
46628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46629   (exit $ac_status); } && {
46630          test -z "$ac_c_werror_flag" ||
46631          test ! -s conftest.err
46632        } && test -s conftest.$ac_objext; then
46633
46634                     wx_cv_struct_tm_has_gmtoff=yes
46635
46636 else
46637   echo "$as_me: failed program was:" >&5
46638 sed 's/^/| /' conftest.$ac_ext >&5
46639
46640         wx_cv_struct_tm_has_gmtoff=no
46641
46642 fi
46643
46644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46645
46646 fi
46647 { echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
46648 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6; }
46649     fi
46650
46651     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
46652         cat >>confdefs.h <<\_ACEOF
46653 #define WX_GMTOFF_IN_TM 1
46654 _ACEOF
46655
46656     fi
46657
46658     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
46659 fi
46660
46661
46662 if test "$wxUSE_SOCKETS" = "yes"; then
46663     if test "$wxUSE_MGL" = "1"; then
46664         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
46665 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
46666         wxUSE_SOCKETS="no"
46667     fi
46668 fi
46669
46670 if test "$wxUSE_SOCKETS" = "yes"; then
46671         if test "$TOOLKIT" != "MSW"; then
46672                 { echo "$as_me:$LINENO: checking for socket" >&5
46673 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
46674 if test "${ac_cv_func_socket+set}" = set; then
46675   echo $ECHO_N "(cached) $ECHO_C" >&6
46676 else
46677   cat >conftest.$ac_ext <<_ACEOF
46678 /* confdefs.h.  */
46679 _ACEOF
46680 cat confdefs.h >>conftest.$ac_ext
46681 cat >>conftest.$ac_ext <<_ACEOF
46682 /* end confdefs.h.  */
46683 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
46684    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46685 #define socket innocuous_socket
46686
46687 /* System header to define __stub macros and hopefully few prototypes,
46688     which can conflict with char socket (); below.
46689     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46690     <limits.h> exists even on freestanding compilers.  */
46691
46692 #ifdef __STDC__
46693 # include <limits.h>
46694 #else
46695 # include <assert.h>
46696 #endif
46697
46698 #undef socket
46699
46700 /* Override any GCC internal prototype to avoid an error.
46701    Use char because int might match the return type of a GCC
46702    builtin and then its argument prototype would still apply.  */
46703 #ifdef __cplusplus
46704 extern "C"
46705 #endif
46706 char socket ();
46707 /* The GNU C library defines this for functions which it implements
46708     to always fail with ENOSYS.  Some functions are actually named
46709     something starting with __ and the normal name is an alias.  */
46710 #if defined __stub_socket || defined __stub___socket
46711 choke me
46712 #endif
46713
46714 int
46715 main ()
46716 {
46717 return socket ();
46718   ;
46719   return 0;
46720 }
46721 _ACEOF
46722 rm -f conftest.$ac_objext conftest$ac_exeext
46723 if { (ac_try="$ac_link"
46724 case "(($ac_try" in
46725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46726   *) ac_try_echo=$ac_try;;
46727 esac
46728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46729   (eval "$ac_link") 2>conftest.er1
46730   ac_status=$?
46731   grep -v '^ *+' conftest.er1 >conftest.err
46732   rm -f conftest.er1
46733   cat conftest.err >&5
46734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46735   (exit $ac_status); } && {
46736          test -z "$ac_c_werror_flag" ||
46737          test ! -s conftest.err
46738        } && test -s conftest$ac_exeext &&
46739        $as_test_x conftest$ac_exeext; then
46740   ac_cv_func_socket=yes
46741 else
46742   echo "$as_me: failed program was:" >&5
46743 sed 's/^/| /' conftest.$ac_ext >&5
46744
46745         ac_cv_func_socket=no
46746 fi
46747
46748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46749       conftest$ac_exeext conftest.$ac_ext
46750 fi
46751 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
46752 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
46753 if test $ac_cv_func_socket = yes; then
46754   :
46755 else
46756
46757                 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
46758 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
46759 if test "${ac_cv_lib_socket_socket+set}" = set; then
46760   echo $ECHO_N "(cached) $ECHO_C" >&6
46761 else
46762   ac_check_lib_save_LIBS=$LIBS
46763 LIBS="-lsocket  $LIBS"
46764 cat >conftest.$ac_ext <<_ACEOF
46765 /* confdefs.h.  */
46766 _ACEOF
46767 cat confdefs.h >>conftest.$ac_ext
46768 cat >>conftest.$ac_ext <<_ACEOF
46769 /* end confdefs.h.  */
46770
46771 /* Override any GCC internal prototype to avoid an error.
46772    Use char because int might match the return type of a GCC
46773    builtin and then its argument prototype would still apply.  */
46774 #ifdef __cplusplus
46775 extern "C"
46776 #endif
46777 char socket ();
46778 int
46779 main ()
46780 {
46781 return socket ();
46782   ;
46783   return 0;
46784 }
46785 _ACEOF
46786 rm -f conftest.$ac_objext conftest$ac_exeext
46787 if { (ac_try="$ac_link"
46788 case "(($ac_try" in
46789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46790   *) ac_try_echo=$ac_try;;
46791 esac
46792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46793   (eval "$ac_link") 2>conftest.er1
46794   ac_status=$?
46795   grep -v '^ *+' conftest.er1 >conftest.err
46796   rm -f conftest.er1
46797   cat conftest.err >&5
46798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46799   (exit $ac_status); } && {
46800          test -z "$ac_c_werror_flag" ||
46801          test ! -s conftest.err
46802        } && test -s conftest$ac_exeext &&
46803        $as_test_x conftest$ac_exeext; then
46804   ac_cv_lib_socket_socket=yes
46805 else
46806   echo "$as_me: failed program was:" >&5
46807 sed 's/^/| /' conftest.$ac_ext >&5
46808
46809         ac_cv_lib_socket_socket=no
46810 fi
46811
46812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46813       conftest$ac_exeext conftest.$ac_ext
46814 LIBS=$ac_check_lib_save_LIBS
46815 fi
46816 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
46817 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
46818 if test $ac_cv_lib_socket_socket = yes; then
46819   if test "$INET_LINK" != " -lsocket"; then
46820                         INET_LINK="$INET_LINK -lsocket"
46821                     fi
46822 else
46823
46824                         { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
46825 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
46826                         wxUSE_SOCKETS=no
46827
46828
46829 fi
46830
46831
46832
46833 fi
46834
46835     fi
46836 fi
46837
46838 if test "$wxUSE_SOCKETS" = "yes" ; then
46839                 if test "$TOOLKIT" != "MSW"; then
46840                                         { echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
46841 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6; }
46842 if test "${wx_cv_type_getsockname3+set}" = set; then
46843   echo $ECHO_N "(cached) $ECHO_C" >&6
46844 else
46845
46846                 ac_ext=cpp
46847 ac_cpp='$CXXCPP $CPPFLAGS'
46848 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46849 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46850 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46851
46852                 cat >conftest.$ac_ext <<_ACEOF
46853 /* confdefs.h.  */
46854 _ACEOF
46855 cat confdefs.h >>conftest.$ac_ext
46856 cat >>conftest.$ac_ext <<_ACEOF
46857 /* end confdefs.h.  */
46858
46859                         #include <sys/types.h>
46860                         #include <sys/socket.h>
46861
46862 int
46863 main ()
46864 {
46865
46866                         socklen_t len;
46867                         getsockname(0, 0, &len);
46868
46869   ;
46870   return 0;
46871 }
46872 _ACEOF
46873 rm -f conftest.$ac_objext
46874 if { (ac_try="$ac_compile"
46875 case "(($ac_try" in
46876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46877   *) ac_try_echo=$ac_try;;
46878 esac
46879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46880   (eval "$ac_compile") 2>conftest.er1
46881   ac_status=$?
46882   grep -v '^ *+' conftest.er1 >conftest.err
46883   rm -f conftest.er1
46884   cat conftest.err >&5
46885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46886   (exit $ac_status); } && {
46887          test -z "$ac_cxx_werror_flag" ||
46888          test ! -s conftest.err
46889        } && test -s conftest.$ac_objext; then
46890   wx_cv_type_getsockname3=socklen_t
46891 else
46892   echo "$as_me: failed program was:" >&5
46893 sed 's/^/| /' conftest.$ac_ext >&5
46894
46895
46896                                                                                                                                                                         CFLAGS_OLD="$CFLAGS"
46897                         if test "$GCC" = yes ; then
46898                             CFLAGS="-Werror $CFLAGS"
46899                         fi
46900
46901                         cat >conftest.$ac_ext <<_ACEOF
46902 /* confdefs.h.  */
46903 _ACEOF
46904 cat confdefs.h >>conftest.$ac_ext
46905 cat >>conftest.$ac_ext <<_ACEOF
46906 /* end confdefs.h.  */
46907
46908                                 #include <sys/types.h>
46909                                 #include <sys/socket.h>
46910
46911 int
46912 main ()
46913 {
46914
46915                                 size_t len;
46916                                 getsockname(0, 0, &len);
46917
46918   ;
46919   return 0;
46920 }
46921 _ACEOF
46922 rm -f conftest.$ac_objext
46923 if { (ac_try="$ac_compile"
46924 case "(($ac_try" in
46925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46926   *) ac_try_echo=$ac_try;;
46927 esac
46928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46929   (eval "$ac_compile") 2>conftest.er1
46930   ac_status=$?
46931   grep -v '^ *+' conftest.er1 >conftest.err
46932   rm -f conftest.er1
46933   cat conftest.err >&5
46934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46935   (exit $ac_status); } && {
46936          test -z "$ac_cxx_werror_flag" ||
46937          test ! -s conftest.err
46938        } && test -s conftest.$ac_objext; then
46939   wx_cv_type_getsockname3=size_t
46940 else
46941   echo "$as_me: failed program was:" >&5
46942 sed 's/^/| /' conftest.$ac_ext >&5
46943
46944         cat >conftest.$ac_ext <<_ACEOF
46945 /* confdefs.h.  */
46946 _ACEOF
46947 cat confdefs.h >>conftest.$ac_ext
46948 cat >>conftest.$ac_ext <<_ACEOF
46949 /* end confdefs.h.  */
46950
46951                                     #include <sys/types.h>
46952                                     #include <sys/socket.h>
46953
46954 int
46955 main ()
46956 {
46957
46958                                     int len;
46959                                     getsockname(0, 0, &len);
46960
46961   ;
46962   return 0;
46963 }
46964 _ACEOF
46965 rm -f conftest.$ac_objext
46966 if { (ac_try="$ac_compile"
46967 case "(($ac_try" in
46968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46969   *) ac_try_echo=$ac_try;;
46970 esac
46971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46972   (eval "$ac_compile") 2>conftest.er1
46973   ac_status=$?
46974   grep -v '^ *+' conftest.er1 >conftest.err
46975   rm -f conftest.er1
46976   cat conftest.err >&5
46977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46978   (exit $ac_status); } && {
46979          test -z "$ac_cxx_werror_flag" ||
46980          test ! -s conftest.err
46981        } && test -s conftest.$ac_objext; then
46982   wx_cv_type_getsockname3=int
46983 else
46984   echo "$as_me: failed program was:" >&5
46985 sed 's/^/| /' conftest.$ac_ext >&5
46986
46987         wx_cv_type_getsockname3=unknown
46988
46989 fi
46990
46991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46992
46993 fi
46994
46995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46996
46997                         CFLAGS="$CFLAGS_OLD"
46998
46999
47000 fi
47001
47002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47003                 ac_ext=c
47004 ac_cpp='$CPP $CPPFLAGS'
47005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47008
47009
47010 fi
47011 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
47012 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6; }
47013
47014         if test "$wx_cv_type_getsockname3" = "unknown"; then
47015             wxUSE_SOCKETS=no
47016             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
47017 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
47018         else
47019             cat >>confdefs.h <<_ACEOF
47020 #define WX_SOCKLEN_T $wx_cv_type_getsockname3
47021 _ACEOF
47022
47023         fi
47024                 { echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
47025 echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6; }
47026 if test "${wx_cv_type_getsockopt5+set}" = set; then
47027   echo $ECHO_N "(cached) $ECHO_C" >&6
47028 else
47029
47030                                                                                                 ac_ext=cpp
47031 ac_cpp='$CXXCPP $CPPFLAGS'
47032 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47033 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47034 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47035
47036                 cat >conftest.$ac_ext <<_ACEOF
47037 /* confdefs.h.  */
47038 _ACEOF
47039 cat confdefs.h >>conftest.$ac_ext
47040 cat >>conftest.$ac_ext <<_ACEOF
47041 /* end confdefs.h.  */
47042
47043                         #include <sys/types.h>
47044                         #include <sys/socket.h>
47045
47046 int
47047 main ()
47048 {
47049
47050                         socklen_t len;
47051                         getsockopt(0, 0, 0, 0, &len);
47052
47053   ;
47054   return 0;
47055 }
47056 _ACEOF
47057 rm -f conftest.$ac_objext
47058 if { (ac_try="$ac_compile"
47059 case "(($ac_try" in
47060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47061   *) ac_try_echo=$ac_try;;
47062 esac
47063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47064   (eval "$ac_compile") 2>conftest.er1
47065   ac_status=$?
47066   grep -v '^ *+' conftest.er1 >conftest.err
47067   rm -f conftest.er1
47068   cat conftest.err >&5
47069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47070   (exit $ac_status); } && {
47071          test -z "$ac_cxx_werror_flag" ||
47072          test ! -s conftest.err
47073        } && test -s conftest.$ac_objext; then
47074   wx_cv_type_getsockopt5=socklen_t
47075 else
47076   echo "$as_me: failed program was:" >&5
47077 sed 's/^/| /' conftest.$ac_ext >&5
47078
47079
47080                         cat >conftest.$ac_ext <<_ACEOF
47081 /* confdefs.h.  */
47082 _ACEOF
47083 cat confdefs.h >>conftest.$ac_ext
47084 cat >>conftest.$ac_ext <<_ACEOF
47085 /* end confdefs.h.  */
47086
47087                                 #include <sys/types.h>
47088                                 #include <sys/socket.h>
47089
47090 int
47091 main ()
47092 {
47093
47094                                 size_t len;
47095                                 getsockopt(0, 0, 0, 0, &len);
47096
47097   ;
47098   return 0;
47099 }
47100 _ACEOF
47101 rm -f conftest.$ac_objext
47102 if { (ac_try="$ac_compile"
47103 case "(($ac_try" in
47104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47105   *) ac_try_echo=$ac_try;;
47106 esac
47107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47108   (eval "$ac_compile") 2>conftest.er1
47109   ac_status=$?
47110   grep -v '^ *+' conftest.er1 >conftest.err
47111   rm -f conftest.er1
47112   cat conftest.err >&5
47113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47114   (exit $ac_status); } && {
47115          test -z "$ac_cxx_werror_flag" ||
47116          test ! -s conftest.err
47117        } && test -s conftest.$ac_objext; then
47118   wx_cv_type_getsockopt5=size_t
47119 else
47120   echo "$as_me: failed program was:" >&5
47121 sed 's/^/| /' conftest.$ac_ext >&5
47122
47123         cat >conftest.$ac_ext <<_ACEOF
47124 /* confdefs.h.  */
47125 _ACEOF
47126 cat confdefs.h >>conftest.$ac_ext
47127 cat >>conftest.$ac_ext <<_ACEOF
47128 /* end confdefs.h.  */
47129
47130                                     #include <sys/types.h>
47131                                     #include <sys/socket.h>
47132
47133 int
47134 main ()
47135 {
47136
47137                                     int len;
47138                                     getsockopt(0, 0, 0, 0, &len);
47139
47140   ;
47141   return 0;
47142 }
47143 _ACEOF
47144 rm -f conftest.$ac_objext
47145 if { (ac_try="$ac_compile"
47146 case "(($ac_try" in
47147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47148   *) ac_try_echo=$ac_try;;
47149 esac
47150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47151   (eval "$ac_compile") 2>conftest.er1
47152   ac_status=$?
47153   grep -v '^ *+' conftest.er1 >conftest.err
47154   rm -f conftest.er1
47155   cat conftest.err >&5
47156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47157   (exit $ac_status); } && {
47158          test -z "$ac_cxx_werror_flag" ||
47159          test ! -s conftest.err
47160        } && test -s conftest.$ac_objext; then
47161   wx_cv_type_getsockopt5=int
47162 else
47163   echo "$as_me: failed program was:" >&5
47164 sed 's/^/| /' conftest.$ac_ext >&5
47165
47166         wx_cv_type_getsockopt5=unknown
47167
47168 fi
47169
47170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47171
47172 fi
47173
47174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47175
47176
47177 fi
47178
47179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47180                 ac_ext=c
47181 ac_cpp='$CPP $CPPFLAGS'
47182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47185
47186
47187 fi
47188 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
47189 echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6; }
47190
47191         if test "$wx_cv_type_getsockopt5" = "unknown"; then
47192             wxUSE_SOCKETS=no
47193             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
47194 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
47195         else
47196             cat >>confdefs.h <<_ACEOF
47197 #define SOCKOPTLEN_T $wx_cv_type_getsockopt5
47198 _ACEOF
47199
47200         fi
47201     fi
47202 fi
47203
47204 if test "$wxUSE_SOCKETS" = "yes" ; then
47205     cat >>confdefs.h <<\_ACEOF
47206 #define wxUSE_SOCKETS 1
47207 _ACEOF
47208
47209     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
47210 fi
47211
47212 if test "$wxUSE_PROTOCOL" = "yes"; then
47213     if test "$wxUSE_SOCKETS" != "yes"; then
47214         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
47215 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
47216         wxUSE_PROTOCOL=no
47217     fi
47218 fi
47219
47220 if test "$wxUSE_PROTOCOL" = "yes"; then
47221     cat >>confdefs.h <<\_ACEOF
47222 #define wxUSE_PROTOCOL 1
47223 _ACEOF
47224
47225
47226     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
47227         cat >>confdefs.h <<\_ACEOF
47228 #define wxUSE_PROTOCOL_HTTP 1
47229 _ACEOF
47230
47231     fi
47232     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
47233         cat >>confdefs.h <<\_ACEOF
47234 #define wxUSE_PROTOCOL_FTP 1
47235 _ACEOF
47236
47237     fi
47238     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
47239         cat >>confdefs.h <<\_ACEOF
47240 #define wxUSE_PROTOCOL_FILE 1
47241 _ACEOF
47242
47243     fi
47244 else
47245     if test "$wxUSE_FS_INET" = "yes"; then
47246         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
47247 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
47248         wxUSE_FS_INET="no"
47249     fi
47250 fi
47251
47252 if test "$wxUSE_URL" = "yes"; then
47253     if test "$wxUSE_PROTOCOL" != "yes"; then
47254         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
47255 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
47256         wxUSE_URL=no
47257     fi
47258     if test "$wxUSE_URL" = "yes"; then
47259         cat >>confdefs.h <<\_ACEOF
47260 #define wxUSE_URL 1
47261 _ACEOF
47262
47263     fi
47264 fi
47265
47266 if test "$wxUSE_VARIANT" = "yes"; then
47267     cat >>confdefs.h <<\_ACEOF
47268 #define wxUSE_VARIANT 1
47269 _ACEOF
47270
47271 fi
47272
47273 if test "$wxUSE_FS_INET" = "yes"; then
47274   cat >>confdefs.h <<\_ACEOF
47275 #define wxUSE_FS_INET 1
47276 _ACEOF
47277
47278 fi
47279
47280
47281 if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
47282     wxUSE_JOYSTICK=no
47283
47284         if test "$TOOLKIT" = "MSW"; then
47285         wxUSE_JOYSTICK=yes
47286
47287         elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
47288         if test "$USE_DARWIN" = 1; then
47289                         { echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
47290 echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6; }
47291             ac_ext=cpp
47292 ac_cpp='$CXXCPP $CPPFLAGS'
47293 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47294 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47295 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47296
47297             cat >conftest.$ac_ext <<_ACEOF
47298 /* confdefs.h.  */
47299 _ACEOF
47300 cat confdefs.h >>conftest.$ac_ext
47301 cat >>conftest.$ac_ext <<_ACEOF
47302 /* end confdefs.h.  */
47303  #include <IOKit/hid/IOHIDLib.h>
47304 int
47305 main ()
47306 {
47307  IOHIDQueueInterface *qi = NULL;
47308                               IOHIDCallbackFunction cb = NULL;
47309                               qi->setEventCallout(NULL, cb, NULL, NULL);
47310   ;
47311   return 0;
47312 }
47313 _ACEOF
47314 rm -f conftest.$ac_objext
47315 if { (ac_try="$ac_compile"
47316 case "(($ac_try" in
47317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47318   *) ac_try_echo=$ac_try;;
47319 esac
47320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47321   (eval "$ac_compile") 2>conftest.er1
47322   ac_status=$?
47323   grep -v '^ *+' conftest.er1 >conftest.err
47324   rm -f conftest.er1
47325   cat conftest.err >&5
47326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47327   (exit $ac_status); } && {
47328          test -z "$ac_cxx_werror_flag" ||
47329          test ! -s conftest.err
47330        } && test -s conftest.$ac_objext; then
47331    wxUSE_JOYSTICK=yes
47332
47333 else
47334   echo "$as_me: failed program was:" >&5
47335 sed 's/^/| /' conftest.$ac_ext >&5
47336
47337
47338 fi
47339
47340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47341             ac_ext=c
47342 ac_cpp='$CPP $CPPFLAGS'
47343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47346
47347             { echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
47348 echo "${ECHO_T}$wxUSE_JOYSTICK" >&6; }
47349         fi
47350
47351         else
47352                 if test "$wxUSE_MGL" != "1"; then
47353
47354 for ac_header in linux/joystick.h
47355 do
47356 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
47357 { echo "$as_me:$LINENO: checking for $ac_header" >&5
47358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
47359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47360   echo $ECHO_N "(cached) $ECHO_C" >&6
47361 else
47362   cat >conftest.$ac_ext <<_ACEOF
47363 /* confdefs.h.  */
47364 _ACEOF
47365 cat confdefs.h >>conftest.$ac_ext
47366 cat >>conftest.$ac_ext <<_ACEOF
47367 /* end confdefs.h.  */
47368 $ac_includes_default
47369
47370 #include <$ac_header>
47371 _ACEOF
47372 rm -f conftest.$ac_objext
47373 if { (ac_try="$ac_compile"
47374 case "(($ac_try" in
47375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47376   *) ac_try_echo=$ac_try;;
47377 esac
47378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47379   (eval "$ac_compile") 2>conftest.er1
47380   ac_status=$?
47381   grep -v '^ *+' conftest.er1 >conftest.err
47382   rm -f conftest.er1
47383   cat conftest.err >&5
47384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47385   (exit $ac_status); } && {
47386          test -z "$ac_c_werror_flag" ||
47387          test ! -s conftest.err
47388        } && test -s conftest.$ac_objext; then
47389   eval "$as_ac_Header=yes"
47390 else
47391   echo "$as_me: failed program was:" >&5
47392 sed 's/^/| /' conftest.$ac_ext >&5
47393
47394         eval "$as_ac_Header=no"
47395 fi
47396
47397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47398 fi
47399 ac_res=`eval echo '${'$as_ac_Header'}'`
47400                { echo "$as_me:$LINENO: result: $ac_res" >&5
47401 echo "${ECHO_T}$ac_res" >&6; }
47402 if test `eval echo '${'$as_ac_Header'}'` = yes; then
47403   cat >>confdefs.h <<_ACEOF
47404 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
47405 _ACEOF
47406  wxUSE_JOYSTICK=yes
47407 fi
47408
47409 done
47410
47411         fi
47412     fi
47413
47414     if test "$wxUSE_JOYSTICK" = "yes"; then
47415         cat >>confdefs.h <<\_ACEOF
47416 #define wxUSE_JOYSTICK 1
47417 _ACEOF
47418
47419         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
47420     else
47421         { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
47422 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
47423     fi
47424 fi
47425
47426
47427
47428 if test "$wxUSE_FONTMAP" = "yes" ; then
47429   cat >>confdefs.h <<\_ACEOF
47430 #define wxUSE_FONTMAP 1
47431 _ACEOF
47432
47433 fi
47434
47435 if test "$wxUSE_UNICODE" = "yes" ; then
47436   cat >>confdefs.h <<\_ACEOF
47437 #define wxUSE_UNICODE 1
47438 _ACEOF
47439
47440
47441   if test "$USE_WIN32" != 1; then
47442       wxUSE_UNICODE_MSLU=no
47443   fi
47444
47445   if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
47446         { echo "$as_me:$LINENO: checking for main in -lunicows" >&5
47447 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6; }
47448 if test "${ac_cv_lib_unicows_main+set}" = set; then
47449   echo $ECHO_N "(cached) $ECHO_C" >&6
47450 else
47451   ac_check_lib_save_LIBS=$LIBS
47452 LIBS="-lunicows  $LIBS"
47453 cat >conftest.$ac_ext <<_ACEOF
47454 /* confdefs.h.  */
47455 _ACEOF
47456 cat confdefs.h >>conftest.$ac_ext
47457 cat >>conftest.$ac_ext <<_ACEOF
47458 /* end confdefs.h.  */
47459
47460
47461 int
47462 main ()
47463 {
47464 return main ();
47465   ;
47466   return 0;
47467 }
47468 _ACEOF
47469 rm -f conftest.$ac_objext conftest$ac_exeext
47470 if { (ac_try="$ac_link"
47471 case "(($ac_try" in
47472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47473   *) ac_try_echo=$ac_try;;
47474 esac
47475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47476   (eval "$ac_link") 2>conftest.er1
47477   ac_status=$?
47478   grep -v '^ *+' conftest.er1 >conftest.err
47479   rm -f conftest.er1
47480   cat conftest.err >&5
47481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47482   (exit $ac_status); } && {
47483          test -z "$ac_c_werror_flag" ||
47484          test ! -s conftest.err
47485        } && test -s conftest$ac_exeext &&
47486        $as_test_x conftest$ac_exeext; then
47487   ac_cv_lib_unicows_main=yes
47488 else
47489   echo "$as_me: failed program was:" >&5
47490 sed 's/^/| /' conftest.$ac_ext >&5
47491
47492         ac_cv_lib_unicows_main=no
47493 fi
47494
47495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47496       conftest$ac_exeext conftest.$ac_ext
47497 LIBS=$ac_check_lib_save_LIBS
47498 fi
47499 { echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
47500 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6; }
47501 if test $ac_cv_lib_unicows_main = yes; then
47502
47503                 cat >>confdefs.h <<\_ACEOF
47504 #define wxUSE_UNICODE_MSLU 1
47505 _ACEOF
47506
47507
47508 else
47509
47510                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
47511                              Applications will only run on Windows NT/2000/XP!" >&5
47512 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
47513                              Applications will only run on Windows NT/2000/XP!" >&2;}
47514                 wxUSE_UNICODE_MSLU=no
47515
47516 fi
47517
47518     fi
47519 fi
47520
47521 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "yes"; then
47522     cat >>confdefs.h <<\_ACEOF
47523 #define wxUSE_UNICODE_UTF8 1
47524 _ACEOF
47525
47526
47527     if test "$wxUSE_UNICODE_UTF8_LOCALE" = "yes"; then
47528         cat >>confdefs.h <<\_ACEOF
47529 #define wxUSE_UTF8_LOCALE_ONLY 1
47530 _ACEOF
47531
47532     fi
47533 fi
47534
47535 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
47536   cat >>confdefs.h <<\_ACEOF
47537 #define wxUSE_EXPERIMENTAL_PRINTF 1
47538 _ACEOF
47539
47540 fi
47541
47542
47543 if test "$wxUSE_CONSTRAINTS" = "yes"; then
47544     cat >>confdefs.h <<\_ACEOF
47545 #define wxUSE_CONSTRAINTS 1
47546 _ACEOF
47547
47548     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
47549 fi
47550
47551 if test "$wxUSE_MDI" = "yes"; then
47552     cat >>confdefs.h <<\_ACEOF
47553 #define wxUSE_MDI 1
47554 _ACEOF
47555
47556
47557     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
47558         cat >>confdefs.h <<\_ACEOF
47559 #define wxUSE_MDI_ARCHITECTURE 1
47560 _ACEOF
47561
47562         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
47563     fi
47564 fi
47565
47566 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
47567     cat >>confdefs.h <<\_ACEOF
47568 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
47569 _ACEOF
47570
47571     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
47572     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
47573         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
47574     fi
47575 fi
47576
47577 if test "$wxUSE_HELP" = "yes"; then
47578     cat >>confdefs.h <<\_ACEOF
47579 #define wxUSE_HELP 1
47580 _ACEOF
47581
47582     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
47583
47584     if test "$wxUSE_MSW" = 1; then
47585       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
47586         cat >>confdefs.h <<\_ACEOF
47587 #define wxUSE_MS_HTML_HELP 1
47588 _ACEOF
47589
47590       fi
47591     fi
47592
47593     if test "$wxUSE_WXHTML_HELP" = "yes"; then
47594       if test "$wxUSE_HTML" = "yes"; then
47595         cat >>confdefs.h <<\_ACEOF
47596 #define wxUSE_WXHTML_HELP 1
47597 _ACEOF
47598
47599       else
47600         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
47601 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
47602         wxUSE_WXHTML_HELP=no
47603       fi
47604     fi
47605 fi
47606
47607 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
47608     if test "$wxUSE_CONSTRAINTS" != "yes"; then
47609         { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
47610 echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
47611     else
47612         cat >>confdefs.h <<\_ACEOF
47613 #define wxUSE_PRINTING_ARCHITECTURE 1
47614 _ACEOF
47615
47616     fi
47617     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
47618 fi
47619
47620 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
47621   cat >>confdefs.h <<\_ACEOF
47622 #define wxUSE_POSTSCRIPT 1
47623 _ACEOF
47624
47625 fi
47626
47627 cat >>confdefs.h <<\_ACEOF
47628 #define wxUSE_AFM_FOR_POSTSCRIPT 1
47629 _ACEOF
47630
47631
47632 cat >>confdefs.h <<\_ACEOF
47633 #define wxUSE_NORMALIZED_PS_FONTS 1
47634 _ACEOF
47635
47636
47637 if test "$wxUSE_SVG" = "yes"; then
47638     cat >>confdefs.h <<\_ACEOF
47639 #define wxUSE_SVG 1
47640 _ACEOF
47641
47642 fi
47643
47644
47645 if test "$wxUSE_METAFILE" = "yes"; then
47646     if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
47647         { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
47648 echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
47649         wxUSE_METAFILE=no
47650     fi
47651 fi
47652
47653
47654 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
47655                           -o "$wxUSE_CLIPBOARD"     = "yes" \
47656                           -o "$wxUSE_OLE"     = "yes" \
47657                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
47658     { echo "$as_me:$LINENO: checking for ole2.h" >&5
47659 echo $ECHO_N "checking for ole2.h... $ECHO_C" >&6; }
47660 if test "${ac_cv_header_ole2_h+set}" = set; then
47661   echo $ECHO_N "(cached) $ECHO_C" >&6
47662 else
47663   cat >conftest.$ac_ext <<_ACEOF
47664 /* confdefs.h.  */
47665 _ACEOF
47666 cat confdefs.h >>conftest.$ac_ext
47667 cat >>conftest.$ac_ext <<_ACEOF
47668 /* end confdefs.h.  */
47669
47670
47671 #include <ole2.h>
47672 _ACEOF
47673 rm -f conftest.$ac_objext
47674 if { (ac_try="$ac_compile"
47675 case "(($ac_try" in
47676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47677   *) ac_try_echo=$ac_try;;
47678 esac
47679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47680   (eval "$ac_compile") 2>conftest.er1
47681   ac_status=$?
47682   grep -v '^ *+' conftest.er1 >conftest.err
47683   rm -f conftest.er1
47684   cat conftest.err >&5
47685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47686   (exit $ac_status); } && {
47687          test -z "$ac_c_werror_flag" ||
47688          test ! -s conftest.err
47689        } && test -s conftest.$ac_objext; then
47690   ac_cv_header_ole2_h=yes
47691 else
47692   echo "$as_me: failed program was:" >&5
47693 sed 's/^/| /' conftest.$ac_ext >&5
47694
47695         ac_cv_header_ole2_h=no
47696 fi
47697
47698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47699 fi
47700 { echo "$as_me:$LINENO: result: $ac_cv_header_ole2_h" >&5
47701 echo "${ECHO_T}$ac_cv_header_ole2_h" >&6; }
47702
47703
47704
47705     if test "$ac_cv_header_ole2_h" = "yes" ; then
47706         if test "$GCC" = yes ; then
47707             { echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
47708 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6; }
47709             cat >conftest.$ac_ext <<_ACEOF
47710 /* confdefs.h.  */
47711 _ACEOF
47712 cat confdefs.h >>conftest.$ac_ext
47713 cat >>conftest.$ac_ext <<_ACEOF
47714 /* end confdefs.h.  */
47715 #include <windows.h>
47716                             #include <ole2.h>
47717 int
47718 main ()
47719 {
47720
47721   ;
47722   return 0;
47723 }
47724 _ACEOF
47725 rm -f conftest.$ac_objext
47726 if { (ac_try="$ac_compile"
47727 case "(($ac_try" in
47728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47729   *) ac_try_echo=$ac_try;;
47730 esac
47731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47732   (eval "$ac_compile") 2>conftest.er1
47733   ac_status=$?
47734   grep -v '^ *+' conftest.er1 >conftest.err
47735   rm -f conftest.er1
47736   cat conftest.err >&5
47737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47738   (exit $ac_status); } && {
47739          test -z "$ac_c_werror_flag" ||
47740          test ! -s conftest.err
47741        } && test -s conftest.$ac_objext; then
47742   { echo "$as_me:$LINENO: result: no" >&5
47743 echo "${ECHO_T}no" >&6; }
47744 else
47745   echo "$as_me: failed program was:" >&5
47746 sed 's/^/| /' conftest.$ac_ext >&5
47747
47748         { echo "$as_me:$LINENO: result: yes" >&5
47749 echo "${ECHO_T}yes" >&6; }
47750                             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
47751 fi
47752
47753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47754             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
47755             if test "$wxUSE_OLE" = "yes" ; then
47756                 cat >>confdefs.h <<\_ACEOF
47757 #define wxUSE_OLE 1
47758 _ACEOF
47759
47760                 cat >>confdefs.h <<\_ACEOF
47761 #define wxUSE_OLE_AUTOMATION 1
47762 _ACEOF
47763
47764                 cat >>confdefs.h <<\_ACEOF
47765 #define wxUSE_ACTIVEX 1
47766 _ACEOF
47767
47768                 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
47769             fi
47770         fi
47771
47772                 if test "$wxUSE_DATAOBJ" = "yes" ; then
47773             cat >>confdefs.h <<\_ACEOF
47774 #define wxUSE_DATAOBJ 1
47775 _ACEOF
47776
47777         fi
47778     else
47779         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
47780 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
47781
47782         wxUSE_CLIPBOARD=no
47783         wxUSE_DRAG_AND_DROP=no
47784         wxUSE_DATAOBJ=no
47785         wxUSE_OLE=no
47786     fi
47787
47788     if test "$wxUSE_METAFILE" = "yes"; then
47789         cat >>confdefs.h <<\_ACEOF
47790 #define wxUSE_METAFILE 1
47791 _ACEOF
47792
47793
47794                 cat >>confdefs.h <<\_ACEOF
47795 #define wxUSE_ENH_METAFILE 1
47796 _ACEOF
47797
47798     fi
47799 fi
47800
47801 if test "$wxUSE_IPC" = "yes"; then
47802     if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
47803         { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
47804 echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
47805         wxUSE_IPC=no
47806     fi
47807
47808     if test "$wxUSE_IPC" = "yes"; then
47809         cat >>confdefs.h <<\_ACEOF
47810 #define wxUSE_IPC 1
47811 _ACEOF
47812
47813         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
47814     fi
47815 fi
47816
47817 if test "$wxUSE_DATAOBJ" = "yes"; then
47818     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
47819         { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&5
47820 echo "$as_me: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&2;}
47821         wxUSE_DATAOBJ=no
47822     else
47823         cat >>confdefs.h <<\_ACEOF
47824 #define wxUSE_DATAOBJ 1
47825 _ACEOF
47826
47827     fi
47828 else
47829     { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
47830 echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
47831     wxUSE_CLIPBOARD=no
47832     wxUSE_DRAG_AND_DROP=no
47833 fi
47834
47835 if test "$wxUSE_CLIPBOARD" = "yes"; then
47836     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
47837         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&5
47838 echo "$as_me: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&2;}
47839         wxUSE_CLIPBOARD=no
47840     fi
47841
47842     if test "$wxUSE_CLIPBOARD" = "yes"; then
47843         cat >>confdefs.h <<\_ACEOF
47844 #define wxUSE_CLIPBOARD 1
47845 _ACEOF
47846
47847     fi
47848 fi
47849
47850 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
47851     if test "$wxUSE_GTK" = 1; then
47852         if test "$WXGTK12" != 1; then
47853             { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
47854 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
47855             wxUSE_DRAG_AND_DROP=no
47856         fi
47857     fi
47858
47859     if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_MGL" = 1 -o \
47860             "$wxUSE_DFB" = 1; then
47861         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&5
47862 echo "$as_me: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&2;}
47863         wxUSE_DRAG_AND_DROP=no
47864     fi
47865
47866     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
47867         cat >>confdefs.h <<\_ACEOF
47868 #define wxUSE_DRAG_AND_DROP 1
47869 _ACEOF
47870
47871     fi
47872
47873 fi
47874
47875 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
47876     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
47877 fi
47878
47879 if test "$wxUSE_SPLINES" = "yes" ; then
47880   cat >>confdefs.h <<\_ACEOF
47881 #define wxUSE_SPLINES 1
47882 _ACEOF
47883
47884 fi
47885
47886 if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
47887   cat >>confdefs.h <<\_ACEOF
47888 #define wxUSE_MOUSEWHEEL 1
47889 _ACEOF
47890
47891 fi
47892
47893
47894 USES_CONTROLS=0
47895 if test "$wxUSE_CONTROLS" = "yes"; then
47896   USES_CONTROLS=1
47897 fi
47898
47899 if test "$wxUSE_ACCEL" = "yes"; then
47900   cat >>confdefs.h <<\_ACEOF
47901 #define wxUSE_ACCEL 1
47902 _ACEOF
47903
47904   USES_CONTROLS=1
47905 fi
47906
47907 if test "$wxUSE_ANIMATIONCTRL" = "yes"; then
47908   cat >>confdefs.h <<\_ACEOF
47909 #define wxUSE_ANIMATIONCTRL 1
47910 _ACEOF
47911
47912   USES_CONTROLS=1
47913   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate"
47914 fi
47915
47916 if test "$wxUSE_BUTTON" = "yes"; then
47917   cat >>confdefs.h <<\_ACEOF
47918 #define wxUSE_BUTTON 1
47919 _ACEOF
47920
47921   USES_CONTROLS=1
47922 fi
47923
47924 if test "$wxUSE_BMPBUTTON" = "yes"; then
47925   cat >>confdefs.h <<\_ACEOF
47926 #define wxUSE_BMPBUTTON 1
47927 _ACEOF
47928
47929   USES_CONTROLS=1
47930 fi
47931
47932 if test "$wxUSE_CALCTRL" = "yes"; then
47933   cat >>confdefs.h <<\_ACEOF
47934 #define wxUSE_CALENDARCTRL 1
47935 _ACEOF
47936
47937   USES_CONTROLS=1
47938   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
47939 fi
47940
47941 if test "$wxUSE_CARET" = "yes"; then
47942   cat >>confdefs.h <<\_ACEOF
47943 #define wxUSE_CARET 1
47944 _ACEOF
47945
47946   USES_CONTROLS=1
47947   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
47948 fi
47949
47950 if test "$wxUSE_COLLPANE" = "yes"; then
47951     cat >>confdefs.h <<\_ACEOF
47952 #define wxUSE_COLLPANE 1
47953 _ACEOF
47954
47955     USES_CONTROLS=1
47956     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS collpane"
47957 fi
47958
47959 if test "$wxUSE_COMBOBOX" = "yes"; then
47960   cat >>confdefs.h <<\_ACEOF
47961 #define wxUSE_COMBOBOX 1
47962 _ACEOF
47963
47964   USES_CONTROLS=1
47965 fi
47966
47967 if test "$wxUSE_COMBOCTRL" = "yes"; then
47968   cat >>confdefs.h <<\_ACEOF
47969 #define wxUSE_COMBOCTRL 1
47970 _ACEOF
47971
47972   USES_CONTROLS=1
47973 fi
47974
47975 if test "$wxUSE_CHOICE" = "yes"; then
47976   cat >>confdefs.h <<\_ACEOF
47977 #define wxUSE_CHOICE 1
47978 _ACEOF
47979
47980   USES_CONTROLS=1
47981 fi
47982
47983 if test "$wxUSE_CHOICEBOOK" = "yes"; then
47984     cat >>confdefs.h <<\_ACEOF
47985 #define wxUSE_CHOICEBOOK 1
47986 _ACEOF
47987
47988     USES_CONTROLS=1
47989 fi
47990
47991 if test "$wxUSE_CHECKBOX" = "yes"; then
47992   cat >>confdefs.h <<\_ACEOF
47993 #define wxUSE_CHECKBOX 1
47994 _ACEOF
47995
47996   USES_CONTROLS=1
47997 fi
47998
47999 if test "$wxUSE_CHECKLST" = "yes"; then
48000   cat >>confdefs.h <<\_ACEOF
48001 #define wxUSE_CHECKLISTBOX 1
48002 _ACEOF
48003
48004   USES_CONTROLS=1
48005   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
48006 fi
48007
48008 if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
48009   cat >>confdefs.h <<\_ACEOF
48010 #define wxUSE_COLOURPICKERCTRL 1
48011 _ACEOF
48012
48013   USES_CONTROLS=1
48014 fi
48015
48016 if test "$wxUSE_DATEPICKCTRL" = "yes"; then
48017   cat >>confdefs.h <<\_ACEOF
48018 #define wxUSE_DATEPICKCTRL 1
48019 _ACEOF
48020
48021   USES_CONTROLS=1
48022 fi
48023
48024 if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
48025   cat >>confdefs.h <<\_ACEOF
48026 #define wxUSE_DIRPICKERCTRL 1
48027 _ACEOF
48028
48029   USES_CONTROLS=1
48030 fi
48031
48032 if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
48033   cat >>confdefs.h <<\_ACEOF
48034 #define wxUSE_FILEPICKERCTRL 1
48035 _ACEOF
48036
48037   USES_CONTROLS=1
48038 fi
48039
48040 if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
48041   cat >>confdefs.h <<\_ACEOF
48042 #define wxUSE_FONTPICKERCTRL 1
48043 _ACEOF
48044
48045   USES_CONTROLS=1
48046 fi
48047
48048 if test "$wxUSE_DISPLAY" = "yes"; then
48049     if test "$wxUSE_DFB" = 1 -o "$wxUSE_MGL" = 1; then
48050         { echo "$as_me:$LINENO: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&5
48051 echo "$as_me: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&2;}
48052         wxUSE_DISPLAY=no
48053     else
48054         cat >>confdefs.h <<\_ACEOF
48055 #define wxUSE_DISPLAY 1
48056 _ACEOF
48057
48058         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
48059     fi
48060 fi
48061
48062 if test "$wxUSE_DETECT_SM" = "yes"; then
48063     cat >>confdefs.h <<\_ACEOF
48064 #define wxUSE_DETECT_SM 1
48065 _ACEOF
48066
48067 fi
48068
48069 if test "$wxUSE_GAUGE" = "yes"; then
48070   cat >>confdefs.h <<\_ACEOF
48071 #define wxUSE_GAUGE 1
48072 _ACEOF
48073
48074   USES_CONTROLS=1
48075 fi
48076
48077 if test "$wxUSE_GRID" = "yes"; then
48078   cat >>confdefs.h <<\_ACEOF
48079 #define wxUSE_GRID 1
48080 _ACEOF
48081
48082   USES_CONTROLS=1
48083   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
48084 fi
48085
48086 if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
48087   cat >>confdefs.h <<\_ACEOF
48088 #define wxUSE_HYPERLINKCTRL 1
48089 _ACEOF
48090
48091   USES_CONTROLS=1
48092 fi
48093
48094 if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
48095   cat >>confdefs.h <<\_ACEOF
48096 #define wxUSE_BITMAPCOMBOBOX 1
48097 _ACEOF
48098
48099   USES_CONTROLS=1
48100 fi
48101
48102 if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
48103   cat >>confdefs.h <<\_ACEOF
48104 #define wxUSE_DATAVIEWCTRL 1
48105 _ACEOF
48106
48107   USES_CONTROLS=1
48108   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
48109 fi
48110
48111 if test "$wxUSE_IMAGLIST" = "yes"; then
48112     cat >>confdefs.h <<\_ACEOF
48113 #define wxUSE_IMAGLIST 1
48114 _ACEOF
48115
48116 fi
48117
48118 if test "$wxUSE_LISTBOOK" = "yes"; then
48119     cat >>confdefs.h <<\_ACEOF
48120 #define wxUSE_LISTBOOK 1
48121 _ACEOF
48122
48123     USES_CONTROLS=1
48124 fi
48125
48126 if test "$wxUSE_LISTBOX" = "yes"; then
48127     cat >>confdefs.h <<\_ACEOF
48128 #define wxUSE_LISTBOX 1
48129 _ACEOF
48130
48131     USES_CONTROLS=1
48132     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
48133 fi
48134
48135 if test "$wxUSE_LISTCTRL" = "yes"; then
48136     if test "$wxUSE_IMAGLIST" = "yes"; then
48137         cat >>confdefs.h <<\_ACEOF
48138 #define wxUSE_LISTCTRL 1
48139 _ACEOF
48140
48141         USES_CONTROLS=1
48142         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
48143     else
48144         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
48145 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
48146     fi
48147 fi
48148
48149 if test "$wxUSE_EDITABLELISTBOX" = "yes"; then
48150     cat >>confdefs.h <<\_ACEOF
48151 #define wxUSE_EDITABLELISTBOX 1
48152 _ACEOF
48153
48154     USES_CONTROLS=1
48155     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS editlbox"
48156 fi
48157
48158 if test "$wxUSE_NOTEBOOK" = "yes"; then
48159     cat >>confdefs.h <<\_ACEOF
48160 #define wxUSE_NOTEBOOK 1
48161 _ACEOF
48162
48163     USES_CONTROLS=1
48164     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
48165 fi
48166
48167 if test "$wxUSE_ODCOMBOBOX" = "yes"; then
48168   cat >>confdefs.h <<\_ACEOF
48169 #define wxUSE_ODCOMBOBOX 1
48170 _ACEOF
48171
48172   USES_CONTROLS=1
48173   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
48174 fi
48175
48176
48177 if test "$wxUSE_RADIOBOX" = "yes"; then
48178     cat >>confdefs.h <<\_ACEOF
48179 #define wxUSE_RADIOBOX 1
48180 _ACEOF
48181
48182     USES_CONTROLS=1
48183 fi
48184
48185 if test "$wxUSE_RADIOBTN" = "yes"; then
48186     cat >>confdefs.h <<\_ACEOF
48187 #define wxUSE_RADIOBTN 1
48188 _ACEOF
48189
48190     USES_CONTROLS=1
48191 fi
48192
48193 if test "$wxUSE_SASH" = "yes"; then
48194     cat >>confdefs.h <<\_ACEOF
48195 #define wxUSE_SASH 1
48196 _ACEOF
48197
48198     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
48199 fi
48200
48201 if test "$wxUSE_SCROLLBAR" = "yes"; then
48202     cat >>confdefs.h <<\_ACEOF
48203 #define wxUSE_SCROLLBAR 1
48204 _ACEOF
48205
48206     USES_CONTROLS=1
48207     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
48208 fi
48209
48210 if test "$wxUSE_SEARCHCTRL" = "yes"; then
48211     cat >>confdefs.h <<\_ACEOF
48212 #define wxUSE_SEARCHCTRL 1
48213 _ACEOF
48214
48215     USES_CONTROLS=1
48216 fi
48217
48218 if test "$wxUSE_SLIDER" = "yes"; then
48219     cat >>confdefs.h <<\_ACEOF
48220 #define wxUSE_SLIDER 1
48221 _ACEOF
48222
48223     USES_CONTROLS=1
48224 fi
48225
48226 if test "$wxUSE_SPINBTN" = "yes"; then
48227     cat >>confdefs.h <<\_ACEOF
48228 #define wxUSE_SPINBTN 1
48229 _ACEOF
48230
48231     USES_CONTROLS=1
48232 fi
48233
48234 if test "$wxUSE_SPINCTRL" = "yes"; then
48235     cat >>confdefs.h <<\_ACEOF
48236 #define wxUSE_SPINCTRL 1
48237 _ACEOF
48238
48239     USES_CONTROLS=1
48240 fi
48241
48242 if test "$wxUSE_SPLITTER" = "yes"; then
48243     cat >>confdefs.h <<\_ACEOF
48244 #define wxUSE_SPLITTER 1
48245 _ACEOF
48246
48247     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
48248 fi
48249
48250 if test "$wxUSE_STATBMP" = "yes"; then
48251     cat >>confdefs.h <<\_ACEOF
48252 #define wxUSE_STATBMP 1
48253 _ACEOF
48254
48255     USES_CONTROLS=1
48256 fi
48257
48258 if test "$wxUSE_STATBOX" = "yes"; then
48259     cat >>confdefs.h <<\_ACEOF
48260 #define wxUSE_STATBOX 1
48261 _ACEOF
48262
48263     USES_CONTROLS=1
48264 fi
48265
48266 if test "$wxUSE_STATTEXT" = "yes"; then
48267     cat >>confdefs.h <<\_ACEOF
48268 #define wxUSE_STATTEXT 1
48269 _ACEOF
48270
48271     USES_CONTROLS=1
48272 fi
48273
48274 if test "$wxUSE_STATLINE" = "yes"; then
48275     cat >>confdefs.h <<\_ACEOF
48276 #define wxUSE_STATLINE 1
48277 _ACEOF
48278
48279     USES_CONTROLS=1
48280 fi
48281
48282 if test "$wxUSE_STATUSBAR" = "yes"; then
48283         cat >>confdefs.h <<\_ACEOF
48284 #define wxUSE_NATIVE_STATUSBAR 1
48285 _ACEOF
48286
48287     cat >>confdefs.h <<\_ACEOF
48288 #define wxUSE_STATUSBAR 1
48289 _ACEOF
48290
48291     USES_CONTROLS=1
48292
48293     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
48294 fi
48295
48296 if test "$wxUSE_TAB_DIALOG" = "yes"; then
48297     cat >>confdefs.h <<\_ACEOF
48298 #define wxUSE_TAB_DIALOG 1
48299 _ACEOF
48300
48301 fi
48302
48303 if test "$wxUSE_TEXTCTRL" = "yes"; then
48304     cat >>confdefs.h <<\_ACEOF
48305 #define wxUSE_TEXTCTRL 1
48306 _ACEOF
48307
48308     USES_CONTROLS=1
48309     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
48310 fi
48311
48312 if test "$wxUSE_TOGGLEBTN" = "yes"; then
48313     if test "$wxUSE_COCOA" = 1 ; then
48314         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
48315 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
48316         wxUSE_TOGGLEBTN=no
48317     fi
48318
48319     if test "$wxUSE_TOGGLEBTN" = "yes"; then
48320         cat >>confdefs.h <<\_ACEOF
48321 #define wxUSE_TOGGLEBTN 1
48322 _ACEOF
48323
48324         USES_CONTROLS=1
48325     fi
48326 fi
48327
48328 if test "$wxUSE_TOOLBAR" = "yes"; then
48329     cat >>confdefs.h <<\_ACEOF
48330 #define wxUSE_TOOLBAR 1
48331 _ACEOF
48332
48333     USES_CONTROLS=1
48334
48335     if test "$wxUSE_UNIVERSAL" = "yes"; then
48336         wxUSE_TOOLBAR_NATIVE="no"
48337     else
48338         wxUSE_TOOLBAR_NATIVE="yes"
48339         cat >>confdefs.h <<\_ACEOF
48340 #define wxUSE_TOOLBAR_NATIVE 1
48341 _ACEOF
48342
48343     fi
48344
48345     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
48346 fi
48347
48348 if test "$wxUSE_TOOLTIPS" = "yes"; then
48349     if test "$wxUSE_MOTIF" = 1; then
48350         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
48351 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
48352     else
48353         if test "$wxUSE_UNIVERSAL" = "yes"; then
48354             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
48355 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
48356         else
48357             cat >>confdefs.h <<\_ACEOF
48358 #define wxUSE_TOOLTIPS 1
48359 _ACEOF
48360
48361         fi
48362     fi
48363 fi
48364
48365 if test "$wxUSE_TREEBOOK" = "yes"; then
48366     cat >>confdefs.h <<\_ACEOF
48367 #define wxUSE_TREEBOOK 1
48368 _ACEOF
48369
48370     USES_CONTROLS=1
48371 fi
48372
48373 if test "$wxUSE_TOOLBOOK" = "yes"; then
48374     cat >>confdefs.h <<\_ACEOF
48375 #define wxUSE_TOOLBOOK 1
48376 _ACEOF
48377
48378     USES_CONTROLS=1
48379 fi
48380
48381 if test "$wxUSE_TREECTRL" = "yes"; then
48382     if test "$wxUSE_IMAGLIST" = "yes"; then
48383         cat >>confdefs.h <<\_ACEOF
48384 #define wxUSE_TREECTRL 1
48385 _ACEOF
48386
48387         USES_CONTROLS=1
48388         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
48389     else
48390         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
48391 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
48392     fi
48393 fi
48394
48395 if test "$wxUSE_POPUPWIN" = "yes"; then
48396     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
48397         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
48398 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
48399     else
48400         if test "$wxUSE_PM" = 1; then
48401             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
48402 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
48403         else
48404             cat >>confdefs.h <<\_ACEOF
48405 #define wxUSE_POPUPWIN 1
48406 _ACEOF
48407
48408             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
48409
48410             USES_CONTROLS=1
48411         fi
48412     fi
48413 fi
48414
48415 if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
48416     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 -o "$wxUSE_MGL" = 1; then
48417         { echo "$as_me:$LINENO: WARNING: Dialup manager not supported on this platform... disabled" >&5
48418 echo "$as_me: WARNING: Dialup manager not supported on this platform... disabled" >&2;}
48419     else
48420         cat >>confdefs.h <<\_ACEOF
48421 #define wxUSE_DIALUP_MANAGER 1
48422 _ACEOF
48423
48424         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
48425     fi
48426 fi
48427
48428 if test "$wxUSE_TIPWINDOW" = "yes"; then
48429     if test "$wxUSE_PM" = 1; then
48430         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
48431 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
48432     else
48433         cat >>confdefs.h <<\_ACEOF
48434 #define wxUSE_TIPWINDOW 1
48435 _ACEOF
48436
48437     fi
48438 fi
48439
48440 if test "$USES_CONTROLS" = 1; then
48441     cat >>confdefs.h <<\_ACEOF
48442 #define wxUSE_CONTROLS 1
48443 _ACEOF
48444
48445 fi
48446
48447
48448 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
48449     cat >>confdefs.h <<\_ACEOF
48450 #define wxUSE_ACCESSIBILITY 1
48451 _ACEOF
48452
48453     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
48454 fi
48455
48456 if test "$wxUSE_DC_CACHEING" = "yes"; then
48457     cat >>confdefs.h <<\_ACEOF
48458 #define wxUSE_DC_CACHEING 1
48459 _ACEOF
48460
48461 fi
48462
48463 if test "$wxUSE_DRAGIMAGE" = "yes"; then
48464     cat >>confdefs.h <<\_ACEOF
48465 #define wxUSE_DRAGIMAGE 1
48466 _ACEOF
48467
48468     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
48469 fi
48470
48471 if test "$wxUSE_EXCEPTIONS" = "yes"; then
48472     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
48473         { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
48474 echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
48475     else
48476         cat >>confdefs.h <<\_ACEOF
48477 #define wxUSE_EXCEPTIONS 1
48478 _ACEOF
48479
48480         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
48481     fi
48482 fi
48483
48484 USE_HTML=0
48485 if test "$wxUSE_HTML" = "yes"; then
48486     cat >>confdefs.h <<\_ACEOF
48487 #define wxUSE_HTML 1
48488 _ACEOF
48489
48490     USE_HTML=1
48491     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
48492     if test "$wxUSE_MAC" = 1; then
48493         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
48494     fi
48495 fi
48496 if test "$wxUSE_WEBKIT" = "yes"; then
48497     if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
48498         old_CPPFLAGS="$CPPFLAGS"
48499         CPPFLAGS="-x objective-c++ $CPPFLAGS"
48500         { echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
48501 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6; }
48502 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
48503   echo $ECHO_N "(cached) $ECHO_C" >&6
48504 else
48505   cat >conftest.$ac_ext <<_ACEOF
48506 /* confdefs.h.  */
48507 _ACEOF
48508 cat confdefs.h >>conftest.$ac_ext
48509 cat >>conftest.$ac_ext <<_ACEOF
48510 /* end confdefs.h.  */
48511
48512                            #include <Carbon/Carbon.h>
48513                            #include <WebKit/WebKit.h>
48514
48515
48516 #include <WebKit/HIWebView.h>
48517 _ACEOF
48518 rm -f conftest.$ac_objext
48519 if { (ac_try="$ac_compile"
48520 case "(($ac_try" in
48521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48522   *) ac_try_echo=$ac_try;;
48523 esac
48524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48525   (eval "$ac_compile") 2>conftest.er1
48526   ac_status=$?
48527   grep -v '^ *+' conftest.er1 >conftest.err
48528   rm -f conftest.er1
48529   cat conftest.err >&5
48530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48531   (exit $ac_status); } && {
48532          test -z "$ac_c_werror_flag" ||
48533          test ! -s conftest.err
48534        } && test -s conftest.$ac_objext; then
48535   ac_cv_header_WebKit_HIWebView_h=yes
48536 else
48537   echo "$as_me: failed program was:" >&5
48538 sed 's/^/| /' conftest.$ac_ext >&5
48539
48540         ac_cv_header_WebKit_HIWebView_h=no
48541 fi
48542
48543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48544 fi
48545 { echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
48546 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6; }
48547 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
48548
48549                            cat >>confdefs.h <<\_ACEOF
48550 #define wxUSE_WEBKIT 1
48551 _ACEOF
48552
48553                            WEBKIT_LINK="-framework WebKit"
48554
48555 else
48556
48557                            { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
48558 echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
48559                            wxUSE_WEBKIT=no
48560
48561 fi
48562
48563
48564         CPPFLAGS="$old_CPPFLAGS"
48565     elif test "$wxUSE_COCOA" = 1; then
48566         cat >>confdefs.h <<\_ACEOF
48567 #define wxUSE_WEBKIT 1
48568 _ACEOF
48569
48570     else
48571         wxUSE_WEBKIT=no
48572     fi
48573 fi
48574
48575 USE_XRC=0
48576 if test "$wxUSE_XRC" = "yes"; then
48577     if test "$wxUSE_XML" != "yes"; then
48578         { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
48579 echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
48580         wxUSE_XRC=no
48581     else
48582         cat >>confdefs.h <<\_ACEOF
48583 #define wxUSE_XRC 1
48584 _ACEOF
48585
48586         USE_XRC=1
48587         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
48588     fi
48589 fi
48590
48591 USE_AUI=0
48592 if test "$wxUSE_AUI" = "yes"; then
48593    cat >>confdefs.h <<\_ACEOF
48594 #define wxUSE_AUI 1
48595 _ACEOF
48596
48597    USE_AUI=1
48598    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
48599 fi
48600
48601 USE_STC=0
48602 if test "$wxUSE_STC" = "yes"; then
48603    cat >>confdefs.h <<\_ACEOF
48604 #define wxUSE_STC 1
48605 _ACEOF
48606
48607    USE_STC=1
48608    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS stc"
48609 fi
48610
48611 if test "$wxUSE_MENUS" = "yes"; then
48612     cat >>confdefs.h <<\_ACEOF
48613 #define wxUSE_MENUS 1
48614 _ACEOF
48615
48616     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
48617 fi
48618
48619 if test "$wxUSE_METAFILE" = "yes"; then
48620     cat >>confdefs.h <<\_ACEOF
48621 #define wxUSE_METAFILE 1
48622 _ACEOF
48623
48624 fi
48625
48626 if test "$wxUSE_MIMETYPE" = "yes"; then
48627     cat >>confdefs.h <<\_ACEOF
48628 #define wxUSE_MIMETYPE 1
48629 _ACEOF
48630
48631 fi
48632
48633 if test "$wxUSE_MINIFRAME" = "yes"; then
48634     cat >>confdefs.h <<\_ACEOF
48635 #define wxUSE_MINIFRAME 1
48636 _ACEOF
48637
48638     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
48639 fi
48640
48641 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
48642     cat >>confdefs.h <<\_ACEOF
48643 #define wxUSE_SYSTEM_OPTIONS 1
48644 _ACEOF
48645
48646 fi
48647
48648 if test "$wxUSE_TASKBARICON" = "yes"; then
48649     cat >>confdefs.h <<\_ACEOF
48650 #define wxUSE_TASKBARICON 1
48651 _ACEOF
48652
48653     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
48654 fi
48655
48656
48657 if test "$wxUSE_VALIDATORS" = "yes"; then
48658     cat >>confdefs.h <<\_ACEOF
48659 #define wxUSE_VALIDATORS 1
48660 _ACEOF
48661
48662     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
48663 fi
48664
48665 if test "$wxUSE_PALETTE" = "yes" ; then
48666     if test "$wxUSE_DFB" = 1; then
48667         { echo "$as_me:$LINENO: WARNING: wxPalette not yet supported under DFB... disabled" >&5
48668 echo "$as_me: WARNING: wxPalette not yet supported under DFB... disabled" >&2;}
48669         wxUSE_PALETTE=no
48670     else
48671         cat >>confdefs.h <<\_ACEOF
48672 #define wxUSE_PALETTE 1
48673 _ACEOF
48674
48675     fi
48676 fi
48677
48678 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
48679     LIBS=" -lunicows $LIBS"
48680 fi
48681
48682 USE_RICHTEXT=0
48683 if test "$wxUSE_RICHTEXT" = "yes"; then
48684     cat >>confdefs.h <<\_ACEOF
48685 #define wxUSE_RICHTEXT 1
48686 _ACEOF
48687
48688     USE_RICHTEXT=1
48689     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
48690 fi
48691
48692
48693 if test "$wxUSE_IMAGE" = "yes" ; then
48694     cat >>confdefs.h <<\_ACEOF
48695 #define wxUSE_IMAGE 1
48696 _ACEOF
48697
48698
48699     if test "$wxUSE_GIF" = "yes" ; then
48700       cat >>confdefs.h <<\_ACEOF
48701 #define wxUSE_GIF 1
48702 _ACEOF
48703
48704     fi
48705
48706     if test "$wxUSE_PCX" = "yes" ; then
48707       cat >>confdefs.h <<\_ACEOF
48708 #define wxUSE_PCX 1
48709 _ACEOF
48710
48711     fi
48712
48713     if test "$wxUSE_TGA" = "yes" ; then
48714       cat >>confdefs.h <<\_ACEOF
48715 #define wxUSE_TGA 1
48716 _ACEOF
48717
48718     fi
48719
48720     if test "$wxUSE_IFF" = "yes" ; then
48721       cat >>confdefs.h <<\_ACEOF
48722 #define wxUSE_IFF 1
48723 _ACEOF
48724
48725     fi
48726
48727     if test "$wxUSE_PNM" = "yes" ; then
48728       cat >>confdefs.h <<\_ACEOF
48729 #define wxUSE_PNM 1
48730 _ACEOF
48731
48732     fi
48733
48734     if test "$wxUSE_XPM" = "yes" ; then
48735       cat >>confdefs.h <<\_ACEOF
48736 #define wxUSE_XPM 1
48737 _ACEOF
48738
48739     fi
48740
48741     if test "$wxUSE_ICO_CUR" = "yes" ; then
48742       cat >>confdefs.h <<\_ACEOF
48743 #define wxUSE_ICO_CUR 1
48744 _ACEOF
48745
48746     fi
48747 fi
48748
48749
48750 if test "$wxUSE_ABOUTDLG" = "yes"; then
48751     cat >>confdefs.h <<\_ACEOF
48752 #define wxUSE_ABOUTDLG 1
48753 _ACEOF
48754
48755 fi
48756
48757 if test "$wxUSE_CHOICEDLG" = "yes"; then
48758     cat >>confdefs.h <<\_ACEOF
48759 #define wxUSE_CHOICEDLG 1
48760 _ACEOF
48761
48762 fi
48763
48764 if test "$wxUSE_COLOURDLG" = "yes"; then
48765     cat >>confdefs.h <<\_ACEOF
48766 #define wxUSE_COLOURDLG 1
48767 _ACEOF
48768
48769 fi
48770
48771 if test "$wxUSE_FILEDLG" = "yes"; then
48772     cat >>confdefs.h <<\_ACEOF
48773 #define wxUSE_FILEDLG 1
48774 _ACEOF
48775
48776 fi
48777
48778 if test "$wxUSE_FINDREPLDLG" = "yes"; then
48779     cat >>confdefs.h <<\_ACEOF
48780 #define wxUSE_FINDREPLDLG 1
48781 _ACEOF
48782
48783 fi
48784
48785 if test "$wxUSE_FONTDLG" = "yes"; then
48786     cat >>confdefs.h <<\_ACEOF
48787 #define wxUSE_FONTDLG 1
48788 _ACEOF
48789
48790 fi
48791
48792 if test "$wxUSE_DIRDLG" = "yes"; then
48793     if test "$wxUSE_TREECTRL" != "yes"; then
48794         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
48795 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
48796     else
48797         cat >>confdefs.h <<\_ACEOF
48798 #define wxUSE_DIRDLG 1
48799 _ACEOF
48800
48801     fi
48802 fi
48803
48804 if test "$wxUSE_MSGDLG" = "yes"; then
48805     cat >>confdefs.h <<\_ACEOF
48806 #define wxUSE_MSGDLG 1
48807 _ACEOF
48808
48809 fi
48810
48811 if test "$wxUSE_NUMBERDLG" = "yes"; then
48812     cat >>confdefs.h <<\_ACEOF
48813 #define wxUSE_NUMBERDLG 1
48814 _ACEOF
48815
48816 fi
48817
48818 if test "$wxUSE_PROGRESSDLG" = "yes"; then
48819     if test "$wxUSE_CONSTRAINTS" != "yes"; then
48820        { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
48821 echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
48822     else
48823         cat >>confdefs.h <<\_ACEOF
48824 #define wxUSE_PROGRESSDLG 1
48825 _ACEOF
48826
48827     fi
48828 fi
48829
48830 if test "$wxUSE_SPLASH" = "yes"; then
48831     cat >>confdefs.h <<\_ACEOF
48832 #define wxUSE_SPLASH 1
48833 _ACEOF
48834
48835     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
48836 fi
48837
48838 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
48839     if test "$wxUSE_CONSTRAINTS" != "yes"; then
48840        { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
48841 echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
48842     else
48843         cat >>confdefs.h <<\_ACEOF
48844 #define wxUSE_STARTUP_TIPS 1
48845 _ACEOF
48846
48847     fi
48848 fi
48849
48850 if test "$wxUSE_TEXTDLG" = "yes"; then
48851     cat >>confdefs.h <<\_ACEOF
48852 #define wxUSE_TEXTDLG 1
48853 _ACEOF
48854
48855 fi
48856
48857 if test "$wxUSE_WIZARDDLG" = "yes"; then
48858     cat >>confdefs.h <<\_ACEOF
48859 #define wxUSE_WIZARDDLG 1
48860 _ACEOF
48861
48862     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
48863 fi
48864
48865
48866 if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then
48867    if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
48868       cat >>confdefs.h <<\_ACEOF
48869 #define wxUSE_GRAPHICS_CONTEXT 1
48870 _ACEOF
48871
48872    elif test "$wxUSE_GTK" != 1; then
48873             cat >>confdefs.h <<\_ACEOF
48874 #define wxUSE_GRAPHICS_CONTEXT 1
48875 _ACEOF
48876
48877    else
48878
48879 pkg_failed=no
48880 { echo "$as_me:$LINENO: checking for CAIRO" >&5
48881 echo $ECHO_N "checking for CAIRO... $ECHO_C" >&6; }
48882
48883 if test -n "$PKG_CONFIG"; then
48884     if test -n "$CAIRO_CFLAGS"; then
48885         pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
48886     else
48887         if test -n "$PKG_CONFIG" && \
48888     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
48889   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
48890   ac_status=$?
48891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48892   (exit $ac_status); }; then
48893   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
48894 else
48895   pkg_failed=yes
48896 fi
48897     fi
48898 else
48899         pkg_failed=untried
48900 fi
48901 if test -n "$PKG_CONFIG"; then
48902     if test -n "$CAIRO_LIBS"; then
48903         pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
48904     else
48905         if test -n "$PKG_CONFIG" && \
48906     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
48907   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
48908   ac_status=$?
48909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48910   (exit $ac_status); }; then
48911   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
48912 else
48913   pkg_failed=yes
48914 fi
48915     fi
48916 else
48917         pkg_failed=untried
48918 fi
48919
48920
48921
48922 if test $pkg_failed = yes; then
48923
48924 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
48925         _pkg_short_errors_supported=yes
48926 else
48927         _pkg_short_errors_supported=no
48928 fi
48929         if test $_pkg_short_errors_supported = yes; then
48930                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
48931         else
48932                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
48933         fi
48934         # Put the nasty error message in config.log where it belongs
48935         echo "$CAIRO_PKG_ERRORS" >&5
48936
48937         { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
48938 echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
48939
48940 elif test $pkg_failed = untried; then
48941         { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
48942 echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
48943
48944 else
48945         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
48946         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
48947         { echo "$as_me:$LINENO: result: yes" >&5
48948 echo "${ECHO_T}yes" >&6; }
48949         cat >>confdefs.h <<\_ACEOF
48950 #define wxUSE_GRAPHICS_CONTEXT 1
48951 _ACEOF
48952
48953 fi
48954    fi
48955 fi
48956
48957
48958 USE_MEDIA=0
48959
48960 if test "$wxUSE_MEDIACTRL" = "yes"; then
48961     USE_MEDIA=1
48962
48963                 if test "$wxUSE_GTK" = 1; then
48964         wxUSE_GSTREAMER="no"
48965
48966                                                                 GST_VERSION_MAJOR=0
48967         GST_VERSION_MINOR=10
48968         GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
48969
48970         if test "$wxUSE_GSTREAMER8" = "no"; then
48971
48972 pkg_failed=no
48973 { echo "$as_me:$LINENO: checking for GST" >&5
48974 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
48975
48976 if test -n "$PKG_CONFIG"; then
48977     if test -n "$GST_CFLAGS"; then
48978         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
48979     else
48980         if test -n "$PKG_CONFIG" && \
48981     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
48982   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
48983   ac_status=$?
48984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48985   (exit $ac_status); }; then
48986   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
48987 else
48988   pkg_failed=yes
48989 fi
48990     fi
48991 else
48992         pkg_failed=untried
48993 fi
48994 if test -n "$PKG_CONFIG"; then
48995     if test -n "$GST_LIBS"; then
48996         pkg_cv_GST_LIBS="$GST_LIBS"
48997     else
48998         if test -n "$PKG_CONFIG" && \
48999     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
49000   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
49001   ac_status=$?
49002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49003   (exit $ac_status); }; then
49004   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
49005 else
49006   pkg_failed=yes
49007 fi
49008     fi
49009 else
49010         pkg_failed=untried
49011 fi
49012
49013
49014
49015 if test $pkg_failed = yes; then
49016
49017 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49018         _pkg_short_errors_supported=yes
49019 else
49020         _pkg_short_errors_supported=no
49021 fi
49022         if test $_pkg_short_errors_supported = yes; then
49023                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
49024         else
49025                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
49026         fi
49027         # Put the nasty error message in config.log where it belongs
49028         echo "$GST_PKG_ERRORS" >&5
49029
49030
49031                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
49032 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
49033                     GST_VERSION_MINOR=8
49034
49035
49036 elif test $pkg_failed = untried; then
49037
49038                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
49039 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
49040                     GST_VERSION_MINOR=8
49041
49042
49043 else
49044         GST_CFLAGS=$pkg_cv_GST_CFLAGS
49045         GST_LIBS=$pkg_cv_GST_LIBS
49046         { echo "$as_me:$LINENO: result: yes" >&5
49047 echo "${ECHO_T}yes" >&6; }
49048
49049                     wxUSE_GSTREAMER="yes"
49050                     GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
49051
49052 fi
49053         else
49054                         GST_VERSION_MINOR=8
49055         fi
49056
49057         if test $GST_VERSION_MINOR = "8"; then
49058             GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
49059
49060 pkg_failed=no
49061 { echo "$as_me:$LINENO: checking for GST" >&5
49062 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
49063
49064 if test -n "$PKG_CONFIG"; then
49065     if test -n "$GST_CFLAGS"; then
49066         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
49067     else
49068         if test -n "$PKG_CONFIG" && \
49069     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
49070   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
49071   ac_status=$?
49072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49073   (exit $ac_status); }; then
49074   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
49075 else
49076   pkg_failed=yes
49077 fi
49078     fi
49079 else
49080         pkg_failed=untried
49081 fi
49082 if test -n "$PKG_CONFIG"; then
49083     if test -n "$GST_LIBS"; then
49084         pkg_cv_GST_LIBS="$GST_LIBS"
49085     else
49086         if test -n "$PKG_CONFIG" && \
49087     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
49088   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
49089   ac_status=$?
49090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49091   (exit $ac_status); }; then
49092   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
49093 else
49094   pkg_failed=yes
49095 fi
49096     fi
49097 else
49098         pkg_failed=untried
49099 fi
49100
49101
49102
49103 if test $pkg_failed = yes; then
49104
49105 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49106         _pkg_short_errors_supported=yes
49107 else
49108         _pkg_short_errors_supported=no
49109 fi
49110         if test $_pkg_short_errors_supported = yes; then
49111                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
49112         else
49113                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
49114         fi
49115         # Put the nasty error message in config.log where it belongs
49116         echo "$GST_PKG_ERRORS" >&5
49117
49118
49119                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
49120 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
49121
49122 elif test $pkg_failed = untried; then
49123
49124                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
49125 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
49126
49127 else
49128         GST_CFLAGS=$pkg_cv_GST_CFLAGS
49129         GST_LIBS=$pkg_cv_GST_LIBS
49130         { echo "$as_me:$LINENO: result: yes" >&5
49131 echo "${ECHO_T}yes" >&6; }
49132         wxUSE_GSTREAMER="yes"
49133 fi
49134         fi
49135
49136
49137         if test "$wxUSE_GSTREAMER" = "yes"; then
49138             CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
49139             LIBS="$GST_LIBS $LIBS"
49140
49141             cat >>confdefs.h <<\_ACEOF
49142 #define wxUSE_GSTREAMER 1
49143 _ACEOF
49144
49145         else
49146             USE_MEDIA=0
49147         fi
49148     fi
49149
49150     if test $USE_MEDIA = 1; then
49151         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
49152         cat >>confdefs.h <<\_ACEOF
49153 #define wxUSE_MEDIACTRL 1
49154 _ACEOF
49155
49156     fi
49157 fi
49158
49159
49160 if test "$cross_compiling" = "yes"; then
49161         OSINFO="\"$host\""
49162 else
49163         OSINFO=`uname -s -r -m`
49164     OSINFO="\"$OSINFO\""
49165 fi
49166
49167 cat >>confdefs.h <<_ACEOF
49168 #define WXWIN_OS_DESCRIPTION $OSINFO
49169 _ACEOF
49170
49171
49172
49173 if test "x$prefix" != "xNONE"; then
49174     wxPREFIX=$prefix
49175 else
49176     wxPREFIX=$ac_default_prefix
49177 fi
49178
49179 cat >>confdefs.h <<_ACEOF
49180 #define wxINSTALL_PREFIX "$wxPREFIX"
49181 _ACEOF
49182
49183
49184
49185
49186 STD_BASE_LIBS="base"
49187 STD_GUI_LIBS=""
49188 BUILT_WX_LIBS="base"
49189 ALL_WX_LIBS="xrc stc gl media dbgrid qa html adv core odbc xml net base"
49190
49191 if test "$wxUSE_SOCKETS" = "yes" ; then
49192     STD_BASE_LIBS="net $STD_BASE_LIBS"
49193     BUILT_WX_LIBS="net $BUILT_WX_LIBS"
49194 fi
49195 if test "$wxUSE_ODBC" != "no" ; then
49196     BUILT_WX_LIBS="odbc $BUILT_WX_LIBS"
49197 fi
49198 if test "$wxUSE_XML" = "yes" ; then
49199     STD_BASE_LIBS="xml $STD_BASE_LIBS"
49200     BUILT_WX_LIBS="xml $BUILT_WX_LIBS"
49201 fi
49202
49203 if test "$wxUSE_GUI" = "yes"; then
49204     STD_GUI_LIBS="adv core"
49205     BUILT_WX_LIBS="$STD_GUI_LIBS $BUILT_WX_LIBS"
49206
49207     if test "$wxUSE_DEBUGREPORT" = "yes" ; then
49208         STD_GUI_LIBS="qa $STD_GUI_LIBS"
49209         BUILT_WX_LIBS="qa $BUILT_WX_LIBS"
49210     fi
49211     if test "$wxUSE_ODBC" != "no" ; then
49212         BUILT_WX_LIBS="dbgrid $BUILT_WX_LIBS"
49213     fi
49214     if test "$wxUSE_HTML" = "yes" ; then
49215         STD_GUI_LIBS="html $STD_GUI_LIBS"
49216         BUILT_WX_LIBS="html $BUILT_WX_LIBS"
49217     fi
49218     if test "$wxUSE_MEDIACTRL" = "yes" ; then
49219         BUILT_WX_LIBS="media $BUILT_WX_LIBS"
49220     fi
49221     if test "$wxUSE_OPENGL" = "yes" ; then
49222         BUILT_WX_LIBS="gl $BUILT_WX_LIBS"
49223     fi
49224     if test "$wxUSE_AUI" = "yes" ; then
49225         BUILT_WX_LIBS="aui $BUILT_WX_LIBS"
49226     fi
49227     if test "$wxUSE_STC" = "yes" ; then
49228         BUILT_WX_LIBS="stc $BUILT_WX_LIBS"
49229     fi
49230     if test "$wxUSE_XRC" = "yes" ; then
49231         STD_GUI_LIBS="xrc $STD_GUI_LIBS"
49232         BUILT_WX_LIBS="xrc $BUILT_WX_LIBS"
49233     fi
49234 fi
49235
49236
49237
49238
49239
49240
49241
49242
49243 if test "$wxUSE_MAC" = 1 ; then
49244     if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
49245         if test "$USE_DARWIN" = 1; then
49246             LDFLAGS="$LDFLAGS -framework QuickTime"
49247         else
49248             LDFLAGS="$LDFLAGS -lQuickTimeLib"
49249         fi
49250     fi
49251     if test "$USE_DARWIN" = 1; then
49252         LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
49253     else
49254         LDFLAGS="$LDFLAGS -lCarbonLib"
49255     fi
49256 fi
49257 if test "$wxUSE_COCOA" = 1 ; then
49258     LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
49259     if test "$wxUSE_MEDIACTRL" = "yes"; then
49260         LDFLAGS="$LDFLAGS -framework QuickTime"
49261     fi
49262 fi
49263 if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
49264     LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
49265 fi
49266
49267 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
49268
49269 if test "$wxUSE_GUI" = "yes"; then
49270
49271
49272         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
49273                      dynamic erase event exec font image minimal mobile \
49274                      mobile/wxedit mobile/styles propsize render \
49275                      rotate shaped svg taborder vscroll widgets"
49276
49277     if test "$wxUSE_MONOLITHIC" != "yes"; then
49278         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
49279     fi
49280     if test "$TOOLKIT" = "MSW"; then
49281         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
49282         if test "$wxUSE_UNIVERSAL" != "yes"; then
49283             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
49284         fi
49285     fi
49286     if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
49287         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
49288     fi
49289 else
49290     SAMPLES_SUBDIRS="console"
49291 fi
49292
49293
49294 if test "x$INTELCC" = "xyes" ; then
49295                                         CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
49296 elif test "$GCC" = yes ; then
49297     CWARNINGS="-Wall -Wundef"
49298 fi
49299
49300 if test "x$INTELCXX" = "xyes" ; then
49301                                                             CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
49302 elif test "$GXX" = yes ; then
49303         CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
49304 fi
49305
49306
49307 WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
49308 WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
49309
49310
49311 CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
49312  -I\\${wx_top_builddir}/lib/wx/include/${TOOLCHAIN_FULLNAME} \
49313  -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
49314  $CPPFLAGS `
49315
49316 C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
49317 CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
49318 CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $CXXFLAGS `
49319
49320 WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
49321
49322
49323 if test "x$MWCC" = "xyes"; then
49324
49325             CC="$CC -cwd source -I-"
49326     CXX="$CXX -cwd source -I-"
49327 fi
49328
49329
49330 LIBS=`echo $LIBS`
49331 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
49332 EXTRALIBS_XML="$EXPAT_LINK"
49333 EXTRALIBS_HTML="$MSPACK_LINK"
49334 EXTRALIBS_ODBC="$ODBC_LINK"
49335 EXTRALIBS_STC="-lwxscintilla${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
49336 if test "$wxUSE_GUI" = "yes"; then
49337     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
49338 fi
49339 if test "$wxUSE_OPENGL" = "yes"; then
49340     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
49341 fi
49342
49343 LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
49344
49345 WXCONFIG_LIBS="$LIBS"
49346
49347 if test "$wxUSE_REGEX" = "builtin" ; then
49348     wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
49349 fi
49350 if test "$wxUSE_EXPAT" = "builtin" ; then
49351     wxconfig_3rdparty="expat $wxconfig_3rdparty"
49352 fi
49353 if test "$wxUSE_ODBC" = "builtin" ; then
49354     wxconfig_3rdparty="odbc $wxconfig_3rdparty"
49355 fi
49356 if test "$wxUSE_LIBTIFF" = "builtin" ; then
49357     wxconfig_3rdparty="tiff $wxconfig_3rdparty"
49358 fi
49359 if test "$wxUSE_LIBJPEG" = "builtin" ; then
49360     wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
49361 fi
49362 if test "$wxUSE_LIBPNG" = "builtin" ; then
49363     wxconfig_3rdparty="png $wxconfig_3rdparty"
49364 fi
49365 if test "$wxUSE_ZLIB" = "builtin" ; then
49366     wxconfig_3rdparty="zlib $wxconfig_3rdparty"
49367 fi
49368
49369 for i in $wxconfig_3rdparty ; do
49370     WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
49371 done
49372
49373
49374 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
49375     WXUNIV=1
49376
49377     case "$wxUNIV_THEMES" in
49378         ''|all)
49379             cat >>confdefs.h <<\_ACEOF
49380 #define wxUSE_ALL_THEMES 1
49381 _ACEOF
49382
49383             ;;
49384
49385         *)
49386             for t in `echo $wxUNIV_THEMES | tr , ' ' | tr a-z A-Z`; do
49387                 cat >>confdefs.h <<_ACEOF
49388 #define wxUSE_THEME_$t 1
49389 _ACEOF
49390
49391             done
49392     esac
49393 else
49394     WXUNIV=0
49395 fi
49396
49397
49398
49399
49400
49401
49402
49403
49404
49405 if test $wxUSE_MONOLITHIC = "yes" ; then
49406     MONOLITHIC=1
49407 else
49408     MONOLITHIC=0
49409 fi
49410
49411 if test $wxUSE_PLUGINS = "yes" ; then
49412     USE_PLUGINS=1
49413 else
49414     USE_PLUGINS=0
49415 fi
49416
49417 if test $wxUSE_ODBC != "no" ; then
49418     USE_ODBC=1
49419 else
49420     USE_ODBC=0
49421 fi
49422
49423 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
49424     USE_QA=1
49425 else
49426     USE_QA=0
49427 fi
49428
49429 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
49430     OFFICIAL_BUILD=1
49431 else
49432     OFFICIAL_BUILD=0
49433 fi
49434
49435
49436
49437
49438
49439
49440
49441
49442
49443
49444
49445
49446
49447
49448
49449
49450
49451
49452
49453
49454
49455
49456
49457
49458
49459
49460 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
49461
49462
49463
49464
49465
49466
49467
49468
49469 case "$TOOLKIT" in
49470     GTK)
49471         TOOLKIT_DESC="GTK+"
49472         if test "$WXGTK20" = 1; then
49473             TOOLKIT_DESC="$TOOLKIT_DESC 2"
49474             if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
49475                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
49476             fi
49477             if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
49478                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
49479             fi
49480             if test "$wxUSE_LIBHILDON" = "yes"; then
49481                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
49482             fi
49483
49484             if test "$TOOLKIT_EXTRA" != ""; then
49485                 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
49486             fi
49487         fi
49488         ;;
49489
49490     ?*)
49491         TOOLKIT_DESC=$TOOLKIT_LOWERCASE
49492         ;;
49493
49494     *)
49495         TOOLKIT_DESC="base only"
49496         ;;
49497 esac
49498
49499 if test "$wxUSE_WINE" = "yes"; then
49500     BAKEFILE_FORCE_PLATFORM=win32
49501 fi
49502
49503 if test "$wxUSE_MAC" = 1 ; then
49504     if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
49505                         if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
49506             OSX_UNIV_OPTS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk"
49507         else
49508                                     OSX_UNIV_OPTS=${wxUSE_UNIVERSAL_BINARY:+"-isysroot '$wxUSE_UNIVERSAL_BINARY'"}
49509         fi
49510         OSX_UNIV_OPTS="$OSX_UNIV_OPTS -arch ppc -arch i386"
49511         CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS"
49512         CFLAGS="$OSX_UNIV_OPTS $CFLAGS"
49513         LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS"
49514         bk_use_pch=no
49515     fi
49516     # TODO: where do we add "-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" for libtool (static builds only)?
49517     #       The makefile currently uses AR and RANLIB, which libtool apparently supercedes.
49518 fi
49519
49520 if test "$wxUSE_UNICODE" = yes -a "$GCC" = yes -a "$bk_use_pch" != no
49521 then
49522     { echo "$as_me:$LINENO: checking for gcc precompiled header bug" >&5
49523 echo $ECHO_N "checking for gcc precompiled header bug... $ECHO_C" >&6; }
49524 if test "${wx_cv_gcc_pch_bug+set}" = set; then
49525   echo $ECHO_N "(cached) $ECHO_C" >&6
49526 else
49527
49528             echo '#include <stdio.h>
49529                   const wchar_t test_var[] = L"awidetest";' > conftest.h
49530
49531             echo '#include "conftest.h"
49532                   int main()
49533                   {
49534                      printf("%ls", test_var);
49535                      return 0;
49536                   }' > conftest.cpp
49537
49538             wx_cv_gcc_pch_bug="pch not supported"
49539
49540             if $CXX conftest.h >/dev/null 2>&1
49541             then
49542                 wx_cv_gcc_pch_bug=
49543
49544                 if $CXX -o conftest$PROGRAM_EXT conftest.cpp >/dev/null 2>&1
49545                 then
49546                     if tr -dc '[a-z]' < conftest$PROGRAM_EXT |
49547                         grep awidetest >/dev/null
49548                     then
49549                         wx_cv_gcc_pch_bug=no
49550                     else
49551                         wx_cv_gcc_pch_bug=yes
49552                     fi
49553                 fi
49554             fi
49555
49556             rm -f conftest.h conftest.gch conftest.cpp conftest$PROGRAM_EXT
49557
49558 fi
49559 { echo "$as_me:$LINENO: result: $wx_cv_gcc_pch_bug" >&5
49560 echo "${ECHO_T}$wx_cv_gcc_pch_bug" >&6; }
49561
49562     if test "$wx_cv_gcc_pch_bug" = yes; then
49563                         bk_use_pch=no
49564     fi
49565 fi
49566
49567
49568
49569
49570     if test "x$BAKEFILE_HOST" = "x"; then
49571                if test "x${host}" = "x" ; then
49572                        { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
49573 echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
49574    { (exit 1); exit 1; }; }
49575                fi
49576
49577         BAKEFILE_HOST="${host}"
49578     fi
49579
49580     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
49581
49582     if test -n "$ac_tool_prefix"; then
49583   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
49584 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
49585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49587 if test "${ac_cv_prog_RANLIB+set}" = set; then
49588   echo $ECHO_N "(cached) $ECHO_C" >&6
49589 else
49590   if test -n "$RANLIB"; then
49591   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
49592 else
49593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49594 for as_dir in $PATH
49595 do
49596   IFS=$as_save_IFS
49597   test -z "$as_dir" && as_dir=.
49598   for ac_exec_ext in '' $ac_executable_extensions; do
49599   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49600     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
49601     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49602     break 2
49603   fi
49604 done
49605 done
49606 IFS=$as_save_IFS
49607
49608 fi
49609 fi
49610 RANLIB=$ac_cv_prog_RANLIB
49611 if test -n "$RANLIB"; then
49612   { echo "$as_me:$LINENO: result: $RANLIB" >&5
49613 echo "${ECHO_T}$RANLIB" >&6; }
49614 else
49615   { echo "$as_me:$LINENO: result: no" >&5
49616 echo "${ECHO_T}no" >&6; }
49617 fi
49618
49619
49620 fi
49621 if test -z "$ac_cv_prog_RANLIB"; then
49622   ac_ct_RANLIB=$RANLIB
49623   # Extract the first word of "ranlib", so it can be a program name with args.
49624 set dummy ranlib; ac_word=$2
49625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49627 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
49628   echo $ECHO_N "(cached) $ECHO_C" >&6
49629 else
49630   if test -n "$ac_ct_RANLIB"; then
49631   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
49632 else
49633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49634 for as_dir in $PATH
49635 do
49636   IFS=$as_save_IFS
49637   test -z "$as_dir" && as_dir=.
49638   for ac_exec_ext in '' $ac_executable_extensions; do
49639   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49640     ac_cv_prog_ac_ct_RANLIB="ranlib"
49641     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49642     break 2
49643   fi
49644 done
49645 done
49646 IFS=$as_save_IFS
49647
49648 fi
49649 fi
49650 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
49651 if test -n "$ac_ct_RANLIB"; then
49652   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
49653 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
49654 else
49655   { echo "$as_me:$LINENO: result: no" >&5
49656 echo "${ECHO_T}no" >&6; }
49657 fi
49658
49659   if test "x$ac_ct_RANLIB" = x; then
49660     RANLIB=":"
49661   else
49662     case $cross_compiling:$ac_tool_warned in
49663 yes:)
49664 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49665 whose name does not start with the host triplet.  If you think this
49666 configuration is useful to you, please write to autoconf@gnu.org." >&5
49667 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49668 whose name does not start with the host triplet.  If you think this
49669 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49670 ac_tool_warned=yes ;;
49671 esac
49672     RANLIB=$ac_ct_RANLIB
49673   fi
49674 else
49675   RANLIB="$ac_cv_prog_RANLIB"
49676 fi
49677
49678     # Find a good install program.  We prefer a C program (faster),
49679 # so one script is as good as another.  But avoid the broken or
49680 # incompatible versions:
49681 # SysV /etc/install, /usr/sbin/install
49682 # SunOS /usr/etc/install
49683 # IRIX /sbin/install
49684 # AIX /bin/install
49685 # AmigaOS /C/install, which installs bootblocks on floppy discs
49686 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
49687 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
49688 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
49689 # OS/2's system install, which has a completely different semantic
49690 # ./install, which can be erroneously created by make from ./install.sh.
49691 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
49692 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
49693 if test -z "$INSTALL"; then
49694 if test "${ac_cv_path_install+set}" = set; then
49695   echo $ECHO_N "(cached) $ECHO_C" >&6
49696 else
49697   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49698 for as_dir in $PATH
49699 do
49700   IFS=$as_save_IFS
49701   test -z "$as_dir" && as_dir=.
49702   # Account for people who put trailing slashes in PATH elements.
49703 case $as_dir/ in
49704   ./ | .// | /cC/* | \
49705   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
49706   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
49707   /usr/ucb/* ) ;;
49708   *)
49709     # OSF1 and SCO ODT 3.0 have their own names for install.
49710     # Don't use installbsd from OSF since it installs stuff as root
49711     # by default.
49712     for ac_prog in ginstall scoinst install; do
49713       for ac_exec_ext in '' $ac_executable_extensions; do
49714         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
49715           if test $ac_prog = install &&
49716             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
49717             # AIX install.  It has an incompatible calling convention.
49718             :
49719           elif test $ac_prog = install &&
49720             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
49721             # program-specific install script used by HP pwplus--don't use.
49722             :
49723           else
49724             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
49725             break 3
49726           fi
49727         fi
49728       done
49729     done
49730     ;;
49731 esac
49732 done
49733 IFS=$as_save_IFS
49734
49735
49736 fi
49737   if test "${ac_cv_path_install+set}" = set; then
49738     INSTALL=$ac_cv_path_install
49739   else
49740     # As a last resort, use the slow shell script.  Don't cache a
49741     # value for INSTALL within a source directory, because that will
49742     # break other packages using the cache if that directory is
49743     # removed, or if the value is a relative name.
49744     INSTALL=$ac_install_sh
49745   fi
49746 fi
49747 { echo "$as_me:$LINENO: result: $INSTALL" >&5
49748 echo "${ECHO_T}$INSTALL" >&6; }
49749
49750 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
49751 # It thinks the first close brace ends the variable substitution.
49752 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
49753
49754 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
49755
49756 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
49757
49758     { echo "$as_me:$LINENO: checking whether ln -s works" >&5
49759 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
49760 LN_S=$as_ln_s
49761 if test "$LN_S" = "ln -s"; then
49762   { echo "$as_me:$LINENO: result: yes" >&5
49763 echo "${ECHO_T}yes" >&6; }
49764 else
49765   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
49766 echo "${ECHO_T}no, using $LN_S" >&6; }
49767 fi
49768
49769
49770     { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
49771 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
49772 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
49773 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
49774   echo $ECHO_N "(cached) $ECHO_C" >&6
49775 else
49776   cat >conftest.make <<\_ACEOF
49777 SHELL = /bin/sh
49778 all:
49779         @echo '@@@%%%=$(MAKE)=@@@%%%'
49780 _ACEOF
49781 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
49782 case `${MAKE-make} -f conftest.make 2>/dev/null` in
49783   *@@@%%%=?*=@@@%%%*)
49784     eval ac_cv_prog_make_${ac_make}_set=yes;;
49785   *)
49786     eval ac_cv_prog_make_${ac_make}_set=no;;
49787 esac
49788 rm -f conftest.make
49789 fi
49790 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
49791   { echo "$as_me:$LINENO: result: yes" >&5
49792 echo "${ECHO_T}yes" >&6; }
49793   SET_MAKE=
49794 else
49795   { echo "$as_me:$LINENO: result: no" >&5
49796 echo "${ECHO_T}no" >&6; }
49797   SET_MAKE="MAKE=${MAKE-make}"
49798 fi
49799
49800
49801
49802     if test "x$SUNCXX" = "xyes"; then
49803                                 AR=$CXX
49804         AROPTIONS="-xar -o"
49805
49806     elif test "x$SGICC" = "xyes"; then
49807                 AR=$CXX
49808         AROPTIONS="-ar -o"
49809
49810     else
49811         if test -n "$ac_tool_prefix"; then
49812   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
49813 set dummy ${ac_tool_prefix}ar; ac_word=$2
49814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49816 if test "${ac_cv_prog_AR+set}" = set; then
49817   echo $ECHO_N "(cached) $ECHO_C" >&6
49818 else
49819   if test -n "$AR"; then
49820   ac_cv_prog_AR="$AR" # Let the user override the test.
49821 else
49822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49823 for as_dir in $PATH
49824 do
49825   IFS=$as_save_IFS
49826   test -z "$as_dir" && as_dir=.
49827   for ac_exec_ext in '' $ac_executable_extensions; do
49828   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49829     ac_cv_prog_AR="${ac_tool_prefix}ar"
49830     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49831     break 2
49832   fi
49833 done
49834 done
49835 IFS=$as_save_IFS
49836
49837 fi
49838 fi
49839 AR=$ac_cv_prog_AR
49840 if test -n "$AR"; then
49841   { echo "$as_me:$LINENO: result: $AR" >&5
49842 echo "${ECHO_T}$AR" >&6; }
49843 else
49844   { echo "$as_me:$LINENO: result: no" >&5
49845 echo "${ECHO_T}no" >&6; }
49846 fi
49847
49848
49849 fi
49850 if test -z "$ac_cv_prog_AR"; then
49851   ac_ct_AR=$AR
49852   # Extract the first word of "ar", so it can be a program name with args.
49853 set dummy ar; ac_word=$2
49854 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49856 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
49857   echo $ECHO_N "(cached) $ECHO_C" >&6
49858 else
49859   if test -n "$ac_ct_AR"; then
49860   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
49861 else
49862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49863 for as_dir in $PATH
49864 do
49865   IFS=$as_save_IFS
49866   test -z "$as_dir" && as_dir=.
49867   for ac_exec_ext in '' $ac_executable_extensions; do
49868   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49869     ac_cv_prog_ac_ct_AR="ar"
49870     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49871     break 2
49872   fi
49873 done
49874 done
49875 IFS=$as_save_IFS
49876
49877 fi
49878 fi
49879 ac_ct_AR=$ac_cv_prog_ac_ct_AR
49880 if test -n "$ac_ct_AR"; then
49881   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
49882 echo "${ECHO_T}$ac_ct_AR" >&6; }
49883 else
49884   { echo "$as_me:$LINENO: result: no" >&5
49885 echo "${ECHO_T}no" >&6; }
49886 fi
49887
49888   if test "x$ac_ct_AR" = x; then
49889     AR="ar"
49890   else
49891     case $cross_compiling:$ac_tool_warned in
49892 yes:)
49893 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49894 whose name does not start with the host triplet.  If you think this
49895 configuration is useful to you, please write to autoconf@gnu.org." >&5
49896 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49897 whose name does not start with the host triplet.  If you think this
49898 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49899 ac_tool_warned=yes ;;
49900 esac
49901     AR=$ac_ct_AR
49902   fi
49903 else
49904   AR="$ac_cv_prog_AR"
49905 fi
49906
49907         AROPTIONS=rcu
49908     fi
49909
49910
49911     if test -n "$ac_tool_prefix"; then
49912   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
49913 set dummy ${ac_tool_prefix}strip; ac_word=$2
49914 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49916 if test "${ac_cv_prog_STRIP+set}" = set; then
49917   echo $ECHO_N "(cached) $ECHO_C" >&6
49918 else
49919   if test -n "$STRIP"; then
49920   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
49921 else
49922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49923 for as_dir in $PATH
49924 do
49925   IFS=$as_save_IFS
49926   test -z "$as_dir" && as_dir=.
49927   for ac_exec_ext in '' $ac_executable_extensions; do
49928   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49929     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
49930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49931     break 2
49932   fi
49933 done
49934 done
49935 IFS=$as_save_IFS
49936
49937 fi
49938 fi
49939 STRIP=$ac_cv_prog_STRIP
49940 if test -n "$STRIP"; then
49941   { echo "$as_me:$LINENO: result: $STRIP" >&5
49942 echo "${ECHO_T}$STRIP" >&6; }
49943 else
49944   { echo "$as_me:$LINENO: result: no" >&5
49945 echo "${ECHO_T}no" >&6; }
49946 fi
49947
49948
49949 fi
49950 if test -z "$ac_cv_prog_STRIP"; then
49951   ac_ct_STRIP=$STRIP
49952   # Extract the first word of "strip", so it can be a program name with args.
49953 set dummy strip; ac_word=$2
49954 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49956 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
49957   echo $ECHO_N "(cached) $ECHO_C" >&6
49958 else
49959   if test -n "$ac_ct_STRIP"; then
49960   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
49961 else
49962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49963 for as_dir in $PATH
49964 do
49965   IFS=$as_save_IFS
49966   test -z "$as_dir" && as_dir=.
49967   for ac_exec_ext in '' $ac_executable_extensions; do
49968   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49969     ac_cv_prog_ac_ct_STRIP="strip"
49970     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49971     break 2
49972   fi
49973 done
49974 done
49975 IFS=$as_save_IFS
49976
49977 fi
49978 fi
49979 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
49980 if test -n "$ac_ct_STRIP"; then
49981   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
49982 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
49983 else
49984   { echo "$as_me:$LINENO: result: no" >&5
49985 echo "${ECHO_T}no" >&6; }
49986 fi
49987
49988   if test "x$ac_ct_STRIP" = x; then
49989     STRIP=":"
49990   else
49991     case $cross_compiling:$ac_tool_warned in
49992 yes:)
49993 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49994 whose name does not start with the host triplet.  If you think this
49995 configuration is useful to you, please write to autoconf@gnu.org." >&5
49996 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49997 whose name does not start with the host triplet.  If you think this
49998 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49999 ac_tool_warned=yes ;;
50000 esac
50001     STRIP=$ac_ct_STRIP
50002   fi
50003 else
50004   STRIP="$ac_cv_prog_STRIP"
50005 fi
50006
50007     if test -n "$ac_tool_prefix"; then
50008   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
50009 set dummy ${ac_tool_prefix}nm; ac_word=$2
50010 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50012 if test "${ac_cv_prog_NM+set}" = set; then
50013   echo $ECHO_N "(cached) $ECHO_C" >&6
50014 else
50015   if test -n "$NM"; then
50016   ac_cv_prog_NM="$NM" # Let the user override the test.
50017 else
50018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50019 for as_dir in $PATH
50020 do
50021   IFS=$as_save_IFS
50022   test -z "$as_dir" && as_dir=.
50023   for ac_exec_ext in '' $ac_executable_extensions; do
50024   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50025     ac_cv_prog_NM="${ac_tool_prefix}nm"
50026     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50027     break 2
50028   fi
50029 done
50030 done
50031 IFS=$as_save_IFS
50032
50033 fi
50034 fi
50035 NM=$ac_cv_prog_NM
50036 if test -n "$NM"; then
50037   { echo "$as_me:$LINENO: result: $NM" >&5
50038 echo "${ECHO_T}$NM" >&6; }
50039 else
50040   { echo "$as_me:$LINENO: result: no" >&5
50041 echo "${ECHO_T}no" >&6; }
50042 fi
50043
50044
50045 fi
50046 if test -z "$ac_cv_prog_NM"; then
50047   ac_ct_NM=$NM
50048   # Extract the first word of "nm", so it can be a program name with args.
50049 set dummy nm; ac_word=$2
50050 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50052 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
50053   echo $ECHO_N "(cached) $ECHO_C" >&6
50054 else
50055   if test -n "$ac_ct_NM"; then
50056   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
50057 else
50058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50059 for as_dir in $PATH
50060 do
50061   IFS=$as_save_IFS
50062   test -z "$as_dir" && as_dir=.
50063   for ac_exec_ext in '' $ac_executable_extensions; do
50064   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50065     ac_cv_prog_ac_ct_NM="nm"
50066     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50067     break 2
50068   fi
50069 done
50070 done
50071 IFS=$as_save_IFS
50072
50073 fi
50074 fi
50075 ac_ct_NM=$ac_cv_prog_ac_ct_NM
50076 if test -n "$ac_ct_NM"; then
50077   { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
50078 echo "${ECHO_T}$ac_ct_NM" >&6; }
50079 else
50080   { echo "$as_me:$LINENO: result: no" >&5
50081 echo "${ECHO_T}no" >&6; }
50082 fi
50083
50084   if test "x$ac_ct_NM" = x; then
50085     NM=":"
50086   else
50087     case $cross_compiling:$ac_tool_warned in
50088 yes:)
50089 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
50090 whose name does not start with the host triplet.  If you think this
50091 configuration is useful to you, please write to autoconf@gnu.org." >&5
50092 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
50093 whose name does not start with the host triplet.  If you think this
50094 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
50095 ac_tool_warned=yes ;;
50096 esac
50097     NM=$ac_ct_NM
50098   fi
50099 else
50100   NM="$ac_cv_prog_NM"
50101 fi
50102
50103
50104     case ${BAKEFILE_HOST} in
50105         *-hp-hpux* )
50106                                     INSTALL_DIR="mkdir -p"
50107             ;;
50108         * )
50109                                     INSTALL_DIR='$(INSTALL) -d'
50110             ;;
50111     esac
50112
50113
50114     LDFLAGS_GUI=
50115     case ${BAKEFILE_HOST} in
50116         *-*-cygwin* | *-*-mingw32* )
50117         LDFLAGS_GUI="-mwindows"
50118     esac
50119
50120
50121     fi
50122
50123         { echo "$as_me:$LINENO: checking if make is GNU make" >&5
50124 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6; }
50125 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
50126   echo $ECHO_N "(cached) $ECHO_C" >&6
50127 else
50128
50129         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
50130                 egrep -s GNU > /dev/null); then
50131             bakefile_cv_prog_makeisgnu="yes"
50132         else
50133             bakefile_cv_prog_makeisgnu="no"
50134         fi
50135
50136 fi
50137 { echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
50138 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6; }
50139
50140     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
50141         IF_GNU_MAKE=""
50142     else
50143         IF_GNU_MAKE="#"
50144     fi
50145
50146
50147
50148     PLATFORM_UNIX=0
50149     PLATFORM_WIN32=0
50150     PLATFORM_MSDOS=0
50151     PLATFORM_MAC=0
50152     PLATFORM_MACOS=0
50153     PLATFORM_MACOSX=0
50154     PLATFORM_OS2=0
50155     PLATFORM_BEOS=0
50156
50157     if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
50158         case "${BAKEFILE_HOST}" in
50159             *-*-mingw32* )
50160                 PLATFORM_WIN32=1
50161             ;;
50162             *-pc-msdosdjgpp )
50163                 PLATFORM_MSDOS=1
50164             ;;
50165             *-pc-os2_emx | *-pc-os2-emx )
50166                 PLATFORM_OS2=1
50167             ;;
50168             *-*-darwin* )
50169                 PLATFORM_MAC=1
50170                 PLATFORM_MACOSX=1
50171             ;;
50172             *-*-beos* )
50173                 PLATFORM_BEOS=1
50174             ;;
50175             powerpc-apple-macos* )
50176                 PLATFORM_MAC=1
50177                 PLATFORM_MACOS=1
50178             ;;
50179             * )
50180                 PLATFORM_UNIX=1
50181             ;;
50182         esac
50183     else
50184         case "$BAKEFILE_FORCE_PLATFORM" in
50185             win32 )
50186                 PLATFORM_WIN32=1
50187             ;;
50188             msdos )
50189                 PLATFORM_MSDOS=1
50190             ;;
50191             os2 )
50192                 PLATFORM_OS2=1
50193             ;;
50194             darwin )
50195                 PLATFORM_MAC=1
50196                 PLATFORM_MACOSX=1
50197             ;;
50198             unix )
50199                 PLATFORM_UNIX=1
50200             ;;
50201             beos )
50202                 PLATFORM_BEOS=1
50203             ;;
50204             * )
50205                                             ;;
50206         esac
50207     fi
50208
50209
50210
50211
50212
50213
50214
50215
50216
50217
50218
50219     # Check whether --enable-omf was given.
50220 if test "${enable_omf+set}" = set; then
50221   enableval=$enable_omf; bk_os2_use_omf="$enableval"
50222 fi
50223
50224
50225     case "${BAKEFILE_HOST}" in
50226       *-*-darwin* )
50227                         if test "x$GCC" = "xyes"; then
50228             CFLAGS="$CFLAGS -fno-common"
50229             CXXFLAGS="$CXXFLAGS -fno-common"
50230         fi
50231         if test "x$XLCC" = "xyes"; then
50232             CFLAGS="$CFLAGS -qnocommon"
50233             CXXFLAGS="$CXXFLAGS -qnocommon"
50234         fi
50235         ;;
50236
50237       *-pc-os2_emx | *-pc-os2-emx )
50238         if test "x$bk_os2_use_omf" = "xyes" ; then
50239             AR=emxomfar
50240             RANLIB=:
50241             LDFLAGS="-Zomf $LDFLAGS"
50242             CFLAGS="-Zomf $CFLAGS"
50243             CXXFLAGS="-Zomf $CXXFLAGS"
50244             OS2_LIBEXT="lib"
50245         else
50246             OS2_LIBEXT="a"
50247         fi
50248         ;;
50249
50250       i*86-*-beos* )
50251         LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
50252         ;;
50253     esac
50254
50255
50256     SO_SUFFIX="so"
50257     SO_SUFFIX_MODULE="so"
50258     EXEEXT=""
50259     LIBPREFIX="lib"
50260     LIBEXT=".a"
50261     DLLPREFIX="lib"
50262     DLLPREFIX_MODULE=""
50263     DLLIMP_SUFFIX=""
50264     dlldir="$libdir"
50265
50266     case "${BAKEFILE_HOST}" in
50267         *-hp-hpux* )
50268             SO_SUFFIX="sl"
50269             SO_SUFFIX_MODULE="sl"
50270         ;;
50271         *-*-aix* )
50272                                                                         SO_SUFFIX="a"
50273             SO_SUFFIX_MODULE="a"
50274         ;;
50275         *-*-cygwin* )
50276             SO_SUFFIX="dll"
50277             SO_SUFFIX_MODULE="dll"
50278             DLLIMP_SUFFIX="dll.a"
50279             EXEEXT=".exe"
50280             DLLPREFIX="cyg"
50281             dlldir="$bindir"
50282         ;;
50283         *-*-mingw32* )
50284             SO_SUFFIX="dll"
50285             SO_SUFFIX_MODULE="dll"
50286             DLLIMP_SUFFIX="dll.a"
50287             EXEEXT=".exe"
50288             DLLPREFIX=""
50289             dlldir="$bindir"
50290         ;;
50291         *-pc-msdosdjgpp )
50292             EXEEXT=".exe"
50293             DLLPREFIX=""
50294             dlldir="$bindir"
50295         ;;
50296         *-pc-os2_emx | *-pc-os2-emx )
50297             SO_SUFFIX="dll"
50298             SO_SUFFIX_MODULE="dll"
50299             DLLIMP_SUFFIX=$OS2_LIBEXT
50300             EXEEXT=".exe"
50301             DLLPREFIX=""
50302             LIBPREFIX=""
50303             LIBEXT=".$OS2_LIBEXT"
50304             dlldir="$bindir"
50305         ;;
50306         *-*-darwin* )
50307             SO_SUFFIX="dylib"
50308             SO_SUFFIX_MODULE="bundle"
50309         ;;
50310     esac
50311
50312     if test "x$DLLIMP_SUFFIX" = "x" ; then
50313         DLLIMP_SUFFIX="$SO_SUFFIX"
50314     fi
50315
50316
50317
50318
50319
50320
50321
50322
50323
50324
50325
50326
50327         PIC_FLAG=""
50328     if test "x$GCC" = "xyes"; then
50329                 PIC_FLAG="-fPIC"
50330     fi
50331
50332         SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
50333     SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
50334     WINDOWS_IMPLIB=0
50335
50336     case "${BAKEFILE_HOST}" in
50337       *-hp-hpux* )
50338                 if test "x$GCC" != "xyes"; then
50339                         LDFLAGS="$LDFLAGS -L/usr/lib"
50340
50341             SHARED_LD_CC="${CC} -b -o"
50342             SHARED_LD_CXX="${CXX} -b -o"
50343             PIC_FLAG="+Z"
50344         fi
50345       ;;
50346
50347       *-*-linux* )
50348         if test "$INTELCC" = "yes"; then
50349             PIC_FLAG="-KPIC"
50350         elif test "x$SUNCXX" = "xyes"; then
50351             SHARED_LD_CC="${CC} -G -o"
50352             SHARED_LD_CXX="${CXX} -G -o"
50353             PIC_FLAG="-KPIC"
50354         fi
50355       ;;
50356
50357       *-*-solaris2* )
50358         if test "x$SUNCXX" = xyes ; then
50359             SHARED_LD_CC="${CC} -G -o"
50360             SHARED_LD_CXX="${CXX} -G -o"
50361             PIC_FLAG="-KPIC"
50362         fi
50363       ;;
50364
50365       *-*-darwin* )
50366
50367 D='$'
50368 cat <<EOF >shared-ld-sh
50369 #!/bin/sh
50370 #-----------------------------------------------------------------------------
50371 #-- Name:        distrib/mac/shared-ld-sh
50372 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
50373 #-- Author:      Gilles Depeyrot
50374 #-- Copyright:   (c) 2002 Gilles Depeyrot
50375 #-- Licence:     any use permitted
50376 #-----------------------------------------------------------------------------
50377
50378 verbose=0
50379 args=""
50380 objects=""
50381 linking_flag="-dynamiclib"
50382 ldargs="-r -keep_private_externs -nostdlib"
50383
50384 while test ${D}# -gt 0; do
50385     case ${D}1 in
50386
50387        -v)
50388         verbose=1
50389         ;;
50390
50391        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
50392         # collect these options and values
50393         args="${D}{args} ${D}1 ${D}2"
50394         shift
50395         ;;
50396
50397        -s|-Wl,*)
50398         # collect these load args
50399         ldargs="${D}{ldargs} ${D}1"
50400         ;;
50401
50402        -l*|-L*|-flat_namespace|-headerpad_max_install_names)
50403         # collect these options
50404         args="${D}{args} ${D}1"
50405         ;;
50406
50407        -dynamiclib|-bundle)
50408         linking_flag="${D}1"
50409         ;;
50410
50411        -*)
50412         echo "shared-ld: unhandled option '${D}1'"
50413         exit 1
50414         ;;
50415
50416         *.o | *.a | *.dylib)
50417         # collect object files
50418         objects="${D}{objects} ${D}1"
50419         ;;
50420
50421         *)
50422         echo "shared-ld: unhandled argument '${D}1'"
50423         exit 1
50424         ;;
50425
50426     esac
50427     shift
50428 done
50429
50430 status=0
50431
50432 #
50433 # Link one module containing all the others
50434 #
50435 if test ${D}{verbose} = 1; then
50436     echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
50437 fi
50438 c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
50439 status=${D}?
50440
50441 #
50442 # Link the shared library from the single module created, but only if the
50443 # previous command didn't fail:
50444 #
50445 if test ${D}{status} = 0; then
50446     if test ${D}{verbose} = 1; then
50447         echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
50448     fi
50449     c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
50450     status=${D}?
50451 fi
50452
50453 #
50454 # Remove intermediate module
50455 #
50456 rm -f master.${D}${D}.o
50457
50458 exit ${D}status
50459 EOF
50460
50461         chmod +x shared-ld-sh
50462
50463         SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
50464         SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
50465
50466
50467                                 { echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
50468 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6; }
50469 if test "${bakefile_cv_gcc31+set}" = set; then
50470   echo $ECHO_N "(cached) $ECHO_C" >&6
50471 else
50472
50473            cat >conftest.$ac_ext <<_ACEOF
50474 /* confdefs.h.  */
50475 _ACEOF
50476 cat confdefs.h >>conftest.$ac_ext
50477 cat >>conftest.$ac_ext <<_ACEOF
50478 /* end confdefs.h.  */
50479
50480 int
50481 main ()
50482 {
50483
50484                    #if (__GNUC__ < 3) || \
50485                        ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
50486                        This is old gcc
50487                    #endif
50488
50489   ;
50490   return 0;
50491 }
50492 _ACEOF
50493 rm -f conftest.$ac_objext
50494 if { (ac_try="$ac_compile"
50495 case "(($ac_try" in
50496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50497   *) ac_try_echo=$ac_try;;
50498 esac
50499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50500   (eval "$ac_compile") 2>conftest.er1
50501   ac_status=$?
50502   grep -v '^ *+' conftest.er1 >conftest.err
50503   rm -f conftest.er1
50504   cat conftest.err >&5
50505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50506   (exit $ac_status); } && {
50507          test -z "$ac_c_werror_flag" ||
50508          test ! -s conftest.err
50509        } && test -s conftest.$ac_objext; then
50510
50511                    bakefile_cv_gcc31=yes
50512
50513 else
50514   echo "$as_me: failed program was:" >&5
50515 sed 's/^/| /' conftest.$ac_ext >&5
50516
50517
50518                    bakefile_cv_gcc31=no
50519
50520
50521 fi
50522
50523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50524
50525 fi
50526 { echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
50527 echo "${ECHO_T}$bakefile_cv_gcc31" >&6; }
50528         if test "$bakefile_cv_gcc31" = "no"; then
50529                         SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
50530             SHARED_LD_CXX="$SHARED_LD_CC"
50531         else
50532                         SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
50533             SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
50534         fi
50535
50536         if test "x$GCC" == "xyes"; then
50537             PIC_FLAG="-dynamic -fPIC"
50538         fi
50539         if test "x$XLCC" = "xyes"; then
50540             PIC_FLAG="-dynamic -DPIC"
50541         fi
50542       ;;
50543
50544       *-*-aix* )
50545         if test "x$GCC" = "xyes"; then
50546                                                             PIC_FLAG=""
50547
50548                                                                                     case "${BAKEFILE_HOST}" in
50549                 *-*-aix5* )
50550                     LD_EXPFULL="-Wl,-bexpfull"
50551                     ;;
50552             esac
50553
50554             SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
50555             SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
50556         else
50557                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
50558 set dummy makeC++SharedLib; ac_word=$2
50559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50561 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
50562   echo $ECHO_N "(cached) $ECHO_C" >&6
50563 else
50564   if test -n "$AIX_CXX_LD"; then
50565   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
50566 else
50567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50568 for as_dir in $PATH
50569 do
50570   IFS=$as_save_IFS
50571   test -z "$as_dir" && as_dir=.
50572   for ac_exec_ext in '' $ac_executable_extensions; do
50573   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50574     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
50575     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50576     break 2
50577   fi
50578 done
50579 done
50580 IFS=$as_save_IFS
50581
50582   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
50583 fi
50584 fi
50585 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
50586 if test -n "$AIX_CXX_LD"; then
50587   { echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
50588 echo "${ECHO_T}$AIX_CXX_LD" >&6; }
50589 else
50590   { echo "$as_me:$LINENO: result: no" >&5
50591 echo "${ECHO_T}no" >&6; }
50592 fi
50593
50594
50595             SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
50596             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
50597         fi
50598       ;;
50599
50600       *-*-beos* )
50601                         SHARED_LD_CC="${LD} -nostart -o"
50602         SHARED_LD_CXX="${LD} -nostart -o"
50603       ;;
50604
50605       *-*-irix* )
50606                 if test "x$GCC" != "xyes"; then
50607             PIC_FLAG="-KPIC"
50608         fi
50609       ;;
50610
50611       *-*-cygwin* | *-*-mingw32* )
50612         PIC_FLAG=""
50613         SHARED_LD_CC="\$(CC) -shared -o"
50614         SHARED_LD_CXX="\$(CXX) -shared -o"
50615         WINDOWS_IMPLIB=1
50616       ;;
50617
50618       *-pc-os2_emx | *-pc-os2-emx )
50619         SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50620         SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50621         PIC_FLAG=""
50622
50623 D='$'
50624 cat <<EOF >dllar.sh
50625 #!/bin/sh
50626 #
50627 # dllar - a tool to build both a .dll and an .a file
50628 # from a set of object (.o) files for EMX/OS2.
50629 #
50630 #  Written by Andrew Zabolotny, bit@freya.etu.ru
50631 #  Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
50632 #
50633 #  This script will accept a set of files on the command line.
50634 #  All the public symbols from the .o files will be exported into
50635 #  a .DEF file, then linker will be run (through gcc) against them to
50636 #  build a shared library consisting of all given .o files. All libraries
50637 #  (.a) will be first decompressed into component .o files then act as
50638 #  described above. You can optionally give a description (-d "description")
50639 #  which will be put into .DLL. To see the list of accepted options (as well
50640 #  as command-line format) simply run this program without options. The .DLL
50641 #  is built to be imported by name (there is no guarantee that new versions
50642 #  of the library you build will have same ordinals for same symbols).
50643 #
50644 #  dllar is free software; you can redistribute it and/or modify
50645 #  it under the terms of the GNU General Public License as published by
50646 #  the Free Software Foundation; either version 2, or (at your option)
50647 #  any later version.
50648 #
50649 #  dllar is distributed in the hope that it will be useful,
50650 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
50651 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
50652 #  GNU General Public License for more details.
50653 #
50654 #  You should have received a copy of the GNU General Public License
50655 #  along with dllar; see the file COPYING.  If not, write to the Free
50656 #  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
50657 #  02111-1307, USA.
50658
50659 # To successfuly run this program you will need:
50660 #  - Current drive should have LFN support (HPFS, ext2, network, etc)
50661 #    (Sometimes dllar generates filenames which won't fit 8.3 scheme)
50662 #  - gcc
50663 #    (used to build the .dll)
50664 #  - emxexp
50665 #    (used to create .def file from .o files)
50666 #  - emximp
50667 #    (used to create .a file from .def file)
50668 #  - GNU text utilites (cat, sort, uniq)
50669 #    used to process emxexp output
50670 #  - GNU file utilities (mv, rm)
50671 #  - GNU sed
50672 #  - lxlite (optional, see flag below)
50673 #    (used for general .dll cleanup)
50674 #
50675
50676 flag_USE_LXLITE=1;
50677
50678 #
50679 # helper functions
50680 # basnam, variant of basename, which does _not_ remove the path, _iff_
50681 #                              second argument (suffix to remove) is given
50682 basnam(){
50683     case ${D}# in
50684     1)
50685         echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
50686         ;;
50687     2)
50688         echo ${D}1 | sed 's/'${D}2'${D}//'
50689         ;;
50690     *)
50691         echo "error in basnam ${D}*"
50692         exit 8
50693         ;;
50694     esac
50695 }
50696
50697 # Cleanup temporary files and output
50698 CleanUp() {
50699     cd ${D}curDir
50700     for i in ${D}inputFiles ; do
50701         case ${D}i in
50702         *!)
50703             rm -rf \`basnam ${D}i !\`
50704             ;;
50705         *)
50706             ;;
50707         esac
50708     done
50709
50710     # Kill result in case of failure as there is just to many stupid make/nmake
50711     # things out there which doesn't do this.
50712     if [ ${D}# -eq 0 ]; then
50713         rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
50714     fi
50715 }
50716
50717 # Print usage and exit script with rc=1.
50718 PrintHelp() {
50719  echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
50720  echo '       [-name-mangler-script script.sh]'
50721  echo '       [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
50722  echo '       [-ord[inals]] -ex[clude] "symbol(s)"'
50723  echo '       [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
50724  echo '       [*.o] [*.a]'
50725  echo '*> "output_file" should have no extension.'
50726  echo '   If it has the .o, .a or .dll extension, it is automatically removed.'
50727  echo '   The import library name is derived from this and is set to "name".a,'
50728  echo '   unless overridden by -import'
50729  echo '*> "importlib_name" should have no extension.'
50730  echo '   If it has the .o, or .a extension, it is automatically removed.'
50731  echo '   This name is used as the import library name and may be longer and'
50732  echo '   more descriptive than the DLL name which has to follow the old '
50733  echo '   8.3 convention of FAT.'
50734  echo '*> "script.sh may be given to override the output_file name by a'
50735  echo '   different name. It is mainly useful if the regular make process'
50736  echo '   of some package does not take into account OS/2 restriction of'
50737  echo '   DLL name lengths. It takes the importlib name as input and is'
50738  echo '   supposed to procude a shorter name as output. The script should'
50739  echo '   expect to get importlib_name without extension and should produce'
50740  echo '   a (max.) 8 letter name without extension.'
50741  echo '*> "cc" is used to use another GCC executable.   (default: gcc.exe)'
50742  echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
50743  echo '   These flags will be put at the start of GCC command line.'
50744  echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
50745  echo '*> -ex[clude] defines symbols which will not be exported. You can define'
50746  echo '   multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
50747  echo '   If the last character of a symbol is "*", all symbols beginning'
50748  echo '   with the prefix before "*" will be exclude, (see _GLOBAL* above).'
50749  echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
50750  echo '   TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
50751  echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
50752  echo '   C runtime DLLs.'
50753  echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
50754  echo '*> All other switches (for example -L./ or -lmylib) will be passed'
50755  echo '   unchanged to GCC at the end of command line.'
50756  echo '*> If you create a DLL from a library and you do not specify -o,'
50757  echo '   the basename for DLL and import library will be set to library name,'
50758  echo '   the initial library will be renamed to 'name'_s.a (_s for static)'
50759  echo '   i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
50760  echo '   library will be renamed into gcc_s.a.'
50761  echo '--------'
50762  echo 'Example:'
50763  echo '   dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
50764  echo '    -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
50765  CleanUp
50766  exit 1
50767 }
50768
50769 # Execute a command.
50770 # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
50771 # @Uses    Whatever CleanUp() uses.
50772 doCommand() {
50773     echo "${D}*"
50774     eval ${D}*
50775     rcCmd=${D}?
50776
50777     if [ ${D}rcCmd -ne 0 ]; then
50778         echo "command failed, exit code="${D}rcCmd
50779         CleanUp
50780         exit ${D}rcCmd
50781     fi
50782 }
50783
50784 # main routine
50785 # setup globals
50786 cmdLine=${D}*
50787 outFile=""
50788 outimpFile=""
50789 inputFiles=""
50790 renameScript=""
50791 description=""
50792 CC=gcc.exe
50793 CFLAGS="-s -Zcrtdll"
50794 EXTRA_CFLAGS=""
50795 EXPORT_BY_ORDINALS=0
50796 exclude_symbols=""
50797 library_flags=""
50798 curDir=\`pwd\`
50799 curDirS=curDir
50800 case ${D}curDirS in
50801 */)
50802   ;;
50803 *)
50804   curDirS=${D}{curDirS}"/"
50805   ;;
50806 esac
50807 # Parse commandline
50808 libsToLink=0
50809 omfLinking=0
50810 while [ ${D}1 ]; do
50811     case ${D}1 in
50812     -ord*)
50813         EXPORT_BY_ORDINALS=1;
50814         ;;
50815     -o*)
50816         shift
50817         outFile=${D}1
50818         ;;
50819     -i*)
50820         shift
50821         outimpFile=${D}1
50822         ;;
50823     -name-mangler-script)
50824         shift
50825         renameScript=${D}1
50826         ;;
50827     -d*)
50828         shift
50829         description=${D}1
50830         ;;
50831     -f*)
50832         shift
50833         CFLAGS=${D}1
50834         ;;
50835     -c*)
50836         shift
50837         CC=${D}1
50838         ;;
50839     -h*)
50840         PrintHelp
50841         ;;
50842     -ex*)
50843         shift
50844         exclude_symbols=${D}{exclude_symbols}${D}1" "
50845         ;;
50846     -libf*)
50847         shift
50848         library_flags=${D}{library_flags}${D}1" "
50849         ;;
50850     -nocrt*)
50851         CFLAGS="-s"
50852         ;;
50853     -nolxl*)
50854         flag_USE_LXLITE=0
50855         ;;
50856     -* | /*)
50857         case ${D}1 in
50858         -L* | -l*)
50859             libsToLink=1
50860             ;;
50861         -Zomf)
50862             omfLinking=1
50863             ;;
50864         *)
50865             ;;
50866         esac
50867         EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
50868         ;;
50869     *.dll)
50870         EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
50871         if [ ${D}omfLinking -eq 1 ]; then
50872             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
50873         else
50874             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
50875         fi
50876         ;;
50877     *)
50878         found=0;
50879         if [ ${D}libsToLink -ne 0 ]; then
50880             EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
50881         else
50882             for file in ${D}1 ; do
50883                 if [ -f ${D}file ]; then
50884                     inputFiles="${D}{inputFiles} ${D}file"
50885                     found=1
50886                 fi
50887             done
50888             if [ ${D}found -eq 0 ]; then
50889                 echo "ERROR: No file(s) found: "${D}1
50890                 exit 8
50891             fi
50892         fi
50893       ;;
50894     esac
50895     shift
50896 done # iterate cmdline words
50897
50898 #
50899 if [ -z "${D}inputFiles" ]; then
50900     echo "dllar: no input files"
50901     PrintHelp
50902 fi
50903
50904 # Now extract all .o files from .a files
50905 newInputFiles=""
50906 for file in ${D}inputFiles ; do
50907     case ${D}file in
50908     *.a | *.lib)
50909         case ${D}file in
50910         *.a)
50911             suffix=".a"
50912             AR="ar"
50913             ;;
50914         *.lib)
50915             suffix=".lib"
50916             AR="emxomfar"
50917             EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
50918             ;;
50919         *)
50920             ;;
50921         esac
50922         dirname=\`basnam ${D}file ${D}suffix\`"_%"
50923         mkdir ${D}dirname
50924         if [ ${D}? -ne 0 ]; then
50925             echo "Failed to create subdirectory ./${D}dirname"
50926             CleanUp
50927             exit 8;
50928         fi
50929         # Append '!' to indicate archive
50930         newInputFiles="${D}newInputFiles ${D}{dirname}!"
50931         doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
50932         cd ${D}curDir
50933         found=0;
50934         for subfile in ${D}dirname/*.o* ; do
50935             if [ -f ${D}subfile ]; then
50936                 found=1
50937                 if [ -s ${D}subfile ]; then
50938                     # FIXME: This should be: is file size > 32 byte, _not_ > 0!
50939                     newInputFiles="${D}newInputFiles ${D}subfile"
50940                 fi
50941             fi
50942         done
50943         if [ ${D}found -eq 0 ]; then
50944             echo "WARNING: there are no files in archive \\'${D}file\\'"
50945         fi
50946         ;;
50947     *)
50948         newInputFiles="${D}{newInputFiles} ${D}file"
50949         ;;
50950     esac
50951 done
50952 inputFiles="${D}newInputFiles"
50953
50954 # Output filename(s).
50955 do_backup=0;
50956 if [ -z ${D}outFile ]; then
50957     do_backup=1;
50958     set outFile ${D}inputFiles; outFile=${D}2
50959 fi
50960
50961 # If it is an archive, remove the '!' and the '_%' suffixes
50962 case ${D}outFile in
50963 *_%!)
50964     outFile=\`basnam ${D}outFile _%!\`
50965     ;;
50966 *)
50967     ;;
50968 esac
50969 case ${D}outFile in
50970 *.dll)
50971     outFile=\`basnam ${D}outFile .dll\`
50972     ;;
50973 *.DLL)
50974     outFile=\`basnam ${D}outFile .DLL\`
50975     ;;
50976 *.o)
50977     outFile=\`basnam ${D}outFile .o\`
50978     ;;
50979 *.obj)
50980     outFile=\`basnam ${D}outFile .obj\`
50981     ;;
50982 *.a)
50983     outFile=\`basnam ${D}outFile .a\`
50984     ;;
50985 *.lib)
50986     outFile=\`basnam ${D}outFile .lib\`
50987     ;;
50988 *)
50989     ;;
50990 esac
50991 case ${D}outimpFile in
50992 *.a)
50993     outimpFile=\`basnam ${D}outimpFile .a\`
50994     ;;
50995 *.lib)
50996     outimpFile=\`basnam ${D}outimpFile .lib\`
50997     ;;
50998 *)
50999     ;;
51000 esac
51001 if [ -z ${D}outimpFile ]; then
51002     outimpFile=${D}outFile
51003 fi
51004 defFile="${D}{outFile}.def"
51005 arcFile="${D}{outimpFile}.a"
51006 arcFile2="${D}{outimpFile}.lib"
51007
51008 #create ${D}dllFile as something matching 8.3 restrictions,
51009 if [ -z ${D}renameScript ] ; then
51010     dllFile="${D}outFile"
51011 else
51012     dllFile=\`${D}renameScript ${D}outimpFile\`
51013 fi
51014
51015 if [ ${D}do_backup -ne 0 ] ; then
51016     if [ -f ${D}arcFile ] ; then
51017         doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
51018     fi
51019     if [ -f ${D}arcFile2 ] ; then
51020         doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
51021     fi
51022 fi
51023
51024 # Extract public symbols from all the object files.
51025 tmpdefFile=${D}{defFile}_%
51026 rm -f ${D}tmpdefFile
51027 for file in ${D}inputFiles ; do
51028     case ${D}file in
51029     *!)
51030         ;;
51031     *)
51032         doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
51033         ;;
51034     esac
51035 done
51036
51037 # Create the def file.
51038 rm -f ${D}defFile
51039 echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
51040 dllFile="${D}{dllFile}.dll"
51041 if [ ! -z ${D}description ]; then
51042     echo "DESCRIPTION  \\"${D}{description}\\"" >> ${D}defFile
51043 fi
51044 echo "EXPORTS" >> ${D}defFile
51045
51046 doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
51047 grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
51048
51049 # Checks if the export is ok or not.
51050 for word in ${D}exclude_symbols; do
51051     grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
51052     mv ${D}{tmpdefFile}% ${D}tmpdefFile
51053 done
51054
51055
51056 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
51057     sed "=" < ${D}tmpdefFile | \\
51058     sed '
51059       N
51060       : loop
51061       s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
51062       t loop
51063     ' > ${D}{tmpdefFile}%
51064     grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
51065 else
51066     rm -f ${D}{tmpdefFile}%
51067 fi
51068 cat ${D}tmpdefFile >> ${D}defFile
51069 rm -f ${D}tmpdefFile
51070
51071 # Do linking, create implib, and apply lxlite.
51072 gccCmdl="";
51073 for file in ${D}inputFiles ; do
51074     case ${D}file in
51075     *!)
51076         ;;
51077     *)
51078         gccCmdl="${D}gccCmdl ${D}file"
51079         ;;
51080     esac
51081 done
51082 doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
51083 touch "${D}{outFile}.dll"
51084
51085 doCommand "emximp -o ${D}arcFile ${D}defFile"
51086 if [ ${D}flag_USE_LXLITE -ne 0 ]; then
51087     add_flags="";
51088     if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
51089         add_flags="-ynd"
51090     fi
51091     doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
51092 fi
51093 doCommand "emxomf -s -l ${D}arcFile"
51094
51095 # Successful exit.
51096 CleanUp 1
51097 exit 0
51098 EOF
51099
51100         chmod +x dllar.sh
51101       ;;
51102
51103       powerpc-apple-macos* | \
51104       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
51105       *-*-mirbsd* | \
51106       *-*-sunos4* | \
51107       *-*-osf* | \
51108       *-*-dgux5* | \
51109       *-*-sysv5* | \
51110       *-pc-msdosdjgpp )
51111               ;;
51112
51113       *)
51114         { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
51115 echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
51116    { (exit 1); exit 1; }; }
51117     esac
51118
51119     if test "x$PIC_FLAG" != "x" ; then
51120         PIC_FLAG="$PIC_FLAG -DPIC"
51121     fi
51122
51123     if test "x$SHARED_LD_MODULE_CC" = "x" ; then
51124         SHARED_LD_MODULE_CC="$SHARED_LD_CC"
51125     fi
51126     if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
51127         SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
51128     fi
51129
51130
51131
51132
51133
51134
51135
51136
51137
51138     USE_SOVERSION=0
51139     USE_SOVERLINUX=0
51140     USE_SOVERSOLARIS=0
51141     USE_SOVERCYGWIN=0
51142     USE_SOSYMLINKS=0
51143     USE_MACVERSION=0
51144     SONAME_FLAG=
51145
51146     case "${BAKEFILE_HOST}" in
51147       *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
51148         if test "x$SUNCXX" = "xyes"; then
51149             SONAME_FLAG="-h "
51150         else
51151             SONAME_FLAG="-Wl,-soname,"
51152         fi
51153         USE_SOVERSION=1
51154         USE_SOVERLINUX=1
51155         USE_SOSYMLINKS=1
51156       ;;
51157
51158       *-*-solaris2* )
51159         SONAME_FLAG="-h "
51160         USE_SOVERSION=1
51161         USE_SOVERSOLARIS=1
51162         USE_SOSYMLINKS=1
51163       ;;
51164
51165       *-*-darwin* )
51166         USE_MACVERSION=1
51167         USE_SOVERSION=1
51168         USE_SOSYMLINKS=1
51169       ;;
51170
51171       *-*-cygwin* )
51172         USE_SOVERSION=1
51173         USE_SOVERCYGWIN=1
51174       ;;
51175     esac
51176
51177
51178
51179
51180
51181
51182
51183
51184
51185
51186     # Check whether --enable-dependency-tracking was given.
51187 if test "${enable_dependency_tracking+set}" = set; then
51188   enableval=$enable_dependency_tracking; bk_use_trackdeps="$enableval"
51189 fi
51190
51191
51192     { echo "$as_me:$LINENO: checking for dependency tracking method" >&5
51193 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6; }
51194
51195     BK_DEPS=""
51196     if test "x$bk_use_trackdeps" = "xno" ; then
51197         DEPS_TRACKING=0
51198         { echo "$as_me:$LINENO: result: disabled" >&5
51199 echo "${ECHO_T}disabled" >&6; }
51200     else
51201         DEPS_TRACKING=1
51202
51203         if test "x$GCC" = "xyes"; then
51204             DEPSMODE=gcc
51205             case "${BAKEFILE_HOST}" in
51206                 *-*-darwin* )
51207                                                             DEPSFLAG="-no-cpp-precomp -MMD"
51208                 ;;
51209                 * )
51210                     DEPSFLAG="-MMD"
51211                 ;;
51212             esac
51213             { echo "$as_me:$LINENO: result: gcc" >&5
51214 echo "${ECHO_T}gcc" >&6; }
51215         elif test "x$MWCC" = "xyes"; then
51216             DEPSMODE=mwcc
51217             DEPSFLAG="-MM"
51218             { echo "$as_me:$LINENO: result: mwcc" >&5
51219 echo "${ECHO_T}mwcc" >&6; }
51220         elif test "x$SUNCC" = "xyes"; then
51221             DEPSMODE=unixcc
51222             DEPSFLAG="-xM1"
51223             { echo "$as_me:$LINENO: result: Sun cc" >&5
51224 echo "${ECHO_T}Sun cc" >&6; }
51225         elif test "x$SGICC" = "xyes"; then
51226             DEPSMODE=unixcc
51227             DEPSFLAG="-M"
51228             { echo "$as_me:$LINENO: result: SGI cc" >&5
51229 echo "${ECHO_T}SGI cc" >&6; }
51230         elif test "x$HPCC" = "xyes"; then
51231             DEPSMODE=unixcc
51232             DEPSFLAG="+make"
51233             { echo "$as_me:$LINENO: result: HP cc" >&5
51234 echo "${ECHO_T}HP cc" >&6; }
51235         elif test "x$COMPAQCC" = "xyes"; then
51236             DEPSMODE=gcc
51237             DEPSFLAG="-MD"
51238             { echo "$as_me:$LINENO: result: Compaq cc" >&5
51239 echo "${ECHO_T}Compaq cc" >&6; }
51240         else
51241             DEPS_TRACKING=0
51242             { echo "$as_me:$LINENO: result: none" >&5
51243 echo "${ECHO_T}none" >&6; }
51244         fi
51245
51246         if test $DEPS_TRACKING = 1 ; then
51247
51248 D='$'
51249 cat <<EOF >bk-deps
51250 #!/bin/sh
51251
51252 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
51253 # script. It is used to track C/C++ files dependencies in portable way.
51254 #
51255 # Permission is given to use this file in any way.
51256
51257 DEPSMODE=${DEPSMODE}
51258 DEPSDIR=.deps
51259 DEPSFLAG="${DEPSFLAG}"
51260
51261 mkdir -p ${D}DEPSDIR
51262
51263 if test ${D}DEPSMODE = gcc ; then
51264     ${D}* ${D}{DEPSFLAG}
51265     status=${D}?
51266     if test ${D}{status} != 0 ; then
51267         exit ${D}{status}
51268     fi
51269     # move created file to the location we want it in:
51270     while test ${D}# -gt 0; do
51271         case "${D}1" in
51272             -o )
51273                 shift
51274                 objfile=${D}1
51275             ;;
51276             -* )
51277             ;;
51278             * )
51279                 srcfile=${D}1
51280             ;;
51281         esac
51282         shift
51283     done
51284     depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
51285     depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
51286     if test -f ${D}depfile ; then
51287         sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
51288         rm -f ${D}depfile
51289     else
51290         # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
51291         depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
51292         if test ! -f ${D}depfile ; then
51293             # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
51294             depfile="${D}objfile.d"
51295         fi
51296         if test -f ${D}depfile ; then
51297             sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
51298             rm -f ${D}depfile
51299         fi
51300     fi
51301     exit 0
51302 elif test ${D}DEPSMODE = mwcc ; then
51303     ${D}* || exit ${D}?
51304     # Run mwcc again with -MM and redirect into the dep file we want
51305     # NOTE: We can't use shift here because we need ${D}* to be valid
51306     prevarg=
51307     for arg in ${D}* ; do
51308         if test "${D}prevarg" = "-o"; then
51309             objfile=${D}arg
51310         else
51311             case "${D}arg" in
51312                 -* )
51313                 ;;
51314                 * )
51315                     srcfile=${D}arg
51316                 ;;
51317             esac
51318         fi
51319         prevarg="${D}arg"
51320     done
51321     ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
51322     exit 0
51323 elif test ${D}DEPSMODE = unixcc; then
51324     ${D}* || exit ${D}?
51325     # Run compiler again with deps flag and redirect into the dep file.
51326     # It doesn't work if the '-o FILE' option is used, but without it the
51327     # dependency file will contain the wrong name for the object. So it is
51328     # removed from the command line, and the dep file is fixed with sed.
51329     cmd=""
51330     while test ${D}# -gt 0; do
51331         case "${D}1" in
51332             -o )
51333                 shift
51334                 objfile=${D}1
51335             ;;
51336             * )
51337                 eval arg${D}#=\\${D}1
51338                 cmd="${D}cmd \\${D}arg${D}#"
51339             ;;
51340         esac
51341         shift
51342     done
51343     eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
51344     exit 0
51345 else
51346     ${D}*
51347     exit ${D}?
51348 fi
51349 EOF
51350
51351             chmod +x bk-deps
51352                                     BK_DEPS="`pwd`/bk-deps"
51353         fi
51354     fi
51355
51356
51357
51358
51359
51360     case ${BAKEFILE_HOST} in
51361         *-*-cygwin* | *-*-mingw32* )
51362                         if test -n "$ac_tool_prefix"; then
51363   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
51364 set dummy ${ac_tool_prefix}windres; ac_word=$2
51365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51367 if test "${ac_cv_prog_WINDRES+set}" = set; then
51368   echo $ECHO_N "(cached) $ECHO_C" >&6
51369 else
51370   if test -n "$WINDRES"; then
51371   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
51372 else
51373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51374 for as_dir in $PATH
51375 do
51376   IFS=$as_save_IFS
51377   test -z "$as_dir" && as_dir=.
51378   for ac_exec_ext in '' $ac_executable_extensions; do
51379   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51380     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
51381     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51382     break 2
51383   fi
51384 done
51385 done
51386 IFS=$as_save_IFS
51387
51388 fi
51389 fi
51390 WINDRES=$ac_cv_prog_WINDRES
51391 if test -n "$WINDRES"; then
51392   { echo "$as_me:$LINENO: result: $WINDRES" >&5
51393 echo "${ECHO_T}$WINDRES" >&6; }
51394 else
51395   { echo "$as_me:$LINENO: result: no" >&5
51396 echo "${ECHO_T}no" >&6; }
51397 fi
51398
51399
51400 fi
51401 if test -z "$ac_cv_prog_WINDRES"; then
51402   ac_ct_WINDRES=$WINDRES
51403   # Extract the first word of "windres", so it can be a program name with args.
51404 set dummy windres; ac_word=$2
51405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51407 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
51408   echo $ECHO_N "(cached) $ECHO_C" >&6
51409 else
51410   if test -n "$ac_ct_WINDRES"; then
51411   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
51412 else
51413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51414 for as_dir in $PATH
51415 do
51416   IFS=$as_save_IFS
51417   test -z "$as_dir" && as_dir=.
51418   for ac_exec_ext in '' $ac_executable_extensions; do
51419   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51420     ac_cv_prog_ac_ct_WINDRES="windres"
51421     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51422     break 2
51423   fi
51424 done
51425 done
51426 IFS=$as_save_IFS
51427
51428 fi
51429 fi
51430 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
51431 if test -n "$ac_ct_WINDRES"; then
51432   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
51433 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
51434 else
51435   { echo "$as_me:$LINENO: result: no" >&5
51436 echo "${ECHO_T}no" >&6; }
51437 fi
51438
51439   if test "x$ac_ct_WINDRES" = x; then
51440     WINDRES=""
51441   else
51442     case $cross_compiling:$ac_tool_warned in
51443 yes:)
51444 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
51445 whose name does not start with the host triplet.  If you think this
51446 configuration is useful to you, please write to autoconf@gnu.org." >&5
51447 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
51448 whose name does not start with the host triplet.  If you think this
51449 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
51450 ac_tool_warned=yes ;;
51451 esac
51452     WINDRES=$ac_ct_WINDRES
51453   fi
51454 else
51455   WINDRES="$ac_cv_prog_WINDRES"
51456 fi
51457
51458          ;;
51459
51460       *-*-darwin* | powerpc-apple-macos* )
51461             # Extract the first word of "Rez", so it can be a program name with args.
51462 set dummy Rez; ac_word=$2
51463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51465 if test "${ac_cv_prog_REZ+set}" = set; then
51466   echo $ECHO_N "(cached) $ECHO_C" >&6
51467 else
51468   if test -n "$REZ"; then
51469   ac_cv_prog_REZ="$REZ" # Let the user override the test.
51470 else
51471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51472 for as_dir in $PATH
51473 do
51474   IFS=$as_save_IFS
51475   test -z "$as_dir" && as_dir=.
51476   for ac_exec_ext in '' $ac_executable_extensions; do
51477   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51478     ac_cv_prog_REZ="Rez"
51479     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51480     break 2
51481   fi
51482 done
51483 done
51484 IFS=$as_save_IFS
51485
51486   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
51487 fi
51488 fi
51489 REZ=$ac_cv_prog_REZ
51490 if test -n "$REZ"; then
51491   { echo "$as_me:$LINENO: result: $REZ" >&5
51492 echo "${ECHO_T}$REZ" >&6; }
51493 else
51494   { echo "$as_me:$LINENO: result: no" >&5
51495 echo "${ECHO_T}no" >&6; }
51496 fi
51497
51498
51499             # Extract the first word of "SetFile", so it can be a program name with args.
51500 set dummy SetFile; ac_word=$2
51501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51503 if test "${ac_cv_prog_SETFILE+set}" = set; then
51504   echo $ECHO_N "(cached) $ECHO_C" >&6
51505 else
51506   if test -n "$SETFILE"; then
51507   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
51508 else
51509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51510 for as_dir in $PATH
51511 do
51512   IFS=$as_save_IFS
51513   test -z "$as_dir" && as_dir=.
51514   for ac_exec_ext in '' $ac_executable_extensions; do
51515   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51516     ac_cv_prog_SETFILE="SetFile"
51517     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51518     break 2
51519   fi
51520 done
51521 done
51522 IFS=$as_save_IFS
51523
51524   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
51525 fi
51526 fi
51527 SETFILE=$ac_cv_prog_SETFILE
51528 if test -n "$SETFILE"; then
51529   { echo "$as_me:$LINENO: result: $SETFILE" >&5
51530 echo "${ECHO_T}$SETFILE" >&6; }
51531 else
51532   { echo "$as_me:$LINENO: result: no" >&5
51533 echo "${ECHO_T}no" >&6; }
51534 fi
51535
51536
51537         ;;
51538     esac
51539
51540
51541
51542
51543
51544
51545     BAKEFILE_BAKEFILE_M4_VERSION="0.2.2"
51546
51547
51548 BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.2"
51549
51550
51551
51552     # Check whether --enable-precomp-headers was given.
51553 if test "${enable_precomp_headers+set}" = set; then
51554   enableval=$enable_precomp_headers; bk_use_pch="$enableval"
51555 fi
51556
51557
51558     GCC_PCH=0
51559     ICC_PCH=0
51560     USE_PCH=0
51561     BK_MAKE_PCH=""
51562
51563     case ${BAKEFILE_HOST} in
51564         *-*-cygwin* )
51565                                                 bk_use_pch="no"
51566             ;;
51567     esac
51568
51569     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
51570         if test "x$GCC" = "xyes"; then
51571                         { echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
51572 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6; }
51573             cat >conftest.$ac_ext <<_ACEOF
51574 /* confdefs.h.  */
51575 _ACEOF
51576 cat confdefs.h >>conftest.$ac_ext
51577 cat >>conftest.$ac_ext <<_ACEOF
51578 /* end confdefs.h.  */
51579
51580 int
51581 main ()
51582 {
51583
51584                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
51585                         There is no PCH support
51586                     #endif
51587                     #if (__GNUC__ < 3)
51588                         There is no PCH support
51589                     #endif
51590                     #if (__GNUC__ == 3) && \
51591                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
51592                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
51593                        ( defined(__INTEL_COMPILER) )
51594                         There is no PCH support
51595                     #endif
51596
51597   ;
51598   return 0;
51599 }
51600 _ACEOF
51601 rm -f conftest.$ac_objext
51602 if { (ac_try="$ac_compile"
51603 case "(($ac_try" in
51604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51605   *) ac_try_echo=$ac_try;;
51606 esac
51607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51608   (eval "$ac_compile") 2>conftest.er1
51609   ac_status=$?
51610   grep -v '^ *+' conftest.er1 >conftest.err
51611   rm -f conftest.er1
51612   cat conftest.err >&5
51613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51614   (exit $ac_status); } && {
51615          test -z "$ac_c_werror_flag" ||
51616          test ! -s conftest.err
51617        } && test -s conftest.$ac_objext; then
51618
51619                     { echo "$as_me:$LINENO: result: yes" >&5
51620 echo "${ECHO_T}yes" >&6; }
51621                     GCC_PCH=1
51622
51623 else
51624   echo "$as_me: failed program was:" >&5
51625 sed 's/^/| /' conftest.$ac_ext >&5
51626
51627
51628                     cat >conftest.$ac_ext <<_ACEOF
51629 /* confdefs.h.  */
51630 _ACEOF
51631 cat confdefs.h >>conftest.$ac_ext
51632 cat >>conftest.$ac_ext <<_ACEOF
51633 /* end confdefs.h.  */
51634
51635 int
51636 main ()
51637 {
51638
51639                             #if !defined(__INTEL_COMPILER) || \
51640                                 (__INTEL_COMPILER < 800)
51641                                 There is no PCH support
51642                             #endif
51643
51644   ;
51645   return 0;
51646 }
51647 _ACEOF
51648 rm -f conftest.$ac_objext
51649 if { (ac_try="$ac_compile"
51650 case "(($ac_try" in
51651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51652   *) ac_try_echo=$ac_try;;
51653 esac
51654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51655   (eval "$ac_compile") 2>conftest.er1
51656   ac_status=$?
51657   grep -v '^ *+' conftest.er1 >conftest.err
51658   rm -f conftest.er1
51659   cat conftest.err >&5
51660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51661   (exit $ac_status); } && {
51662          test -z "$ac_c_werror_flag" ||
51663          test ! -s conftest.err
51664        } && test -s conftest.$ac_objext; then
51665
51666                             { echo "$as_me:$LINENO: result: yes" >&5
51667 echo "${ECHO_T}yes" >&6; }
51668                             ICC_PCH=1
51669
51670 else
51671   echo "$as_me: failed program was:" >&5
51672 sed 's/^/| /' conftest.$ac_ext >&5
51673
51674
51675                             { echo "$as_me:$LINENO: result: no" >&5
51676 echo "${ECHO_T}no" >&6; }
51677
51678 fi
51679
51680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51681
51682 fi
51683
51684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51685             if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
51686                 USE_PCH=1
51687
51688 D='$'
51689 cat <<EOF >bk-make-pch
51690 #!/bin/sh
51691
51692 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
51693 # script. It is used to generated precompiled headers.
51694 #
51695 # Permission is given to use this file in any way.
51696
51697 outfile="${D}{1}"
51698 header="${D}{2}"
51699 shift
51700 shift
51701
51702 compiler=""
51703 headerfile=""
51704
51705 while test ${D}{#} -gt 0; do
51706     add_to_cmdline=1
51707     case "${D}{1}" in
51708         -I* )
51709             incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
51710             if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
51711                 headerfile="${D}{incdir}/${D}{header}"
51712             fi
51713         ;;
51714         -use-pch|-use_pch )
51715             shift
51716             add_to_cmdline=0
51717         ;;
51718     esac
51719     if test ${D}add_to_cmdline = 1 ; then
51720         compiler="${D}{compiler} ${D}{1}"
51721     fi
51722     shift
51723 done
51724
51725 if test "x${D}{headerfile}" = "x" ; then
51726     echo "error: can't find header ${D}{header} in include paths" >&2
51727 else
51728     if test -f ${D}{outfile} ; then
51729         rm -f ${D}{outfile}
51730     else
51731         mkdir -p \`dirname ${D}{outfile}\`
51732     fi
51733     depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
51734     mkdir -p .deps
51735     if test "x${GCC_PCH}" = "x1" ; then
51736         # can do this because gcc is >= 3.4:
51737         ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
51738     elif test "x${ICC_PCH}" = "x1" ; then
51739         filename=pch_gen-${D}${D}
51740         file=${D}{filename}.c
51741         dfile=${D}{filename}.d
51742         cat > ${D}file <<EOT
51743 #include "${D}header"
51744 EOT
51745         # using -MF icc complains about differing command lines in creation/use
51746         ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\
51747           sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
51748           rm -f ${D}file ${D}dfile ${D}{filename}.o
51749     fi
51750     exit ${D}{?}
51751 fi
51752 EOF
51753
51754                 chmod +x bk-make-pch
51755                                                                 BK_MAKE_PCH="`pwd`/bk-make-pch"
51756             fi
51757         fi
51758     fi
51759
51760
51761
51762
51763
51764     COND_BUILD_DEBUG="#"
51765     if test "x$BUILD" = "xdebug" ; then
51766         COND_BUILD_DEBUG=""
51767     fi
51768
51769     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
51770     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
51771         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
51772     fi
51773
51774     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
51775     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
51776         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
51777     fi
51778
51779     COND_BUILD_DEBUG_UNICODE_0="#"
51780     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
51781         COND_BUILD_DEBUG_UNICODE_0=""
51782     fi
51783
51784     COND_BUILD_DEBUG_UNICODE_1="#"
51785     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
51786         COND_BUILD_DEBUG_UNICODE_1=""
51787     fi
51788
51789     COND_BUILD_RELEASE="#"
51790     if test "x$BUILD" = "xrelease" ; then
51791         COND_BUILD_RELEASE=""
51792     fi
51793
51794     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
51795     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
51796         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
51797     fi
51798
51799     COND_BUILD_RELEASE_UNICODE_0="#"
51800     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
51801         COND_BUILD_RELEASE_UNICODE_0=""
51802     fi
51803
51804     COND_BUILD_RELEASE_UNICODE_1="#"
51805     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
51806         COND_BUILD_RELEASE_UNICODE_1=""
51807     fi
51808
51809     COND_DEBUG_FLAG_1="#"
51810     if test "x$DEBUG_FLAG" = "x1" ; then
51811         COND_DEBUG_FLAG_1=""
51812     fi
51813
51814     COND_DEBUG_INFO_0="#"
51815     if test "x$DEBUG_INFO" = "x0" ; then
51816         COND_DEBUG_INFO_0=""
51817     fi
51818
51819     COND_DEBUG_INFO_1="#"
51820     if test "x$DEBUG_INFO" = "x1" ; then
51821         COND_DEBUG_INFO_1=""
51822     fi
51823
51824     COND_DEPS_TRACKING_0="#"
51825     if test "x$DEPS_TRACKING" = "x0" ; then
51826         COND_DEPS_TRACKING_0=""
51827     fi
51828
51829     COND_DEPS_TRACKING_1="#"
51830     if test "x$DEPS_TRACKING" = "x1" ; then
51831         COND_DEPS_TRACKING_1=""
51832     fi
51833
51834     COND_GCC_PCH_1="#"
51835     if test "x$GCC_PCH" = "x1" ; then
51836         COND_GCC_PCH_1=""
51837     fi
51838
51839     COND_ICC_PCH_1="#"
51840     if test "x$ICC_PCH" = "x1" ; then
51841         COND_ICC_PCH_1=""
51842     fi
51843
51844     COND_MONOLITHIC_0="#"
51845     if test "x$MONOLITHIC" = "x0" ; then
51846         COND_MONOLITHIC_0=""
51847     fi
51848
51849     COND_MONOLITHIC_0_SHARED_0="#"
51850     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
51851         COND_MONOLITHIC_0_SHARED_0=""
51852     fi
51853
51854     COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
51855     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
51856         COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
51857     fi
51858
51859     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
51860     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
51861         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
51862     fi
51863
51864     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
51865     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
51866         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
51867     fi
51868
51869     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
51870     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
51871         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
51872     fi
51873
51874     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
51875     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
51876         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
51877     fi
51878
51879     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
51880     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
51881         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
51882     fi
51883
51884     COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
51885     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
51886         COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
51887     fi
51888
51889     COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
51890     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
51891         COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
51892     fi
51893
51894     COND_MONOLITHIC_0_SHARED_0_USE_STC_1="#"
51895     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
51896         COND_MONOLITHIC_0_SHARED_0_USE_STC_1=""
51897     fi
51898
51899     COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
51900     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
51901         COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
51902     fi
51903
51904     COND_MONOLITHIC_0_SHARED_1="#"
51905     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
51906         COND_MONOLITHIC_0_SHARED_1=""
51907     fi
51908
51909     COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
51910     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
51911         COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
51912     fi
51913
51914     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
51915     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
51916         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
51917     fi
51918
51919     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
51920     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
51921         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
51922     fi
51923
51924     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
51925     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
51926         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
51927     fi
51928
51929     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
51930     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
51931         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
51932     fi
51933
51934     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
51935     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
51936         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
51937     fi
51938
51939     COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
51940     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
51941         COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
51942     fi
51943
51944     COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
51945     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
51946         COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
51947     fi
51948
51949     COND_MONOLITHIC_0_SHARED_1_USE_STC_1="#"
51950     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_STC" = "x1" ; then
51951         COND_MONOLITHIC_0_SHARED_1_USE_STC_1=""
51952     fi
51953
51954     COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
51955     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
51956         COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
51957     fi
51958
51959     COND_MONOLITHIC_0_USE_AUI_1="#"
51960     if test "x$MONOLITHIC" = "x0" -a "x$USE_AUI" = "x1" ; then
51961         COND_MONOLITHIC_0_USE_AUI_1=""
51962     fi
51963
51964     COND_MONOLITHIC_0_USE_GUI_1="#"
51965     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" ; then
51966         COND_MONOLITHIC_0_USE_GUI_1=""
51967     fi
51968
51969     COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1="#"
51970     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
51971         COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1=""
51972     fi
51973
51974     COND_MONOLITHIC_0_USE_GUI_1_USE_ODBC_1="#"
51975     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
51976         COND_MONOLITHIC_0_USE_GUI_1_USE_ODBC_1=""
51977     fi
51978
51979     COND_MONOLITHIC_0_USE_HTML_1="#"
51980     if test "x$MONOLITHIC" = "x0" -a "x$USE_HTML" = "x1" ; then
51981         COND_MONOLITHIC_0_USE_HTML_1=""
51982     fi
51983
51984     COND_MONOLITHIC_0_USE_MEDIA_1="#"
51985     if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
51986         COND_MONOLITHIC_0_USE_MEDIA_1=""
51987     fi
51988
51989     COND_MONOLITHIC_0_USE_ODBC_1="#"
51990     if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
51991         COND_MONOLITHIC_0_USE_ODBC_1=""
51992     fi
51993
51994     COND_MONOLITHIC_0_USE_QA_1="#"
51995     if test "x$MONOLITHIC" = "x0" -a "x$USE_QA" = "x1" ; then
51996         COND_MONOLITHIC_0_USE_QA_1=""
51997     fi
51998
51999     COND_MONOLITHIC_0_USE_RICHTEXT_1="#"
52000     if test "x$MONOLITHIC" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
52001         COND_MONOLITHIC_0_USE_RICHTEXT_1=""
52002     fi
52003
52004     COND_MONOLITHIC_0_USE_STC_1="#"
52005     if test "x$MONOLITHIC" = "x0" -a "x$USE_STC" = "x1" ; then
52006         COND_MONOLITHIC_0_USE_STC_1=""
52007     fi
52008
52009     COND_MONOLITHIC_0_USE_XRC_1="#"
52010     if test "x$MONOLITHIC" = "x0" -a "x$USE_XRC" = "x1" ; then
52011         COND_MONOLITHIC_0_USE_XRC_1=""
52012     fi
52013
52014     COND_MONOLITHIC_1="#"
52015     if test "x$MONOLITHIC" = "x1" ; then
52016         COND_MONOLITHIC_1=""
52017     fi
52018
52019     COND_MONOLITHIC_1_SHARED_0="#"
52020     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
52021         COND_MONOLITHIC_1_SHARED_0=""
52022     fi
52023
52024     COND_MONOLITHIC_1_SHARED_1="#"
52025     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
52026         COND_MONOLITHIC_1_SHARED_1=""
52027     fi
52028
52029     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
52030     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
52031         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
52032     fi
52033
52034     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
52035     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
52036         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
52037     fi
52038
52039     COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
52040     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
52041         COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
52042     fi
52043
52044     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
52045     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
52046         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
52047     fi
52048
52049     COND_PLATFORM_MACOSX_1="#"
52050     if test "x$PLATFORM_MACOSX" = "x1" ; then
52051         COND_PLATFORM_MACOSX_1=""
52052     fi
52053
52054     COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
52055     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
52056         COND_PLATFORM_MACOSX_1_TOOLKIT_=""
52057     fi
52058
52059     COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
52060     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
52061         COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
52062     fi
52063
52064     COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
52065     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
52066         COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
52067     fi
52068
52069     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
52070     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
52071         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
52072     fi
52073
52074     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
52075     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
52076         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
52077     fi
52078
52079     COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
52080     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
52081         COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
52082     fi
52083
52084     COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
52085     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
52086         COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
52087     fi
52088
52089     COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
52090     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
52091         COND_PLATFORM_MACOSX_1_USE_GUI_1=""
52092     fi
52093
52094     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
52095     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
52096         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
52097     fi
52098
52099     COND_PLATFORM_MACOS_1="#"
52100     if test "x$PLATFORM_MACOS" = "x1" ; then
52101         COND_PLATFORM_MACOS_1=""
52102     fi
52103
52104     COND_PLATFORM_MAC_1="#"
52105     if test "x$PLATFORM_MAC" = "x1" ; then
52106         COND_PLATFORM_MAC_1=""
52107     fi
52108
52109     COND_PLATFORM_MSDOS_0="#"
52110     if test "x$PLATFORM_MSDOS" = "x0" ; then
52111         COND_PLATFORM_MSDOS_0=""
52112     fi
52113
52114     COND_PLATFORM_MSDOS_1="#"
52115     if test "x$PLATFORM_MSDOS" = "x1" ; then
52116         COND_PLATFORM_MSDOS_1=""
52117     fi
52118
52119     COND_PLATFORM_OS2_1="#"
52120     if test "x$PLATFORM_OS2" = "x1" ; then
52121         COND_PLATFORM_OS2_1=""
52122     fi
52123
52124     COND_PLATFORM_UNIX_0="#"
52125     if test "x$PLATFORM_UNIX" = "x0" ; then
52126         COND_PLATFORM_UNIX_0=""
52127     fi
52128
52129     COND_PLATFORM_UNIX_1="#"
52130     if test "x$PLATFORM_UNIX" = "x1" ; then
52131         COND_PLATFORM_UNIX_1=""
52132     fi
52133
52134     COND_PLATFORM_UNIX_1_TOOLKIT_MGL="#"
52135     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" ; then
52136         COND_PLATFORM_UNIX_1_TOOLKIT_MGL=""
52137     fi
52138
52139     COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1="#"
52140     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
52141         COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1=""
52142     fi
52143
52144     COND_PLATFORM_UNIX_1_USE_GUI_1="#"
52145     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
52146         COND_PLATFORM_UNIX_1_USE_GUI_1=""
52147     fi
52148
52149     COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
52150     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
52151         COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
52152     fi
52153
52154     COND_PLATFORM_WIN32_0="#"
52155     if test "x$PLATFORM_WIN32" = "x0" ; then
52156         COND_PLATFORM_WIN32_0=""
52157     fi
52158
52159     COND_PLATFORM_WIN32_1="#"
52160     if test "x$PLATFORM_WIN32" = "x1" ; then
52161         COND_PLATFORM_WIN32_1=""
52162     fi
52163
52164     COND_SHARED_0="#"
52165     if test "x$SHARED" = "x0" ; then
52166         COND_SHARED_0=""
52167     fi
52168
52169     COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
52170     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
52171         COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
52172     fi
52173
52174     COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
52175     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
52176         COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
52177     fi
52178
52179     COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
52180     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
52181         COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
52182     fi
52183
52184     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
52185     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
52186         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
52187     fi
52188
52189     COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
52190     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
52191         COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
52192     fi
52193
52194     COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
52195     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
52196         COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
52197     fi
52198
52199     COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
52200     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
52201         COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
52202     fi
52203
52204     COND_SHARED_0_USE_STC_1="#"
52205     if test "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
52206         COND_SHARED_0_USE_STC_1=""
52207     fi
52208
52209     COND_SHARED_0_USE_XRC_1="#"
52210     if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
52211         COND_SHARED_0_USE_XRC_1=""
52212     fi
52213
52214     COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
52215     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
52216         COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
52217     fi
52218
52219     COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
52220     if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
52221         COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
52222     fi
52223
52224     COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
52225     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
52226         COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
52227     fi
52228
52229     COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
52230     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
52231         COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
52232     fi
52233
52234     COND_SHARED_1="#"
52235     if test "x$SHARED" = "x1" ; then
52236         COND_SHARED_1=""
52237     fi
52238
52239     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
52240     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
52241         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
52242     fi
52243
52244     COND_SHARED_1_USE_XRC_1="#"
52245     if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
52246         COND_SHARED_1_USE_XRC_1=""
52247     fi
52248
52249     COND_TOOLKIT_="#"
52250     if test "x$TOOLKIT" = "x" ; then
52251         COND_TOOLKIT_=""
52252     fi
52253
52254     COND_TOOLKIT_COCOA="#"
52255     if test "x$TOOLKIT" = "xCOCOA" ; then
52256         COND_TOOLKIT_COCOA=""
52257     fi
52258
52259     COND_TOOLKIT_COCOA_USE_GUI_1="#"
52260     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
52261         COND_TOOLKIT_COCOA_USE_GUI_1=""
52262     fi
52263
52264     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
52265     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52266         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
52267     fi
52268
52269     COND_TOOLKIT_DFB="#"
52270     if test "x$TOOLKIT" = "xDFB" ; then
52271         COND_TOOLKIT_DFB=""
52272     fi
52273
52274     COND_TOOLKIT_DFB_USE_GUI_1="#"
52275     if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
52276         COND_TOOLKIT_DFB_USE_GUI_1=""
52277     fi
52278
52279     COND_TOOLKIT_GTK="#"
52280     if test "x$TOOLKIT" = "xGTK" ; then
52281         COND_TOOLKIT_GTK=""
52282     fi
52283
52284     COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
52285     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
52286         COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
52287     fi
52288
52289     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
52290     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
52291         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
52292     fi
52293
52294     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
52295     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
52296         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
52297     fi
52298
52299     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
52300     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52301         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
52302     fi
52303
52304     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
52305     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
52306         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
52307     fi
52308
52309     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
52310     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52311         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
52312     fi
52313
52314     COND_TOOLKIT_GTK_USE_GUI_1="#"
52315     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
52316         COND_TOOLKIT_GTK_USE_GUI_1=""
52317     fi
52318
52319     COND_TOOLKIT_MAC="#"
52320     if test "x$TOOLKIT" = "xMAC" ; then
52321         COND_TOOLKIT_MAC=""
52322     fi
52323
52324     COND_TOOLKIT_MAC_USE_GUI_1="#"
52325     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
52326         COND_TOOLKIT_MAC_USE_GUI_1=""
52327     fi
52328
52329     COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
52330     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52331         COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
52332     fi
52333
52334     COND_TOOLKIT_MGL="#"
52335     if test "x$TOOLKIT" = "xMGL" ; then
52336         COND_TOOLKIT_MGL=""
52337     fi
52338
52339     COND_TOOLKIT_MGL_USE_GUI_1="#"
52340     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
52341         COND_TOOLKIT_MGL_USE_GUI_1=""
52342     fi
52343
52344     COND_TOOLKIT_MOTIF="#"
52345     if test "x$TOOLKIT" = "xMOTIF" ; then
52346         COND_TOOLKIT_MOTIF=""
52347     fi
52348
52349     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
52350     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
52351         COND_TOOLKIT_MOTIF_USE_GUI_1=""
52352     fi
52353
52354     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
52355     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52356         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
52357     fi
52358
52359     COND_TOOLKIT_MSW="#"
52360     if test "x$TOOLKIT" = "xMSW" ; then
52361         COND_TOOLKIT_MSW=""
52362     fi
52363
52364     COND_TOOLKIT_MSW_USE_GUI_1="#"
52365     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
52366         COND_TOOLKIT_MSW_USE_GUI_1=""
52367     fi
52368
52369     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
52370     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52371         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
52372     fi
52373
52374     COND_TOOLKIT_MSW_WXUNIV_0="#"
52375     if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
52376         COND_TOOLKIT_MSW_WXUNIV_0=""
52377     fi
52378
52379     COND_TOOLKIT_PM="#"
52380     if test "x$TOOLKIT" = "xPM" ; then
52381         COND_TOOLKIT_PM=""
52382     fi
52383
52384     COND_TOOLKIT_PM_USE_GUI_1="#"
52385     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
52386         COND_TOOLKIT_PM_USE_GUI_1=""
52387     fi
52388
52389     COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
52390     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52391         COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
52392     fi
52393
52394     COND_TOOLKIT_WINCE="#"
52395     if test "x$TOOLKIT" = "xWINCE" ; then
52396         COND_TOOLKIT_WINCE=""
52397     fi
52398
52399     COND_TOOLKIT_WINCE_USE_GUI_1="#"
52400     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
52401         COND_TOOLKIT_WINCE_USE_GUI_1=""
52402     fi
52403
52404     COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
52405     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52406         COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
52407     fi
52408
52409     COND_TOOLKIT_WINCE_WXUNIV_0="#"
52410     if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
52411         COND_TOOLKIT_WINCE_WXUNIV_0=""
52412     fi
52413
52414     COND_TOOLKIT_X11="#"
52415     if test "x$TOOLKIT" = "xX11" ; then
52416         COND_TOOLKIT_X11=""
52417     fi
52418
52419     COND_TOOLKIT_X11_USE_GUI_1="#"
52420     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
52421         COND_TOOLKIT_X11_USE_GUI_1=""
52422     fi
52423
52424     COND_UNICODE_1="#"
52425     if test "x$UNICODE" = "x1" ; then
52426         COND_UNICODE_1=""
52427     fi
52428
52429     COND_USE_EXCEPTIONS_0="#"
52430     if test "x$USE_EXCEPTIONS" = "x0" ; then
52431         COND_USE_EXCEPTIONS_0=""
52432     fi
52433
52434     COND_USE_EXCEPTIONS_1="#"
52435     if test "x$USE_EXCEPTIONS" = "x1" ; then
52436         COND_USE_EXCEPTIONS_1=""
52437     fi
52438
52439     COND_USE_GUI_0="#"
52440     if test "x$USE_GUI" = "x0" ; then
52441         COND_USE_GUI_0=""
52442     fi
52443
52444     COND_USE_GUI_1="#"
52445     if test "x$USE_GUI" = "x1" ; then
52446         COND_USE_GUI_1=""
52447     fi
52448
52449     COND_USE_GUI_1_USE_OPENGL_1="#"
52450     if test "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
52451         COND_USE_GUI_1_USE_OPENGL_1=""
52452     fi
52453
52454     COND_USE_GUI_1_WXUNIV_0="#"
52455     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52456         COND_USE_GUI_1_WXUNIV_0=""
52457     fi
52458
52459     COND_USE_GUI_1_WXUNIV_1="#"
52460     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
52461         COND_USE_GUI_1_WXUNIV_1=""
52462     fi
52463
52464     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
52465     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
52466         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
52467     fi
52468
52469     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
52470     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
52471         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
52472     fi
52473
52474     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
52475     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
52476         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
52477     fi
52478
52479     COND_USE_ODBC_1="#"
52480     if test "x$USE_ODBC" = "x1" ; then
52481         COND_USE_ODBC_1=""
52482     fi
52483
52484     COND_USE_OPENGL_1="#"
52485     if test "x$USE_OPENGL" = "x1" ; then
52486         COND_USE_OPENGL_1=""
52487     fi
52488
52489     COND_USE_PCH_1="#"
52490     if test "x$USE_PCH" = "x1" ; then
52491         COND_USE_PCH_1=""
52492     fi
52493
52494     COND_USE_PLUGINS_0="#"
52495     if test "x$USE_PLUGINS" = "x0" ; then
52496         COND_USE_PLUGINS_0=""
52497     fi
52498
52499     COND_USE_RTTI_0="#"
52500     if test "x$USE_RTTI" = "x0" ; then
52501         COND_USE_RTTI_0=""
52502     fi
52503
52504     COND_USE_RTTI_1="#"
52505     if test "x$USE_RTTI" = "x1" ; then
52506         COND_USE_RTTI_1=""
52507     fi
52508
52509     COND_USE_SOSYMLINKS_1="#"
52510     if test "x$USE_SOSYMLINKS" = "x1" ; then
52511         COND_USE_SOSYMLINKS_1=""
52512     fi
52513
52514     COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
52515     if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
52516         COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
52517     fi
52518
52519     COND_USE_SOVERLINUX_1="#"
52520     if test "x$USE_SOVERLINUX" = "x1" ; then
52521         COND_USE_SOVERLINUX_1=""
52522     fi
52523
52524     COND_USE_SOVERSION_0="#"
52525     if test "x$USE_SOVERSION" = "x0" ; then
52526         COND_USE_SOVERSION_0=""
52527     fi
52528
52529     COND_USE_SOVERSOLARIS_1="#"
52530     if test "x$USE_SOVERSOLARIS" = "x1" ; then
52531         COND_USE_SOVERSOLARIS_1=""
52532     fi
52533
52534     COND_USE_STC_1="#"
52535     if test "x$USE_STC" = "x1" ; then
52536         COND_USE_STC_1=""
52537     fi
52538
52539     COND_USE_THREADS_0="#"
52540     if test "x$USE_THREADS" = "x0" ; then
52541         COND_USE_THREADS_0=""
52542     fi
52543
52544     COND_USE_THREADS_1="#"
52545     if test "x$USE_THREADS" = "x1" ; then
52546         COND_USE_THREADS_1=""
52547     fi
52548
52549     COND_USE_XRC_1="#"
52550     if test "x$USE_XRC" = "x1" ; then
52551         COND_USE_XRC_1=""
52552     fi
52553
52554     COND_WINDOWS_IMPLIB_1="#"
52555     if test "x$WINDOWS_IMPLIB" = "x1" ; then
52556         COND_WINDOWS_IMPLIB_1=""
52557     fi
52558
52559     COND_WITH_PLUGIN_SDL_1="#"
52560     if test "x$WITH_PLUGIN_SDL" = "x1" ; then
52561         COND_WITH_PLUGIN_SDL_1=""
52562     fi
52563
52564     COND_WXUNIV_0="#"
52565     if test "x$WXUNIV" = "x0" ; then
52566         COND_WXUNIV_0=""
52567     fi
52568
52569     COND_WXUNIV_1="#"
52570     if test "x$WXUNIV" = "x1" ; then
52571         COND_WXUNIV_1=""
52572     fi
52573
52574     COND_WXUSE_EXPAT_BUILTIN="#"
52575     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
52576         COND_WXUSE_EXPAT_BUILTIN=""
52577     fi
52578
52579     COND_WXUSE_LIBJPEG_BUILTIN="#"
52580     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
52581         COND_WXUSE_LIBJPEG_BUILTIN=""
52582     fi
52583
52584     COND_WXUSE_LIBPNG_BUILTIN="#"
52585     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
52586         COND_WXUSE_LIBPNG_BUILTIN=""
52587     fi
52588
52589     COND_WXUSE_LIBTIFF_BUILTIN="#"
52590     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
52591         COND_WXUSE_LIBTIFF_BUILTIN=""
52592     fi
52593
52594     COND_WXUSE_ODBC_BUILTIN="#"
52595     if test "x$wxUSE_ODBC" = "xbuiltin" ; then
52596         COND_WXUSE_ODBC_BUILTIN=""
52597     fi
52598
52599     COND_WXUSE_REGEX_BUILTIN="#"
52600     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
52601         COND_WXUSE_REGEX_BUILTIN=""
52602     fi
52603
52604     COND_WXUSE_ZLIB_BUILTIN="#"
52605     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
52606         COND_WXUSE_ZLIB_BUILTIN=""
52607     fi
52608
52609
52610
52611     if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
52612         { { 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
52613 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;}
52614    { (exit 1); exit 1; }; }
52615     fi
52616
52617     if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
52618         { { 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
52619 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;}
52620    { (exit 1); exit 1; }; }
52621     fi
52622
52623
52624 if test $GCC_PCH = 1
52625 then
52626     if test "$wx_cv_gcc_pch_bug" = yes; then
52627         { echo "$as_me:$LINENO: WARNING: *** Precompiled header support is broken on this compiler" >&5
52628 echo "$as_me: WARNING: *** Precompiled header support is broken on this compiler" >&2;}
52629         { echo "$as_me:$LINENO: WARNING: *** --enable-precomp-headers is not recommended" >&5
52630 echo "$as_me: WARNING: *** --enable-precomp-headers is not recommended" >&2;}
52631         { echo "$as_me:$LINENO: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&5
52632 echo "$as_me: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&2;}
52633     fi
52634
52635     CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
52636 fi
52637
52638
52639 if test "$wxUSE_MAC" = 1 ; then
52640     if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
52641         sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
52642         mv temp bk-deps
52643         chmod +x bk-deps
52644     fi
52645 fi
52646
52647 if test "$wxUSE_SHARED" = "yes"; then
52648
52649                             sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
52650     EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
52651
52652                 case "${host}" in
52653       *-pc-os2_emx | *-pc-os2-emx )
52654         SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
52655         SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
52656         cp -p ${srcdir}/src/os2/dllnames.sh .
52657         cp -p ${srcdir}/src/os2/dllar.sh .
52658       ;;
52659     esac
52660 else
52661
52662         EXE_LINKER="$CXX -o"
52663
52664 fi
52665 if test "$wxUSE_OMF" = "yes"; then
52666     case "${host}" in
52667       *-pc-os2_emx | *-pc-os2-emx )
52668         LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
52669         LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
52670         WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
52671       ;;
52672     esac
52673 fi
52674
52675 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
52676
52677
52678 case "${host}" in
52679     *-*-solaris2* )
52680                         if "$GCC" = yes; then
52681             CPPFLAGS=`echo $CPPFLAGS | sed 's/-mt//'`
52682             LIBS=`echo $LIBS | sed 's/-mt//'`
52683             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-mt//'`
52684         fi
52685         ;;
52686
52687     *-*-linux* )
52688                         if test "x$SUNCXX" = xyes; then
52689             CPPFLAGS=`echo $CPPFLAGS | sed 's/-pthread//'`
52690             LIBS=`echo $LIBS | sed 's/-pthread//'`
52691             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-pthread//'`
52692         fi
52693         ;;
52694 esac
52695
52696 CFLAGS="$CFLAGS $CFLAGS_VISIBILITY"
52697 CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
52698
52699 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
52700
52701
52702
52703
52704
52705
52706
52707
52708
52709
52710
52711
52712
52713
52714
52715
52716
52717
52718
52719
52720
52721
52722
52723
52724
52725
52726
52727
52728
52729
52730
52731
52732
52733
52734
52735
52736
52737
52738
52739
52740
52741
52742
52743
52744
52745
52746
52747
52748
52749
52750
52751
52752
52753
52754
52755
52756
52757
52758
52759
52760
52761 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
52762 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
52763 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
52764 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
52765   echo $ECHO_N "(cached) $ECHO_C" >&6
52766 else
52767   cat >conftest.make <<\_ACEOF
52768 SHELL = /bin/sh
52769 all:
52770         @echo '@@@%%%=$(MAKE)=@@@%%%'
52771 _ACEOF
52772 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
52773 case `${MAKE-make} -f conftest.make 2>/dev/null` in
52774   *@@@%%%=?*=@@@%%%*)
52775     eval ac_cv_prog_make_${ac_make}_set=yes;;
52776   *)
52777     eval ac_cv_prog_make_${ac_make}_set=no;;
52778 esac
52779 rm -f conftest.make
52780 fi
52781 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
52782   { echo "$as_me:$LINENO: result: yes" >&5
52783 echo "${ECHO_T}yes" >&6; }
52784   SET_MAKE=
52785 else
52786   { echo "$as_me:$LINENO: result: no" >&5
52787 echo "${ECHO_T}no" >&6; }
52788   SET_MAKE="MAKE=${MAKE-make}"
52789 fi
52790
52791
52792
52793 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
52794
52795
52796 if test "$USE_WIN32" = 1; then
52797     ac_config_commands="$ac_config_commands
52798             rcdefs.h
52799         "
52800
52801 fi
52802
52803 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
52804
52805
52806 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
52807
52808
52809 if test "$wx_cv_version_script" = "yes"; then
52810     ac_config_files="$ac_config_files version-script"
52811
52812 fi
52813 ac_config_files="$ac_config_files Makefile"
52814
52815
52816 ac_config_commands="$ac_config_commands wx-config"
52817
52818
52819
52820 if test "$wxWITH_SUBDIRS" != "no"; then
52821 if test "$wxUSE_GUI" = "yes"; then
52822     SUBDIRS="samples demos utils"
52823 else         SUBDIRS="samples utils"
52824 fi
52825
52826
52827
52828 # Check whether --with-cppunit-prefix was given.
52829 if test "${with_cppunit_prefix+set}" = set; then
52830   withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
52831 else
52832   cppunit_config_prefix=""
52833 fi
52834
52835
52836 # Check whether --with-cppunit-exec-prefix was given.
52837 if test "${with_cppunit_exec_prefix+set}" = set; then
52838   withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
52839 else
52840   cppunit_config_exec_prefix=""
52841 fi
52842
52843
52844   if test x$cppunit_config_exec_prefix != x ; then
52845      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
52846      if test x${CPPUNIT_CONFIG+set} != xset ; then
52847         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
52848      fi
52849   fi
52850   if test x$cppunit_config_prefix != x ; then
52851      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
52852      if test x${CPPUNIT_CONFIG+set} != xset ; then
52853         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
52854      fi
52855   fi
52856
52857   # Extract the first word of "cppunit-config", so it can be a program name with args.
52858 set dummy cppunit-config; ac_word=$2
52859 { echo "$as_me:$LINENO: checking for $ac_word" >&5
52860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
52861 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
52862   echo $ECHO_N "(cached) $ECHO_C" >&6
52863 else
52864   case $CPPUNIT_CONFIG in
52865   [\\/]* | ?:[\\/]*)
52866   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
52867   ;;
52868   *)
52869   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52870 for as_dir in $PATH
52871 do
52872   IFS=$as_save_IFS
52873   test -z "$as_dir" && as_dir=.
52874   for ac_exec_ext in '' $ac_executable_extensions; do
52875   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52876     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
52877     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52878     break 2
52879   fi
52880 done
52881 done
52882 IFS=$as_save_IFS
52883
52884   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
52885   ;;
52886 esac
52887 fi
52888 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
52889 if test -n "$CPPUNIT_CONFIG"; then
52890   { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
52891 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
52892 else
52893   { echo "$as_me:$LINENO: result: no" >&5
52894 echo "${ECHO_T}no" >&6; }
52895 fi
52896
52897
52898   cppunit_version_min=1.8.0
52899
52900   { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
52901 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
52902   no_cppunit=""
52903   if test "$CPPUNIT_CONFIG" = "no" ; then
52904     { echo "$as_me:$LINENO: result: no" >&5
52905 echo "${ECHO_T}no" >&6; }
52906     no_cppunit=yes
52907   else
52908     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
52909     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
52910     cppunit_version=`$CPPUNIT_CONFIG --version`
52911
52912     cppunit_major_version=`echo $cppunit_version | \
52913            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
52914     cppunit_minor_version=`echo $cppunit_version | \
52915            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
52916     cppunit_micro_version=`echo $cppunit_version | \
52917            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
52918
52919     cppunit_major_min=`echo $cppunit_version_min | \
52920            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
52921     cppunit_minor_min=`echo $cppunit_version_min | \
52922            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
52923     cppunit_micro_min=`echo $cppunit_version_min | \
52924            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
52925
52926     cppunit_version_proper=`expr \
52927         $cppunit_major_version \> $cppunit_major_min \| \
52928         $cppunit_major_version \= $cppunit_major_min \& \
52929         $cppunit_minor_version \> $cppunit_minor_min \| \
52930         $cppunit_major_version \= $cppunit_major_min \& \
52931         $cppunit_minor_version \= $cppunit_minor_min \& \
52932         $cppunit_micro_version \>= $cppunit_micro_min `
52933
52934     if test "$cppunit_version_proper" = "1" ; then
52935       { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
52936 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
52937     else
52938       { echo "$as_me:$LINENO: result: no" >&5
52939 echo "${ECHO_T}no" >&6; }
52940       no_cppunit=yes
52941     fi
52942   fi
52943
52944   if test "x$no_cppunit" = x ; then
52945      SUBDIRS="$SUBDIRS tests"
52946   else
52947      CPPUNIT_CFLAGS=""
52948      CPPUNIT_LIBS=""
52949      :
52950   fi
52951
52952
52953
52954
52955
52956 for subdir in `echo $SUBDIRS`; do
52957     if test -d ${srcdir}/${subdir} ; then
52958         if test "$wxUSE_GUI" = "yes"; then
52959             if test ${subdir} = "samples"; then
52960                                                 makefiles="samples/Makefile.in $makefiles"
52961                 for sample in `echo $SAMPLES_SUBDIRS`; do
52962                     if test -d $srcdir/samples/$sample; then
52963                         makefiles="samples/$sample/Makefile.in $makefiles"
52964                     fi
52965                 done
52966             else
52967                                                                 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
52968                 eval "disabled=\$$disabled_var"
52969                 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
52970                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | $EGREP -v "$disabled"`
52971             fi
52972         else                                     if test ${subdir} = "samples"; then
52973                 makefiles="samples/Makefile.in samples/console/Makefile.in"
52974             elif test ${subdir} = "utils"; then
52975                 makefiles=""
52976                 for util in HelpGen tex2rtf ; do
52977                     if test -d $srcdir/utils/$util ; then
52978                         makefiles="utils/$util/Makefile.in \
52979                                    utils/$util/src/Makefile.in \
52980                                    $makefiles"
52981                     fi
52982                 done
52983             else                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
52984             fi
52985         fi
52986
52987         for mkin in $makefiles ; do
52988             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
52989             ac_config_files="$ac_config_files $mk"
52990
52991         done
52992     fi
52993 done
52994 fi
52995 cat >confcache <<\_ACEOF
52996 # This file is a shell script that caches the results of configure
52997 # tests run on this system so they can be shared between configure
52998 # scripts and configure runs, see configure's option --config-cache.
52999 # It is not useful on other systems.  If it contains results you don't
53000 # want to keep, you may remove or edit it.
53001 #
53002 # config.status only pays attention to the cache file if you give it
53003 # the --recheck option to rerun configure.
53004 #
53005 # `ac_cv_env_foo' variables (set or unset) will be overridden when
53006 # loading this file, other *unset* `ac_cv_foo' will be assigned the
53007 # following values.
53008
53009 _ACEOF
53010
53011 # The following way of writing the cache mishandles newlines in values,
53012 # but we know of no workaround that is simple, portable, and efficient.
53013 # So, we kill variables containing newlines.
53014 # Ultrix sh set writes to stderr and can't be redirected directly,
53015 # and sets the high bit in the cache file unless we assign to the vars.
53016 (
53017   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
53018     eval ac_val=\$$ac_var
53019     case $ac_val in #(
53020     *${as_nl}*)
53021       case $ac_var in #(
53022       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
53023 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
53024       esac
53025       case $ac_var in #(
53026       _ | IFS | as_nl) ;; #(
53027       *) $as_unset $ac_var ;;
53028       esac ;;
53029     esac
53030   done
53031
53032   (set) 2>&1 |
53033     case $as_nl`(ac_space=' '; set) 2>&1` in #(
53034     *${as_nl}ac_space=\ *)
53035       # `set' does not quote correctly, so add quotes (double-quote
53036       # substitution turns \\\\ into \\, and sed turns \\ into \).
53037       sed -n \
53038         "s/'/'\\\\''/g;
53039           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
53040       ;; #(
53041     *)
53042       # `set' quotes correctly as required by POSIX, so do not add quotes.
53043       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
53044       ;;
53045     esac |
53046     sort
53047 ) |
53048   sed '
53049      /^ac_cv_env_/b end
53050      t clear
53051      :clear
53052      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
53053      t end
53054      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
53055      :end' >>confcache
53056 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
53057   if test -w "$cache_file"; then
53058     test "x$cache_file" != "x/dev/null" &&
53059       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
53060 echo "$as_me: updating cache $cache_file" >&6;}
53061     cat confcache >$cache_file
53062   else
53063     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
53064 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
53065   fi
53066 fi
53067 rm -f confcache
53068
53069 test "x$prefix" = xNONE && prefix=$ac_default_prefix
53070 # Let make expand exec_prefix.
53071 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
53072
53073 DEFS=-DHAVE_CONFIG_H
53074
53075 ac_libobjs=
53076 ac_ltlibobjs=
53077 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
53078   # 1. Remove the extension, and $U if already installed.
53079   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
53080   ac_i=`echo "$ac_i" | sed "$ac_script"`
53081   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
53082   #    will be set to the directory where LIBOBJS objects are built.
53083   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
53084   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
53085 done
53086 LIBOBJS=$ac_libobjs
53087
53088 LTLIBOBJS=$ac_ltlibobjs
53089
53090
53091
53092 : ${CONFIG_STATUS=./config.status}
53093 ac_clean_files_save=$ac_clean_files
53094 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
53095 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
53096 echo "$as_me: creating $CONFIG_STATUS" >&6;}
53097 cat >$CONFIG_STATUS <<_ACEOF
53098 #! $SHELL
53099 # Generated by $as_me.
53100 # Run this file to recreate the current configuration.
53101 # Compiler output produced by configure, useful for debugging
53102 # configure, is in config.log if it exists.
53103
53104 debug=false
53105 ac_cs_recheck=false
53106 ac_cs_silent=false
53107 SHELL=\${CONFIG_SHELL-$SHELL}
53108 _ACEOF
53109
53110 cat >>$CONFIG_STATUS <<\_ACEOF
53111 ## --------------------- ##
53112 ## M4sh Initialization.  ##
53113 ## --------------------- ##
53114
53115 # Be more Bourne compatible
53116 DUALCASE=1; export DUALCASE # for MKS sh
53117 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
53118   emulate sh
53119   NULLCMD=:
53120   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
53121   # is contrary to our usage.  Disable this feature.
53122   alias -g '${1+"$@"}'='"$@"'
53123   setopt NO_GLOB_SUBST
53124 else
53125   case `(set -o) 2>/dev/null` in
53126   *posix*) set -o posix ;;
53127 esac
53128
53129 fi
53130
53131
53132
53133
53134 # PATH needs CR
53135 # Avoid depending upon Character Ranges.
53136 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
53137 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
53138 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
53139 as_cr_digits='0123456789'
53140 as_cr_alnum=$as_cr_Letters$as_cr_digits
53141
53142 # The user is always right.
53143 if test "${PATH_SEPARATOR+set}" != set; then
53144   echo "#! /bin/sh" >conf$$.sh
53145   echo  "exit 0"   >>conf$$.sh
53146   chmod +x conf$$.sh
53147   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53148     PATH_SEPARATOR=';'
53149   else
53150     PATH_SEPARATOR=:
53151   fi
53152   rm -f conf$$.sh
53153 fi
53154
53155 # Support unset when possible.
53156 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53157   as_unset=unset
53158 else
53159   as_unset=false
53160 fi
53161
53162
53163 # IFS
53164 # We need space, tab and new line, in precisely that order.  Quoting is
53165 # there to prevent editors from complaining about space-tab.
53166 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
53167 # splitting by setting IFS to empty value.)
53168 as_nl='
53169 '
53170 IFS=" ""        $as_nl"
53171
53172 # Find who we are.  Look in the path if we contain no directory separator.
53173 case $0 in
53174   *[\\/]* ) as_myself=$0 ;;
53175   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53176 for as_dir in $PATH
53177 do
53178   IFS=$as_save_IFS
53179   test -z "$as_dir" && as_dir=.
53180   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
53181 done
53182 IFS=$as_save_IFS
53183
53184      ;;
53185 esac
53186 # We did not find ourselves, most probably we were run as `sh COMMAND'
53187 # in which case we are not to be found in the path.
53188 if test "x$as_myself" = x; then
53189   as_myself=$0
53190 fi
53191 if test ! -f "$as_myself"; then
53192   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
53193   { (exit 1); exit 1; }
53194 fi
53195
53196 # Work around bugs in pre-3.0 UWIN ksh.
53197 for as_var in ENV MAIL MAILPATH
53198 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
53199 done
53200 PS1='$ '
53201 PS2='> '
53202 PS4='+ '
53203
53204 # NLS nuisances.
53205 for as_var in \
53206   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
53207   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
53208   LC_TELEPHONE LC_TIME
53209 do
53210   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53211     eval $as_var=C; export $as_var
53212   else
53213     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
53214   fi
53215 done
53216
53217 # Required to use basename.
53218 if expr a : '\(a\)' >/dev/null 2>&1 &&
53219    test "X`expr 00001 : '.*\(...\)'`" = X001; then
53220   as_expr=expr
53221 else
53222   as_expr=false
53223 fi
53224
53225 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
53226   as_basename=basename
53227 else
53228   as_basename=false
53229 fi
53230
53231
53232 # Name of the executable.
53233 as_me=`$as_basename -- "$0" ||
53234 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
53235          X"$0" : 'X\(//\)$' \| \
53236          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
53237 echo X/"$0" |
53238     sed '/^.*\/\([^/][^/]*\)\/*$/{
53239             s//\1/
53240             q
53241           }
53242           /^X\/\(\/\/\)$/{
53243             s//\1/
53244             q
53245           }
53246           /^X\/\(\/\).*/{
53247             s//\1/
53248             q
53249           }
53250           s/.*/./; q'`
53251
53252 # CDPATH.
53253 $as_unset CDPATH
53254
53255
53256
53257   as_lineno_1=$LINENO
53258   as_lineno_2=$LINENO
53259   test "x$as_lineno_1" != "x$as_lineno_2" &&
53260   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
53261
53262   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
53263   # uniformly replaced by the line number.  The first 'sed' inserts a
53264   # line-number line after each line using $LINENO; the second 'sed'
53265   # does the real work.  The second script uses 'N' to pair each
53266   # line-number line with the line containing $LINENO, and appends
53267   # trailing '-' during substitution so that $LINENO is not a special
53268   # case at line end.
53269   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
53270   # scripts with optimization help from Paolo Bonzini.  Blame Lee
53271   # E. McMahon (1931-1989) for sed's syntax.  :-)
53272   sed -n '
53273     p
53274     /[$]LINENO/=
53275   ' <$as_myself |
53276     sed '
53277       s/[$]LINENO.*/&-/
53278       t lineno
53279       b
53280       :lineno
53281       N
53282       :loop
53283       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
53284       t loop
53285       s/-\n.*//
53286     ' >$as_me.lineno &&
53287   chmod +x "$as_me.lineno" ||
53288     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
53289    { (exit 1); exit 1; }; }
53290
53291   # Don't try to exec as it changes $[0], causing all sort of problems
53292   # (the dirname of $[0] is not the place where we might find the
53293   # original and so on.  Autoconf is especially sensitive to this).
53294   . "./$as_me.lineno"
53295   # Exit status is that of the last command.
53296   exit
53297 }
53298
53299
53300 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
53301   as_dirname=dirname
53302 else
53303   as_dirname=false
53304 fi
53305
53306 ECHO_C= ECHO_N= ECHO_T=
53307 case `echo -n x` in
53308 -n*)
53309   case `echo 'x\c'` in
53310   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
53311   *)   ECHO_C='\c';;
53312   esac;;
53313 *)
53314   ECHO_N='-n';;
53315 esac
53316
53317 if expr a : '\(a\)' >/dev/null 2>&1 &&
53318    test "X`expr 00001 : '.*\(...\)'`" = X001; then
53319   as_expr=expr
53320 else
53321   as_expr=false
53322 fi
53323
53324 rm -f conf$$ conf$$.exe conf$$.file
53325 if test -d conf$$.dir; then
53326   rm -f conf$$.dir/conf$$.file
53327 else
53328   rm -f conf$$.dir
53329   mkdir conf$$.dir
53330 fi
53331 echo >conf$$.file
53332 if ln -s conf$$.file conf$$ 2>/dev/null; then
53333   as_ln_s='ln -s'
53334   # ... but there are two gotchas:
53335   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
53336   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
53337   # In both cases, we have to default to `cp -p'.
53338   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
53339     as_ln_s='cp -p'
53340 elif ln conf$$.file conf$$ 2>/dev/null; then
53341   as_ln_s=ln
53342 else
53343   as_ln_s='cp -p'
53344 fi
53345 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
53346 rmdir conf$$.dir 2>/dev/null
53347
53348 if mkdir -p . 2>/dev/null; then
53349   as_mkdir_p=:
53350 else
53351   test -d ./-p && rmdir ./-p
53352   as_mkdir_p=false
53353 fi
53354
53355 if test -x / >/dev/null 2>&1; then
53356   as_test_x='test -x'
53357 else
53358   if ls -dL / >/dev/null 2>&1; then
53359     as_ls_L_option=L
53360   else
53361     as_ls_L_option=
53362   fi
53363   as_test_x='
53364     eval sh -c '\''
53365       if test -d "$1"; then
53366         test -d "$1/.";
53367       else
53368         case $1 in
53369         -*)set "./$1";;
53370         esac;
53371         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
53372         ???[sx]*):;;*)false;;esac;fi
53373     '\'' sh
53374   '
53375 fi
53376 as_executable_p=$as_test_x
53377
53378 # Sed expression to map a string onto a valid CPP name.
53379 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
53380
53381 # Sed expression to map a string onto a valid variable name.
53382 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
53383
53384
53385 exec 6>&1
53386
53387 # Save the log message, to keep $[0] and so on meaningful, and to
53388 # report actual input values of CONFIG_FILES etc. instead of their
53389 # values after options handling.
53390 ac_log="
53391 This file was extended by wxWidgets $as_me 2.9.0, which was
53392 generated by GNU Autoconf 2.61.  Invocation command line was
53393
53394   CONFIG_FILES    = $CONFIG_FILES
53395   CONFIG_HEADERS  = $CONFIG_HEADERS
53396   CONFIG_LINKS    = $CONFIG_LINKS
53397   CONFIG_COMMANDS = $CONFIG_COMMANDS
53398   $ $0 $@
53399
53400 on `(hostname || uname -n) 2>/dev/null | sed 1q`
53401 "
53402
53403 _ACEOF
53404
53405 cat >>$CONFIG_STATUS <<_ACEOF
53406 # Files that config.status was made for.
53407 config_files="$ac_config_files"
53408 config_headers="$ac_config_headers"
53409 config_commands="$ac_config_commands"
53410
53411 _ACEOF
53412
53413 cat >>$CONFIG_STATUS <<\_ACEOF
53414 ac_cs_usage="\
53415 \`$as_me' instantiates files from templates according to the
53416 current configuration.
53417
53418 Usage: $0 [OPTIONS] [FILE]...
53419
53420   -h, --help       print this help, then exit
53421   -V, --version    print version number and configuration settings, then exit
53422   -q, --quiet      do not print progress messages
53423   -d, --debug      don't remove temporary files
53424       --recheck    update $as_me by reconfiguring in the same conditions
53425   --file=FILE[:TEMPLATE]
53426                    instantiate the configuration file FILE
53427   --header=FILE[:TEMPLATE]
53428                    instantiate the configuration header FILE
53429
53430 Configuration files:
53431 $config_files
53432
53433 Configuration headers:
53434 $config_headers
53435
53436 Configuration commands:
53437 $config_commands
53438
53439 Report bugs to <bug-autoconf@gnu.org>."
53440
53441 _ACEOF
53442 cat >>$CONFIG_STATUS <<_ACEOF
53443 ac_cs_version="\\
53444 wxWidgets config.status 2.9.0
53445 configured by $0, generated by GNU Autoconf 2.61,
53446   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
53447
53448 Copyright (C) 2006 Free Software Foundation, Inc.
53449 This config.status script is free software; the Free Software Foundation
53450 gives unlimited permission to copy, distribute and modify it."
53451
53452 ac_pwd='$ac_pwd'
53453 srcdir='$srcdir'
53454 INSTALL='$INSTALL'
53455 _ACEOF
53456
53457 cat >>$CONFIG_STATUS <<\_ACEOF
53458 # If no file are specified by the user, then we need to provide default
53459 # value.  By we need to know if files were specified by the user.
53460 ac_need_defaults=:
53461 while test $# != 0
53462 do
53463   case $1 in
53464   --*=*)
53465     ac_option=`expr "X$1" : 'X\([^=]*\)='`
53466     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
53467     ac_shift=:
53468     ;;
53469   *)
53470     ac_option=$1
53471     ac_optarg=$2
53472     ac_shift=shift
53473     ;;
53474   esac
53475
53476   case $ac_option in
53477   # Handling of the options.
53478   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
53479     ac_cs_recheck=: ;;
53480   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
53481     echo "$ac_cs_version"; exit ;;
53482   --debug | --debu | --deb | --de | --d | -d )
53483     debug=: ;;
53484   --file | --fil | --fi | --f )
53485     $ac_shift
53486     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
53487     ac_need_defaults=false;;
53488   --header | --heade | --head | --hea )
53489     $ac_shift
53490     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
53491     ac_need_defaults=false;;
53492   --he | --h)
53493     # Conflict between --help and --header
53494     { echo "$as_me: error: ambiguous option: $1
53495 Try \`$0 --help' for more information." >&2
53496    { (exit 1); exit 1; }; };;
53497   --help | --hel | -h )
53498     echo "$ac_cs_usage"; exit ;;
53499   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
53500   | -silent | --silent | --silen | --sile | --sil | --si | --s)
53501     ac_cs_silent=: ;;
53502
53503   # This is an error.
53504   -*) { echo "$as_me: error: unrecognized option: $1
53505 Try \`$0 --help' for more information." >&2
53506    { (exit 1); exit 1; }; } ;;
53507
53508   *) ac_config_targets="$ac_config_targets $1"
53509      ac_need_defaults=false ;;
53510
53511   esac
53512   shift
53513 done
53514
53515 ac_configure_extra_args=
53516
53517 if $ac_cs_silent; then
53518   exec 6>/dev/null
53519   ac_configure_extra_args="$ac_configure_extra_args --silent"
53520 fi
53521
53522 _ACEOF
53523 cat >>$CONFIG_STATUS <<_ACEOF
53524 if \$ac_cs_recheck; then
53525   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
53526   CONFIG_SHELL=$SHELL
53527   export CONFIG_SHELL
53528   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
53529 fi
53530
53531 _ACEOF
53532 cat >>$CONFIG_STATUS <<\_ACEOF
53533 exec 5>>config.log
53534 {
53535   echo
53536   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
53537 ## Running $as_me. ##
53538 _ASBOX
53539   echo "$ac_log"
53540 } >&5
53541
53542 _ACEOF
53543 cat >>$CONFIG_STATUS <<_ACEOF
53544 #
53545 # INIT-COMMANDS
53546 #
53547
53548             CPP="$CPP"
53549             infile="$srcdir/include/wx/msw/genrcdefs.h"
53550             outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
53551
53552
53553  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
53554  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
53555  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
53556                      LN_S="${LN_S}"
53557
53558
53559 _ACEOF
53560
53561 cat >>$CONFIG_STATUS <<\_ACEOF
53562
53563 # Handling of arguments.
53564 for ac_config_target in $ac_config_targets
53565 do
53566   case $ac_config_target in
53567     "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
53568     "rcdefs.h") CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
53569     "lib/wx/config/${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
53570     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
53571     "version-script") CONFIG_FILES="$CONFIG_FILES version-script" ;;
53572     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
53573     "wx-config") CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
53574     "$mk") CONFIG_FILES="$CONFIG_FILES $mk" ;;
53575
53576   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
53577 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
53578    { (exit 1); exit 1; }; };;
53579   esac
53580 done
53581
53582
53583 # If the user did not use the arguments to specify the items to instantiate,
53584 # then the envvar interface is used.  Set only those that are not.
53585 # We use the long form for the default assignment because of an extremely
53586 # bizarre bug on SunOS 4.1.3.
53587 if $ac_need_defaults; then
53588   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
53589   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
53590   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
53591 fi
53592
53593 # Have a temporary directory for convenience.  Make it in the build tree
53594 # simply because there is no reason against having it here, and in addition,
53595 # creating and moving files from /tmp can sometimes cause problems.
53596 # Hook for its removal unless debugging.
53597 # Note that there is a small window in which the directory will not be cleaned:
53598 # after its creation but before its name has been assigned to `$tmp'.
53599 $debug ||
53600 {
53601   tmp=
53602   trap 'exit_status=$?
53603   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
53604 ' 0
53605   trap '{ (exit 1); exit 1; }' 1 2 13 15
53606 }
53607 # Create a (secure) tmp directory for tmp files.
53608
53609 {
53610   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
53611   test -n "$tmp" && test -d "$tmp"
53612 }  ||
53613 {
53614   tmp=./conf$$-$RANDOM
53615   (umask 077 && mkdir "$tmp")
53616 } ||
53617 {
53618    echo "$me: cannot create a temporary directory in ." >&2
53619    { (exit 1); exit 1; }
53620 }
53621
53622 #
53623 # Set up the sed scripts for CONFIG_FILES section.
53624 #
53625
53626 # No need to generate the scripts if there are no CONFIG_FILES.
53627 # This happens for instance when ./config.status config.h
53628 if test -n "$CONFIG_FILES"; then
53629
53630 _ACEOF
53631
53632
53633
53634 ac_delim='%!_!# '
53635 for ac_last_try in false false false false false :; do
53636   cat >conf$$subs.sed <<_ACEOF
53637 SHELL!$SHELL$ac_delim
53638 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
53639 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
53640 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
53641 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
53642 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
53643 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
53644 exec_prefix!$exec_prefix$ac_delim
53645 prefix!$prefix$ac_delim
53646 program_transform_name!$program_transform_name$ac_delim
53647 bindir!$bindir$ac_delim
53648 sbindir!$sbindir$ac_delim
53649 libexecdir!$libexecdir$ac_delim
53650 datarootdir!$datarootdir$ac_delim
53651 datadir!$datadir$ac_delim
53652 sysconfdir!$sysconfdir$ac_delim
53653 sharedstatedir!$sharedstatedir$ac_delim
53654 localstatedir!$localstatedir$ac_delim
53655 includedir!$includedir$ac_delim
53656 oldincludedir!$oldincludedir$ac_delim
53657 docdir!$docdir$ac_delim
53658 infodir!$infodir$ac_delim
53659 htmldir!$htmldir$ac_delim
53660 dvidir!$dvidir$ac_delim
53661 pdfdir!$pdfdir$ac_delim
53662 psdir!$psdir$ac_delim
53663 libdir!$libdir$ac_delim
53664 localedir!$localedir$ac_delim
53665 mandir!$mandir$ac_delim
53666 DEFS!$DEFS$ac_delim
53667 ECHO_C!$ECHO_C$ac_delim
53668 ECHO_N!$ECHO_N$ac_delim
53669 ECHO_T!$ECHO_T$ac_delim
53670 LIBS!$LIBS$ac_delim
53671 build_alias!$build_alias$ac_delim
53672 host_alias!$host_alias$ac_delim
53673 target_alias!$target_alias$ac_delim
53674 build!$build$ac_delim
53675 build_cpu!$build_cpu$ac_delim
53676 build_vendor!$build_vendor$ac_delim
53677 build_os!$build_os$ac_delim
53678 host!$host$ac_delim
53679 host_cpu!$host_cpu$ac_delim
53680 host_vendor!$host_vendor$ac_delim
53681 host_os!$host_os$ac_delim
53682 target!$target$ac_delim
53683 target_cpu!$target_cpu$ac_delim
53684 target_vendor!$target_vendor$ac_delim
53685 target_os!$target_os$ac_delim
53686 wx_top_builddir!$wx_top_builddir$ac_delim
53687 CC!$CC$ac_delim
53688 CFLAGS!$CFLAGS$ac_delim
53689 LDFLAGS!$LDFLAGS$ac_delim
53690 CPPFLAGS!$CPPFLAGS$ac_delim
53691 ac_ct_CC!$ac_ct_CC$ac_delim
53692 EXEEXT!$EXEEXT$ac_delim
53693 OBJEXT!$OBJEXT$ac_delim
53694 CPP!$CPP$ac_delim
53695 GREP!$GREP$ac_delim
53696 EGREP!$EGREP$ac_delim
53697 CXX!$CXX$ac_delim
53698 CXXFLAGS!$CXXFLAGS$ac_delim
53699 ac_ct_CXX!$ac_ct_CXX$ac_delim
53700 RANLIB!$RANLIB$ac_delim
53701 AR!$AR$ac_delim
53702 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
53703 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
53704 INSTALL_DATA!$INSTALL_DATA$ac_delim
53705 STRIP!$STRIP$ac_delim
53706 WINDRES!$WINDRES$ac_delim
53707 DLLTOOL!$DLLTOOL$ac_delim
53708 IF_GNU_MAKE!$IF_GNU_MAKE$ac_delim
53709 LN_S!$LN_S$ac_delim
53710 subdirs!$subdirs$ac_delim
53711 PKG_CONFIG!$PKG_CONFIG$ac_delim
53712 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
53713 GTK_LIBS!$GTK_LIBS$ac_delim
53714 GTK_CONFIG!$GTK_CONFIG$ac_delim
53715 DIRECTFB_CFLAGS!$DIRECTFB_CFLAGS$ac_delim
53716 DIRECTFB_LIBS!$DIRECTFB_LIBS$ac_delim
53717 XMKMF!$XMKMF$ac_delim
53718 X_CFLAGS!$X_CFLAGS$ac_delim
53719 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
53720 X_LIBS!$X_LIBS$ac_delim
53721 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
53722 PANGOX_CFLAGS!$PANGOX_CFLAGS$ac_delim
53723 PANGOX_LIBS!$PANGOX_LIBS$ac_delim
53724 PANGOFT2_CFLAGS!$PANGOFT2_CFLAGS$ac_delim
53725 PANGOFT2_LIBS!$PANGOFT2_LIBS$ac_delim
53726 PANGOXFT_CFLAGS!$PANGOXFT_CFLAGS$ac_delim
53727 PANGOXFT_LIBS!$PANGOXFT_LIBS$ac_delim
53728 CFLAGS_VISIBILITY!$CFLAGS_VISIBILITY$ac_delim
53729 CXXFLAGS_VISIBILITY!$CXXFLAGS_VISIBILITY$ac_delim
53730 REZ!$REZ$ac_delim
53731 DEREZ!$DEREZ$ac_delim
53732 SETFILE!$SETFILE$ac_delim
53733 LIBICONV!$LIBICONV$ac_delim
53734 _ACEOF
53735
53736   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
53737     break
53738   elif $ac_last_try; then
53739     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
53740 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
53741    { (exit 1); exit 1; }; }
53742   else
53743     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
53744   fi
53745 done
53746
53747 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
53748 if test -n "$ac_eof"; then
53749   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
53750   ac_eof=`expr $ac_eof + 1`
53751 fi
53752
53753 cat >>$CONFIG_STATUS <<_ACEOF
53754 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
53755 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
53756 _ACEOF
53757 sed '
53758 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
53759 s/^/s,@/; s/!/@,|#_!!_#|/
53760 :n
53761 t n
53762 s/'"$ac_delim"'$/,g/; t
53763 s/$/\\/; p
53764 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
53765 ' >>$CONFIG_STATUS <conf$$subs.sed
53766 rm -f conf$$subs.sed
53767 cat >>$CONFIG_STATUS <<_ACEOF
53768 CEOF$ac_eof
53769 _ACEOF
53770
53771
53772 ac_delim='%!_!# '
53773 for ac_last_try in false false false false false :; do
53774   cat >conf$$subs.sed <<_ACEOF
53775 SDL_CONFIG!$SDL_CONFIG$ac_delim
53776 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
53777 SDL_LIBS!$SDL_LIBS$ac_delim
53778 LIBGNOMEPRINTUI_CFLAGS!$LIBGNOMEPRINTUI_CFLAGS$ac_delim
53779 LIBGNOMEPRINTUI_LIBS!$LIBGNOMEPRINTUI_LIBS$ac_delim
53780 GNOMEVFS_CFLAGS!$GNOMEVFS_CFLAGS$ac_delim
53781 GNOMEVFS_LIBS!$GNOMEVFS_LIBS$ac_delim
53782 HILDON_CFLAGS!$HILDON_CFLAGS$ac_delim
53783 HILDON_LIBS!$HILDON_LIBS$ac_delim
53784 CAIRO_CFLAGS!$CAIRO_CFLAGS$ac_delim
53785 CAIRO_LIBS!$CAIRO_LIBS$ac_delim
53786 GST_CFLAGS!$GST_CFLAGS$ac_delim
53787 GST_LIBS!$GST_LIBS$ac_delim
53788 ALL_WX_LIBS!$ALL_WX_LIBS$ac_delim
53789 BUILT_WX_LIBS!$BUILT_WX_LIBS$ac_delim
53790 STD_BASE_LIBS!$STD_BASE_LIBS$ac_delim
53791 STD_GUI_LIBS!$STD_GUI_LIBS$ac_delim
53792 wxUSE_ZLIB!$wxUSE_ZLIB$ac_delim
53793 wxUSE_REGEX!$wxUSE_REGEX$ac_delim
53794 wxUSE_EXPAT!$wxUSE_EXPAT$ac_delim
53795 wxUSE_ODBC!$wxUSE_ODBC$ac_delim
53796 wxUSE_LIBJPEG!$wxUSE_LIBJPEG$ac_delim
53797 wxUSE_LIBPNG!$wxUSE_LIBPNG$ac_delim
53798 wxUSE_LIBTIFF!$wxUSE_LIBTIFF$ac_delim
53799 VENDOR!$VENDOR$ac_delim
53800 OFFICIAL_BUILD!$OFFICIAL_BUILD$ac_delim
53801 WX_FLAVOUR!$WX_FLAVOUR$ac_delim
53802 WX_LIB_FLAVOUR!$WX_LIB_FLAVOUR$ac_delim
53803 WXUNIV!$WXUNIV$ac_delim
53804 MONOLITHIC!$MONOLITHIC$ac_delim
53805 USE_PLUGINS!$USE_PLUGINS$ac_delim
53806 CXXWARNINGS!$CXXWARNINGS$ac_delim
53807 EXTRALIBS!$EXTRALIBS$ac_delim
53808 EXTRALIBS_XML!$EXTRALIBS_XML$ac_delim
53809 EXTRALIBS_HTML!$EXTRALIBS_HTML$ac_delim
53810 EXTRALIBS_ODBC!$EXTRALIBS_ODBC$ac_delim
53811 EXTRALIBS_GUI!$EXTRALIBS_GUI$ac_delim
53812 EXTRALIBS_OPENGL!$EXTRALIBS_OPENGL$ac_delim
53813 EXTRALIBS_SDL!$EXTRALIBS_SDL$ac_delim
53814 WITH_PLUGIN_SDL!$WITH_PLUGIN_SDL$ac_delim
53815 EXTRALIBS_GNOMEPRINT!$EXTRALIBS_GNOMEPRINT$ac_delim
53816 EXTRALIBS_GNOMEVFS!$EXTRALIBS_GNOMEVFS$ac_delim
53817 EXTRALIBS_HILDON!$EXTRALIBS_HILDON$ac_delim
53818 UNICODE!$UNICODE$ac_delim
53819 BUILD!$BUILD$ac_delim
53820 DEBUG_INFO!$DEBUG_INFO$ac_delim
53821 DEBUG_FLAG!$DEBUG_FLAG$ac_delim
53822 TOOLKIT_LOWERCASE!$TOOLKIT_LOWERCASE$ac_delim
53823 TOOLKIT_VERSION!$TOOLKIT_VERSION$ac_delim
53824 SAMPLES_RPATH_FLAG!$SAMPLES_RPATH_FLAG$ac_delim
53825 SAMPLES_RPATH_POSTLINK!$SAMPLES_RPATH_POSTLINK$ac_delim
53826 HOST_SUFFIX!$HOST_SUFFIX$ac_delim
53827 CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
53828 CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
53829 SET_MAKE!$SET_MAKE$ac_delim
53830 MAKE_SET!$MAKE_SET$ac_delim
53831 AROPTIONS!$AROPTIONS$ac_delim
53832 NM!$NM$ac_delim
53833 INSTALL_DIR!$INSTALL_DIR$ac_delim
53834 LDFLAGS_GUI!$LDFLAGS_GUI$ac_delim
53835 PLATFORM_UNIX!$PLATFORM_UNIX$ac_delim
53836 PLATFORM_WIN32!$PLATFORM_WIN32$ac_delim
53837 PLATFORM_MSDOS!$PLATFORM_MSDOS$ac_delim
53838 PLATFORM_MAC!$PLATFORM_MAC$ac_delim
53839 PLATFORM_MACOS!$PLATFORM_MACOS$ac_delim
53840 PLATFORM_MACOSX!$PLATFORM_MACOSX$ac_delim
53841 PLATFORM_OS2!$PLATFORM_OS2$ac_delim
53842 PLATFORM_BEOS!$PLATFORM_BEOS$ac_delim
53843 SO_SUFFIX!$SO_SUFFIX$ac_delim
53844 SO_SUFFIX_MODULE!$SO_SUFFIX_MODULE$ac_delim
53845 DLLIMP_SUFFIX!$DLLIMP_SUFFIX$ac_delim
53846 LIBPREFIX!$LIBPREFIX$ac_delim
53847 LIBEXT!$LIBEXT$ac_delim
53848 DLLPREFIX!$DLLPREFIX$ac_delim
53849 DLLPREFIX_MODULE!$DLLPREFIX_MODULE$ac_delim
53850 dlldir!$dlldir$ac_delim
53851 AIX_CXX_LD!$AIX_CXX_LD$ac_delim
53852 SHARED_LD_CC!$SHARED_LD_CC$ac_delim
53853 SHARED_LD_CXX!$SHARED_LD_CXX$ac_delim
53854 SHARED_LD_MODULE_CC!$SHARED_LD_MODULE_CC$ac_delim
53855 SHARED_LD_MODULE_CXX!$SHARED_LD_MODULE_CXX$ac_delim
53856 PIC_FLAG!$PIC_FLAG$ac_delim
53857 WINDOWS_IMPLIB!$WINDOWS_IMPLIB$ac_delim
53858 USE_SOVERSION!$USE_SOVERSION$ac_delim
53859 USE_SOVERLINUX!$USE_SOVERLINUX$ac_delim
53860 USE_SOVERSOLARIS!$USE_SOVERSOLARIS$ac_delim
53861 USE_SOVERCYGWIN!$USE_SOVERCYGWIN$ac_delim
53862 USE_MACVERSION!$USE_MACVERSION$ac_delim
53863 USE_SOSYMLINKS!$USE_SOSYMLINKS$ac_delim
53864 SONAME_FLAG!$SONAME_FLAG$ac_delim
53865 DEPS_TRACKING!$DEPS_TRACKING$ac_delim
53866 BK_DEPS!$BK_DEPS$ac_delim
53867 GCC_PCH!$GCC_PCH$ac_delim
53868 ICC_PCH!$ICC_PCH$ac_delim
53869 BK_MAKE_PCH!$BK_MAKE_PCH$ac_delim
53870 COND_BUILD_DEBUG!$COND_BUILD_DEBUG$ac_delim
53871 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT!$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT$ac_delim
53872 _ACEOF
53873
53874   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
53875     break
53876   elif $ac_last_try; then
53877     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
53878 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
53879    { (exit 1); exit 1; }; }
53880   else
53881     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
53882   fi
53883 done
53884
53885 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
53886 if test -n "$ac_eof"; then
53887   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
53888   ac_eof=`expr $ac_eof + 1`
53889 fi
53890
53891 cat >>$CONFIG_STATUS <<_ACEOF
53892 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
53893 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
53894 _ACEOF
53895 sed '
53896 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
53897 s/^/s,@/; s/!/@,|#_!!_#|/
53898 :n
53899 t n
53900 s/'"$ac_delim"'$/,g/; t
53901 s/$/\\/; p
53902 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
53903 ' >>$CONFIG_STATUS <conf$$subs.sed
53904 rm -f conf$$subs.sed
53905 cat >>$CONFIG_STATUS <<_ACEOF
53906 CEOF$ac_eof
53907 _ACEOF
53908
53909
53910 ac_delim='%!_!# '
53911 for ac_last_try in false false false false false :; do
53912   cat >conf$$subs.sed <<_ACEOF
53913 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT!$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT$ac_delim
53914 COND_BUILD_DEBUG_UNICODE_0!$COND_BUILD_DEBUG_UNICODE_0$ac_delim
53915 COND_BUILD_DEBUG_UNICODE_1!$COND_BUILD_DEBUG_UNICODE_1$ac_delim
53916 COND_BUILD_RELEASE!$COND_BUILD_RELEASE$ac_delim
53917 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT!$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT$ac_delim
53918 COND_BUILD_RELEASE_UNICODE_0!$COND_BUILD_RELEASE_UNICODE_0$ac_delim
53919 COND_BUILD_RELEASE_UNICODE_1!$COND_BUILD_RELEASE_UNICODE_1$ac_delim
53920 COND_DEBUG_FLAG_1!$COND_DEBUG_FLAG_1$ac_delim
53921 COND_DEBUG_INFO_0!$COND_DEBUG_INFO_0$ac_delim
53922 COND_DEBUG_INFO_1!$COND_DEBUG_INFO_1$ac_delim
53923 COND_DEPS_TRACKING_0!$COND_DEPS_TRACKING_0$ac_delim
53924 COND_DEPS_TRACKING_1!$COND_DEPS_TRACKING_1$ac_delim
53925 COND_GCC_PCH_1!$COND_GCC_PCH_1$ac_delim
53926 COND_ICC_PCH_1!$COND_ICC_PCH_1$ac_delim
53927 COND_MONOLITHIC_0!$COND_MONOLITHIC_0$ac_delim
53928 COND_MONOLITHIC_0_SHARED_0!$COND_MONOLITHIC_0_SHARED_0$ac_delim
53929 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1$ac_delim
53930 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1$ac_delim
53931 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1$ac_delim
53932 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1$ac_delim
53933 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1$ac_delim
53934 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1$ac_delim
53935 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1!$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1$ac_delim
53936 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1$ac_delim
53937 COND_MONOLITHIC_0_SHARED_0_USE_STC_1!$COND_MONOLITHIC_0_SHARED_0_USE_STC_1$ac_delim
53938 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1$ac_delim
53939 COND_MONOLITHIC_0_SHARED_1!$COND_MONOLITHIC_0_SHARED_1$ac_delim
53940 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1$ac_delim
53941 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1$ac_delim
53942 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1$ac_delim
53943 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1$ac_delim
53944 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1$ac_delim
53945 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1$ac_delim
53946 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1!$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1$ac_delim
53947 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1$ac_delim
53948 COND_MONOLITHIC_0_SHARED_1_USE_STC_1!$COND_MONOLITHIC_0_SHARED_1_USE_STC_1$ac_delim
53949 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1$ac_delim
53950 COND_MONOLITHIC_0_USE_AUI_1!$COND_MONOLITHIC_0_USE_AUI_1$ac_delim
53951 COND_MONOLITHIC_0_USE_GUI_1!$COND_MONOLITHIC_0_USE_GUI_1$ac_delim
53952 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1$ac_delim
53953 COND_MONOLITHIC_0_USE_GUI_1_USE_ODBC_1!$COND_MONOLITHIC_0_USE_GUI_1_USE_ODBC_1$ac_delim
53954 COND_MONOLITHIC_0_USE_HTML_1!$COND_MONOLITHIC_0_USE_HTML_1$ac_delim
53955 COND_MONOLITHIC_0_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_MEDIA_1$ac_delim
53956 COND_MONOLITHIC_0_USE_ODBC_1!$COND_MONOLITHIC_0_USE_ODBC_1$ac_delim
53957 COND_MONOLITHIC_0_USE_QA_1!$COND_MONOLITHIC_0_USE_QA_1$ac_delim
53958 COND_MONOLITHIC_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_USE_RICHTEXT_1$ac_delim
53959 COND_MONOLITHIC_0_USE_STC_1!$COND_MONOLITHIC_0_USE_STC_1$ac_delim
53960 COND_MONOLITHIC_0_USE_XRC_1!$COND_MONOLITHIC_0_USE_XRC_1$ac_delim
53961 COND_MONOLITHIC_1!$COND_MONOLITHIC_1$ac_delim
53962 COND_MONOLITHIC_1_SHARED_0!$COND_MONOLITHIC_1_SHARED_0$ac_delim
53963 COND_MONOLITHIC_1_SHARED_1!$COND_MONOLITHIC_1_SHARED_1$ac_delim
53964 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1$ac_delim
53965 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1$ac_delim
53966 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1$ac_delim
53967 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1$ac_delim
53968 COND_PLATFORM_MACOSX_1!$COND_PLATFORM_MACOSX_1$ac_delim
53969 COND_PLATFORM_MACOSX_1_TOOLKIT_!$COND_PLATFORM_MACOSX_1_TOOLKIT_$ac_delim
53970 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA!$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA$ac_delim
53971 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK!$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK$ac_delim
53972 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC!$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC$ac_delim
53973 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1$ac_delim
53974 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF!$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF$ac_delim
53975 COND_PLATFORM_MACOSX_1_TOOLKIT_X11!$COND_PLATFORM_MACOSX_1_TOOLKIT_X11$ac_delim
53976 COND_PLATFORM_MACOSX_1_USE_GUI_1!$COND_PLATFORM_MACOSX_1_USE_GUI_1$ac_delim
53977 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1$ac_delim
53978 COND_PLATFORM_MACOS_1!$COND_PLATFORM_MACOS_1$ac_delim
53979 COND_PLATFORM_MAC_1!$COND_PLATFORM_MAC_1$ac_delim
53980 COND_PLATFORM_MSDOS_0!$COND_PLATFORM_MSDOS_0$ac_delim
53981 COND_PLATFORM_MSDOS_1!$COND_PLATFORM_MSDOS_1$ac_delim
53982 COND_PLATFORM_OS2_1!$COND_PLATFORM_OS2_1$ac_delim
53983 COND_PLATFORM_UNIX_0!$COND_PLATFORM_UNIX_0$ac_delim
53984 COND_PLATFORM_UNIX_1!$COND_PLATFORM_UNIX_1$ac_delim
53985 COND_PLATFORM_UNIX_1_TOOLKIT_MGL!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL$ac_delim
53986 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1$ac_delim
53987 COND_PLATFORM_UNIX_1_USE_GUI_1!$COND_PLATFORM_UNIX_1_USE_GUI_1$ac_delim
53988 COND_PLATFORM_UNIX_1_USE_PLUGINS_0!$COND_PLATFORM_UNIX_1_USE_PLUGINS_0$ac_delim
53989 COND_PLATFORM_WIN32_0!$COND_PLATFORM_WIN32_0$ac_delim
53990 COND_PLATFORM_WIN32_1!$COND_PLATFORM_WIN32_1$ac_delim
53991 COND_SHARED_0!$COND_SHARED_0$ac_delim
53992 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0$ac_delim
53993 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0$ac_delim
53994 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0!$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0$ac_delim
53995 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1$ac_delim
53996 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
53997 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
53998 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
53999 COND_SHARED_0_USE_STC_1!$COND_SHARED_0_USE_STC_1$ac_delim
54000 COND_SHARED_0_USE_XRC_1!$COND_SHARED_0_USE_XRC_1$ac_delim
54001 COND_SHARED_0_WXUSE_EXPAT_BUILTIN!$COND_SHARED_0_WXUSE_EXPAT_BUILTIN$ac_delim
54002 COND_SHARED_0_WXUSE_ODBC_BUILTIN!$COND_SHARED_0_WXUSE_ODBC_BUILTIN$ac_delim
54003 COND_SHARED_0_WXUSE_REGEX_BUILTIN!$COND_SHARED_0_WXUSE_REGEX_BUILTIN$ac_delim
54004 COND_SHARED_0_WXUSE_ZLIB_BUILTIN!$COND_SHARED_0_WXUSE_ZLIB_BUILTIN$ac_delim
54005 COND_SHARED_1!$COND_SHARED_1$ac_delim
54006 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1$ac_delim
54007 COND_SHARED_1_USE_XRC_1!$COND_SHARED_1_USE_XRC_1$ac_delim
54008 COND_TOOLKIT_!$COND_TOOLKIT_$ac_delim
54009 COND_TOOLKIT_COCOA!$COND_TOOLKIT_COCOA$ac_delim
54010 _ACEOF
54011
54012   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
54013     break
54014   elif $ac_last_try; then
54015     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54016 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54017    { (exit 1); exit 1; }; }
54018   else
54019     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54020   fi
54021 done
54022
54023 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54024 if test -n "$ac_eof"; then
54025   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54026   ac_eof=`expr $ac_eof + 1`
54027 fi
54028
54029 cat >>$CONFIG_STATUS <<_ACEOF
54030 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
54031 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54032 _ACEOF
54033 sed '
54034 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54035 s/^/s,@/; s/!/@,|#_!!_#|/
54036 :n
54037 t n
54038 s/'"$ac_delim"'$/,g/; t
54039 s/$/\\/; p
54040 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54041 ' >>$CONFIG_STATUS <conf$$subs.sed
54042 rm -f conf$$subs.sed
54043 cat >>$CONFIG_STATUS <<_ACEOF
54044 CEOF$ac_eof
54045 _ACEOF
54046
54047
54048 ac_delim='%!_!# '
54049 for ac_last_try in false false false false false :; do
54050   cat >conf$$subs.sed <<_ACEOF
54051 COND_TOOLKIT_COCOA_USE_GUI_1!$COND_TOOLKIT_COCOA_USE_GUI_1$ac_delim
54052 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0$ac_delim
54053 COND_TOOLKIT_DFB!$COND_TOOLKIT_DFB$ac_delim
54054 COND_TOOLKIT_DFB_USE_GUI_1!$COND_TOOLKIT_DFB_USE_GUI_1$ac_delim
54055 COND_TOOLKIT_GTK!$COND_TOOLKIT_GTK$ac_delim
54056 COND_TOOLKIT_GTK_TOOLKIT_VERSION_!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_$ac_delim
54057 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2$ac_delim
54058 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1$ac_delim
54059 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0$ac_delim
54060 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1$ac_delim
54061 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0$ac_delim
54062 COND_TOOLKIT_GTK_USE_GUI_1!$COND_TOOLKIT_GTK_USE_GUI_1$ac_delim
54063 COND_TOOLKIT_MAC!$COND_TOOLKIT_MAC$ac_delim
54064 COND_TOOLKIT_MAC_USE_GUI_1!$COND_TOOLKIT_MAC_USE_GUI_1$ac_delim
54065 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0$ac_delim
54066 COND_TOOLKIT_MGL!$COND_TOOLKIT_MGL$ac_delim
54067 COND_TOOLKIT_MGL_USE_GUI_1!$COND_TOOLKIT_MGL_USE_GUI_1$ac_delim
54068 COND_TOOLKIT_MOTIF!$COND_TOOLKIT_MOTIF$ac_delim
54069 COND_TOOLKIT_MOTIF_USE_GUI_1!$COND_TOOLKIT_MOTIF_USE_GUI_1$ac_delim
54070 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0$ac_delim
54071 COND_TOOLKIT_MSW!$COND_TOOLKIT_MSW$ac_delim
54072 COND_TOOLKIT_MSW_USE_GUI_1!$COND_TOOLKIT_MSW_USE_GUI_1$ac_delim
54073 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0$ac_delim
54074 COND_TOOLKIT_MSW_WXUNIV_0!$COND_TOOLKIT_MSW_WXUNIV_0$ac_delim
54075 COND_TOOLKIT_PM!$COND_TOOLKIT_PM$ac_delim
54076 COND_TOOLKIT_PM_USE_GUI_1!$COND_TOOLKIT_PM_USE_GUI_1$ac_delim
54077 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0$ac_delim
54078 COND_TOOLKIT_WINCE!$COND_TOOLKIT_WINCE$ac_delim
54079 COND_TOOLKIT_WINCE_USE_GUI_1!$COND_TOOLKIT_WINCE_USE_GUI_1$ac_delim
54080 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0$ac_delim
54081 COND_TOOLKIT_WINCE_WXUNIV_0!$COND_TOOLKIT_WINCE_WXUNIV_0$ac_delim
54082 COND_TOOLKIT_X11!$COND_TOOLKIT_X11$ac_delim
54083 COND_TOOLKIT_X11_USE_GUI_1!$COND_TOOLKIT_X11_USE_GUI_1$ac_delim
54084 COND_UNICODE_1!$COND_UNICODE_1$ac_delim
54085 COND_USE_EXCEPTIONS_0!$COND_USE_EXCEPTIONS_0$ac_delim
54086 COND_USE_EXCEPTIONS_1!$COND_USE_EXCEPTIONS_1$ac_delim
54087 COND_USE_GUI_0!$COND_USE_GUI_0$ac_delim
54088 COND_USE_GUI_1!$COND_USE_GUI_1$ac_delim
54089 COND_USE_GUI_1_USE_OPENGL_1!$COND_USE_GUI_1_USE_OPENGL_1$ac_delim
54090 COND_USE_GUI_1_WXUNIV_0!$COND_USE_GUI_1_WXUNIV_0$ac_delim
54091 COND_USE_GUI_1_WXUNIV_1!$COND_USE_GUI_1_WXUNIV_1$ac_delim
54092 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
54093 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
54094 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
54095 COND_USE_ODBC_1!$COND_USE_ODBC_1$ac_delim
54096 COND_USE_OPENGL_1!$COND_USE_OPENGL_1$ac_delim
54097 COND_USE_PCH_1!$COND_USE_PCH_1$ac_delim
54098 COND_USE_PLUGINS_0!$COND_USE_PLUGINS_0$ac_delim
54099 COND_USE_RTTI_0!$COND_USE_RTTI_0$ac_delim
54100 COND_USE_RTTI_1!$COND_USE_RTTI_1$ac_delim
54101 COND_USE_SOSYMLINKS_1!$COND_USE_SOSYMLINKS_1$ac_delim
54102 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1!$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1$ac_delim
54103 COND_USE_SOVERLINUX_1!$COND_USE_SOVERLINUX_1$ac_delim
54104 COND_USE_SOVERSION_0!$COND_USE_SOVERSION_0$ac_delim
54105 COND_USE_SOVERSOLARIS_1!$COND_USE_SOVERSOLARIS_1$ac_delim
54106 COND_USE_STC_1!$COND_USE_STC_1$ac_delim
54107 COND_USE_THREADS_0!$COND_USE_THREADS_0$ac_delim
54108 COND_USE_THREADS_1!$COND_USE_THREADS_1$ac_delim
54109 COND_USE_XRC_1!$COND_USE_XRC_1$ac_delim
54110 COND_WINDOWS_IMPLIB_1!$COND_WINDOWS_IMPLIB_1$ac_delim
54111 COND_WITH_PLUGIN_SDL_1!$COND_WITH_PLUGIN_SDL_1$ac_delim
54112 COND_WXUNIV_0!$COND_WXUNIV_0$ac_delim
54113 COND_WXUNIV_1!$COND_WXUNIV_1$ac_delim
54114 COND_WXUSE_EXPAT_BUILTIN!$COND_WXUSE_EXPAT_BUILTIN$ac_delim
54115 COND_WXUSE_LIBJPEG_BUILTIN!$COND_WXUSE_LIBJPEG_BUILTIN$ac_delim
54116 COND_WXUSE_LIBPNG_BUILTIN!$COND_WXUSE_LIBPNG_BUILTIN$ac_delim
54117 COND_WXUSE_LIBTIFF_BUILTIN!$COND_WXUSE_LIBTIFF_BUILTIN$ac_delim
54118 COND_WXUSE_ODBC_BUILTIN!$COND_WXUSE_ODBC_BUILTIN$ac_delim
54119 COND_WXUSE_REGEX_BUILTIN!$COND_WXUSE_REGEX_BUILTIN$ac_delim
54120 COND_WXUSE_ZLIB_BUILTIN!$COND_WXUSE_ZLIB_BUILTIN$ac_delim
54121 SHARED!$SHARED$ac_delim
54122 WX_LIBRARY_BASENAME_NOGUI!$WX_LIBRARY_BASENAME_NOGUI$ac_delim
54123 WX_LIBRARY_BASENAME_GUI!$WX_LIBRARY_BASENAME_GUI$ac_delim
54124 USE_GUI!$USE_GUI$ac_delim
54125 AFMINSTALL!$AFMINSTALL$ac_delim
54126 WIN32INSTALL!$WIN32INSTALL$ac_delim
54127 TOOLKIT!$TOOLKIT$ac_delim
54128 TOOLKIT_DIR!$TOOLKIT_DIR$ac_delim
54129 TOOLCHAIN_NAME!$TOOLCHAIN_NAME$ac_delim
54130 TOOLCHAIN_FULLNAME!$TOOLCHAIN_FULLNAME$ac_delim
54131 cross_compiling!$cross_compiling$ac_delim
54132 WIDGET_SET!$WIDGET_SET$ac_delim
54133 WX_RELEASE!$WX_RELEASE$ac_delim
54134 WX_VERSION!$WX_VERSION$ac_delim
54135 WX_SUBVERSION!$WX_SUBVERSION$ac_delim
54136 WX_CHARTYPE!$WX_CHARTYPE$ac_delim
54137 WX_DEBUGTYPE!$WX_DEBUGTYPE$ac_delim
54138 WXCONFIG_CPPFLAGS!$WXCONFIG_CPPFLAGS$ac_delim
54139 WXCONFIG_CFLAGS!$WXCONFIG_CFLAGS$ac_delim
54140 WXCONFIG_CXXFLAGS!$WXCONFIG_CXXFLAGS$ac_delim
54141 WXCONFIG_LIBS!$WXCONFIG_LIBS$ac_delim
54142 WXCONFIG_RPATH!$WXCONFIG_RPATH$ac_delim
54143 WXCONFIG_LDFLAGS_GUI!$WXCONFIG_LDFLAGS_GUI$ac_delim
54144 WXCONFIG_RESFLAGS!$WXCONFIG_RESFLAGS$ac_delim
54145 EXE_LINKER!$EXE_LINKER$ac_delim
54146 GUIDIST!$GUIDIST$ac_delim
54147 DISTDIR!$DISTDIR$ac_delim
54148 _ACEOF
54149
54150   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
54151     break
54152   elif $ac_last_try; then
54153     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54154 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54155    { (exit 1); exit 1; }; }
54156   else
54157     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54158   fi
54159 done
54160
54161 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54162 if test -n "$ac_eof"; then
54163   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54164   ac_eof=`expr $ac_eof + 1`
54165 fi
54166
54167 cat >>$CONFIG_STATUS <<_ACEOF
54168 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
54169 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54170 _ACEOF
54171 sed '
54172 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54173 s/^/s,@/; s/!/@,|#_!!_#|/
54174 :n
54175 t n
54176 s/'"$ac_delim"'$/,g/; t
54177 s/$/\\/; p
54178 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54179 ' >>$CONFIG_STATUS <conf$$subs.sed
54180 rm -f conf$$subs.sed
54181 cat >>$CONFIG_STATUS <<_ACEOF
54182 CEOF$ac_eof
54183 _ACEOF
54184
54185
54186 ac_delim='%!_!# '
54187 for ac_last_try in false false false false false :; do
54188   cat >conf$$subs.sed <<_ACEOF
54189 SAMPLES_SUBDIRS!$SAMPLES_SUBDIRS$ac_delim
54190 LDFLAGS_GL!$LDFLAGS_GL$ac_delim
54191 OPENGL_LIBS!$OPENGL_LIBS$ac_delim
54192 DMALLOC_LIBS!$DMALLOC_LIBS$ac_delim
54193 WX_VERSION_TAG!$WX_VERSION_TAG$ac_delim
54194 RESCOMP!$RESCOMP$ac_delim
54195 RESFLAGS!$RESFLAGS$ac_delim
54196 RESPROGRAMOBJ!$RESPROGRAMOBJ$ac_delim
54197 WX_RESOURCES_MACOSX_ASCII!$WX_RESOURCES_MACOSX_ASCII$ac_delim
54198 WX_RESOURCES_MACOSX_DATA!$WX_RESOURCES_MACOSX_DATA$ac_delim
54199 LIBWXMACRES!$LIBWXMACRES$ac_delim
54200 POSTLINK_COMMAND!$POSTLINK_COMMAND$ac_delim
54201 MACSETFILE!$MACSETFILE$ac_delim
54202 GCC!$GCC$ac_delim
54203 CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
54204 LIBOBJS!$LIBOBJS$ac_delim
54205 LTLIBOBJS!$LTLIBOBJS$ac_delim
54206 _ACEOF
54207
54208   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 17; then
54209     break
54210   elif $ac_last_try; then
54211     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54212 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54213    { (exit 1); exit 1; }; }
54214   else
54215     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54216   fi
54217 done
54218
54219 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54220 if test -n "$ac_eof"; then
54221   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54222   ac_eof=`expr $ac_eof + 1`
54223 fi
54224
54225 cat >>$CONFIG_STATUS <<_ACEOF
54226 cat >"\$tmp/subs-5.sed" <<\CEOF$ac_eof
54227 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
54228 _ACEOF
54229 sed '
54230 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54231 s/^/s,@/; s/!/@,|#_!!_#|/
54232 :n
54233 t n
54234 s/'"$ac_delim"'$/,g/; t
54235 s/$/\\/; p
54236 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54237 ' >>$CONFIG_STATUS <conf$$subs.sed
54238 rm -f conf$$subs.sed
54239 cat >>$CONFIG_STATUS <<_ACEOF
54240 :end
54241 s/|#_!!_#|//g
54242 CEOF$ac_eof
54243 _ACEOF
54244
54245
54246 # VPATH may cause trouble with some makes, so we remove $(srcdir),
54247 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
54248 # trailing colons and then remove the whole line if VPATH becomes empty
54249 # (actually we leave an empty line to preserve line numbers).
54250 if test "x$srcdir" = x.; then
54251   ac_vpsub='/^[  ]*VPATH[        ]*=/{
54252 s/:*\$(srcdir):*/:/
54253 s/:*\${srcdir}:*/:/
54254 s/:*@srcdir@:*/:/
54255 s/^\([^=]*=[     ]*\):*/\1/
54256 s/:*$//
54257 s/^[^=]*=[       ]*$//
54258 }'
54259 fi
54260
54261 cat >>$CONFIG_STATUS <<\_ACEOF
54262 fi # test -n "$CONFIG_FILES"
54263
54264
54265 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
54266 do
54267   case $ac_tag in
54268   :[FHLC]) ac_mode=$ac_tag; continue;;
54269   esac
54270   case $ac_mode$ac_tag in
54271   :[FHL]*:*);;
54272   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
54273 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
54274    { (exit 1); exit 1; }; };;
54275   :[FH]-) ac_tag=-:-;;
54276   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
54277   esac
54278   ac_save_IFS=$IFS
54279   IFS=:
54280   set x $ac_tag
54281   IFS=$ac_save_IFS
54282   shift
54283   ac_file=$1
54284   shift
54285
54286   case $ac_mode in
54287   :L) ac_source=$1;;
54288   :[FH])
54289     ac_file_inputs=
54290     for ac_f
54291     do
54292       case $ac_f in
54293       -) ac_f="$tmp/stdin";;
54294       *) # Look for the file first in the build tree, then in the source tree
54295          # (if the path is not absolute).  The absolute path cannot be DOS-style,
54296          # because $ac_f cannot contain `:'.
54297          test -f "$ac_f" ||
54298            case $ac_f in
54299            [\\/$]*) false;;
54300            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
54301            esac ||
54302            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
54303 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
54304    { (exit 1); exit 1; }; };;
54305       esac
54306       ac_file_inputs="$ac_file_inputs $ac_f"
54307     done
54308
54309     # Let's still pretend it is `configure' which instantiates (i.e., don't
54310     # use $as_me), people would be surprised to read:
54311     #    /* config.h.  Generated by config.status.  */
54312     configure_input="Generated from "`IFS=:
54313           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
54314     if test x"$ac_file" != x-; then
54315       configure_input="$ac_file.  $configure_input"
54316       { echo "$as_me:$LINENO: creating $ac_file" >&5
54317 echo "$as_me: creating $ac_file" >&6;}
54318     fi
54319
54320     case $ac_tag in
54321     *:-:* | *:-) cat >"$tmp/stdin";;
54322     esac
54323     ;;
54324   esac
54325
54326   ac_dir=`$as_dirname -- "$ac_file" ||
54327 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54328          X"$ac_file" : 'X\(//\)[^/]' \| \
54329          X"$ac_file" : 'X\(//\)$' \| \
54330          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
54331 echo X"$ac_file" |
54332     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
54333             s//\1/
54334             q
54335           }
54336           /^X\(\/\/\)[^/].*/{
54337             s//\1/
54338             q
54339           }
54340           /^X\(\/\/\)$/{
54341             s//\1/
54342             q
54343           }
54344           /^X\(\/\).*/{
54345             s//\1/
54346             q
54347           }
54348           s/.*/./; q'`
54349   { as_dir="$ac_dir"
54350   case $as_dir in #(
54351   -*) as_dir=./$as_dir;;
54352   esac
54353   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
54354     as_dirs=
54355     while :; do
54356       case $as_dir in #(
54357       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
54358       *) as_qdir=$as_dir;;
54359       esac
54360       as_dirs="'$as_qdir' $as_dirs"
54361       as_dir=`$as_dirname -- "$as_dir" ||
54362 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54363          X"$as_dir" : 'X\(//\)[^/]' \| \
54364          X"$as_dir" : 'X\(//\)$' \| \
54365          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
54366 echo X"$as_dir" |
54367     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
54368             s//\1/
54369             q
54370           }
54371           /^X\(\/\/\)[^/].*/{
54372             s//\1/
54373             q
54374           }
54375           /^X\(\/\/\)$/{
54376             s//\1/
54377             q
54378           }
54379           /^X\(\/\).*/{
54380             s//\1/
54381             q
54382           }
54383           s/.*/./; q'`
54384       test -d "$as_dir" && break
54385     done
54386     test -z "$as_dirs" || eval "mkdir $as_dirs"
54387   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
54388 echo "$as_me: error: cannot create directory $as_dir" >&2;}
54389    { (exit 1); exit 1; }; }; }
54390   ac_builddir=.
54391
54392 case "$ac_dir" in
54393 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
54394 *)
54395   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
54396   # A ".." for each directory in $ac_dir_suffix.
54397   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
54398   case $ac_top_builddir_sub in
54399   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
54400   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
54401   esac ;;
54402 esac
54403 ac_abs_top_builddir=$ac_pwd
54404 ac_abs_builddir=$ac_pwd$ac_dir_suffix
54405 # for backward compatibility:
54406 ac_top_builddir=$ac_top_build_prefix
54407
54408 case $srcdir in
54409   .)  # We are building in place.
54410     ac_srcdir=.
54411     ac_top_srcdir=$ac_top_builddir_sub
54412     ac_abs_top_srcdir=$ac_pwd ;;
54413   [\\/]* | ?:[\\/]* )  # Absolute name.
54414     ac_srcdir=$srcdir$ac_dir_suffix;
54415     ac_top_srcdir=$srcdir
54416     ac_abs_top_srcdir=$srcdir ;;
54417   *) # Relative name.
54418     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
54419     ac_top_srcdir=$ac_top_build_prefix$srcdir
54420     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
54421 esac
54422 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
54423
54424
54425   case $ac_mode in
54426   :F)
54427   #
54428   # CONFIG_FILE
54429   #
54430
54431   case $INSTALL in
54432   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
54433   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
54434   esac
54435 _ACEOF
54436
54437 cat >>$CONFIG_STATUS <<\_ACEOF
54438 # If the template does not know about datarootdir, expand it.
54439 # FIXME: This hack should be removed a few years after 2.60.
54440 ac_datarootdir_hack=; ac_datarootdir_seen=
54441
54442 case `sed -n '/datarootdir/ {
54443   p
54444   q
54445 }
54446 /@datadir@/p
54447 /@docdir@/p
54448 /@infodir@/p
54449 /@localedir@/p
54450 /@mandir@/p
54451 ' $ac_file_inputs` in
54452 *datarootdir*) ac_datarootdir_seen=yes;;
54453 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
54454   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
54455 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
54456 _ACEOF
54457 cat >>$CONFIG_STATUS <<_ACEOF
54458   ac_datarootdir_hack='
54459   s&@datadir@&$datadir&g
54460   s&@docdir@&$docdir&g
54461   s&@infodir@&$infodir&g
54462   s&@localedir@&$localedir&g
54463   s&@mandir@&$mandir&g
54464     s&\\\${datarootdir}&$datarootdir&g' ;;
54465 esac
54466 _ACEOF
54467
54468 # Neutralize VPATH when `$srcdir' = `.'.
54469 # Shell code in configure.ac might set extrasub.
54470 # FIXME: do we really want to maintain this feature?
54471 cat >>$CONFIG_STATUS <<_ACEOF
54472   sed "$ac_vpsub
54473 $extrasub
54474 _ACEOF
54475 cat >>$CONFIG_STATUS <<\_ACEOF
54476 :t
54477 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54478 s&@configure_input@&$configure_input&;t t
54479 s&@top_builddir@&$ac_top_builddir_sub&;t t
54480 s&@srcdir@&$ac_srcdir&;t t
54481 s&@abs_srcdir@&$ac_abs_srcdir&;t t
54482 s&@top_srcdir@&$ac_top_srcdir&;t t
54483 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
54484 s&@builddir@&$ac_builddir&;t t
54485 s&@abs_builddir@&$ac_abs_builddir&;t t
54486 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
54487 s&@INSTALL@&$ac_INSTALL&;t t
54488 $ac_datarootdir_hack
54489 " $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
54490
54491 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
54492   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
54493   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
54494   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
54495 which seems to be undefined.  Please make sure it is defined." >&5
54496 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
54497 which seems to be undefined.  Please make sure it is defined." >&2;}
54498
54499   rm -f "$tmp/stdin"
54500   case $ac_file in
54501   -) cat "$tmp/out"; rm -f "$tmp/out";;
54502   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
54503   esac
54504  ;;
54505   :H)
54506   #
54507   # CONFIG_HEADER
54508   #
54509 _ACEOF
54510
54511 # Transform confdefs.h into a sed script `conftest.defines', that
54512 # substitutes the proper values into config.h.in to produce config.h.
54513 rm -f conftest.defines conftest.tail
54514 # First, append a space to every undef/define line, to ease matching.
54515 echo 's/$/ /' >conftest.defines
54516 # Then, protect against being on the right side of a sed subst, or in
54517 # an unquoted here document, in config.status.  If some macros were
54518 # called several times there might be several #defines for the same
54519 # symbol, which is useless.  But do not sort them, since the last
54520 # AC_DEFINE must be honored.
54521 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
54522 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
54523 # NAME is the cpp macro being defined, VALUE is the value it is being given.
54524 # PARAMS is the parameter list in the macro definition--in most cases, it's
54525 # just an empty string.
54526 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
54527 ac_dB='\\)[      (].*,\\1define\\2'
54528 ac_dC=' '
54529 ac_dD=' ,'
54530
54531 uniq confdefs.h |
54532   sed -n '
54533         t rset
54534         :rset
54535         s/^[     ]*#[    ]*define[       ][      ]*//
54536         t ok
54537         d
54538         :ok
54539         s/[\\&,]/\\&/g
54540         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
54541         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
54542   ' >>conftest.defines
54543
54544 # Remove the space that was appended to ease matching.
54545 # Then replace #undef with comments.  This is necessary, for
54546 # example, in the case of _POSIX_SOURCE, which is predefined and required
54547 # on some systems where configure will not decide to define it.
54548 # (The regexp can be short, since the line contains either #define or #undef.)
54549 echo 's/ $//
54550 s,^[     #]*u.*,/* & */,' >>conftest.defines
54551
54552 # Break up conftest.defines:
54553 ac_max_sed_lines=50
54554
54555 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
54556 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
54557 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
54558 # et cetera.
54559 ac_in='$ac_file_inputs'
54560 ac_out='"$tmp/out1"'
54561 ac_nxt='"$tmp/out2"'
54562
54563 while :
54564 do
54565   # Write a here document:
54566     cat >>$CONFIG_STATUS <<_ACEOF
54567     # First, check the format of the line:
54568     cat >"\$tmp/defines.sed" <<\\CEOF
54569 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
54570 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
54571 b
54572 :def
54573 _ACEOF
54574   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
54575   echo 'CEOF
54576     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
54577   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
54578   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
54579   grep . conftest.tail >/dev/null || break
54580   rm -f conftest.defines
54581   mv conftest.tail conftest.defines
54582 done
54583 rm -f conftest.defines conftest.tail
54584
54585 echo "ac_result=$ac_in" >>$CONFIG_STATUS
54586 cat >>$CONFIG_STATUS <<\_ACEOF
54587   if test x"$ac_file" != x-; then
54588     echo "/* $configure_input  */" >"$tmp/config.h"
54589     cat "$ac_result" >>"$tmp/config.h"
54590     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
54591       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
54592 echo "$as_me: $ac_file is unchanged" >&6;}
54593     else
54594       rm -f $ac_file
54595       mv "$tmp/config.h" $ac_file
54596     fi
54597   else
54598     echo "/* $configure_input  */"
54599     cat "$ac_result"
54600   fi
54601   rm -f "$tmp/out12"
54602  ;;
54603
54604   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
54605 echo "$as_me: executing $ac_file commands" >&6;}
54606  ;;
54607   esac
54608
54609
54610   case $ac_file$ac_mode in
54611     "rcdefs.h":C)
54612             mkdir -p $outdir &&
54613             $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
54614          ;;
54615     "lib/wx/config/${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME}  ;;
54616     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}  ;;
54617     "wx-config":C)  rm -f wx-config
54618                      ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
54619                     ;;
54620
54621   esac
54622 done # for ac_tag
54623
54624
54625 { (exit 0); exit 0; }
54626 _ACEOF
54627 chmod +x $CONFIG_STATUS
54628 ac_clean_files=$ac_clean_files_save
54629
54630
54631 # configure is writing to config.log, and then calls config.status.
54632 # config.status does its own redirection, appending to config.log.
54633 # Unfortunately, on DOS this fails, as config.log is still kept open
54634 # by configure, so config.status won't be able to write to it; its
54635 # output is simply discarded.  So we exec the FD to /dev/null,
54636 # effectively closing config.log, so it can be properly (re)opened and
54637 # appended to by config.status.  When coming back to configure, we
54638 # need to make the FD available again.
54639 if test "$no_create" != yes; then
54640   ac_cs_success=:
54641   ac_config_status_args=
54642   test "$silent" = yes &&
54643     ac_config_status_args="$ac_config_status_args --quiet"
54644   exec 5>/dev/null
54645   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
54646   exec 5>>config.log
54647   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
54648   # would make configure fail if this is the last instruction.
54649   $ac_cs_success || { (exit 1); exit 1; }
54650 fi
54651
54652 #
54653 # CONFIG_SUBDIRS section.
54654 #
54655 if test "$no_recursion" != yes; then
54656
54657   # Remove --cache-file and --srcdir arguments so they do not pile up.
54658   ac_sub_configure_args=
54659   ac_prev=
54660   eval "set x $ac_configure_args"
54661   shift
54662   for ac_arg
54663   do
54664     if test -n "$ac_prev"; then
54665       ac_prev=
54666       continue
54667     fi
54668     case $ac_arg in
54669     -cache-file | --cache-file | --cache-fil | --cache-fi \
54670     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
54671       ac_prev=cache_file ;;
54672     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
54673     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
54674     | --c=*)
54675       ;;
54676     --config-cache | -C)
54677       ;;
54678     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
54679       ac_prev=srcdir ;;
54680     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
54681       ;;
54682     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
54683       ac_prev=prefix ;;
54684     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
54685       ;;
54686     *)
54687       case $ac_arg in
54688       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
54689       esac
54690       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
54691     esac
54692   done
54693
54694   # Always prepend --prefix to ensure using the same prefix
54695   # in subdir configurations.
54696   ac_arg="--prefix=$prefix"
54697   case $ac_arg in
54698   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
54699   esac
54700   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
54701
54702   # Pass --silent
54703   if test "$silent" = yes; then
54704     ac_sub_configure_args="--silent $ac_sub_configure_args"
54705   fi
54706
54707   ac_popdir=`pwd`
54708   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
54709
54710     # Do not complain, so a configure script can configure whichever
54711     # parts of a large source tree are present.
54712     test -d "$srcdir/$ac_dir" || continue
54713
54714     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
54715     echo "$as_me:$LINENO: $ac_msg" >&5
54716     echo "$ac_msg" >&6
54717     { as_dir="$ac_dir"
54718   case $as_dir in #(
54719   -*) as_dir=./$as_dir;;
54720   esac
54721   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
54722     as_dirs=
54723     while :; do
54724       case $as_dir in #(
54725       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
54726       *) as_qdir=$as_dir;;
54727       esac
54728       as_dirs="'$as_qdir' $as_dirs"
54729       as_dir=`$as_dirname -- "$as_dir" ||
54730 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54731          X"$as_dir" : 'X\(//\)[^/]' \| \
54732          X"$as_dir" : 'X\(//\)$' \| \
54733          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
54734 echo X"$as_dir" |
54735     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
54736             s//\1/
54737             q
54738           }
54739           /^X\(\/\/\)[^/].*/{
54740             s//\1/
54741             q
54742           }
54743           /^X\(\/\/\)$/{
54744             s//\1/
54745             q
54746           }
54747           /^X\(\/\).*/{
54748             s//\1/
54749             q
54750           }
54751           s/.*/./; q'`
54752       test -d "$as_dir" && break
54753     done
54754     test -z "$as_dirs" || eval "mkdir $as_dirs"
54755   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
54756 echo "$as_me: error: cannot create directory $as_dir" >&2;}
54757    { (exit 1); exit 1; }; }; }
54758     ac_builddir=.
54759
54760 case "$ac_dir" in
54761 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
54762 *)
54763   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
54764   # A ".." for each directory in $ac_dir_suffix.
54765   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
54766   case $ac_top_builddir_sub in
54767   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
54768   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
54769   esac ;;
54770 esac
54771 ac_abs_top_builddir=$ac_pwd
54772 ac_abs_builddir=$ac_pwd$ac_dir_suffix
54773 # for backward compatibility:
54774 ac_top_builddir=$ac_top_build_prefix
54775
54776 case $srcdir in
54777   .)  # We are building in place.
54778     ac_srcdir=.
54779     ac_top_srcdir=$ac_top_builddir_sub
54780     ac_abs_top_srcdir=$ac_pwd ;;
54781   [\\/]* | ?:[\\/]* )  # Absolute name.
54782     ac_srcdir=$srcdir$ac_dir_suffix;
54783     ac_top_srcdir=$srcdir
54784     ac_abs_top_srcdir=$srcdir ;;
54785   *) # Relative name.
54786     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
54787     ac_top_srcdir=$ac_top_build_prefix$srcdir
54788     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
54789 esac
54790 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
54791
54792
54793     cd "$ac_dir"
54794
54795     # Check for guested configure; otherwise get Cygnus style configure.
54796     if test -f "$ac_srcdir/configure.gnu"; then
54797       ac_sub_configure=$ac_srcdir/configure.gnu
54798     elif test -f "$ac_srcdir/configure"; then
54799       ac_sub_configure=$ac_srcdir/configure
54800     elif test -f "$ac_srcdir/configure.in"; then
54801       # This should be Cygnus configure.
54802       ac_sub_configure=$ac_aux_dir/configure
54803     else
54804       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
54805 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
54806       ac_sub_configure=
54807     fi
54808
54809     # The recursion is here.
54810     if test -n "$ac_sub_configure"; then
54811       # Make the cache file name correct relative to the subdirectory.
54812       case $cache_file in
54813       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
54814       *) # Relative name.
54815         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
54816       esac
54817
54818       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
54819 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
54820       # The eval makes quoting arguments work.
54821       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
54822            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
54823         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
54824 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
54825    { (exit 1); exit 1; }; }
54826     fi
54827
54828     cd "$ac_popdir"
54829   done
54830 fi
54831
54832
54833 echo
54834 echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
54835 echo ""
54836 echo "  Which GUI toolkit should wxWidgets use?                 ${TOOLKIT_DESC}"
54837 echo "  Should wxWidgets be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
54838
54839 echo "  Should wxWidgets be compiled in debug mode?             ${wxUSE_DEBUG:-no}"
54840 echo "  Should wxWidgets be linked as a shared library?         ${wxUSE_SHARED:-no}"
54841 echo -n "  Should wxWidgets support Unicode?                       ${wxUSE_UNICODE:-no}"
54842 if test "$wxUSE_UNICODE" = "yes"; then
54843     if test "$wxUSE_UNICODE_UTF8" = "yes"; then
54844         echo " (using UTF-8)"
54845     else
54846         echo " (using wchar_t)"
54847     fi
54848 else
54849     echo
54850 fi
54851
54852 echo "  What level of wxWidgets compatibility should be enabled?"
54853 echo "                                       wxWidgets 2.6      ${WXWIN_COMPATIBILITY_2_6:-no}"
54854 echo "                                       wxWidgets 2.8      ${WXWIN_COMPATIBILITY_2_8:-yes}"
54855
54856 echo "  Which libraries should wxWidgets use?"
54857 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
54858 echo "                                       png                ${wxUSE_LIBPNG-none}"
54859 echo "                                       regex              ${wxUSE_REGEX}"
54860 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
54861 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
54862 echo "                                       xpm                ${wxUSE_LIBXPM-none}"
54863 fi
54864 echo "                                       zlib               ${wxUSE_ZLIB}"
54865 echo "                                       odbc               ${wxUSE_ODBC}"
54866 echo "                                       expat              ${wxUSE_EXPAT}"
54867 echo "                                       libmspack          ${wxUSE_LIBMSPACK}"
54868 echo "                                       sdl                ${wxUSE_LIBSDL}"
54869
54870 echo ""
54871