deprecate the old TryValidator/Parent() and replace them with the new and documented...
[wxWidgets.git] / configure
1 #! /bin/sh
2 # From configure.in Id: configure.in 58765 2009-02-08 15:38:30Z FM .
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 wx_top_builddir
665 CC
666 CFLAGS
667 LDFLAGS
668 CPPFLAGS
669 ac_ct_CC
670 EXEEXT
671 OBJEXT
672 CPP
673 GREP
674 EGREP
675 CXX
676 CXXFLAGS
677 ac_ct_CXX
678 AR
679 subdirs
680 PKG_CONFIG
681 GTK_CFLAGS
682 GTK_LIBS
683 GTK_CONFIG
684 DIRECTFB_CFLAGS
685 DIRECTFB_LIBS
686 XMKMF
687 X_CFLAGS
688 X_PRE_LIBS
689 X_LIBS
690 X_EXTRA_LIBS
691 PANGOX_CFLAGS
692 PANGOX_LIBS
693 PANGOFT2_CFLAGS
694 PANGOFT2_LIBS
695 PANGOXFT_CFLAGS
696 PANGOXFT_LIBS
697 CFLAGS_VISIBILITY
698 CXXFLAGS_VISIBILITY
699 LIBICONV
700 GXX_VERSION
701 SDL_CONFIG
702 SDL_CFLAGS
703 SDL_LIBS
704 GTKPRINT_CFLAGS
705 GTKPRINT_LIBS
706 LIBGNOMEPRINTUI_CFLAGS
707 LIBGNOMEPRINTUI_LIBS
708 GNOMEVFS_CFLAGS
709 GNOMEVFS_LIBS
710 HILDON_CFLAGS
711 HILDON_LIBS
712 CAIRO_CFLAGS
713 CAIRO_LIBS
714 GST_CFLAGS
715 GST_LIBS
716 ALL_WX_LIBS
717 BUILT_WX_LIBS
718 STD_BASE_LIBS
719 STD_GUI_LIBS
720 wxUSE_ZLIB
721 wxUSE_REGEX
722 wxUSE_EXPAT
723 wxUSE_LIBJPEG
724 wxUSE_LIBPNG
725 wxUSE_LIBTIFF
726 VENDOR
727 OFFICIAL_BUILD
728 WX_FLAVOUR
729 WX_LIB_FLAVOUR
730 WXUNIV
731 MONOLITHIC
732 USE_PLUGINS
733 CXXWARNINGS
734 EXTRALIBS
735 EXTRALIBS_XML
736 EXTRALIBS_HTML
737 EXTRALIBS_MEDIA
738 EXTRALIBS_GUI
739 EXTRALIBS_OPENGL
740 EXTRALIBS_SDL
741 EXTRALIBS_STC
742 WITH_PLUGIN_SDL
743 EXTRALIBS_GTKPRINT
744 EXTRALIBS_GNOMEPRINT
745 EXTRALIBS_GNOMEVFS
746 EXTRALIBS_HILDON
747 UNICODE
748 BUILD
749 DEBUG_INFO
750 DEBUG_FLAG
751 TOOLKIT_LOWERCASE
752 TOOLKIT_VERSION
753 SAMPLES_RPATH_FLAG
754 SAMPLES_RPATH_POSTLINK
755 HEADER_PAD_OPTION
756 HOST_SUFFIX
757 CPPUNIT_CFLAGS
758 CPPUNIT_LIBS
759 RANLIB
760 INSTALL_PROGRAM
761 INSTALL_SCRIPT
762 INSTALL_DATA
763 LN_S
764 SET_MAKE
765 MAKE_SET
766 AROPTIONS
767 STRIP
768 NM
769 INSTALL_DIR
770 LDFLAGS_GUI
771 IF_GNU_MAKE
772 PLATFORM_UNIX
773 PLATFORM_WIN32
774 PLATFORM_MSDOS
775 PLATFORM_MAC
776 PLATFORM_MACOS
777 PLATFORM_MACOSX
778 PLATFORM_OS2
779 PLATFORM_BEOS
780 SO_SUFFIX
781 SO_SUFFIX_MODULE
782 DLLIMP_SUFFIX
783 LIBPREFIX
784 LIBEXT
785 DLLPREFIX
786 DLLPREFIX_MODULE
787 dlldir
788 AIX_CXX_LD
789 SHARED_LD_CC
790 SHARED_LD_CXX
791 SHARED_LD_MODULE_CC
792 SHARED_LD_MODULE_CXX
793 PIC_FLAG
794 WINDOWS_IMPLIB
795 USE_SOVERSION
796 USE_SOVERLINUX
797 USE_SOVERSOLARIS
798 USE_SOVERCYGWIN
799 USE_MACVERSION
800 USE_SOSYMLINKS
801 SONAME_FLAG
802 DEPS_TRACKING
803 BK_DEPS
804 WINDRES
805 REZ
806 SETFILE
807 OBJCXXFLAGS
808 GCC_PCH
809 ICC_PCH
810 ICC_PCH_CREATE_SWITCH
811 ICC_PCH_USE_SWITCH
812 BK_MAKE_PCH
813 COND_BUILD_DEBUG
814 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT
815 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT
816 COND_BUILD_DEBUG_UNICODE_0
817 COND_BUILD_DEBUG_UNICODE_1
818 COND_BUILD_RELEASE
819 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT
820 COND_BUILD_RELEASE_UNICODE_0
821 COND_BUILD_RELEASE_UNICODE_1
822 COND_BUILD_debug
823 COND_BUILD_debug_DEBUG_FLAG_default
824 COND_BUILD_debug_DEBUG_INFO_default
825 COND_BUILD_debug_UNICODE_0
826 COND_BUILD_debug_UNICODE_1
827 COND_BUILD_release
828 COND_BUILD_release_DEBUG_INFO_default
829 COND_BUILD_release_UNICODE_0
830 COND_BUILD_release_UNICODE_1
831 COND_DEBUG_FLAG_1
832 COND_DEBUG_INFO_0
833 COND_DEBUG_INFO_1
834 COND_DEPS_TRACKING_0
835 COND_DEPS_TRACKING_1
836 COND_GCC_PCH_1
837 COND_ICC_PCH_1
838 COND_MONOLITHIC_0
839 COND_MONOLITHIC_0_SHARED_0
840 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1
841 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1
842 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1
843 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1
844 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1
845 COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1
846 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1
847 COND_MONOLITHIC_0_SHARED_0_USE_STC_1
848 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1
849 COND_MONOLITHIC_0_SHARED_1
850 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1
851 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1
852 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1
853 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1
854 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1
855 COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1
856 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1
857 COND_MONOLITHIC_0_SHARED_1_USE_STC_1
858 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1
859 COND_MONOLITHIC_0_USE_AUI_1
860 COND_MONOLITHIC_0_USE_GUI_1
861 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1
862 COND_MONOLITHIC_0_USE_HTML_1
863 COND_MONOLITHIC_0_USE_MEDIA_1
864 COND_MONOLITHIC_0_USE_PROPGRID_1
865 COND_MONOLITHIC_0_USE_QA_1
866 COND_MONOLITHIC_0_USE_RICHTEXT_1
867 COND_MONOLITHIC_0_USE_STC_1
868 COND_MONOLITHIC_0_USE_XRC_1
869 COND_MONOLITHIC_1
870 COND_MONOLITHIC_1_SHARED_0
871 COND_MONOLITHIC_1_SHARED_1
872 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1
873 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1
874 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1
875 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1
876 COND_PLATFORM_MACOSX_1
877 COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0
878 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1
879 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0
880 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1
881 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0
882 COND_PLATFORM_MACOSX_1_USE_GUI_1
883 COND_PLATFORM_MACOSX_1_USE_OPENGL_1
884 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1
885 COND_PLATFORM_MACOS_1
886 COND_PLATFORM_MAC_0
887 COND_PLATFORM_MAC_1
888 COND_PLATFORM_MSDOS_0
889 COND_PLATFORM_MSDOS_1
890 COND_PLATFORM_OS2_1
891 COND_PLATFORM_UNIX_0
892 COND_PLATFORM_UNIX_1
893 COND_PLATFORM_UNIX_1_TOOLKIT_MGL
894 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1
895 COND_PLATFORM_UNIX_1_USE_GUI_1
896 COND_PLATFORM_UNIX_1_USE_PLUGINS_0
897 COND_PLATFORM_WIN32_0
898 COND_PLATFORM_WIN32_1
899 COND_SHARED_0
900 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0
901 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0
902 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0
903 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1
904 COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin
905 COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin
906 COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin
907 COND_SHARED_0_USE_STC_1
908 COND_SHARED_0_wxUSE_EXPAT_builtin
909 COND_SHARED_0_wxUSE_REGEX_builtin
910 COND_SHARED_0_wxUSE_ZLIB_builtin
911 COND_SHARED_1
912 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1
913 COND_TOOLKIT_
914 COND_TOOLKIT_COCOA
915 COND_TOOLKIT_COCOA_USE_GUI_1
916 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0
917 COND_TOOLKIT_DFB
918 COND_TOOLKIT_DFB_USE_GUI_1
919 COND_TOOLKIT_GTK
920 COND_TOOLKIT_GTK_TOOLKIT_VERSION_
921 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2
922 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1
923 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0
924 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1
925 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0
926 COND_TOOLKIT_GTK_USE_GUI_1
927 COND_TOOLKIT_MAC
928 COND_TOOLKIT_MGL
929 COND_TOOLKIT_MGL_USE_GUI_1
930 COND_TOOLKIT_MOTIF
931 COND_TOOLKIT_MOTIF_USE_GUI_1
932 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0
933 COND_TOOLKIT_MSW
934 COND_TOOLKIT_MSW_USE_GUI_1
935 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0
936 COND_TOOLKIT_MSW_WXUNIV_0
937 COND_TOOLKIT_OSX_CARBON
938 COND_TOOLKIT_OSX_CARBON_USE_GUI_1
939 COND_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0
940 COND_TOOLKIT_OSX_COCOA
941 COND_TOOLKIT_OSX_COCOA_USE_GUI_1
942 COND_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0
943 COND_TOOLKIT_OSX_IPHONE
944 COND_TOOLKIT_PM
945 COND_TOOLKIT_PM_USE_GUI_1
946 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0
947 COND_TOOLKIT_WINCE
948 COND_TOOLKIT_WINCE_USE_GUI_1
949 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0
950 COND_TOOLKIT_WINCE_WXUNIV_0
951 COND_TOOLKIT_X11
952 COND_TOOLKIT_X11_USE_GUI_1
953 COND_UNICODE_1
954 COND_USE_EXCEPTIONS_0
955 COND_USE_EXCEPTIONS_1
956 COND_USE_GUI_0
957 COND_USE_GUI_1
958 COND_USE_GUI_1_USE_OPENGL_1
959 COND_USE_GUI_1_WXUNIV_0
960 COND_USE_GUI_1_WXUNIV_1
961 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN
962 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN
963 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN
964 COND_USE_GUI_1_wxUSE_LIBJPEG_builtin
965 COND_USE_GUI_1_wxUSE_LIBPNG_builtin
966 COND_USE_GUI_1_wxUSE_LIBTIFF_builtin
967 COND_USE_OPENGL_1
968 COND_USE_PCH_1
969 COND_USE_PLUGINS_0
970 COND_USE_RTTI_0
971 COND_USE_RTTI_1
972 COND_USE_SOSYMLINKS_1
973 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1
974 COND_USE_SOVERLINUX_1
975 COND_USE_SOVERSION_0
976 COND_USE_SOVERSOLARIS_1
977 COND_USE_STC_1
978 COND_USE_THREADS_0
979 COND_USE_THREADS_1
980 COND_USE_XRC_1
981 COND_WINDOWS_IMPLIB_1
982 COND_WITH_PLUGIN_SDL_1
983 COND_WXUNIV_0
984 COND_WXUNIV_1
985 COND_WXUSE_EXPAT_BUILTIN
986 COND_WXUSE_LIBJPEG_BUILTIN
987 COND_WXUSE_LIBPNG_BUILTIN
988 COND_WXUSE_LIBTIFF_BUILTIN
989 COND_WXUSE_REGEX_BUILTIN
990 COND_WXUSE_ZLIB_BUILTIN
991 COND_wxUSE_EXPAT_builtin
992 COND_wxUSE_LIBJPEG_builtin
993 COND_wxUSE_LIBPNG_builtin
994 COND_wxUSE_LIBTIFF_builtin
995 COND_wxUSE_REGEX_builtin
996 COND_wxUSE_ZLIB_builtin
997 DEREZ
998 SHARED
999 WX_LIBRARY_BASENAME_NOGUI
1000 WX_LIBRARY_BASENAME_GUI
1001 USE_GUI
1002 AFMINSTALL
1003 WIN32INSTALL
1004 TOOLKIT
1005 TOOLKIT_DIR
1006 TOOLCHAIN_NAME
1007 TOOLCHAIN_FULLNAME
1008 cross_compiling
1009 WIDGET_SET
1010 WX_RELEASE
1011 WX_VERSION
1012 WX_SUBVERSION
1013 WX_CHARTYPE
1014 WX_DEBUGTYPE
1015 WXCONFIG_CPPFLAGS
1016 WXCONFIG_CFLAGS
1017 WXCONFIG_CXXFLAGS
1018 WXCONFIG_LIBS
1019 WXCONFIG_RPATH
1020 WXCONFIG_LDFLAGS_GUI
1021 WXCONFIG_RESFLAGS
1022 GUIDIST
1023 DISTDIR
1024 SAMPLES_SUBDIRS
1025 LDFLAGS_GL
1026 OPENGL_LIBS
1027 DMALLOC_LIBS
1028 WX_VERSION_TAG
1029 RESCOMP
1030 RESFLAGS
1031 RESPROGRAMOBJ
1032 WX_RESOURCES_MACOSX_ASCII
1033 WX_RESOURCES_MACOSX_DATA
1034 LIBWXMACRES
1035 POSTLINK_COMMAND
1036 MACSETFILE
1037 GCC
1038 DLLTOOL
1039 CPPUNIT_CONFIG
1040 LIBOBJS
1041 LTLIBOBJS'
1042 ac_subst_files=''
1043       ac_precious_vars='build_alias
1044 host_alias
1045 target_alias
1046 CC
1047 CFLAGS
1048 LDFLAGS
1049 LIBS
1050 CPPFLAGS
1051 CPP
1052 CXX
1053 CXXFLAGS
1054 CCC
1055 PKG_CONFIG
1056 DIRECTFB_CFLAGS
1057 DIRECTFB_LIBS
1058 XMKMF
1059 PANGOX_CFLAGS
1060 PANGOX_LIBS
1061 PANGOFT2_CFLAGS
1062 PANGOFT2_LIBS
1063 PANGOXFT_CFLAGS
1064 PANGOXFT_LIBS
1065 GTKPRINT_CFLAGS
1066 GTKPRINT_LIBS
1067 LIBGNOMEPRINTUI_CFLAGS
1068 LIBGNOMEPRINTUI_LIBS
1069 GNOMEVFS_CFLAGS
1070 GNOMEVFS_LIBS
1071 HILDON_CFLAGS
1072 HILDON_LIBS
1073 CAIRO_CFLAGS
1074 CAIRO_LIBS
1075 GST_CFLAGS
1076 GST_LIBS'
1077 ac_subdirs_all='src/tiff
1078 src/expat'
1079
1080 # Initialize some variables set by options.
1081 ac_init_help=
1082 ac_init_version=false
1083 # The variables have the same names as the options, with
1084 # dashes changed to underlines.
1085 cache_file=/dev/null
1086 exec_prefix=NONE
1087 no_create=
1088 no_recursion=
1089 prefix=NONE
1090 program_prefix=NONE
1091 program_suffix=NONE
1092 program_transform_name=s,x,x,
1093 silent=
1094 site=
1095 srcdir=
1096 verbose=
1097 x_includes=NONE
1098 x_libraries=NONE
1099
1100 # Installation directory options.
1101 # These are left unexpanded so users can "make install exec_prefix=/foo"
1102 # and all the variables that are supposed to be based on exec_prefix
1103 # by default will actually change.
1104 # Use braces instead of parens because sh, perl, etc. also accept them.
1105 # (The list follows the same order as the GNU Coding Standards.)
1106 bindir='${exec_prefix}/bin'
1107 sbindir='${exec_prefix}/sbin'
1108 libexecdir='${exec_prefix}/libexec'
1109 datarootdir='${prefix}/share'
1110 datadir='${datarootdir}'
1111 sysconfdir='${prefix}/etc'
1112 sharedstatedir='${prefix}/com'
1113 localstatedir='${prefix}/var'
1114 includedir='${prefix}/include'
1115 oldincludedir='/usr/include'
1116 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1117 infodir='${datarootdir}/info'
1118 htmldir='${docdir}'
1119 dvidir='${docdir}'
1120 pdfdir='${docdir}'
1121 psdir='${docdir}'
1122 libdir='${exec_prefix}/lib'
1123 localedir='${datarootdir}/locale'
1124 mandir='${datarootdir}/man'
1125
1126 ac_prev=
1127 ac_dashdash=
1128 for ac_option
1129 do
1130   # If the previous option needs an argument, assign it.
1131   if test -n "$ac_prev"; then
1132     eval $ac_prev=\$ac_option
1133     ac_prev=
1134     continue
1135   fi
1136
1137   case $ac_option in
1138   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1139   *)    ac_optarg=yes ;;
1140   esac
1141
1142   # Accept the important Cygnus configure options, so we can diagnose typos.
1143
1144   case $ac_dashdash$ac_option in
1145   --)
1146     ac_dashdash=yes ;;
1147
1148   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1149     ac_prev=bindir ;;
1150   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1151     bindir=$ac_optarg ;;
1152
1153   -build | --build | --buil | --bui | --bu)
1154     ac_prev=build_alias ;;
1155   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1156     build_alias=$ac_optarg ;;
1157
1158   -cache-file | --cache-file | --cache-fil | --cache-fi \
1159   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1160     ac_prev=cache_file ;;
1161   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1162   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1163     cache_file=$ac_optarg ;;
1164
1165   --config-cache | -C)
1166     cache_file=config.cache ;;
1167
1168   -datadir | --datadir | --datadi | --datad)
1169     ac_prev=datadir ;;
1170   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1171     datadir=$ac_optarg ;;
1172
1173   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1174   | --dataroo | --dataro | --datar)
1175     ac_prev=datarootdir ;;
1176   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1177   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1178     datarootdir=$ac_optarg ;;
1179
1180   -disable-* | --disable-*)
1181     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1182     # Reject names that are not valid shell variable names.
1183     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1184       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1185    { (exit 1); exit 1; }; }
1186     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1187     eval enable_$ac_feature=no ;;
1188
1189   -docdir | --docdir | --docdi | --doc | --do)
1190     ac_prev=docdir ;;
1191   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1192     docdir=$ac_optarg ;;
1193
1194   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1195     ac_prev=dvidir ;;
1196   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1197     dvidir=$ac_optarg ;;
1198
1199   -enable-* | --enable-*)
1200     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1201     # Reject names that are not valid shell variable names.
1202     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1203       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1204    { (exit 1); exit 1; }; }
1205     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1206     eval enable_$ac_feature=\$ac_optarg ;;
1207
1208   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1209   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1210   | --exec | --exe | --ex)
1211     ac_prev=exec_prefix ;;
1212   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1213   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1214   | --exec=* | --exe=* | --ex=*)
1215     exec_prefix=$ac_optarg ;;
1216
1217   -gas | --gas | --ga | --g)
1218     # Obsolete; use --with-gas.
1219     with_gas=yes ;;
1220
1221   -help | --help | --hel | --he | -h)
1222     ac_init_help=long ;;
1223   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1224     ac_init_help=recursive ;;
1225   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1226     ac_init_help=short ;;
1227
1228   -host | --host | --hos | --ho)
1229     ac_prev=host_alias ;;
1230   -host=* | --host=* | --hos=* | --ho=*)
1231     host_alias=$ac_optarg ;;
1232
1233   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1234     ac_prev=htmldir ;;
1235   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1236   | --ht=*)
1237     htmldir=$ac_optarg ;;
1238
1239   -includedir | --includedir | --includedi | --included | --include \
1240   | --includ | --inclu | --incl | --inc)
1241     ac_prev=includedir ;;
1242   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1243   | --includ=* | --inclu=* | --incl=* | --inc=*)
1244     includedir=$ac_optarg ;;
1245
1246   -infodir | --infodir | --infodi | --infod | --info | --inf)
1247     ac_prev=infodir ;;
1248   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1249     infodir=$ac_optarg ;;
1250
1251   -libdir | --libdir | --libdi | --libd)
1252     ac_prev=libdir ;;
1253   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1254     libdir=$ac_optarg ;;
1255
1256   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1257   | --libexe | --libex | --libe)
1258     ac_prev=libexecdir ;;
1259   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1260   | --libexe=* | --libex=* | --libe=*)
1261     libexecdir=$ac_optarg ;;
1262
1263   -localedir | --localedir | --localedi | --localed | --locale)
1264     ac_prev=localedir ;;
1265   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1266     localedir=$ac_optarg ;;
1267
1268   -localstatedir | --localstatedir | --localstatedi | --localstated \
1269   | --localstate | --localstat | --localsta | --localst | --locals)
1270     ac_prev=localstatedir ;;
1271   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1272   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1273     localstatedir=$ac_optarg ;;
1274
1275   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1276     ac_prev=mandir ;;
1277   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1278     mandir=$ac_optarg ;;
1279
1280   -nfp | --nfp | --nf)
1281     # Obsolete; use --without-fp.
1282     with_fp=no ;;
1283
1284   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1285   | --no-cr | --no-c | -n)
1286     no_create=yes ;;
1287
1288   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1289   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1290     no_recursion=yes ;;
1291
1292   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1293   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1294   | --oldin | --oldi | --old | --ol | --o)
1295     ac_prev=oldincludedir ;;
1296   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1297   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1298   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1299     oldincludedir=$ac_optarg ;;
1300
1301   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1302     ac_prev=prefix ;;
1303   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1304     prefix=$ac_optarg ;;
1305
1306   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1307   | --program-pre | --program-pr | --program-p)
1308     ac_prev=program_prefix ;;
1309   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1310   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1311     program_prefix=$ac_optarg ;;
1312
1313   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1314   | --program-suf | --program-su | --program-s)
1315     ac_prev=program_suffix ;;
1316   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1317   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1318     program_suffix=$ac_optarg ;;
1319
1320   -program-transform-name | --program-transform-name \
1321   | --program-transform-nam | --program-transform-na \
1322   | --program-transform-n | --program-transform- \
1323   | --program-transform | --program-transfor \
1324   | --program-transfo | --program-transf \
1325   | --program-trans | --program-tran \
1326   | --progr-tra | --program-tr | --program-t)
1327     ac_prev=program_transform_name ;;
1328   -program-transform-name=* | --program-transform-name=* \
1329   | --program-transform-nam=* | --program-transform-na=* \
1330   | --program-transform-n=* | --program-transform-=* \
1331   | --program-transform=* | --program-transfor=* \
1332   | --program-transfo=* | --program-transf=* \
1333   | --program-trans=* | --program-tran=* \
1334   | --progr-tra=* | --program-tr=* | --program-t=*)
1335     program_transform_name=$ac_optarg ;;
1336
1337   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1338     ac_prev=pdfdir ;;
1339   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1340     pdfdir=$ac_optarg ;;
1341
1342   -psdir | --psdir | --psdi | --psd | --ps)
1343     ac_prev=psdir ;;
1344   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1345     psdir=$ac_optarg ;;
1346
1347   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1348   | -silent | --silent | --silen | --sile | --sil)
1349     silent=yes ;;
1350
1351   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1352     ac_prev=sbindir ;;
1353   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1354   | --sbi=* | --sb=*)
1355     sbindir=$ac_optarg ;;
1356
1357   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1358   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1359   | --sharedst | --shareds | --shared | --share | --shar \
1360   | --sha | --sh)
1361     ac_prev=sharedstatedir ;;
1362   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1363   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1364   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1365   | --sha=* | --sh=*)
1366     sharedstatedir=$ac_optarg ;;
1367
1368   -site | --site | --sit)
1369     ac_prev=site ;;
1370   -site=* | --site=* | --sit=*)
1371     site=$ac_optarg ;;
1372
1373   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1374     ac_prev=srcdir ;;
1375   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1376     srcdir=$ac_optarg ;;
1377
1378   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1379   | --syscon | --sysco | --sysc | --sys | --sy)
1380     ac_prev=sysconfdir ;;
1381   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1382   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1383     sysconfdir=$ac_optarg ;;
1384
1385   -target | --target | --targe | --targ | --tar | --ta | --t)
1386     ac_prev=target_alias ;;
1387   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1388     target_alias=$ac_optarg ;;
1389
1390   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1391     verbose=yes ;;
1392
1393   -version | --version | --versio | --versi | --vers | -V)
1394     ac_init_version=: ;;
1395
1396   -with-* | --with-*)
1397     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1398     # Reject names that are not valid shell variable names.
1399     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1400       { echo "$as_me: error: invalid package name: $ac_package" >&2
1401    { (exit 1); exit 1; }; }
1402     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1403     eval with_$ac_package=\$ac_optarg ;;
1404
1405   -without-* | --without-*)
1406     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1407     # Reject names that are not valid shell variable names.
1408     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1409       { echo "$as_me: error: invalid package name: $ac_package" >&2
1410    { (exit 1); exit 1; }; }
1411     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1412     eval with_$ac_package=no ;;
1413
1414   --x)
1415     # Obsolete; use --with-x.
1416     with_x=yes ;;
1417
1418   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1419   | --x-incl | --x-inc | --x-in | --x-i)
1420     ac_prev=x_includes ;;
1421   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1422   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1423     x_includes=$ac_optarg ;;
1424
1425   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1426   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1427     ac_prev=x_libraries ;;
1428   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1429   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1430     x_libraries=$ac_optarg ;;
1431
1432   -*) { echo "$as_me: error: unrecognized option: $ac_option
1433 Try \`$0 --help' for more information." >&2
1434    { (exit 1); exit 1; }; }
1435     ;;
1436
1437   *=*)
1438     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1439     # Reject names that are not valid shell variable names.
1440     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1441       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1442    { (exit 1); exit 1; }; }
1443     eval $ac_envvar=\$ac_optarg
1444     export $ac_envvar ;;
1445
1446   *)
1447     # FIXME: should be removed in autoconf 3.0.
1448     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1449     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1450       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1451     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1452     ;;
1453
1454   esac
1455 done
1456
1457 if test -n "$ac_prev"; then
1458   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1459   { echo "$as_me: error: missing argument to $ac_option" >&2
1460    { (exit 1); exit 1; }; }
1461 fi
1462
1463 # Be sure to have absolute directory names.
1464 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1465                 datadir sysconfdir sharedstatedir localstatedir includedir \
1466                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1467                 libdir localedir mandir
1468 do
1469   eval ac_val=\$$ac_var
1470   case $ac_val in
1471     [\\/$]* | ?:[\\/]* )  continue;;
1472     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1473   esac
1474   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1475    { (exit 1); exit 1; }; }
1476 done
1477
1478 # There might be people who depend on the old broken behavior: `$host'
1479 # used to hold the argument of --host etc.
1480 # FIXME: To remove some day.
1481 build=$build_alias
1482 host=$host_alias
1483 target=$target_alias
1484
1485 # FIXME: To remove some day.
1486 if test "x$host_alias" != x; then
1487   if test "x$build_alias" = x; then
1488     cross_compiling=maybe
1489     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1490     If a cross compiler is detected then cross compile mode will be used." >&2
1491   elif test "x$build_alias" != "x$host_alias"; then
1492     cross_compiling=yes
1493   fi
1494 fi
1495
1496 ac_tool_prefix=
1497 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1498
1499 test "$silent" = yes && exec 6>/dev/null
1500
1501
1502 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1503 ac_ls_di=`ls -di .` &&
1504 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1505   { echo "$as_me: error: Working directory cannot be determined" >&2
1506    { (exit 1); exit 1; }; }
1507 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1508   { echo "$as_me: error: pwd does not report name of working directory" >&2
1509    { (exit 1); exit 1; }; }
1510
1511
1512 # Find the source files, if location was not specified.
1513 if test -z "$srcdir"; then
1514   ac_srcdir_defaulted=yes
1515   # Try the directory containing this script, then the parent directory.
1516   ac_confdir=`$as_dirname -- "$0" ||
1517 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1518          X"$0" : 'X\(//\)[^/]' \| \
1519          X"$0" : 'X\(//\)$' \| \
1520          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1521 echo X"$0" |
1522     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1523             s//\1/
1524             q
1525           }
1526           /^X\(\/\/\)[^/].*/{
1527             s//\1/
1528             q
1529           }
1530           /^X\(\/\/\)$/{
1531             s//\1/
1532             q
1533           }
1534           /^X\(\/\).*/{
1535             s//\1/
1536             q
1537           }
1538           s/.*/./; q'`
1539   srcdir=$ac_confdir
1540   if test ! -r "$srcdir/$ac_unique_file"; then
1541     srcdir=..
1542   fi
1543 else
1544   ac_srcdir_defaulted=no
1545 fi
1546 if test ! -r "$srcdir/$ac_unique_file"; then
1547   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1548   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1549    { (exit 1); exit 1; }; }
1550 fi
1551 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1552 ac_abs_confdir=`(
1553         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1554    { (exit 1); exit 1; }; }
1555         pwd)`
1556 # When building in place, set srcdir=.
1557 if test "$ac_abs_confdir" = "$ac_pwd"; then
1558   srcdir=.
1559 fi
1560 # Remove unnecessary trailing slashes from srcdir.
1561 # Double slashes in file names in object file debugging info
1562 # mess up M-x gdb in Emacs.
1563 case $srcdir in
1564 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1565 esac
1566 for ac_var in $ac_precious_vars; do
1567   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1568   eval ac_env_${ac_var}_value=\$${ac_var}
1569   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1570   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1571 done
1572
1573 #
1574 # Report the --help message.
1575 #
1576 if test "$ac_init_help" = "long"; then
1577   # Omit some internal or obsolete options to make the list less imposing.
1578   # This message is too long to be a string in the A/UX 3.1 sh.
1579   cat <<_ACEOF
1580 \`configure' configures wxWidgets 2.9.0 to adapt to many kinds of systems.
1581
1582 Usage: $0 [OPTION]... [VAR=VALUE]...
1583
1584 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1585 VAR=VALUE.  See below for descriptions of some of the useful variables.
1586
1587 Defaults for the options are specified in brackets.
1588
1589 Configuration:
1590   -h, --help              display this help and exit
1591       --help=short        display options specific to this package
1592       --help=recursive    display the short help of all the included packages
1593   -V, --version           display version information and exit
1594   -q, --quiet, --silent   do not print \`checking...' messages
1595       --cache-file=FILE   cache test results in FILE [disabled]
1596   -C, --config-cache      alias for \`--cache-file=config.cache'
1597   -n, --no-create         do not create output files
1598       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1599
1600 Installation directories:
1601   --prefix=PREFIX         install architecture-independent files in PREFIX
1602                           [$ac_default_prefix]
1603   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1604                           [PREFIX]
1605
1606 By default, \`make install' will install all the files in
1607 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1608 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1609 for instance \`--prefix=\$HOME'.
1610
1611 For better control, use the options below.
1612
1613 Fine tuning of the installation directories:
1614   --bindir=DIR           user executables [EPREFIX/bin]
1615   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1616   --libexecdir=DIR       program executables [EPREFIX/libexec]
1617   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1618   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1619   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1620   --libdir=DIR           object code libraries [EPREFIX/lib]
1621   --includedir=DIR       C header files [PREFIX/include]
1622   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1623   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1624   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1625   --infodir=DIR          info documentation [DATAROOTDIR/info]
1626   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1627   --mandir=DIR           man documentation [DATAROOTDIR/man]
1628   --docdir=DIR           documentation root [DATAROOTDIR/doc/wxwidgets]
1629   --htmldir=DIR          html documentation [DOCDIR]
1630   --dvidir=DIR           dvi documentation [DOCDIR]
1631   --pdfdir=DIR           pdf documentation [DOCDIR]
1632   --psdir=DIR            ps documentation [DOCDIR]
1633 _ACEOF
1634
1635   cat <<\_ACEOF
1636
1637 X features:
1638   --x-includes=DIR    X include files are in DIR
1639   --x-libraries=DIR   X library files are in DIR
1640
1641 System types:
1642   --build=BUILD     configure for building on BUILD [guessed]
1643   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1644 _ACEOF
1645 fi
1646
1647 if test -n "$ac_init_help"; then
1648   case $ac_init_help in
1649      short | recursive ) echo "Configuration of wxWidgets 2.9.0:";;
1650    esac
1651   cat <<\_ACEOF
1652
1653 Optional Features:
1654   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1655   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1656   --disable-gui           don't build GUI parts of the library
1657   --enable-monolithic     build wxWidgets as single library
1658   --enable-plugins        build parts of wxWidgets as loadable components
1659   --enable-official_build official build of wxWidgets (win32 DLL only)
1660   --enable-vendor=VENDOR  vendor name (win32 DLL only)
1661   --disable-all-features  disable all optional features to build minimal library
1662   --enable-universal      use wxWidgets GUI controls instead of native ones
1663   --enable-nanox          use NanoX
1664   --disable-gtk2          use GTK+ 1.2 instead of 2.0
1665   --enable-gpe            use GNOME PDA Environment features if possible
1666   --disable-shared        create static library instead of shared
1667   --enable-debug          same as debug_flag and debug_info
1668   --enable-stl            use STL for containers
1669   --enable-std_iostreams  use standard C++ stream classes
1670   --enable-std_string     use standard C++ string classes
1671   --disable-unicode       compile without Unicode support
1672   --enable-mslu           use MS Layer for Unicode on Windows 9x (Win32 only)
1673   --enable-utf8           use UTF-8 representation for strings (Unix only)
1674   --enable-utf8only       only support UTF-8 locales in UTF-8 build (Unix only)
1675   --enable-extended_rtti  use extended RTTI (XTI)
1676   --enable-omf            use OMF object format
1677   --enable-debug_flag     set __WXDEBUG__ flag (recommended for developers!)
1678   --enable-debug_info     create code with debugging information
1679   --disable-optimise      compile without optimisations
1680   --enable-debug_gdb      create code with extra GDB debugging information
1681   --enable-debug_cntxt    use wxDebugContext
1682   --enable-mem_tracing    create code with memory tracing
1683   --enable-profile        create code with profiling information
1684   --enable-no_rtti        create code without RTTI information
1685   --enable-no_exceptions  create code without C++ exceptions handling
1686   --enable-permissive     compile code disregarding strict ANSI
1687   --enable-no_deps        create code without dependency information
1688   --disable-vararg_macros don't use vararg macros, even if they are supported
1689   --enable-universal_binary  create Mac PowerPC and Intel Universal binary
1690   --enable-compat26       enable wxWidgets 2.6 compatibility
1691   --disable-compat28      disable wxWidgets 2.8 compatibility
1692   --disable-rpath         disable use of rpath for uninstalled builds
1693   --enable-objc_uniquifying enable Objective-C class name uniquifying
1694   --disable-visibility    disable use of ELF symbols visibility even if supported
1695   --enable-intl           use internationalization system
1696   --enable-xlocale        use x-locale support (requires wxLocale)
1697   --enable-config         use wxConfig (and derived) classes
1698   --enable-protocols      use wxProtocol and derived classes
1699   --enable-ftp            use wxFTP (requires wxProtocol
1700   --enable-http           use wxHTTP (requires wxProtocol
1701   --enable-fileproto      use wxFileProto class (requires wxProtocol
1702   --enable-sockets        use socket/network classes
1703   --enable-ipv6           enable IPv6 support in wxSocket
1704   --enable-ole            use OLE classes (Win32 only)
1705   --enable-dataobj        use data object classes
1706   --enable-ipc            use interprocess communication (wxSocket etc.)
1707   --enable-baseevtloop    use event loop in console programs too
1708   --enable-epollloop      use wxEpollDispatcher class (Linux only)
1709   --enable-selectloop     use wxSelectDispatcher class
1710   --enable-apple_ieee     use the Apple IEEE codec
1711   --enable-arcstream      use wxArchive streams
1712   --enable-base64         use base64 encoding/decoding functions
1713   --enable-backtrace      use wxStackWalker class for getting backtraces
1714   --enable-catch_segvs    catch signals in wxApp::OnFatalException (Unix only)
1715   --enable-cmdline        use wxCmdLineParser class
1716   --enable-datetime       use wxDateTime class
1717   --enable-debugreport    use wxDebugReport class
1718   --enable-dialupman      use dialup network classes
1719   --enable-dynlib         use wxLibrary class for DLL loading
1720   --enable-dynamicloader  use (new) wxDynamicLibrary class
1721   --enable-exceptions     build exception-safe library
1722   --enable-ffile          use wxFFile class
1723   --enable-file           use wxFile class
1724   --enable-filesystem     use virtual file systems classes
1725   --enable-fontenum       use wxFontEnumerator class
1726   --enable-fontmap        use font encodings conversion classes
1727   --enable-fs_archive     use virtual archive filesystems
1728   --enable-fs_inet        use virtual HTTP/FTP filesystems
1729   --enable-fs_zip         now replaced by fs_archive
1730   --enable-geometry       use geometry class
1731   --enable-log            use logging system
1732   --enable-longlong       use wxLongLong class
1733   --enable-mimetype       use wxMimeTypesManager
1734   --enable-printfposparam use wxVsnprintf() which supports positional parameters
1735   --enable-snglinst       use wxSingleInstanceChecker class
1736   --enable-sound          use wxSound class
1737   --enable-stdpaths       use wxStandardPaths class
1738   --enable-stopwatch      use wxStopWatch class
1739   --enable-streams        use wxStream etc classes
1740   --enable-sysoptions     use wxSystemOptions
1741   --enable-tarstream      use wxTar streams
1742   --enable-textbuf        use wxTextBuffer class
1743   --enable-textfile       use wxTextFile class
1744   --enable-timer          use wxTimer class
1745   --enable-variant        use wxVariant class
1746   --enable-zipstream      use wxZip streams
1747   --enable-url            use wxURL class
1748   --enable-protocol       use wxProtocol class
1749   --enable-protocol-http  HTTP support in wxProtocol
1750   --enable-protocol-ftp   FTP support in wxProtocol
1751   --enable-protocol-file  FILE support in wxProtocol
1752   --enable-threads        use threads
1753   --enable-iniconf        use wxIniConfig (Win32 only)
1754   --enable-regkey         use wxRegKey class (Win32 only)
1755   --enable-docview        use document view architecture
1756   --enable-help           use help subsystem
1757   --enable-mshtmlhelp     use MS HTML Help (win32)
1758   --enable-html           use wxHTML sub-library
1759   --enable-htmlhelp       use wxHTML-based help
1760   --enable-xrc            use XRC resources sub-library
1761   --enable-aui            use AUI docking library
1762   --enable-propgrid       use wxPropertyGrid library
1763   --enable-stc            use wxStyledTextCtrl library
1764   --enable-constraints    use layout-constraints system
1765   --enable-loggui         use standard GUI logger
1766   --enable-logwin         use wxLogWindow
1767   --enable-logdialog      use wxLogDialog
1768   --enable-mdi            use multiple document interface architecture
1769   --enable-mdidoc         use docview architecture with MDI
1770   --enable-mediactrl      use wxMediaCtrl class
1771   --enable-gstreamer8     force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
1772   --enable-webkit         use wxWebKitCtrl (Mac)
1773   --enable-richtext       use wxRichTextCtrl
1774   --enable-graphics_ctx   use graphics context 2D drawing API
1775   --enable-postscript     use wxPostscriptDC device context (default for gtk+)
1776   --enable-printarch      use printing architecture
1777   --enable-svg            use wxSVGFileDC device context
1778   --enable-clipboard      use wxClipboard class
1779   --enable-dnd            use Drag'n'Drop classes
1780   --enable-metafile       use win32 metafiles
1781   --disable-controls      disable compilation of all standard controls
1782   --enable-accel          use accelerators
1783   --enable-animatectrl    use wxAnimationCtrl class
1784   --enable-bmpbutton      use wxBitmapButton class
1785   --enable-bmpcombobox    use wxBitmapComboBox class
1786   --enable-button         use wxButton class
1787   --enable-calendar       use wxCalendarCtrl class
1788   --enable-caret          use wxCaret class
1789   --enable-checkbox       use wxCheckBox class
1790   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class
1791   --enable-choice         use wxChoice class
1792   --enable-choicebook     use wxChoicebook class
1793   --enable-collpane       use wxCollapsiblePane class
1794   --enable-colourpicker   use wxColourPickerCtrl class
1795   --enable-combobox       use wxComboBox class
1796   --enable-comboctrl      use wxComboCtrl class
1797   --enable-dataviewctrl   use wxDataViewCtrl class
1798   --enable-datepick       use wxDatePickerCtrl class
1799   --enable-detect_sm      use code to detect X11 session manager
1800   --enable-dirpicker      use wxDirPickerCtrl class
1801   --enable-display        use wxDisplay class
1802   --enable-editablebox    use wxEditableListBox class
1803   --enable-filectrl       use wxFileCtrl class
1804   --enable-filepicker     use wxFilePickerCtrl class
1805   --enable-fontpicker     use wxFontPickerCtrl class
1806   --enable-gauge          use wxGauge class
1807   --enable-grid           use wxGrid class
1808   --enable-headerctrl     use wxHeaderCtrl class
1809   --enable-hyperlink      use wxHyperlinkCtrl class
1810   --enable-imaglist       use wxImageList class
1811   --enable-listbook       use wxListbook class
1812   --enable-listbox        use wxListBox class
1813   --enable-listctrl       use wxListCtrl class
1814   --enable-notebook       use wxNotebook class
1815   --enable-notifmsg       use wxNotificationMessage class
1816   --enable-odcombobox     use wxOwnerDrawnComboBox class
1817   --enable-popupwin       use wxPopUpWindow class
1818   --enable-radiobox       use wxRadioBox class
1819   --enable-radiobtn       use wxRadioButton class
1820   --enable-rearrangectrl  use wxRearrangeList/Ctrl/Dialog
1821   --enable-sash           use wxSashWindow class
1822   --enable-scrollbar      use wxScrollBar class and scrollable windows
1823   --enable-searchctrl     use wxSearchCtrl class
1824   --enable-slider         use wxSlider class
1825   --enable-spinbtn        use wxSpinButton class
1826   --enable-spinctrl       use wxSpinCtrl class
1827   --enable-splitter       use wxSplitterWindow class
1828   --enable-statbmp        use wxStaticBitmap class
1829   --enable-statbox        use wxStaticBox class
1830   --enable-statline       use wxStaticLine class
1831   --enable-stattext       use wxStaticText class
1832   --enable-statusbar      use wxStatusBar class
1833   --enable-taskbaricon    use wxTaskBarIcon class
1834   --enable-tbarnative     use native wxToolBar class
1835   --enable-textctrl       use wxTextCtrl class
1836   --enable-tipwindow      use wxTipWindow class
1837   --enable-togglebtn      use wxToggleButton class
1838   --enable-toolbar        use wxToolBar class
1839   --enable-toolbook       use wxToolbook class
1840   --enable-treebook       use wxTreebook class
1841   --enable-treectrl       use wxTreeCtrl class
1842   --enable-commondlg      use all common dialogs
1843   --enable-aboutdlg       use wxAboutBox
1844   --enable-choicedlg      use wxChoiceDialog
1845   --enable-coldlg         use wxColourDialog
1846   --enable-filedlg        use wxFileDialog
1847   --enable-finddlg        use wxFindReplaceDialog
1848   --enable-fontdlg        use wxFontDialog
1849   --enable-dirdlg         use wxDirDialog
1850   --enable-msgdlg         use wxMessageDialog
1851   --enable-numberdlg      use wxNumberEntryDialog
1852   --enable-splash         use wxSplashScreen
1853   --enable-textdlg        use wxTextDialog
1854   --enable-tipdlg         use startup tips
1855   --enable-progressdlg    use wxProgressDialog
1856   --enable-wizarddlg      use wxWizard
1857   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes
1858   --enable-miniframe      use wxMiniFrame class
1859   --enable-tooltips       use wxToolTip class
1860   --enable-splines        use spline drawing code
1861   --enable-mousewheel     use mousewheel
1862   --enable-validators     use wxValidator and derived classes
1863   --enable-busyinfo       use wxBusyInfo
1864   --enable-joystick       use wxJoystick
1865   --enable-metafiles      use wxMetaFile (Win32 only)
1866   --enable-dragimage      use wxDragImage
1867   --enable-accessibility  enable accessibility support
1868   --enable-palette        use wxPalette class
1869   --enable-image          use wxImage class
1870   --enable-gif            use gif images (GIF file format)
1871   --enable-pcx            use pcx images (PCX file format)
1872   --enable-tga            use tga images (TGA file format)
1873   --enable-iff            use iff images (IFF file format)
1874   --enable-pnm            use pnm images (PNM file format)
1875   --enable-xpm            use xpm images (XPM file format)
1876   --enable-ico_cur        use Windows ICO and CUR formats
1877   --enable-dccache        cache temporary wxDC objects (Win32 only)
1878   --enable-ps-in-msw      use PS printing in wxMSW (Win32 only)
1879   --enable-ownerdrawn     use owner drawn controls (Win32 and OS/2 only)
1880   --enable-uxtheme        enable support for Windows XP themed look (Win32 only)
1881   --enable-wxdib          use wxDIB class (Win32 only)
1882   --enable-autoidman      use automatic ids management
1883   --disable-largefile     omit support for large files
1884   --disable-gtktest       do not try to compile and run a test GTK+ program
1885   --disable-gtktest       Do not try to compile and run a test GTK program
1886   --disable-sdltest       Do not try to compile and run a test SDL program
1887   --enable-omf            use OMF object format (OS/2)
1888   --disable-dependency-tracking
1889                           don't use dependency tracking even if the compiler
1890                           can
1891   --disable-precomp-headers
1892                           don't use precompiled headers even if compiler can
1893
1894 Optional Packages:
1895   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1896   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1897   --without-subdirs       don't generate makefiles for samples/demos/...
1898   --with-flavour=NAME     specify a name to identify this build
1899   --with-themes=all|list  use only the specified comma-separated list of wxUniversal themes
1900   --with-gtk[=VERSION]    use GTK+, VERSION can be 2 (default), 1 or "any"
1901   --with-motif            use Motif/Lesstif
1902   --with-osx_carbon       use Mac OS X (Carbon)
1903   --with-osx_cocoa        use Mac OS X (Cocoa)
1904   --with-mac              use Mac OS X (Default)
1905   --with-cocoa            use Cocoa
1906   --with-wine             use Wine
1907   --with-msw              use MS-Windows
1908   --with-pm               use OS/2 Presentation Manager
1909   --with-mgl              use SciTech MGL
1910   --with-directfb         use DirectFB
1911   --with-microwin         use MicroWindows
1912   --with-x11              use X11
1913   --with-libpng           use libpng (PNG image format)
1914   --with-libjpeg          use libjpeg (JPEG file format)
1915   --with-libtiff          use libtiff (TIFF file format)
1916   --with-libxpm           use libxpm (XPM file format)
1917   --with-libiconv         use libiconv (character conversion)
1918   --with-libmspack        use libmspack (CHM help files loading)
1919   --without-gtkprint      don't use GTK printing support
1920   --without-gnomeprint    don't use GNOME printing libraries
1921   --with-gnomevfs         use GNOME VFS for associating MIME types
1922   --with-hildon           use Hildon framework for Nokia 770
1923   --with-opengl           use OpenGL (or Mesa)
1924   --with-dmalloc          use dmalloc library (http://dmalloc.com/)
1925   --with-sdl              use SDL for audio on Unix
1926   --with-regex            enable support for wxRegEx class
1927   --with-zlib             use zlib for LZW compression
1928   --with-expat            enable XML support using expat parser
1929   --with-macosx-sdk=PATH  use an OS X SDK at PATH
1930   --with-macosx-version-min=VER   build binaries which require at least this OS X version
1931   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1932   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1933   --with-x                use the X Window System
1934   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1935   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1936   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1937   --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)
1938   --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)
1939
1940 Some influential environment variables:
1941   CC          C compiler command
1942   CFLAGS      C compiler flags
1943   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1944               nonstandard directory <lib dir>
1945   LIBS        libraries to pass to the linker, e.g. -l<library>
1946   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1947               you have headers in a nonstandard directory <include dir>
1948   CPP         C preprocessor
1949   CXX         C++ compiler command
1950   CXXFLAGS    C++ compiler flags
1951   PKG_CONFIG  path to pkg-config utility
1952   DIRECTFB_CFLAGS
1953               C compiler flags for DIRECTFB, overriding pkg-config
1954   DIRECTFB_LIBS
1955               linker flags for DIRECTFB, overriding pkg-config
1956   XMKMF       Path to xmkmf, Makefile generator for X Window System
1957   PANGOX_CFLAGS
1958               C compiler flags for PANGOX, overriding pkg-config
1959   PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
1960   PANGOFT2_CFLAGS
1961               C compiler flags for PANGOFT2, overriding pkg-config
1962   PANGOFT2_LIBS
1963               linker flags for PANGOFT2, overriding pkg-config
1964   PANGOXFT_CFLAGS
1965               C compiler flags for PANGOXFT, overriding pkg-config
1966   PANGOXFT_LIBS
1967               linker flags for PANGOXFT, overriding pkg-config
1968   GTKPRINT_CFLAGS
1969               C compiler flags for GTKPRINT, overriding pkg-config
1970   GTKPRINT_LIBS
1971               linker flags for GTKPRINT, overriding pkg-config
1972   LIBGNOMEPRINTUI_CFLAGS
1973               C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
1974   LIBGNOMEPRINTUI_LIBS
1975               linker flags for LIBGNOMEPRINTUI, overriding pkg-config
1976   GNOMEVFS_CFLAGS
1977               C compiler flags for GNOMEVFS, overriding pkg-config
1978   GNOMEVFS_LIBS
1979               linker flags for GNOMEVFS, overriding pkg-config
1980   HILDON_CFLAGS
1981               C compiler flags for HILDON, overriding pkg-config
1982   HILDON_LIBS linker flags for HILDON, overriding pkg-config
1983   CAIRO_CFLAGS
1984               C compiler flags for CAIRO, overriding pkg-config
1985   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
1986   GST_CFLAGS  C compiler flags for GST, overriding pkg-config
1987   GST_LIBS    linker flags for GST, overriding pkg-config
1988
1989 Use these variables to override the choices made by `configure' or to help
1990 it to find libraries and programs with nonstandard names/locations.
1991
1992 Report bugs to <wx-dev@lists.wxwidgets.org>.
1993 _ACEOF
1994 ac_status=$?
1995 fi
1996
1997 if test "$ac_init_help" = "recursive"; then
1998   # If there are subdirs, report their specific --help.
1999   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2000     test -d "$ac_dir" || continue
2001     ac_builddir=.
2002
2003 case "$ac_dir" in
2004 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2005 *)
2006   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2007   # A ".." for each directory in $ac_dir_suffix.
2008   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
2009   case $ac_top_builddir_sub in
2010   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2011   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2012   esac ;;
2013 esac
2014 ac_abs_top_builddir=$ac_pwd
2015 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2016 # for backward compatibility:
2017 ac_top_builddir=$ac_top_build_prefix
2018
2019 case $srcdir in
2020   .)  # We are building in place.
2021     ac_srcdir=.
2022     ac_top_srcdir=$ac_top_builddir_sub
2023     ac_abs_top_srcdir=$ac_pwd ;;
2024   [\\/]* | ?:[\\/]* )  # Absolute name.
2025     ac_srcdir=$srcdir$ac_dir_suffix;
2026     ac_top_srcdir=$srcdir
2027     ac_abs_top_srcdir=$srcdir ;;
2028   *) # Relative name.
2029     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2030     ac_top_srcdir=$ac_top_build_prefix$srcdir
2031     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2032 esac
2033 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2034
2035     cd "$ac_dir" || { ac_status=$?; continue; }
2036     # Check for guested configure.
2037     if test -f "$ac_srcdir/configure.gnu"; then
2038       echo &&
2039       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2040     elif test -f "$ac_srcdir/configure"; then
2041       echo &&
2042       $SHELL "$ac_srcdir/configure" --help=recursive
2043     else
2044       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2045     fi || ac_status=$?
2046     cd "$ac_pwd" || { ac_status=$?; break; }
2047   done
2048 fi
2049
2050 test -n "$ac_init_help" && exit $ac_status
2051 if $ac_init_version; then
2052   cat <<\_ACEOF
2053 wxWidgets configure 2.9.0
2054 generated by GNU Autoconf 2.61
2055
2056 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2057 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
2058 This configure script is free software; the Free Software Foundation
2059 gives unlimited permission to copy, distribute and modify it.
2060 _ACEOF
2061   exit
2062 fi
2063 cat >config.log <<_ACEOF
2064 This file contains any messages produced by compilers while
2065 running configure, to aid debugging if configure makes a mistake.
2066
2067 It was created by wxWidgets $as_me 2.9.0, which was
2068 generated by GNU Autoconf 2.61.  Invocation command line was
2069
2070   $ $0 $@
2071
2072 _ACEOF
2073 exec 5>>config.log
2074 {
2075 cat <<_ASUNAME
2076 ## --------- ##
2077 ## Platform. ##
2078 ## --------- ##
2079
2080 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2081 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2082 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2083 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2084 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2085
2086 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2087 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2088
2089 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2090 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2091 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2092 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2093 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2094 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2095 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2096
2097 _ASUNAME
2098
2099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2100 for as_dir in $PATH
2101 do
2102   IFS=$as_save_IFS
2103   test -z "$as_dir" && as_dir=.
2104   echo "PATH: $as_dir"
2105 done
2106 IFS=$as_save_IFS
2107
2108 } >&5
2109
2110 cat >&5 <<_ACEOF
2111
2112
2113 ## ----------- ##
2114 ## Core tests. ##
2115 ## ----------- ##
2116
2117 _ACEOF
2118
2119
2120 # Keep a trace of the command line.
2121 # Strip out --no-create and --no-recursion so they do not pile up.
2122 # Strip out --silent because we don't want to record it for future runs.
2123 # Also quote any args containing shell meta-characters.
2124 # Make two passes to allow for proper duplicate-argument suppression.
2125 ac_configure_args=
2126 ac_configure_args0=
2127 ac_configure_args1=
2128 ac_must_keep_next=false
2129 for ac_pass in 1 2
2130 do
2131   for ac_arg
2132   do
2133     case $ac_arg in
2134     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2135     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2136     | -silent | --silent | --silen | --sile | --sil)
2137       continue ;;
2138     *\'*)
2139       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2140     esac
2141     case $ac_pass in
2142     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2143     2)
2144       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2145       if test $ac_must_keep_next = true; then
2146         ac_must_keep_next=false # Got value, back to normal.
2147       else
2148         case $ac_arg in
2149           *=* | --config-cache | -C | -disable-* | --disable-* \
2150           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2151           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2152           | -with-* | --with-* | -without-* | --without-* | --x)
2153             case "$ac_configure_args0 " in
2154               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2155             esac
2156             ;;
2157           -* ) ac_must_keep_next=true ;;
2158         esac
2159       fi
2160       ac_configure_args="$ac_configure_args '$ac_arg'"
2161       ;;
2162     esac
2163   done
2164 done
2165 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2166 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2167
2168 # When interrupted or exit'd, cleanup temporary files, and complete
2169 # config.log.  We remove comments because anyway the quotes in there
2170 # would cause problems or look ugly.
2171 # WARNING: Use '\'' to represent an apostrophe within the trap.
2172 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2173 trap 'exit_status=$?
2174   # Save into config.log some information that might help in debugging.
2175   {
2176     echo
2177
2178     cat <<\_ASBOX
2179 ## ---------------- ##
2180 ## Cache variables. ##
2181 ## ---------------- ##
2182 _ASBOX
2183     echo
2184     # The following way of writing the cache mishandles newlines in values,
2185 (
2186   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2187     eval ac_val=\$$ac_var
2188     case $ac_val in #(
2189     *${as_nl}*)
2190       case $ac_var in #(
2191       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2192 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2193       esac
2194       case $ac_var in #(
2195       _ | IFS | as_nl) ;; #(
2196       *) $as_unset $ac_var ;;
2197       esac ;;
2198     esac
2199   done
2200   (set) 2>&1 |
2201     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2202     *${as_nl}ac_space=\ *)
2203       sed -n \
2204         "s/'\''/'\''\\\\'\'''\''/g;
2205           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2206       ;; #(
2207     *)
2208       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2209       ;;
2210     esac |
2211     sort
2212 )
2213     echo
2214
2215     cat <<\_ASBOX
2216 ## ----------------- ##
2217 ## Output variables. ##
2218 ## ----------------- ##
2219 _ASBOX
2220     echo
2221     for ac_var in $ac_subst_vars
2222     do
2223       eval ac_val=\$$ac_var
2224       case $ac_val in
2225       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2226       esac
2227       echo "$ac_var='\''$ac_val'\''"
2228     done | sort
2229     echo
2230
2231     if test -n "$ac_subst_files"; then
2232       cat <<\_ASBOX
2233 ## ------------------- ##
2234 ## File substitutions. ##
2235 ## ------------------- ##
2236 _ASBOX
2237       echo
2238       for ac_var in $ac_subst_files
2239       do
2240         eval ac_val=\$$ac_var
2241         case $ac_val in
2242         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2243         esac
2244         echo "$ac_var='\''$ac_val'\''"
2245       done | sort
2246       echo
2247     fi
2248
2249     if test -s confdefs.h; then
2250       cat <<\_ASBOX
2251 ## ----------- ##
2252 ## confdefs.h. ##
2253 ## ----------- ##
2254 _ASBOX
2255       echo
2256       cat confdefs.h
2257       echo
2258     fi
2259     test "$ac_signal" != 0 &&
2260       echo "$as_me: caught signal $ac_signal"
2261     echo "$as_me: exit $exit_status"
2262   } >&5
2263   rm -f core *.core core.conftest.* &&
2264     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2265     exit $exit_status
2266 ' 0
2267 for ac_signal in 1 2 13 15; do
2268   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2269 done
2270 ac_signal=0
2271
2272 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2273 rm -f -r conftest* confdefs.h
2274
2275 # Predefined preprocessor variables.
2276
2277 cat >>confdefs.h <<_ACEOF
2278 #define PACKAGE_NAME "$PACKAGE_NAME"
2279 _ACEOF
2280
2281
2282 cat >>confdefs.h <<_ACEOF
2283 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2284 _ACEOF
2285
2286
2287 cat >>confdefs.h <<_ACEOF
2288 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2289 _ACEOF
2290
2291
2292 cat >>confdefs.h <<_ACEOF
2293 #define PACKAGE_STRING "$PACKAGE_STRING"
2294 _ACEOF
2295
2296
2297 cat >>confdefs.h <<_ACEOF
2298 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2299 _ACEOF
2300
2301
2302 # Let the site file select an alternate cache file if it wants to.
2303 # Prefer explicitly selected file to automatically selected ones.
2304 if test -n "$CONFIG_SITE"; then
2305   set x "$CONFIG_SITE"
2306 elif test "x$prefix" != xNONE; then
2307   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2308 else
2309   set x "$ac_default_prefix/share/config.site" \
2310         "$ac_default_prefix/etc/config.site"
2311 fi
2312 shift
2313 for ac_site_file
2314 do
2315   if test -r "$ac_site_file"; then
2316     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2317 echo "$as_me: loading site script $ac_site_file" >&6;}
2318     sed 's/^/| /' "$ac_site_file" >&5
2319     . "$ac_site_file"
2320   fi
2321 done
2322
2323 if test -r "$cache_file"; then
2324   # Some versions of bash will fail to source /dev/null (special
2325   # files actually), so we avoid doing that.
2326   if test -f "$cache_file"; then
2327     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2328 echo "$as_me: loading cache $cache_file" >&6;}
2329     case $cache_file in
2330       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2331       *)                      . "./$cache_file";;
2332     esac
2333   fi
2334 else
2335   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2336 echo "$as_me: creating cache $cache_file" >&6;}
2337   >$cache_file
2338 fi
2339
2340 # Check that the precious variables saved in the cache have kept the same
2341 # value.
2342 ac_cache_corrupted=false
2343 for ac_var in $ac_precious_vars; do
2344   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2345   eval ac_new_set=\$ac_env_${ac_var}_set
2346   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2347   eval ac_new_val=\$ac_env_${ac_var}_value
2348   case $ac_old_set,$ac_new_set in
2349     set,)
2350       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2351 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2352       ac_cache_corrupted=: ;;
2353     ,set)
2354       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2355 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2356       ac_cache_corrupted=: ;;
2357     ,);;
2358     *)
2359       if test "x$ac_old_val" != "x$ac_new_val"; then
2360         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2361 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2362         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2363 echo "$as_me:   former value:  $ac_old_val" >&2;}
2364         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2365 echo "$as_me:   current value: $ac_new_val" >&2;}
2366         ac_cache_corrupted=:
2367       fi;;
2368   esac
2369   # Pass precious variables to config.status.
2370   if test "$ac_new_set" = set; then
2371     case $ac_new_val in
2372     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2373     *) ac_arg=$ac_var=$ac_new_val ;;
2374     esac
2375     case " $ac_configure_args " in
2376       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2377       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2378     esac
2379   fi
2380 done
2381 if $ac_cache_corrupted; then
2382   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2383 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2384   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2385 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2386    { (exit 1); exit 1; }; }
2387 fi
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413 ac_ext=c
2414 ac_cpp='$CPP $CPPFLAGS'
2415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2418
2419
2420
2421
2422
2423 ac_aux_dir=
2424 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2425   if test -f "$ac_dir/install-sh"; then
2426     ac_aux_dir=$ac_dir
2427     ac_install_sh="$ac_aux_dir/install-sh -c"
2428     break
2429   elif test -f "$ac_dir/install.sh"; then
2430     ac_aux_dir=$ac_dir
2431     ac_install_sh="$ac_aux_dir/install.sh -c"
2432     break
2433   elif test -f "$ac_dir/shtool"; then
2434     ac_aux_dir=$ac_dir
2435     ac_install_sh="$ac_aux_dir/shtool install -c"
2436     break
2437   fi
2438 done
2439 if test -z "$ac_aux_dir"; then
2440   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2441 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2442    { (exit 1); exit 1; }; }
2443 fi
2444
2445 # These three variables are undocumented and unsupported,
2446 # and are intended to be withdrawn in a future Autoconf release.
2447 # They can cause serious problems if a builder's source tree is in a directory
2448 # whose full name contains unusual characters.
2449 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2450 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2451 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2452
2453
2454 # Make sure we can run config.sub.
2455 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2456   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2457 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2458    { (exit 1); exit 1; }; }
2459
2460 { echo "$as_me:$LINENO: checking build system type" >&5
2461 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2462 if test "${ac_cv_build+set}" = set; then
2463   echo $ECHO_N "(cached) $ECHO_C" >&6
2464 else
2465   ac_build_alias=$build_alias
2466 test "x$ac_build_alias" = x &&
2467   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2468 test "x$ac_build_alias" = x &&
2469   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2470 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2471    { (exit 1); exit 1; }; }
2472 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2473   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2474 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2475    { (exit 1); exit 1; }; }
2476
2477 fi
2478 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2479 echo "${ECHO_T}$ac_cv_build" >&6; }
2480 case $ac_cv_build in
2481 *-*-*) ;;
2482 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2483 echo "$as_me: error: invalid value of canonical build" >&2;}
2484    { (exit 1); exit 1; }; };;
2485 esac
2486 build=$ac_cv_build
2487 ac_save_IFS=$IFS; IFS='-'
2488 set x $ac_cv_build
2489 shift
2490 build_cpu=$1
2491 build_vendor=$2
2492 shift; shift
2493 # Remember, the first character of IFS is used to create $*,
2494 # except with old shells:
2495 build_os=$*
2496 IFS=$ac_save_IFS
2497 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2498
2499
2500 { echo "$as_me:$LINENO: checking host system type" >&5
2501 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2502 if test "${ac_cv_host+set}" = set; then
2503   echo $ECHO_N "(cached) $ECHO_C" >&6
2504 else
2505   if test "x$host_alias" = x; then
2506   ac_cv_host=$ac_cv_build
2507 else
2508   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2509     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2510 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2511    { (exit 1); exit 1; }; }
2512 fi
2513
2514 fi
2515 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2516 echo "${ECHO_T}$ac_cv_host" >&6; }
2517 case $ac_cv_host in
2518 *-*-*) ;;
2519 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2520 echo "$as_me: error: invalid value of canonical host" >&2;}
2521    { (exit 1); exit 1; }; };;
2522 esac
2523 host=$ac_cv_host
2524 ac_save_IFS=$IFS; IFS='-'
2525 set x $ac_cv_host
2526 shift
2527 host_cpu=$1
2528 host_vendor=$2
2529 shift; shift
2530 # Remember, the first character of IFS is used to create $*,
2531 # except with old shells:
2532 host_os=$*
2533 IFS=$ac_save_IFS
2534 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2535
2536
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 OSX_CARBON OSX_COCOA MGL MICROWIN MOTIF MSW PM X11 DFB"
2580
2581 DEFAULT_wxUSE_COCOA=0
2582 DEFAULT_wxUSE_GTK=0
2583 DEFAULT_wxUSE_OSX_CARBON=0
2584 DEFAULT_wxUSE_OSX_COCOA=0
2585 DEFAULT_wxUSE_MGL=0
2586 DEFAULT_wxUSE_MICROWIN=0
2587 DEFAULT_wxUSE_MOTIF=0
2588 DEFAULT_wxUSE_MSW=0
2589 DEFAULT_wxUSE_PM=0
2590 DEFAULT_wxUSE_X11=0
2591 DEFAULT_wxUSE_DFB=0
2592
2593 DEFAULT_DEFAULT_wxUSE_COCOA=0
2594 DEFAULT_DEFAULT_wxUSE_GTK=0
2595 DEFAULT_DEFAULT_wxUSE_OSX_CARBON=0
2596 DEFAULT_DEFAULT_wxUSE_OSX_COCOA=0
2597 DEFAULT_DEFAULT_wxUSE_MGL=0
2598 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
2599 DEFAULT_DEFAULT_wxUSE_MOTIF=0
2600 DEFAULT_DEFAULT_wxUSE_MSW=0
2601 DEFAULT_DEFAULT_wxUSE_PM=0
2602 DEFAULT_DEFAULT_wxUSE_X11=0
2603 DEFAULT_DEFAULT_wxUSE_DFB=0
2604
2605 PROGRAM_EXT=
2606 SAMPLES_RPATH_FLAG=
2607 SAMPLES_RPATH_POSTLINK=
2608
2609 DEFAULT_STD_FLAG=yes
2610
2611 case "${host}" in
2612   *-hp-hpux* )
2613     USE_HPUX=1
2614     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2615     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
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     cat >>confdefs.h <<\_ACEOF
2788 #define __AIX__ 1
2789 _ACEOF
2790
2791     cat >>confdefs.h <<\_ACEOF
2792 #define __SYSV__ 1
2793 _ACEOF
2794
2795     cat >>confdefs.h <<\_ACEOF
2796 #define __SVR4__ 1
2797 _ACEOF
2798
2799     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2800   ;;
2801
2802   *-*-*UnixWare*)
2803     USE_SYSV=1
2804     USE_SVR4=1
2805     USE_UNIXWARE=1
2806     cat >>confdefs.h <<\_ACEOF
2807 #define __UNIXWARE__ 1
2808 _ACEOF
2809
2810   ;;
2811
2812   *-*-cygwin* | *-*-mingw32* )
2813                 PROGRAM_EXT=".exe"
2814     DEFAULT_DEFAULT_wxUSE_MSW=1
2815   ;;
2816
2817   *-pc-msdosdjgpp )
2818     USE_UNIX=0
2819     USE_DOS=1
2820     cat >>confdefs.h <<\_ACEOF
2821 #define __DOS__ 1
2822 _ACEOF
2823
2824     PROGRAM_EXT=".exe"
2825     DEFAULT_DEFAULT_wxUSE_MGL=1
2826   ;;
2827
2828   *-pc-os2_emx | *-pc-os2-emx )
2829     cat >>confdefs.h <<\_ACEOF
2830 #define __EMX__ 1
2831 _ACEOF
2832
2833     USE_OS2=1
2834     cat >>confdefs.h <<\_ACEOF
2835 #define __OS2__ 1
2836 _ACEOF
2837
2838     PROGRAM_EXT=".exe"
2839     DEFAULT_DEFAULT_wxUSE_PM=1
2840         CXX=gcc
2841     LDFLAGS="$LDFLAGS -Zcrtdll"
2842                         ac_executable_extensions=".exe"
2843     export ac_executable_extensions
2844             ac_save_IFS="$IFS"
2845     IFS='\\'
2846     ac_TEMP_PATH=
2847     for ac_dir in $PATH; do
2848       IFS=$ac_save_IFS
2849       if test -z "$ac_TEMP_PATH"; then
2850         ac_TEMP_PATH="$ac_dir"
2851       else
2852         ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2853       fi
2854     done
2855     export PATH="$ac_TEMP_PATH"
2856     unset ac_TEMP_PATH
2857     DEFAULT_STD_FLAG=no
2858   ;;
2859
2860   *-*-darwin* )
2861         USE_BSD=1
2862     USE_DARWIN=1
2863     cat >>confdefs.h <<\_ACEOF
2864 #define __BSD__ 1
2865 _ACEOF
2866
2867     cat >>confdefs.h <<\_ACEOF
2868 #define __DARWIN__ 1
2869 _ACEOF
2870
2871     cat >>confdefs.h <<\_ACEOF
2872 #define TARGET_CARBON 1
2873 _ACEOF
2874
2875     DEFAULT_DEFAULT_wxUSE_OSX_CARBON=1
2876     DEFAULT_STD_FLAG=no
2877   ;;
2878   powerpc-apple-macos* )
2879         USE_UNIX=0
2880             ac_cv_c_bigendian=yes
2881             DEFAULT_DEFAULT_wxUSE_OSX_CARBON=1
2882     DEFAULT_STD_FLAG=no
2883   ;;
2884
2885   *-*-beos* )
2886         USE_BEOS=1
2887     cat >>confdefs.h <<\_ACEOF
2888 #define __BEOS__ 1
2889 _ACEOF
2890
2891   ;;
2892
2893   *)
2894     { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2895 echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2896     { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2897 echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
2898
2899     DEFAULT_DEFAULT_wxUSE_X11=1
2900     DEFAULT_wxUSE_SHARED=no
2901 esac
2902
2903
2904
2905 DEFAULT_wxUSE_ALL_FEATURES=yes
2906
2907 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2908 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
2909
2910 DEFAULT_wxUSE_DMALLOC=no
2911 DEFAULT_wxUSE_LIBGNOMEVFS=no
2912 DEFAULT_wxUSE_LIBHILDON=no
2913 DEFAULT_wxUSE_LIBMSPACK=no
2914 DEFAULT_wxUSE_LIBSDL=no
2915
2916 DEFAULT_wxUSE_ACCESSIBILITY=no
2917 DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
2918 DEFAULT_wxUSE_IPV6=no
2919 DEFAULT_wxUSE_GSTREAMER8=no
2920
2921 DEFAULT_wxUSE_UNICODE_UTF8=auto
2922 DEFAULT_wxUSE_OPENGL=auto
2923 DEFAULT_wxUSE_MEDIACTRL=auto
2924
2925 DEFAULT_wxUSE_UNICODE_UTF8_LOCALE=no
2926
2927 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
2928
2929 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2930
2931 DEFAULT_wxUSE_GTK2=yes
2932
2933 DEFAULT_wxUSE_OBJC_UNIQUIFYING=no
2934
2935
2936
2937
2938
2939           enablestring=disable
2940           defaultval=
2941           if test -z "$defaultval"; then
2942               if test x"$enablestring" = xdisable; then
2943                   defaultval=yes
2944               else
2945                   defaultval=no
2946               fi
2947           fi
2948
2949           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2950 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6; }
2951           # Check whether --enable-gui was given.
2952 if test "${enable_gui+set}" = set; then
2953   enableval=$enable_gui;
2954                           if test "$enableval" = yes; then
2955                             wx_cv_use_gui='wxUSE_GUI=yes'
2956                           else
2957                             wx_cv_use_gui='wxUSE_GUI=no'
2958                           fi
2959
2960 else
2961
2962                           wx_cv_use_gui='wxUSE_GUI=${'DEFAULT_wxUSE_GUI":-$defaultval}"
2963
2964 fi
2965
2966
2967           eval "$wx_cv_use_gui"
2968
2969           if test x"$enablestring" = xdisable; then
2970             if test $wxUSE_GUI = yes; then
2971               result=no
2972             else
2973               result=yes
2974             fi
2975           else
2976             result=$wxUSE_GUI
2977           fi
2978
2979           { echo "$as_me:$LINENO: result: $result" >&5
2980 echo "${ECHO_T}$result" >&6; }
2981
2982
2983           enablestring=
2984           defaultval=
2985           if test -z "$defaultval"; then
2986               if test x"$enablestring" = xdisable; then
2987                   defaultval=yes
2988               else
2989                   defaultval=no
2990               fi
2991           fi
2992
2993           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2994 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6; }
2995           # Check whether --enable-monolithic was given.
2996 if test "${enable_monolithic+set}" = set; then
2997   enableval=$enable_monolithic;
2998                           if test "$enableval" = yes; then
2999                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
3000                           else
3001                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=no'
3002                           fi
3003
3004 else
3005
3006                           wx_cv_use_monolithic='wxUSE_MONOLITHIC=${'DEFAULT_wxUSE_MONOLITHIC":-$defaultval}"
3007
3008 fi
3009
3010
3011           eval "$wx_cv_use_monolithic"
3012
3013           if test x"$enablestring" = xdisable; then
3014             if test $wxUSE_MONOLITHIC = yes; then
3015               result=no
3016             else
3017               result=yes
3018             fi
3019           else
3020             result=$wxUSE_MONOLITHIC
3021           fi
3022
3023           { echo "$as_me:$LINENO: result: $result" >&5
3024 echo "${ECHO_T}$result" >&6; }
3025
3026
3027           enablestring=
3028           defaultval=
3029           if test -z "$defaultval"; then
3030               if test x"$enablestring" = xdisable; then
3031                   defaultval=yes
3032               else
3033                   defaultval=no
3034               fi
3035           fi
3036
3037           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
3038 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6; }
3039           # Check whether --enable-plugins was given.
3040 if test "${enable_plugins+set}" = set; then
3041   enableval=$enable_plugins;
3042                           if test "$enableval" = yes; then
3043                             wx_cv_use_plugins='wxUSE_PLUGINS=yes'
3044                           else
3045                             wx_cv_use_plugins='wxUSE_PLUGINS=no'
3046                           fi
3047
3048 else
3049
3050                           wx_cv_use_plugins='wxUSE_PLUGINS=${'DEFAULT_wxUSE_PLUGINS":-$defaultval}"
3051
3052 fi
3053
3054
3055           eval "$wx_cv_use_plugins"
3056
3057           if test x"$enablestring" = xdisable; then
3058             if test $wxUSE_PLUGINS = yes; then
3059               result=no
3060             else
3061               result=yes
3062             fi
3063           else
3064             result=$wxUSE_PLUGINS
3065           fi
3066
3067           { echo "$as_me:$LINENO: result: $result" >&5
3068 echo "${ECHO_T}$result" >&6; }
3069
3070
3071           withstring=without
3072           defaultval=$wxUSE_ALL_FEATURES
3073           if test -z "$defaultval"; then
3074               if test x"$withstring" = xwithout; then
3075                   defaultval=yes
3076               else
3077                   defaultval=no
3078               fi
3079           fi
3080           { echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
3081 echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6; }
3082
3083 # Check whether --with-subdirs was given.
3084 if test "${with_subdirs+set}" = set; then
3085   withval=$with_subdirs;
3086                         if test "$withval" = yes; then
3087                           wx_cv_use_subdirs='wxWITH_SUBDIRS=yes'
3088                         else
3089                           wx_cv_use_subdirs='wxWITH_SUBDIRS=no'
3090                         fi
3091
3092 else
3093
3094                         wx_cv_use_subdirs='wxWITH_SUBDIRS=${'DEFAULT_wxWITH_SUBDIRS":-$defaultval}"
3095
3096 fi
3097
3098
3099           eval "$wx_cv_use_subdirs"
3100
3101           if test x"$withstring" = xwithout; then
3102             if test $wxWITH_SUBDIRS = yes; then
3103               result=no
3104             else
3105               result=yes
3106             fi
3107           else
3108             result=$wxWITH_SUBDIRS
3109           fi
3110
3111           { echo "$as_me:$LINENO: result: $result" >&5
3112 echo "${ECHO_T}$result" >&6; }
3113
3114
3115 # Check whether --with-flavour was given.
3116 if test "${with_flavour+set}" = set; then
3117   withval=$with_flavour; WX_FLAVOUR="$withval"
3118 fi
3119
3120
3121           enablestring=
3122           defaultval=
3123           if test -z "$defaultval"; then
3124               if test x"$enablestring" = xdisable; then
3125                   defaultval=yes
3126               else
3127                   defaultval=no
3128               fi
3129           fi
3130
3131           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
3132 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6; }
3133           # Check whether --enable-official_build was given.
3134 if test "${enable_official_build+set}" = set; then
3135   enableval=$enable_official_build;
3136                           if test "$enableval" = yes; then
3137                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
3138                           else
3139                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
3140                           fi
3141
3142 else
3143
3144                           wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=${'DEFAULT_wxUSE_OFFICIAL_BUILD":-$defaultval}"
3145
3146 fi
3147
3148
3149           eval "$wx_cv_use_official_build"
3150
3151           if test x"$enablestring" = xdisable; then
3152             if test $wxUSE_OFFICIAL_BUILD = yes; then
3153               result=no
3154             else
3155               result=yes
3156             fi
3157           else
3158             result=$wxUSE_OFFICIAL_BUILD
3159           fi
3160
3161           { echo "$as_me:$LINENO: result: $result" >&5
3162 echo "${ECHO_T}$result" >&6; }
3163
3164 # Check whether --enable-vendor was given.
3165 if test "${enable_vendor+set}" = set; then
3166   enableval=$enable_vendor; VENDOR="$enableval"
3167 fi
3168
3169 if test "x$VENDOR" = "x"; then
3170     VENDOR="custom"
3171 fi
3172
3173
3174           enablestring=disable
3175           defaultval=
3176           if test -z "$defaultval"; then
3177               if test x"$enablestring" = xdisable; then
3178                   defaultval=yes
3179               else
3180                   defaultval=no
3181               fi
3182           fi
3183
3184           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-all-features" >&5
3185 echo $ECHO_N "checking for --${enablestring:-enable}-all-features... $ECHO_C" >&6; }
3186           # Check whether --enable-all-features was given.
3187 if test "${enable_all_features+set}" = set; then
3188   enableval=$enable_all_features;
3189                           if test "$enableval" = yes; then
3190                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=yes'
3191                           else
3192                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=no'
3193                           fi
3194
3195 else
3196
3197                           wx_cv_use_all_features='wxUSE_ALL_FEATURES=${'DEFAULT_wxUSE_ALL_FEATURES":-$defaultval}"
3198
3199 fi
3200
3201
3202           eval "$wx_cv_use_all_features"
3203
3204           if test x"$enablestring" = xdisable; then
3205             if test $wxUSE_ALL_FEATURES = yes; then
3206               result=no
3207             else
3208               result=yes
3209             fi
3210           else
3211             result=$wxUSE_ALL_FEATURES
3212           fi
3213
3214           { echo "$as_me:$LINENO: result: $result" >&5
3215 echo "${ECHO_T}$result" >&6; }
3216
3217
3218 if test "$wxUSE_ALL_FEATURES" = "no"; then
3219                     DEFAULT_wxUSE_MEDIACTRL=no
3220 fi
3221
3222
3223 if test "$wxUSE_GUI" = "yes"; then
3224
3225
3226           enablestring=
3227           defaultval=
3228           if test -z "$defaultval"; then
3229               if test x"$enablestring" = xdisable; then
3230                   defaultval=yes
3231               else
3232                   defaultval=no
3233               fi
3234           fi
3235
3236           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
3237 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6; }
3238           # Check whether --enable-universal was given.
3239 if test "${enable_universal+set}" = set; then
3240   enableval=$enable_universal;
3241                           if test "$enableval" = yes; then
3242                             wx_cv_use_universal='wxUSE_UNIVERSAL=yes'
3243                           else
3244                             wx_cv_use_universal='wxUSE_UNIVERSAL=no'
3245                           fi
3246
3247 else
3248
3249                           wx_cv_use_universal='wxUSE_UNIVERSAL=${'DEFAULT_wxUSE_UNIVERSAL":-$defaultval}"
3250
3251 fi
3252
3253
3254           eval "$wx_cv_use_universal"
3255
3256           if test x"$enablestring" = xdisable; then
3257             if test $wxUSE_UNIVERSAL = yes; then
3258               result=no
3259             else
3260               result=yes
3261             fi
3262           else
3263             result=$wxUSE_UNIVERSAL
3264           fi
3265
3266           { echo "$as_me:$LINENO: result: $result" >&5
3267 echo "${ECHO_T}$result" >&6; }
3268
3269 if test "$wxUSE_UNIVERSAL" = "yes"; then
3270
3271 # Check whether --with-themes was given.
3272 if test "${with_themes+set}" = set; then
3273   withval=$with_themes; wxUNIV_THEMES="$withval"
3274 fi
3275
3276 fi
3277
3278
3279 # Check whether --with-gtk was given.
3280 if test "${with_gtk+set}" = set; then
3281   withval=$with_gtk; wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
3282 fi
3283
3284
3285 # Check whether --with-motif was given.
3286 if test "${with_motif+set}" = set; then
3287   withval=$with_motif; wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
3288 fi
3289
3290
3291 # Check whether --with-osx_carbon was given.
3292 if test "${with_osx_carbon+set}" = set; then
3293   withval=$with_osx_carbon; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3294 fi
3295
3296
3297 # Check whether --with-osx_cocoa was given.
3298 if test "${with_osx_cocoa+set}" = set; then
3299   withval=$with_osx_cocoa; wxUSE_OSX_COCOA="$withval" CACHE_OSX_COCOA=1 TOOLKIT_GIVEN=1
3300 fi
3301
3302
3303 # Check whether --with-mac was given.
3304 if test "${with_mac+set}" = set; then
3305   withval=$with_mac; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3306 fi
3307
3308
3309 # Check whether --with-cocoa was given.
3310 if test "${with_cocoa+set}" = set; then
3311   withval=$with_cocoa; wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
3312 fi
3313
3314
3315 # Check whether --with-wine was given.
3316 if test "${with_wine+set}" = set; then
3317   withval=$with_wine; wxUSE_WINE="$withval" CACHE_WINE=1
3318 fi
3319
3320
3321 # Check whether --with-msw was given.
3322 if test "${with_msw+set}" = set; then
3323   withval=$with_msw; wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
3324 fi
3325
3326
3327 # Check whether --with-pm was given.
3328 if test "${with_pm+set}" = set; then
3329   withval=$with_pm; wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
3330 fi
3331
3332
3333 # Check whether --with-mgl was given.
3334 if test "${with_mgl+set}" = set; then
3335   withval=$with_mgl; wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
3336 fi
3337
3338
3339 # Check whether --with-directfb was given.
3340 if test "${with_directfb+set}" = set; then
3341   withval=$with_directfb; wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
3342 fi
3343
3344
3345 # Check whether --with-microwin was given.
3346 if test "${with_microwin+set}" = set; then
3347   withval=$with_microwin; wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
3348 fi
3349
3350
3351 # Check whether --with-x11 was given.
3352 if test "${with_x11+set}" = set; then
3353   withval=$with_x11; wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
3354 fi
3355
3356
3357           enablestring=
3358           defaultval=
3359           if test -z "$defaultval"; then
3360               if test x"$enablestring" = xdisable; then
3361                   defaultval=yes
3362               else
3363                   defaultval=no
3364               fi
3365           fi
3366
3367           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
3368 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6; }
3369           # Check whether --enable-nanox was given.
3370 if test "${enable_nanox+set}" = set; then
3371   enableval=$enable_nanox;
3372                           if test "$enableval" = yes; then
3373                             wx_cv_use_nanox='wxUSE_NANOX=yes'
3374                           else
3375                             wx_cv_use_nanox='wxUSE_NANOX=no'
3376                           fi
3377
3378 else
3379
3380                           wx_cv_use_nanox='wxUSE_NANOX=${'DEFAULT_wxUSE_NANOX":-$defaultval}"
3381
3382 fi
3383
3384
3385           eval "$wx_cv_use_nanox"
3386
3387           if test x"$enablestring" = xdisable; then
3388             if test $wxUSE_NANOX = yes; then
3389               result=no
3390             else
3391               result=yes
3392             fi
3393           else
3394             result=$wxUSE_NANOX
3395           fi
3396
3397           { echo "$as_me:$LINENO: result: $result" >&5
3398 echo "${ECHO_T}$result" >&6; }
3399
3400
3401 # Check whether --enable-gtk2 was given.
3402 if test "${enable_gtk2+set}" = set; then
3403   enableval=$enable_gtk2; wxUSE_GTK2="$enableval"
3404 fi
3405
3406
3407           enablestring=
3408           defaultval=
3409           if test -z "$defaultval"; then
3410               if test x"$enablestring" = xdisable; then
3411                   defaultval=yes
3412               else
3413                   defaultval=no
3414               fi
3415           fi
3416
3417           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
3418 echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6; }
3419           # Check whether --enable-gpe was given.
3420 if test "${enable_gpe+set}" = set; then
3421   enableval=$enable_gpe;
3422                           if test "$enableval" = yes; then
3423                             wx_cv_use_gpe='wxUSE_GPE=yes'
3424                           else
3425                             wx_cv_use_gpe='wxUSE_GPE=no'
3426                           fi
3427
3428 else
3429
3430                           wx_cv_use_gpe='wxUSE_GPE=${'DEFAULT_wxUSE_GPE":-$defaultval}"
3431
3432 fi
3433
3434
3435           eval "$wx_cv_use_gpe"
3436
3437           if test x"$enablestring" = xdisable; then
3438             if test $wxUSE_GPE = yes; then
3439               result=no
3440             else
3441               result=yes
3442             fi
3443           else
3444             result=$wxUSE_GPE
3445           fi
3446
3447           { echo "$as_me:$LINENO: result: $result" >&5
3448 echo "${ECHO_T}$result" >&6; }
3449
3450
3451
3452 { echo "$as_me:$LINENO: checking for toolkit" >&5
3453 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6; }
3454
3455
3456
3457 # In Wine, we need to default to MSW, not GTK or MOTIF
3458 if test "$wxUSE_WINE" = "yes"; then
3459     DEFAULT_DEFAULT_wxUSE_GTK=0
3460     DEFAULT_DEFAULT_wxUSE_MOTIF=0
3461     DEFAULT_DEFAULT_wxUSE_MSW=1
3462     wxUSE_SHARED=no
3463     CC=${CC:-winegcc}
3464     CXX=${CXX:-wineg++}
3465 fi
3466
3467
3468 if test "$wxUSE_GUI" = "yes"; then
3469
3470     if test "$USE_BEOS" = 1; then
3471         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
3472 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
3473    { (exit 1); exit 1; }; }
3474     fi
3475
3476     if test "$TOOLKIT_GIVEN" = 1; then
3477             for toolkit in $ALL_TOOLKITS; do
3478         var=wxUSE_$toolkit
3479         eval "value=\$${var}"
3480         if test "x$value" = "xno"; then
3481           eval "$var=0"
3482         elif test "x$value" != "x"; then
3483           eval "$var=1"
3484         fi
3485
3486         if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
3487           eval "wx${toolkit}_VERSION=$value"
3488         fi
3489       done
3490     else
3491             for toolkit in $ALL_TOOLKITS; do
3492         var=DEFAULT_DEFAULT_wxUSE_$toolkit
3493         eval "wxUSE_$toolkit=\$${var}"
3494       done
3495     fi
3496
3497             NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_OSX_CARBON:-0} \
3498                   + ${wxUSE_OSX_COCOA:-0} + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} \
3499                   + ${wxUSE_MICROWIN:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
3500
3501         case "${host}" in
3502       *-pc-os2_emx | *-pc-os2-emx )
3503         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3504     esac
3505
3506     case "$NUM_TOOLKITS" in
3507       1)
3508       ;;
3509       0)
3510         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
3511 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
3512    { (exit 1); exit 1; }; }
3513       ;;
3514       *)
3515         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit" >&5
3516 echo "$as_me: error: Please specify at most one toolkit" >&2;}
3517    { (exit 1); exit 1; }; }
3518     esac
3519
3520     # to be removed when --disable-gtk2 isn't needed
3521     if test "x$wxUSE_GTK2" = "xyes"; then
3522         wxGTK_VERSION=2
3523     elif test "x$wxUSE_GTK2" = "xno"; then
3524         wxGTK_VERSION=1
3525     fi
3526
3527     for toolkit in $ALL_TOOLKITS; do
3528         var=wxUSE_$toolkit
3529         eval "value=\$${var}"
3530         if test "$value" = 1; then
3531           toolkit_echo=`echo $toolkit | tr '[A-Z]' '[a-z]'`
3532           { echo "$as_me:$LINENO: result: $toolkit_echo" >&5
3533 echo "${ECHO_T}$toolkit_echo" >&6; }
3534         fi
3535     done
3536 else
3537     if test "x$host_alias" != "x"; then
3538         { echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
3539 echo "${ECHO_T}base ($host_alias hosted) only" >&6; }
3540     else
3541         { echo "$as_me:$LINENO: result: base only" >&5
3542 echo "${ECHO_T}base only" >&6; }
3543     fi
3544 fi
3545
3546 wxUSE_MAC=0
3547 if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1; then
3548     wxUSE_MAC=1
3549 fi
3550
3551
3552
3553           { echo "$as_me:$LINENO: checking for --with-libpng" >&5
3554 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6; }
3555
3556 # Check whether --with-libpng was given.
3557 if test "${with_libpng+set}" = set; then
3558   withval=$with_libpng;
3559                         if test "$withval" = yes; then
3560                           wx_cv_use_libpng='wxUSE_LIBPNG=yes'
3561                         elif test "$withval" = no; then
3562                           wx_cv_use_libpng='wxUSE_LIBPNG=no'
3563                         elif test "$withval" = sys; then
3564                           wx_cv_use_libpng='wxUSE_LIBPNG=sys'
3565                         elif test "$withval" = builtin; then
3566                           wx_cv_use_libpng='wxUSE_LIBPNG=builtin'
3567                         else
3568                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3569 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3570    { (exit 1); exit 1; }; }
3571                         fi
3572
3573 else
3574
3575                         wx_cv_use_libpng='wxUSE_LIBPNG=${'DEFAULT_wxUSE_LIBPNG":-$wxUSE_ALL_FEATURES}"
3576
3577 fi
3578
3579
3580           eval "$wx_cv_use_libpng"
3581
3582           if test "$wxUSE_LIBPNG" = yes; then
3583             { echo "$as_me:$LINENO: result: yes" >&5
3584 echo "${ECHO_T}yes" >&6; }
3585           elif test "$wxUSE_LIBPNG" = no; then
3586             { echo "$as_me:$LINENO: result: no" >&5
3587 echo "${ECHO_T}no" >&6; }
3588           elif test "$wxUSE_LIBPNG" = sys; then
3589             { echo "$as_me:$LINENO: result: system version" >&5
3590 echo "${ECHO_T}system version" >&6; }
3591           elif test "$wxUSE_LIBPNG" = builtin; then
3592             { echo "$as_me:$LINENO: result: builtin version" >&5
3593 echo "${ECHO_T}builtin version" >&6; }
3594           else
3595             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3596 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3597    { (exit 1); exit 1; }; }
3598           fi
3599
3600
3601           { echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3602 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6; }
3603
3604 # Check whether --with-libjpeg was given.
3605 if test "${with_libjpeg+set}" = set; then
3606   withval=$with_libjpeg;
3607                         if test "$withval" = yes; then
3608                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3609                         elif test "$withval" = no; then
3610                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3611                         elif test "$withval" = sys; then
3612                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3613                         elif test "$withval" = builtin; then
3614                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3615                         else
3616                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3617 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3618    { (exit 1); exit 1; }; }
3619                         fi
3620
3621 else
3622
3623                         wx_cv_use_libjpeg='wxUSE_LIBJPEG=${'DEFAULT_wxUSE_LIBJPEG":-$wxUSE_ALL_FEATURES}"
3624
3625 fi
3626
3627
3628           eval "$wx_cv_use_libjpeg"
3629
3630           if test "$wxUSE_LIBJPEG" = yes; then
3631             { echo "$as_me:$LINENO: result: yes" >&5
3632 echo "${ECHO_T}yes" >&6; }
3633           elif test "$wxUSE_LIBJPEG" = no; then
3634             { echo "$as_me:$LINENO: result: no" >&5
3635 echo "${ECHO_T}no" >&6; }
3636           elif test "$wxUSE_LIBJPEG" = sys; then
3637             { echo "$as_me:$LINENO: result: system version" >&5
3638 echo "${ECHO_T}system version" >&6; }
3639           elif test "$wxUSE_LIBJPEG" = builtin; then
3640             { echo "$as_me:$LINENO: result: builtin version" >&5
3641 echo "${ECHO_T}builtin version" >&6; }
3642           else
3643             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3644 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3645    { (exit 1); exit 1; }; }
3646           fi
3647
3648
3649           { echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3650 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6; }
3651
3652 # Check whether --with-libtiff was given.
3653 if test "${with_libtiff+set}" = set; then
3654   withval=$with_libtiff;
3655                         if test "$withval" = yes; then
3656                           wx_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3657                         elif test "$withval" = no; then
3658                           wx_cv_use_libtiff='wxUSE_LIBTIFF=no'
3659                         elif test "$withval" = sys; then
3660                           wx_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3661                         elif test "$withval" = builtin; then
3662                           wx_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3663                         else
3664                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3665 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3666    { (exit 1); exit 1; }; }
3667                         fi
3668
3669 else
3670
3671                         wx_cv_use_libtiff='wxUSE_LIBTIFF=${'DEFAULT_wxUSE_LIBTIFF":-$wxUSE_ALL_FEATURES}"
3672
3673 fi
3674
3675
3676           eval "$wx_cv_use_libtiff"
3677
3678           if test "$wxUSE_LIBTIFF" = yes; then
3679             { echo "$as_me:$LINENO: result: yes" >&5
3680 echo "${ECHO_T}yes" >&6; }
3681           elif test "$wxUSE_LIBTIFF" = no; then
3682             { echo "$as_me:$LINENO: result: no" >&5
3683 echo "${ECHO_T}no" >&6; }
3684           elif test "$wxUSE_LIBTIFF" = sys; then
3685             { echo "$as_me:$LINENO: result: system version" >&5
3686 echo "${ECHO_T}system version" >&6; }
3687           elif test "$wxUSE_LIBTIFF" = builtin; then
3688             { echo "$as_me:$LINENO: result: builtin version" >&5
3689 echo "${ECHO_T}builtin version" >&6; }
3690           else
3691             { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3692 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3693    { (exit 1); exit 1; }; }
3694           fi
3695
3696
3697           { echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3698 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6; }
3699
3700 # Check whether --with-libxpm was given.
3701 if test "${with_libxpm+set}" = set; then
3702   withval=$with_libxpm;
3703                         if test "$withval" = yes; then
3704                           wx_cv_use_libxpm='wxUSE_LIBXPM=yes'
3705                         elif test "$withval" = no; then
3706                           wx_cv_use_libxpm='wxUSE_LIBXPM=no'
3707                         elif test "$withval" = sys; then
3708                           wx_cv_use_libxpm='wxUSE_LIBXPM=sys'
3709                         elif test "$withval" = builtin; then
3710                           wx_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3711                         else
3712                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3713 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3714    { (exit 1); exit 1; }; }
3715                         fi
3716
3717 else
3718
3719                         wx_cv_use_libxpm='wxUSE_LIBXPM=${'DEFAULT_wxUSE_LIBXPM":-$wxUSE_ALL_FEATURES}"
3720
3721 fi
3722
3723
3724           eval "$wx_cv_use_libxpm"
3725
3726           if test "$wxUSE_LIBXPM" = yes; then
3727             { echo "$as_me:$LINENO: result: yes" >&5
3728 echo "${ECHO_T}yes" >&6; }
3729           elif test "$wxUSE_LIBXPM" = no; then
3730             { echo "$as_me:$LINENO: result: no" >&5
3731 echo "${ECHO_T}no" >&6; }
3732           elif test "$wxUSE_LIBXPM" = sys; then
3733             { echo "$as_me:$LINENO: result: system version" >&5
3734 echo "${ECHO_T}system version" >&6; }
3735           elif test "$wxUSE_LIBXPM" = builtin; then
3736             { echo "$as_me:$LINENO: result: builtin version" >&5
3737 echo "${ECHO_T}builtin version" >&6; }
3738           else
3739             { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3740 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3741    { (exit 1); exit 1; }; }
3742           fi
3743
3744
3745           withstring=
3746           defaultval=$wxUSE_ALL_FEATURES
3747           if test -z "$defaultval"; then
3748               if test x"$withstring" = xwithout; then
3749                   defaultval=yes
3750               else
3751                   defaultval=no
3752               fi
3753           fi
3754           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libiconv" >&5
3755 echo $ECHO_N "checking for --${withstring:-with}-libiconv... $ECHO_C" >&6; }
3756
3757 # Check whether --with-libiconv was given.
3758 if test "${with_libiconv+set}" = set; then
3759   withval=$with_libiconv;
3760                         if test "$withval" = yes; then
3761                           wx_cv_use_libiconv='wxUSE_LIBICONV=yes'
3762                         else
3763                           wx_cv_use_libiconv='wxUSE_LIBICONV=no'
3764                         fi
3765
3766 else
3767
3768                         wx_cv_use_libiconv='wxUSE_LIBICONV=${'DEFAULT_wxUSE_LIBICONV":-$defaultval}"
3769
3770 fi
3771
3772
3773           eval "$wx_cv_use_libiconv"
3774
3775           if test x"$withstring" = xwithout; then
3776             if test $wxUSE_LIBICONV = yes; then
3777               result=no
3778             else
3779               result=yes
3780             fi
3781           else
3782             result=$wxUSE_LIBICONV
3783           fi
3784
3785           { echo "$as_me:$LINENO: result: $result" >&5
3786 echo "${ECHO_T}$result" >&6; }
3787
3788
3789           withstring=
3790           defaultval=$wxUSE_ALL_FEATURES
3791           if test -z "$defaultval"; then
3792               if test x"$withstring" = xwithout; then
3793                   defaultval=yes
3794               else
3795                   defaultval=no
3796               fi
3797           fi
3798           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3799 echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6; }
3800
3801 # Check whether --with-libmspack was given.
3802 if test "${with_libmspack+set}" = set; then
3803   withval=$with_libmspack;
3804                         if test "$withval" = yes; then
3805                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3806                         else
3807                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3808                         fi
3809
3810 else
3811
3812                         wx_cv_use_libmspack='wxUSE_LIBMSPACK=${'DEFAULT_wxUSE_LIBMSPACK":-$defaultval}"
3813
3814 fi
3815
3816
3817           eval "$wx_cv_use_libmspack"
3818
3819           if test x"$withstring" = xwithout; then
3820             if test $wxUSE_LIBMSPACK = yes; then
3821               result=no
3822             else
3823               result=yes
3824             fi
3825           else
3826             result=$wxUSE_LIBMSPACK
3827           fi
3828
3829           { echo "$as_me:$LINENO: result: $result" >&5
3830 echo "${ECHO_T}$result" >&6; }
3831
3832
3833           withstring=without
3834           defaultval=$wxUSE_ALL_FEATURES
3835           if test -z "$defaultval"; then
3836               if test x"$withstring" = xwithout; then
3837                   defaultval=yes
3838               else
3839                   defaultval=no
3840               fi
3841           fi
3842           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gtkprint" >&5
3843 echo $ECHO_N "checking for --${withstring:-with}-gtkprint... $ECHO_C" >&6; }
3844
3845 # Check whether --with-gtkprint was given.
3846 if test "${with_gtkprint+set}" = set; then
3847   withval=$with_gtkprint;
3848                         if test "$withval" = yes; then
3849                           wx_cv_use_gtkprint='wxUSE_GTKPRINT=yes'
3850                         else
3851                           wx_cv_use_gtkprint='wxUSE_GTKPRINT=no'
3852                         fi
3853
3854 else
3855
3856                         wx_cv_use_gtkprint='wxUSE_GTKPRINT=${'DEFAULT_wxUSE_GTKPRINT":-$defaultval}"
3857
3858 fi
3859
3860
3861           eval "$wx_cv_use_gtkprint"
3862
3863           if test x"$withstring" = xwithout; then
3864             if test $wxUSE_GTKPRINT = yes; then
3865               result=no
3866             else
3867               result=yes
3868             fi
3869           else
3870             result=$wxUSE_GTKPRINT
3871           fi
3872
3873           { echo "$as_me:$LINENO: result: $result" >&5
3874 echo "${ECHO_T}$result" >&6; }
3875
3876
3877           withstring=without
3878           defaultval=$wxUSE_ALL_FEATURES
3879           if test -z "$defaultval"; then
3880               if test x"$withstring" = xwithout; then
3881                   defaultval=yes
3882               else
3883                   defaultval=no
3884               fi
3885           fi
3886           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3887 echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6; }
3888
3889 # Check whether --with-gnomeprint was given.
3890 if test "${with_gnomeprint+set}" = set; then
3891   withval=$with_gnomeprint;
3892                         if test "$withval" = yes; then
3893                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3894                         else
3895                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3896                         fi
3897
3898 else
3899
3900                         wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=${'DEFAULT_wxUSE_LIBGNOMEPRINT":-$defaultval}"
3901
3902 fi
3903
3904
3905           eval "$wx_cv_use_gnomeprint"
3906
3907           if test x"$withstring" = xwithout; then
3908             if test $wxUSE_LIBGNOMEPRINT = yes; then
3909               result=no
3910             else
3911               result=yes
3912             fi
3913           else
3914             result=$wxUSE_LIBGNOMEPRINT
3915           fi
3916
3917           { echo "$as_me:$LINENO: result: $result" >&5
3918 echo "${ECHO_T}$result" >&6; }
3919
3920
3921           withstring=
3922           defaultval=$wxUSE_ALL_FEATURES
3923           if test -z "$defaultval"; then
3924               if test x"$withstring" = xwithout; then
3925                   defaultval=yes
3926               else
3927                   defaultval=no
3928               fi
3929           fi
3930           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
3931 echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6; }
3932
3933 # Check whether --with-gnomevfs was given.
3934 if test "${with_gnomevfs+set}" = set; then
3935   withval=$with_gnomevfs;
3936                         if test "$withval" = yes; then
3937                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
3938                         else
3939                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
3940                         fi
3941
3942 else
3943
3944                         wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=${'DEFAULT_wxUSE_LIBGNOMEVFS":-$defaultval}"
3945
3946 fi
3947
3948
3949           eval "$wx_cv_use_gnomevfs"
3950
3951           if test x"$withstring" = xwithout; then
3952             if test $wxUSE_LIBGNOMEVFS = yes; then
3953               result=no
3954             else
3955               result=yes
3956             fi
3957           else
3958             result=$wxUSE_LIBGNOMEVFS
3959           fi
3960
3961           { echo "$as_me:$LINENO: result: $result" >&5
3962 echo "${ECHO_T}$result" >&6; }
3963
3964
3965           withstring=
3966           defaultval=$wxUSE_ALL_FEATURES
3967           if test -z "$defaultval"; then
3968               if test x"$withstring" = xwithout; then
3969                   defaultval=yes
3970               else
3971                   defaultval=no
3972               fi
3973           fi
3974           { echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
3975 echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6; }
3976
3977 # Check whether --with-hildon was given.
3978 if test "${with_hildon+set}" = set; then
3979   withval=$with_hildon;
3980                         if test "$withval" = yes; then
3981                           wx_cv_use_hildon='wxUSE_LIBHILDON=yes'
3982                         else
3983                           wx_cv_use_hildon='wxUSE_LIBHILDON=no'
3984                         fi
3985
3986 else
3987
3988                         wx_cv_use_hildon='wxUSE_LIBHILDON=${'DEFAULT_wxUSE_LIBHILDON":-$defaultval}"
3989
3990 fi
3991
3992
3993           eval "$wx_cv_use_hildon"
3994
3995           if test x"$withstring" = xwithout; then
3996             if test $wxUSE_LIBHILDON = yes; then
3997               result=no
3998             else
3999               result=yes
4000             fi
4001           else
4002             result=$wxUSE_LIBHILDON
4003           fi
4004
4005           { echo "$as_me:$LINENO: result: $result" >&5
4006 echo "${ECHO_T}$result" >&6; }
4007
4008
4009           withstring=
4010           defaultval=$wxUSE_ALL_FEATURES
4011           if test -z "$defaultval"; then
4012               if test x"$withstring" = xwithout; then
4013                   defaultval=yes
4014               else
4015                   defaultval=no
4016               fi
4017           fi
4018           { echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
4019 echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6; }
4020
4021 # Check whether --with-opengl was given.
4022 if test "${with_opengl+set}" = set; then
4023   withval=$with_opengl;
4024                         if test "$withval" = yes; then
4025                           wx_cv_use_opengl='wxUSE_OPENGL=yes'
4026                         else
4027                           wx_cv_use_opengl='wxUSE_OPENGL=no'
4028                         fi
4029
4030 else
4031
4032                         wx_cv_use_opengl='wxUSE_OPENGL=${'DEFAULT_wxUSE_OPENGL":-$defaultval}"
4033
4034 fi
4035
4036
4037           eval "$wx_cv_use_opengl"
4038
4039           if test x"$withstring" = xwithout; then
4040             if test $wxUSE_OPENGL = yes; then
4041               result=no
4042             else
4043               result=yes
4044             fi
4045           else
4046             result=$wxUSE_OPENGL
4047           fi
4048
4049           { echo "$as_me:$LINENO: result: $result" >&5
4050 echo "${ECHO_T}$result" >&6; }
4051
4052
4053 fi
4054
4055
4056           withstring=
4057           defaultval=$wxUSE_ALL_FEATURES
4058           if test -z "$defaultval"; then
4059               if test x"$withstring" = xwithout; then
4060                   defaultval=yes
4061               else
4062                   defaultval=no
4063               fi
4064           fi
4065           { echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
4066 echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6; }
4067
4068 # Check whether --with-dmalloc was given.
4069 if test "${with_dmalloc+set}" = set; then
4070   withval=$with_dmalloc;
4071                         if test "$withval" = yes; then
4072                           wx_cv_use_dmalloc='wxUSE_DMALLOC=yes'
4073                         else
4074                           wx_cv_use_dmalloc='wxUSE_DMALLOC=no'
4075                         fi
4076
4077 else
4078
4079                         wx_cv_use_dmalloc='wxUSE_DMALLOC=${'DEFAULT_wxUSE_DMALLOC":-$defaultval}"
4080
4081 fi
4082
4083
4084           eval "$wx_cv_use_dmalloc"
4085
4086           if test x"$withstring" = xwithout; then
4087             if test $wxUSE_DMALLOC = yes; then
4088               result=no
4089             else
4090               result=yes
4091             fi
4092           else
4093             result=$wxUSE_DMALLOC
4094           fi
4095
4096           { echo "$as_me:$LINENO: result: $result" >&5
4097 echo "${ECHO_T}$result" >&6; }
4098
4099
4100           withstring=
4101           defaultval=$wxUSE_ALL_FEATURES
4102           if test -z "$defaultval"; then
4103               if test x"$withstring" = xwithout; then
4104                   defaultval=yes
4105               else
4106                   defaultval=no
4107               fi
4108           fi
4109           { echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
4110 echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6; }
4111
4112 # Check whether --with-sdl was given.
4113 if test "${with_sdl+set}" = set; then
4114   withval=$with_sdl;
4115                         if test "$withval" = yes; then
4116                           wx_cv_use_sdl='wxUSE_LIBSDL=yes'
4117                         else
4118                           wx_cv_use_sdl='wxUSE_LIBSDL=no'
4119                         fi
4120
4121 else
4122
4123                         wx_cv_use_sdl='wxUSE_LIBSDL=${'DEFAULT_wxUSE_LIBSDL":-$defaultval}"
4124
4125 fi
4126
4127
4128           eval "$wx_cv_use_sdl"
4129
4130           if test x"$withstring" = xwithout; then
4131             if test $wxUSE_LIBSDL = yes; then
4132               result=no
4133             else
4134               result=yes
4135             fi
4136           else
4137             result=$wxUSE_LIBSDL
4138           fi
4139
4140           { echo "$as_me:$LINENO: result: $result" >&5
4141 echo "${ECHO_T}$result" >&6; }
4142
4143
4144           { echo "$as_me:$LINENO: checking for --with-regex" >&5
4145 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6; }
4146
4147 # Check whether --with-regex was given.
4148 if test "${with_regex+set}" = set; then
4149   withval=$with_regex;
4150                         if test "$withval" = yes; then
4151                           wx_cv_use_regex='wxUSE_REGEX=yes'
4152                         elif test "$withval" = no; then
4153                           wx_cv_use_regex='wxUSE_REGEX=no'
4154                         elif test "$withval" = sys; then
4155                           wx_cv_use_regex='wxUSE_REGEX=sys'
4156                         elif test "$withval" = builtin; then
4157                           wx_cv_use_regex='wxUSE_REGEX=builtin'
4158                         else
4159                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4160 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4161    { (exit 1); exit 1; }; }
4162                         fi
4163
4164 else
4165
4166                         wx_cv_use_regex='wxUSE_REGEX=${'DEFAULT_wxUSE_REGEX":-$wxUSE_ALL_FEATURES}"
4167
4168 fi
4169
4170
4171           eval "$wx_cv_use_regex"
4172
4173           if test "$wxUSE_REGEX" = yes; then
4174             { echo "$as_me:$LINENO: result: yes" >&5
4175 echo "${ECHO_T}yes" >&6; }
4176           elif test "$wxUSE_REGEX" = no; then
4177             { echo "$as_me:$LINENO: result: no" >&5
4178 echo "${ECHO_T}no" >&6; }
4179           elif test "$wxUSE_REGEX" = sys; then
4180             { echo "$as_me:$LINENO: result: system version" >&5
4181 echo "${ECHO_T}system version" >&6; }
4182           elif test "$wxUSE_REGEX" = builtin; then
4183             { echo "$as_me:$LINENO: result: builtin version" >&5
4184 echo "${ECHO_T}builtin version" >&6; }
4185           else
4186             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4187 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4188    { (exit 1); exit 1; }; }
4189           fi
4190
4191
4192           { echo "$as_me:$LINENO: checking for --with-zlib" >&5
4193 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6; }
4194
4195 # Check whether --with-zlib was given.
4196 if test "${with_zlib+set}" = set; then
4197   withval=$with_zlib;
4198                         if test "$withval" = yes; then
4199                           wx_cv_use_zlib='wxUSE_ZLIB=yes'
4200                         elif test "$withval" = no; then
4201                           wx_cv_use_zlib='wxUSE_ZLIB=no'
4202                         elif test "$withval" = sys; then
4203                           wx_cv_use_zlib='wxUSE_ZLIB=sys'
4204                         elif test "$withval" = builtin; then
4205                           wx_cv_use_zlib='wxUSE_ZLIB=builtin'
4206                         else
4207                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4208 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4209    { (exit 1); exit 1; }; }
4210                         fi
4211
4212 else
4213
4214                         wx_cv_use_zlib='wxUSE_ZLIB=${'DEFAULT_wxUSE_ZLIB":-$wxUSE_ALL_FEATURES}"
4215
4216 fi
4217
4218
4219           eval "$wx_cv_use_zlib"
4220
4221           if test "$wxUSE_ZLIB" = yes; then
4222             { echo "$as_me:$LINENO: result: yes" >&5
4223 echo "${ECHO_T}yes" >&6; }
4224           elif test "$wxUSE_ZLIB" = no; then
4225             { echo "$as_me:$LINENO: result: no" >&5
4226 echo "${ECHO_T}no" >&6; }
4227           elif test "$wxUSE_ZLIB" = sys; then
4228             { echo "$as_me:$LINENO: result: system version" >&5
4229 echo "${ECHO_T}system version" >&6; }
4230           elif test "$wxUSE_ZLIB" = builtin; then
4231             { echo "$as_me:$LINENO: result: builtin version" >&5
4232 echo "${ECHO_T}builtin version" >&6; }
4233           else
4234             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4235 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4236    { (exit 1); exit 1; }; }
4237           fi
4238
4239
4240           { echo "$as_me:$LINENO: checking for --with-expat" >&5
4241 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6; }
4242
4243 # Check whether --with-expat was given.
4244 if test "${with_expat+set}" = set; then
4245   withval=$with_expat;
4246                         if test "$withval" = yes; then
4247                           wx_cv_use_expat='wxUSE_EXPAT=yes'
4248                         elif test "$withval" = no; then
4249                           wx_cv_use_expat='wxUSE_EXPAT=no'
4250                         elif test "$withval" = sys; then
4251                           wx_cv_use_expat='wxUSE_EXPAT=sys'
4252                         elif test "$withval" = builtin; then
4253                           wx_cv_use_expat='wxUSE_EXPAT=builtin'
4254                         else
4255                           { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4256 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4257    { (exit 1); exit 1; }; }
4258                         fi
4259
4260 else
4261
4262                         wx_cv_use_expat='wxUSE_EXPAT=${'DEFAULT_wxUSE_EXPAT":-$wxUSE_ALL_FEATURES}"
4263
4264 fi
4265
4266
4267           eval "$wx_cv_use_expat"
4268
4269           if test "$wxUSE_EXPAT" = yes; then
4270             { echo "$as_me:$LINENO: result: yes" >&5
4271 echo "${ECHO_T}yes" >&6; }
4272           elif test "$wxUSE_EXPAT" = no; then
4273             { echo "$as_me:$LINENO: result: no" >&5
4274 echo "${ECHO_T}no" >&6; }
4275           elif test "$wxUSE_EXPAT" = sys; then
4276             { echo "$as_me:$LINENO: result: system version" >&5
4277 echo "${ECHO_T}system version" >&6; }
4278           elif test "$wxUSE_EXPAT" = builtin; then
4279             { echo "$as_me:$LINENO: result: builtin version" >&5
4280 echo "${ECHO_T}builtin version" >&6; }
4281           else
4282             { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4283 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4284    { (exit 1); exit 1; }; }
4285           fi
4286
4287
4288 { echo "$as_me:$LINENO: checking for --with-macosx-sdk" >&5
4289 echo $ECHO_N "checking for --with-macosx-sdk... $ECHO_C" >&6; }
4290
4291 # Check whether --with-macosx-sdk was given.
4292 if test "${with_macosx_sdk+set}" = set; then
4293   withval=$with_macosx_sdk;
4294         wxUSE_MACOSX_SDK=$withval
4295         wx_cv_use_macosx_sdk="wxUSE_MACOSX_SDK=$withval"
4296
4297 fi
4298
4299 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_SDK" >&5
4300 echo "${ECHO_T}$wxUSE_MACOSX_SDK" >&6; }
4301
4302 { echo "$as_me:$LINENO: checking for --with-macosx-version-min" >&5
4303 echo $ECHO_N "checking for --with-macosx-version-min... $ECHO_C" >&6; }
4304
4305 # Check whether --with-macosx-version-min was given.
4306 if test "${with_macosx_version_min+set}" = set; then
4307   withval=$with_macosx_version_min;
4308         wxUSE_MACOSX_VERSION_MIN=$withval
4309         wx_cv_use_macosx_version_min="wxUSE_MACOSX_VERSION_MIN=$withval"
4310
4311 fi
4312
4313 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
4314 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
4315
4316
4317
4318           enablestring=disable
4319           defaultval=
4320           if test -z "$defaultval"; then
4321               if test x"$enablestring" = xdisable; then
4322                   defaultval=yes
4323               else
4324                   defaultval=no
4325               fi
4326           fi
4327
4328           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
4329 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6; }
4330           # Check whether --enable-shared was given.
4331 if test "${enable_shared+set}" = set; then
4332   enableval=$enable_shared;
4333                           if test "$enableval" = yes; then
4334                             wx_cv_use_shared='wxUSE_SHARED=yes'
4335                           else
4336                             wx_cv_use_shared='wxUSE_SHARED=no'
4337                           fi
4338
4339 else
4340
4341                           wx_cv_use_shared='wxUSE_SHARED=${'DEFAULT_wxUSE_SHARED":-$defaultval}"
4342
4343 fi
4344
4345
4346           eval "$wx_cv_use_shared"
4347
4348           if test x"$enablestring" = xdisable; then
4349             if test $wxUSE_SHARED = yes; then
4350               result=no
4351             else
4352               result=yes
4353             fi
4354           else
4355             result=$wxUSE_SHARED
4356           fi
4357
4358           { echo "$as_me:$LINENO: result: $result" >&5
4359 echo "${ECHO_T}$result" >&6; }
4360
4361
4362           enablestring=
4363           defaultval=
4364           if test -z "$defaultval"; then
4365               if test x"$enablestring" = xdisable; then
4366                   defaultval=yes
4367               else
4368                   defaultval=no
4369               fi
4370           fi
4371
4372           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
4373 echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6; }
4374           # Check whether --enable-debug was given.
4375 if test "${enable_debug+set}" = set; then
4376   enableval=$enable_debug;
4377                           if test "$enableval" = yes; then
4378                             wx_cv_use_debug='wxUSE_DEBUG=yes'
4379                           else
4380                             wx_cv_use_debug='wxUSE_DEBUG=no'
4381                           fi
4382
4383 else
4384
4385                           wx_cv_use_debug='wxUSE_DEBUG=${'DEFAULT_wxUSE_DEBUG":-$defaultval}"
4386
4387 fi
4388
4389
4390           eval "$wx_cv_use_debug"
4391
4392           if test x"$enablestring" = xdisable; then
4393             if test $wxUSE_DEBUG = yes; then
4394               result=no
4395             else
4396               result=yes
4397             fi
4398           else
4399             result=$wxUSE_DEBUG
4400           fi
4401
4402           { echo "$as_me:$LINENO: result: $result" >&5
4403 echo "${ECHO_T}$result" >&6; }
4404
4405
4406           enablestring=
4407           defaultval=
4408           if test -z "$defaultval"; then
4409               if test x"$enablestring" = xdisable; then
4410                   defaultval=yes
4411               else
4412                   defaultval=no
4413               fi
4414           fi
4415
4416           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
4417 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6; }
4418           # Check whether --enable-stl was given.
4419 if test "${enable_stl+set}" = set; then
4420   enableval=$enable_stl;
4421                           if test "$enableval" = yes; then
4422                             wx_cv_use_stl='wxUSE_STL=yes'
4423                           else
4424                             wx_cv_use_stl='wxUSE_STL=no'
4425                           fi
4426
4427 else
4428
4429                           wx_cv_use_stl='wxUSE_STL=${'DEFAULT_wxUSE_STL":-$defaultval}"
4430
4431 fi
4432
4433
4434           eval "$wx_cv_use_stl"
4435
4436           if test x"$enablestring" = xdisable; then
4437             if test $wxUSE_STL = yes; then
4438               result=no
4439             else
4440               result=yes
4441             fi
4442           else
4443             result=$wxUSE_STL
4444           fi
4445
4446           { echo "$as_me:$LINENO: result: $result" >&5
4447 echo "${ECHO_T}$result" >&6; }
4448
4449
4450           enablestring=
4451           defaultval=
4452           if test -z "$defaultval"; then
4453               if test x"$enablestring" = xdisable; then
4454                   defaultval=yes
4455               else
4456                   defaultval=no
4457               fi
4458           fi
4459
4460           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
4461 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6; }
4462           # Check whether --enable-std_iostreams was given.
4463 if test "${enable_std_iostreams+set}" = set; then
4464   enableval=$enable_std_iostreams;
4465                           if test "$enableval" = yes; then
4466                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4467                           else
4468                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4469                           fi
4470
4471 else
4472
4473                           wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=${'DEFAULT_wxUSE_STD_IOSTREAM":-$defaultval}"
4474
4475 fi
4476
4477
4478           eval "$wx_cv_use_std_iostreams"
4479
4480           if test x"$enablestring" = xdisable; then
4481             if test $wxUSE_STD_IOSTREAM = yes; then
4482               result=no
4483             else
4484               result=yes
4485             fi
4486           else
4487             result=$wxUSE_STD_IOSTREAM
4488           fi
4489
4490           { echo "$as_me:$LINENO: result: $result" >&5
4491 echo "${ECHO_T}$result" >&6; }
4492
4493
4494           enablestring=
4495           defaultval=
4496           if test -z "$defaultval"; then
4497               if test x"$enablestring" = xdisable; then
4498                   defaultval=yes
4499               else
4500                   defaultval=no
4501               fi
4502           fi
4503
4504           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
4505 echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6; }
4506           # Check whether --enable-std_string was given.
4507 if test "${enable_std_string+set}" = set; then
4508   enableval=$enable_std_string;
4509                           if test "$enableval" = yes; then
4510                             wx_cv_use_std_string='wxUSE_STD_STRING=yes'
4511                           else
4512                             wx_cv_use_std_string='wxUSE_STD_STRING=no'
4513                           fi
4514
4515 else
4516
4517                           wx_cv_use_std_string='wxUSE_STD_STRING=${'DEFAULT_wxUSE_STD_STRING":-$defaultval}"
4518
4519 fi
4520
4521
4522           eval "$wx_cv_use_std_string"
4523
4524           if test x"$enablestring" = xdisable; then
4525             if test $wxUSE_STD_STRING = yes; then
4526               result=no
4527             else
4528               result=yes
4529             fi
4530           else
4531             result=$wxUSE_STD_STRING
4532           fi
4533
4534           { echo "$as_me:$LINENO: result: $result" >&5
4535 echo "${ECHO_T}$result" >&6; }
4536
4537
4538           enablestring=disable
4539           defaultval=
4540           if test -z "$defaultval"; then
4541               if test x"$enablestring" = xdisable; then
4542                   defaultval=yes
4543               else
4544                   defaultval=no
4545               fi
4546           fi
4547
4548           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
4549 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6; }
4550           # Check whether --enable-unicode was given.
4551 if test "${enable_unicode+set}" = set; then
4552   enableval=$enable_unicode;
4553                           if test "$enableval" = yes; then
4554                             wx_cv_use_unicode='wxUSE_UNICODE=yes'
4555                           else
4556                             wx_cv_use_unicode='wxUSE_UNICODE=no'
4557                           fi
4558
4559 else
4560
4561                           wx_cv_use_unicode='wxUSE_UNICODE=${'DEFAULT_wxUSE_UNICODE":-$defaultval}"
4562
4563 fi
4564
4565
4566           eval "$wx_cv_use_unicode"
4567
4568           if test x"$enablestring" = xdisable; then
4569             if test $wxUSE_UNICODE = yes; then
4570               result=no
4571             else
4572               result=yes
4573             fi
4574           else
4575             result=$wxUSE_UNICODE
4576           fi
4577
4578           { echo "$as_me:$LINENO: result: $result" >&5
4579 echo "${ECHO_T}$result" >&6; }
4580
4581
4582           enablestring=
4583           defaultval=
4584           if test -z "$defaultval"; then
4585               if test x"$enablestring" = xdisable; then
4586                   defaultval=yes
4587               else
4588                   defaultval=no
4589               fi
4590           fi
4591
4592           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
4593 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6; }
4594           # Check whether --enable-mslu was given.
4595 if test "${enable_mslu+set}" = set; then
4596   enableval=$enable_mslu;
4597                           if test "$enableval" = yes; then
4598                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4599                           else
4600                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4601                           fi
4602
4603 else
4604
4605                           wx_cv_use_mslu='wxUSE_UNICODE_MSLU=${'DEFAULT_wxUSE_UNICODE_MSLU":-$defaultval}"
4606
4607 fi
4608
4609
4610           eval "$wx_cv_use_mslu"
4611
4612           if test x"$enablestring" = xdisable; then
4613             if test $wxUSE_UNICODE_MSLU = yes; then
4614               result=no
4615             else
4616               result=yes
4617             fi
4618           else
4619             result=$wxUSE_UNICODE_MSLU
4620           fi
4621
4622           { echo "$as_me:$LINENO: result: $result" >&5
4623 echo "${ECHO_T}$result" >&6; }
4624
4625
4626           enablestring=
4627           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8" >&5
4628 echo $ECHO_N "checking for --${enablestring:-enable}-utf8... $ECHO_C" >&6; }
4629           # Check whether --enable-utf8 was given.
4630 if test "${enable_utf8+set}" = set; then
4631   enableval=$enable_utf8;
4632                           wx_cv_use_utf8="wxUSE_UNICODE_UTF8='$enableval'"
4633
4634 else
4635
4636                           wx_cv_use_utf8='wxUSE_UNICODE_UTF8='$DEFAULT_wxUSE_UNICODE_UTF8
4637
4638 fi
4639
4640
4641           eval "$wx_cv_use_utf8"
4642
4643           { echo "$as_me:$LINENO: result: $wxUSE_UNICODE_UTF8" >&5
4644 echo "${ECHO_T}$wxUSE_UNICODE_UTF8" >&6; }
4645
4646
4647           enablestring=
4648           defaultval=
4649           if test -z "$defaultval"; then
4650               if test x"$enablestring" = xdisable; then
4651                   defaultval=yes
4652               else
4653                   defaultval=no
4654               fi
4655           fi
4656
4657           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8only" >&5
4658 echo $ECHO_N "checking for --${enablestring:-enable}-utf8only... $ECHO_C" >&6; }
4659           # Check whether --enable-utf8only was given.
4660 if test "${enable_utf8only+set}" = set; then
4661   enableval=$enable_utf8only;
4662                           if test "$enableval" = yes; then
4663                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=yes'
4664                           else
4665                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=no'
4666                           fi
4667
4668 else
4669
4670                           wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=${'DEFAULT_wxUSE_UNICODE_UTF8_LOCALE":-$defaultval}"
4671
4672 fi
4673
4674
4675           eval "$wx_cv_use_utf8only"
4676
4677           if test x"$enablestring" = xdisable; then
4678             if test $wxUSE_UNICODE_UTF8_LOCALE = yes; then
4679               result=no
4680             else
4681               result=yes
4682             fi
4683           else
4684             result=$wxUSE_UNICODE_UTF8_LOCALE
4685           fi
4686
4687           { echo "$as_me:$LINENO: result: $result" >&5
4688 echo "${ECHO_T}$result" >&6; }
4689
4690
4691           enablestring=
4692           defaultval=
4693           if test -z "$defaultval"; then
4694               if test x"$enablestring" = xdisable; then
4695                   defaultval=yes
4696               else
4697                   defaultval=no
4698               fi
4699           fi
4700
4701           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-extended_rtti" >&5
4702 echo $ECHO_N "checking for --${enablestring:-enable}-extended_rtti... $ECHO_C" >&6; }
4703           # Check whether --enable-extended_rtti was given.
4704 if test "${enable_extended_rtti+set}" = set; then
4705   enableval=$enable_extended_rtti;
4706                           if test "$enableval" = yes; then
4707                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=yes'
4708                           else
4709                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=no'
4710                           fi
4711
4712 else
4713
4714                           wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=${'DEFAULT_wxUSE_EXTENDED_RTTI":-$defaultval}"
4715
4716 fi
4717
4718
4719           eval "$wx_cv_use_extended_rtti"
4720
4721           if test x"$enablestring" = xdisable; then
4722             if test $wxUSE_EXTENDED_RTTI = yes; then
4723               result=no
4724             else
4725               result=yes
4726             fi
4727           else
4728             result=$wxUSE_EXTENDED_RTTI
4729           fi
4730
4731           { echo "$as_me:$LINENO: result: $result" >&5
4732 echo "${ECHO_T}$result" >&6; }
4733
4734 if test "$USE_OS2" = 1; then
4735     DEFAULT_wxUSE_OMF=no
4736
4737           enablestring=
4738           defaultval=
4739           if test -z "$defaultval"; then
4740               if test x"$enablestring" = xdisable; then
4741                   defaultval=yes
4742               else
4743                   defaultval=no
4744               fi
4745           fi
4746
4747           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
4748 echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6; }
4749           # Check whether --enable-omf was given.
4750 if test "${enable_omf+set}" = set; then
4751   enableval=$enable_omf;
4752                           if test "$enableval" = yes; then
4753                             wx_cv_use_omf='wxUSE_OMF=yes'
4754                           else
4755                             wx_cv_use_omf='wxUSE_OMF=no'
4756                           fi
4757
4758 else
4759
4760                           wx_cv_use_omf='wxUSE_OMF=${'DEFAULT_wxUSE_OMF":-$defaultval}"
4761
4762 fi
4763
4764
4765           eval "$wx_cv_use_omf"
4766
4767           if test x"$enablestring" = xdisable; then
4768             if test $wxUSE_OMF = yes; then
4769               result=no
4770             else
4771               result=yes
4772             fi
4773           else
4774             result=$wxUSE_OMF
4775           fi
4776
4777           { echo "$as_me:$LINENO: result: $result" >&5
4778 echo "${ECHO_T}$result" >&6; }
4779
4780 fi
4781
4782 if test "$wxUSE_DEBUG" = "yes"; then
4783     DEFAULT_wxUSE_DEBUG_FLAG=yes
4784     DEFAULT_wxUSE_DEBUG_INFO=yes
4785     BUILD=debug
4786 elif test "$wxUSE_DEBUG" = "no"; then
4787     DEFAULT_wxUSE_DEBUG_FLAG=no
4788     DEFAULT_wxUSE_DEBUG_INFO=no
4789     BUILD=release
4790 fi
4791
4792
4793           enablestring=
4794           defaultval=
4795           if test -z "$defaultval"; then
4796               if test x"$enablestring" = xdisable; then
4797                   defaultval=yes
4798               else
4799                   defaultval=no
4800               fi
4801           fi
4802
4803           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
4804 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6; }
4805           # Check whether --enable-debug_flag was given.
4806 if test "${enable_debug_flag+set}" = set; then
4807   enableval=$enable_debug_flag;
4808                           if test "$enableval" = yes; then
4809                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
4810                           else
4811                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
4812                           fi
4813
4814 else
4815
4816                           wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=${'DEFAULT_wxUSE_DEBUG_FLAG":-$defaultval}"
4817
4818 fi
4819
4820
4821           eval "$wx_cv_use_debug_flag"
4822
4823           if test x"$enablestring" = xdisable; then
4824             if test $wxUSE_DEBUG_FLAG = yes; then
4825               result=no
4826             else
4827               result=yes
4828             fi
4829           else
4830             result=$wxUSE_DEBUG_FLAG
4831           fi
4832
4833           { echo "$as_me:$LINENO: result: $result" >&5
4834 echo "${ECHO_T}$result" >&6; }
4835
4836
4837           enablestring=
4838           defaultval=
4839           if test -z "$defaultval"; then
4840               if test x"$enablestring" = xdisable; then
4841                   defaultval=yes
4842               else
4843                   defaultval=no
4844               fi
4845           fi
4846
4847           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
4848 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6; }
4849           # Check whether --enable-debug_info was given.
4850 if test "${enable_debug_info+set}" = set; then
4851   enableval=$enable_debug_info;
4852                           if test "$enableval" = yes; then
4853                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
4854                           else
4855                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
4856                           fi
4857
4858 else
4859
4860                           wx_cv_use_debug_info='wxUSE_DEBUG_INFO=${'DEFAULT_wxUSE_DEBUG_INFO":-$defaultval}"
4861
4862 fi
4863
4864
4865           eval "$wx_cv_use_debug_info"
4866
4867           if test x"$enablestring" = xdisable; then
4868             if test $wxUSE_DEBUG_INFO = yes; then
4869               result=no
4870             else
4871               result=yes
4872             fi
4873           else
4874             result=$wxUSE_DEBUG_INFO
4875           fi
4876
4877           { echo "$as_me:$LINENO: result: $result" >&5
4878 echo "${ECHO_T}$result" >&6; }
4879
4880
4881 if test "$wxUSE_DEBUG_FLAG" = "yes" -a "$wxUSE_DEBUG_INFO" = "yes"; then
4882     wxUSE_DEBUG=yes
4883     BUILD=debug
4884 fi
4885
4886 if test "$wxUSE_DEBUG" = "yes"; then
4887     DEFAULT_wxUSE_OPTIMISE=no
4888 fi
4889
4890
4891           enablestring=disable
4892           defaultval=
4893           if test -z "$defaultval"; then
4894               if test x"$enablestring" = xdisable; then
4895                   defaultval=yes
4896               else
4897                   defaultval=no
4898               fi
4899           fi
4900
4901           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
4902 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6; }
4903           # Check whether --enable-optimise was given.
4904 if test "${enable_optimise+set}" = set; then
4905   enableval=$enable_optimise;
4906                           if test "$enableval" = yes; then
4907                             wx_cv_use_optimise='wxUSE_OPTIMISE=yes'
4908                           else
4909                             wx_cv_use_optimise='wxUSE_OPTIMISE=no'
4910                           fi
4911
4912 else
4913
4914                           wx_cv_use_optimise='wxUSE_OPTIMISE=${'DEFAULT_wxUSE_OPTIMISE":-$defaultval}"
4915
4916 fi
4917
4918
4919           eval "$wx_cv_use_optimise"
4920
4921           if test x"$enablestring" = xdisable; then
4922             if test $wxUSE_OPTIMISE = yes; then
4923               result=no
4924             else
4925               result=yes
4926             fi
4927           else
4928             result=$wxUSE_OPTIMISE
4929           fi
4930
4931           { echo "$as_me:$LINENO: result: $result" >&5
4932 echo "${ECHO_T}$result" >&6; }
4933
4934
4935
4936           enablestring=
4937           defaultval=
4938           if test -z "$defaultval"; then
4939               if test x"$enablestring" = xdisable; then
4940                   defaultval=yes
4941               else
4942                   defaultval=no
4943               fi
4944           fi
4945
4946           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
4947 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6; }
4948           # Check whether --enable-debug_gdb was given.
4949 if test "${enable_debug_gdb+set}" = set; then
4950   enableval=$enable_debug_gdb;
4951                           if test "$enableval" = yes; then
4952                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
4953                           else
4954                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
4955                           fi
4956
4957 else
4958
4959                           wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=${'DEFAULT_wxUSE_DEBUG_GDB":-$defaultval}"
4960
4961 fi
4962
4963
4964           eval "$wx_cv_use_debug_gdb"
4965
4966           if test x"$enablestring" = xdisable; then
4967             if test $wxUSE_DEBUG_GDB = yes; then
4968               result=no
4969             else
4970               result=yes
4971             fi
4972           else
4973             result=$wxUSE_DEBUG_GDB
4974           fi
4975
4976           { echo "$as_me:$LINENO: result: $result" >&5
4977 echo "${ECHO_T}$result" >&6; }
4978
4979
4980           enablestring=
4981           defaultval=
4982           if test -z "$defaultval"; then
4983               if test x"$enablestring" = xdisable; then
4984                   defaultval=yes
4985               else
4986                   defaultval=no
4987               fi
4988           fi
4989
4990           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
4991 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6; }
4992           # Check whether --enable-debug_cntxt was given.
4993 if test "${enable_debug_cntxt+set}" = set; then
4994   enableval=$enable_debug_cntxt;
4995                           if test "$enableval" = yes; then
4996                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
4997                           else
4998                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
4999                           fi
5000
5001 else
5002
5003                           wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=${'DEFAULT_wxUSE_DEBUG_CONTEXT":-$defaultval}"
5004
5005 fi
5006
5007
5008           eval "$wx_cv_use_debug_cntxt"
5009
5010           if test x"$enablestring" = xdisable; then
5011             if test $wxUSE_DEBUG_CONTEXT = yes; then
5012               result=no
5013             else
5014               result=yes
5015             fi
5016           else
5017             result=$wxUSE_DEBUG_CONTEXT
5018           fi
5019
5020           { echo "$as_me:$LINENO: result: $result" >&5
5021 echo "${ECHO_T}$result" >&6; }
5022
5023
5024           enablestring=
5025           defaultval=
5026           if test -z "$defaultval"; then
5027               if test x"$enablestring" = xdisable; then
5028                   defaultval=yes
5029               else
5030                   defaultval=no
5031               fi
5032           fi
5033
5034           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
5035 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6; }
5036           # Check whether --enable-mem_tracing was given.
5037 if test "${enable_mem_tracing+set}" = set; then
5038   enableval=$enable_mem_tracing;
5039                           if test "$enableval" = yes; then
5040                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
5041                           else
5042                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
5043                           fi
5044
5045 else
5046
5047                           wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=${'DEFAULT_wxUSE_MEM_TRACING":-$defaultval}"
5048
5049 fi
5050
5051
5052           eval "$wx_cv_use_mem_tracing"
5053
5054           if test x"$enablestring" = xdisable; then
5055             if test $wxUSE_MEM_TRACING = yes; then
5056               result=no
5057             else
5058               result=yes
5059             fi
5060           else
5061             result=$wxUSE_MEM_TRACING
5062           fi
5063
5064           { echo "$as_me:$LINENO: result: $result" >&5
5065 echo "${ECHO_T}$result" >&6; }
5066
5067
5068           enablestring=
5069           defaultval=
5070           if test -z "$defaultval"; then
5071               if test x"$enablestring" = xdisable; then
5072                   defaultval=yes
5073               else
5074                   defaultval=no
5075               fi
5076           fi
5077
5078           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
5079 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6; }
5080           # Check whether --enable-profile was given.
5081 if test "${enable_profile+set}" = set; then
5082   enableval=$enable_profile;
5083                           if test "$enableval" = yes; then
5084                             wx_cv_use_profile='wxUSE_PROFILE=yes'
5085                           else
5086                             wx_cv_use_profile='wxUSE_PROFILE=no'
5087                           fi
5088
5089 else
5090
5091                           wx_cv_use_profile='wxUSE_PROFILE=${'DEFAULT_wxUSE_PROFILE":-$defaultval}"
5092
5093 fi
5094
5095
5096           eval "$wx_cv_use_profile"
5097
5098           if test x"$enablestring" = xdisable; then
5099             if test $wxUSE_PROFILE = yes; then
5100               result=no
5101             else
5102               result=yes
5103             fi
5104           else
5105             result=$wxUSE_PROFILE
5106           fi
5107
5108           { echo "$as_me:$LINENO: result: $result" >&5
5109 echo "${ECHO_T}$result" >&6; }
5110
5111
5112           enablestring=
5113           defaultval=
5114           if test -z "$defaultval"; then
5115               if test x"$enablestring" = xdisable; then
5116                   defaultval=yes
5117               else
5118                   defaultval=no
5119               fi
5120           fi
5121
5122           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
5123 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6; }
5124           # Check whether --enable-no_rtti was given.
5125 if test "${enable_no_rtti+set}" = set; then
5126   enableval=$enable_no_rtti;
5127                           if test "$enableval" = yes; then
5128                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
5129                           else
5130                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=no'
5131                           fi
5132
5133 else
5134
5135                           wx_cv_use_no_rtti='wxUSE_NO_RTTI=${'DEFAULT_wxUSE_NO_RTTI":-$defaultval}"
5136
5137 fi
5138
5139
5140           eval "$wx_cv_use_no_rtti"
5141
5142           if test x"$enablestring" = xdisable; then
5143             if test $wxUSE_NO_RTTI = yes; then
5144               result=no
5145             else
5146               result=yes
5147             fi
5148           else
5149             result=$wxUSE_NO_RTTI
5150           fi
5151
5152           { echo "$as_me:$LINENO: result: $result" >&5
5153 echo "${ECHO_T}$result" >&6; }
5154
5155
5156           enablestring=
5157           defaultval=
5158           if test -z "$defaultval"; then
5159               if test x"$enablestring" = xdisable; then
5160                   defaultval=yes
5161               else
5162                   defaultval=no
5163               fi
5164           fi
5165
5166           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
5167 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6; }
5168           # Check whether --enable-no_exceptions was given.
5169 if test "${enable_no_exceptions+set}" = set; then
5170   enableval=$enable_no_exceptions;
5171                           if test "$enableval" = yes; then
5172                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
5173                           else
5174                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
5175                           fi
5176
5177 else
5178
5179                           wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=${'DEFAULT_wxUSE_NO_EXCEPTIONS":-$defaultval}"
5180
5181 fi
5182
5183
5184           eval "$wx_cv_use_no_exceptions"
5185
5186           if test x"$enablestring" = xdisable; then
5187             if test $wxUSE_NO_EXCEPTIONS = yes; then
5188               result=no
5189             else
5190               result=yes
5191             fi
5192           else
5193             result=$wxUSE_NO_EXCEPTIONS
5194           fi
5195
5196           { echo "$as_me:$LINENO: result: $result" >&5
5197 echo "${ECHO_T}$result" >&6; }
5198
5199
5200           enablestring=
5201           defaultval=
5202           if test -z "$defaultval"; then
5203               if test x"$enablestring" = xdisable; then
5204                   defaultval=yes
5205               else
5206                   defaultval=no
5207               fi
5208           fi
5209
5210           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
5211 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6; }
5212           # Check whether --enable-permissive was given.
5213 if test "${enable_permissive+set}" = set; then
5214   enableval=$enable_permissive;
5215                           if test "$enableval" = yes; then
5216                             wx_cv_use_permissive='wxUSE_PERMISSIVE=yes'
5217                           else
5218                             wx_cv_use_permissive='wxUSE_PERMISSIVE=no'
5219                           fi
5220
5221 else
5222
5223                           wx_cv_use_permissive='wxUSE_PERMISSIVE=${'DEFAULT_wxUSE_PERMISSIVE":-$defaultval}"
5224
5225 fi
5226
5227
5228           eval "$wx_cv_use_permissive"
5229
5230           if test x"$enablestring" = xdisable; then
5231             if test $wxUSE_PERMISSIVE = yes; then
5232               result=no
5233             else
5234               result=yes
5235             fi
5236           else
5237             result=$wxUSE_PERMISSIVE
5238           fi
5239
5240           { echo "$as_me:$LINENO: result: $result" >&5
5241 echo "${ECHO_T}$result" >&6; }
5242
5243
5244           enablestring=
5245           defaultval=
5246           if test -z "$defaultval"; then
5247               if test x"$enablestring" = xdisable; then
5248                   defaultval=yes
5249               else
5250                   defaultval=no
5251               fi
5252           fi
5253
5254           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
5255 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6; }
5256           # Check whether --enable-no_deps was given.
5257 if test "${enable_no_deps+set}" = set; then
5258   enableval=$enable_no_deps;
5259                           if test "$enableval" = yes; then
5260                             wx_cv_use_no_deps='wxUSE_NO_DEPS=yes'
5261                           else
5262                             wx_cv_use_no_deps='wxUSE_NO_DEPS=no'
5263                           fi
5264
5265 else
5266
5267                           wx_cv_use_no_deps='wxUSE_NO_DEPS=${'DEFAULT_wxUSE_NO_DEPS":-$defaultval}"
5268
5269 fi
5270
5271
5272           eval "$wx_cv_use_no_deps"
5273
5274           if test x"$enablestring" = xdisable; then
5275             if test $wxUSE_NO_DEPS = yes; then
5276               result=no
5277             else
5278               result=yes
5279             fi
5280           else
5281             result=$wxUSE_NO_DEPS
5282           fi
5283
5284           { echo "$as_me:$LINENO: result: $result" >&5
5285 echo "${ECHO_T}$result" >&6; }
5286
5287
5288           enablestring=disable
5289           defaultval=
5290           if test -z "$defaultval"; then
5291               if test x"$enablestring" = xdisable; then
5292                   defaultval=yes
5293               else
5294                   defaultval=no
5295               fi
5296           fi
5297
5298           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-vararg_macros" >&5
5299 echo $ECHO_N "checking for --${enablestring:-enable}-vararg_macros... $ECHO_C" >&6; }
5300           # Check whether --enable-vararg_macros was given.
5301 if test "${enable_vararg_macros+set}" = set; then
5302   enableval=$enable_vararg_macros;
5303                           if test "$enableval" = yes; then
5304                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=yes'
5305                           else
5306                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=no'
5307                           fi
5308
5309 else
5310
5311                           wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=${'DEFAULT_wxUSE_VARARG_MACROS":-$defaultval}"
5312
5313 fi
5314
5315
5316           eval "$wx_cv_use_vararg_macros"
5317
5318           if test x"$enablestring" = xdisable; then
5319             if test $wxUSE_VARARG_MACROS = yes; then
5320               result=no
5321             else
5322               result=yes
5323             fi
5324           else
5325             result=$wxUSE_VARARG_MACROS
5326           fi
5327
5328           { echo "$as_me:$LINENO: result: $result" >&5
5329 echo "${ECHO_T}$result" >&6; }
5330
5331
5332           enablestring=
5333           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
5334 echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6; }
5335           # Check whether --enable-universal_binary was given.
5336 if test "${enable_universal_binary+set}" = set; then
5337   enableval=$enable_universal_binary;
5338                           wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
5339
5340 else
5341
5342                           wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
5343
5344 fi
5345
5346
5347           eval "$wx_cv_use_universal_binary"
5348
5349           { echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
5350 echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6; }
5351
5352
5353
5354           enablestring=
5355           defaultval=
5356           if test -z "$defaultval"; then
5357               if test x"$enablestring" = xdisable; then
5358                   defaultval=yes
5359               else
5360                   defaultval=no
5361               fi
5362           fi
5363
5364           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
5365 echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6; }
5366           # Check whether --enable-compat26 was given.
5367 if test "${enable_compat26+set}" = set; then
5368   enableval=$enable_compat26;
5369                           if test "$enableval" = yes; then
5370                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
5371                           else
5372                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
5373                           fi
5374
5375 else
5376
5377                           wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=${'DEFAULT_WXWIN_COMPATIBILITY_2_6":-$defaultval}"
5378
5379 fi
5380
5381
5382           eval "$wx_cv_use_compat26"
5383
5384           if test x"$enablestring" = xdisable; then
5385             if test $WXWIN_COMPATIBILITY_2_6 = yes; then
5386               result=no
5387             else
5388               result=yes
5389             fi
5390           else
5391             result=$WXWIN_COMPATIBILITY_2_6
5392           fi
5393
5394           { echo "$as_me:$LINENO: result: $result" >&5
5395 echo "${ECHO_T}$result" >&6; }
5396
5397
5398           enablestring=disable
5399           defaultval=
5400           if test -z "$defaultval"; then
5401               if test x"$enablestring" = xdisable; then
5402                   defaultval=yes
5403               else
5404                   defaultval=no
5405               fi
5406           fi
5407
5408           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat28" >&5
5409 echo $ECHO_N "checking for --${enablestring:-enable}-compat28... $ECHO_C" >&6; }
5410           # Check whether --enable-compat28 was given.
5411 if test "${enable_compat28+set}" = set; then
5412   enableval=$enable_compat28;
5413                           if test "$enableval" = yes; then
5414                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=yes'
5415                           else
5416                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=no'
5417                           fi
5418
5419 else
5420
5421                           wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=${'DEFAULT_WXWIN_COMPATIBILITY_2_8":-$defaultval}"
5422
5423 fi
5424
5425
5426           eval "$wx_cv_use_compat28"
5427
5428           if test x"$enablestring" = xdisable; then
5429             if test $WXWIN_COMPATIBILITY_2_8 = yes; then
5430               result=no
5431             else
5432               result=yes
5433             fi
5434           else
5435             result=$WXWIN_COMPATIBILITY_2_8
5436           fi
5437
5438           { echo "$as_me:$LINENO: result: $result" >&5
5439 echo "${ECHO_T}$result" >&6; }
5440
5441
5442 cat >>confdefs.h <<\_ACEOF
5443 #define wxEVENTS_COMPATIBILITY_2_8 0
5444 _ACEOF
5445
5446
5447
5448           enablestring=disable
5449           defaultval=
5450           if test -z "$defaultval"; then
5451               if test x"$enablestring" = xdisable; then
5452                   defaultval=yes
5453               else
5454                   defaultval=no
5455               fi
5456           fi
5457
5458           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
5459 echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6; }
5460           # Check whether --enable-rpath was given.
5461 if test "${enable_rpath+set}" = set; then
5462   enableval=$enable_rpath;
5463                           if test "$enableval" = yes; then
5464                             wx_cv_use_rpath='wxUSE_RPATH=yes'
5465                           else
5466                             wx_cv_use_rpath='wxUSE_RPATH=no'
5467                           fi
5468
5469 else
5470
5471                           wx_cv_use_rpath='wxUSE_RPATH=${'DEFAULT_wxUSE_RPATH":-$defaultval}"
5472
5473 fi
5474
5475
5476           eval "$wx_cv_use_rpath"
5477
5478           if test x"$enablestring" = xdisable; then
5479             if test $wxUSE_RPATH = yes; then
5480               result=no
5481             else
5482               result=yes
5483             fi
5484           else
5485             result=$wxUSE_RPATH
5486           fi
5487
5488           { echo "$as_me:$LINENO: result: $result" >&5
5489 echo "${ECHO_T}$result" >&6; }
5490
5491
5492
5493           enablestring=
5494           defaultval=
5495           if test -z "$defaultval"; then
5496               if test x"$enablestring" = xdisable; then
5497                   defaultval=yes
5498               else
5499                   defaultval=no
5500               fi
5501           fi
5502
5503           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-objc_uniquifying" >&5
5504 echo $ECHO_N "checking for --${enablestring:-enable}-objc_uniquifying... $ECHO_C" >&6; }
5505           # Check whether --enable-objc_uniquifying was given.
5506 if test "${enable_objc_uniquifying+set}" = set; then
5507   enableval=$enable_objc_uniquifying;
5508                           if test "$enableval" = yes; then
5509                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=yes'
5510                           else
5511                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=no'
5512                           fi
5513
5514 else
5515
5516                           wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=${'DEFAULT_wxUSE_OBJC_UNIQUIFYING":-$defaultval}"
5517
5518 fi
5519
5520
5521           eval "$wx_cv_use_objc_uniquifying"
5522
5523           if test x"$enablestring" = xdisable; then
5524             if test $wxUSE_OBJC_UNIQUIFYING = yes; then
5525               result=no
5526             else
5527               result=yes
5528             fi
5529           else
5530             result=$wxUSE_OBJC_UNIQUIFYING
5531           fi
5532
5533           { echo "$as_me:$LINENO: result: $result" >&5
5534 echo "${ECHO_T}$result" >&6; }
5535
5536
5537
5538           enablestring=disable
5539           defaultval=
5540           if test -z "$defaultval"; then
5541               if test x"$enablestring" = xdisable; then
5542                   defaultval=yes
5543               else
5544                   defaultval=no
5545               fi
5546           fi
5547
5548           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-visibility" >&5
5549 echo $ECHO_N "checking for --${enablestring:-enable}-visibility... $ECHO_C" >&6; }
5550           # Check whether --enable-visibility was given.
5551 if test "${enable_visibility+set}" = set; then
5552   enableval=$enable_visibility;
5553                           if test "$enableval" = yes; then
5554                             wx_cv_use_visibility='wxUSE_VISIBILITY=yes'
5555                           else
5556                             wx_cv_use_visibility='wxUSE_VISIBILITY=no'
5557                           fi
5558
5559 else
5560
5561                           wx_cv_use_visibility='wxUSE_VISIBILITY=${'DEFAULT_wxUSE_VISIBILITY":-$defaultval}"
5562
5563 fi
5564
5565
5566           eval "$wx_cv_use_visibility"
5567
5568           if test x"$enablestring" = xdisable; then
5569             if test $wxUSE_VISIBILITY = yes; then
5570               result=no
5571             else
5572               result=yes
5573             fi
5574           else
5575             result=$wxUSE_VISIBILITY
5576           fi
5577
5578           { echo "$as_me:$LINENO: result: $result" >&5
5579 echo "${ECHO_T}$result" >&6; }
5580
5581
5582
5583
5584           enablestring=
5585           defaultval=$wxUSE_ALL_FEATURES
5586           if test -z "$defaultval"; then
5587               if test x"$enablestring" = xdisable; then
5588                   defaultval=yes
5589               else
5590                   defaultval=no
5591               fi
5592           fi
5593
5594           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
5595 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6; }
5596           # Check whether --enable-intl was given.
5597 if test "${enable_intl+set}" = set; then
5598   enableval=$enable_intl;
5599                           if test "$enableval" = yes; then
5600                             wx_cv_use_intl='wxUSE_INTL=yes'
5601                           else
5602                             wx_cv_use_intl='wxUSE_INTL=no'
5603                           fi
5604
5605 else
5606
5607                           wx_cv_use_intl='wxUSE_INTL=${'DEFAULT_wxUSE_INTL":-$defaultval}"
5608
5609 fi
5610
5611
5612           eval "$wx_cv_use_intl"
5613
5614           if test x"$enablestring" = xdisable; then
5615             if test $wxUSE_INTL = yes; then
5616               result=no
5617             else
5618               result=yes
5619             fi
5620           else
5621             result=$wxUSE_INTL
5622           fi
5623
5624           { echo "$as_me:$LINENO: result: $result" >&5
5625 echo "${ECHO_T}$result" >&6; }
5626
5627
5628           enablestring=
5629           defaultval=$wxUSE_ALL_FEATURES
5630           if test -z "$defaultval"; then
5631               if test x"$enablestring" = xdisable; then
5632                   defaultval=yes
5633               else
5634                   defaultval=no
5635               fi
5636           fi
5637
5638           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xlocale" >&5
5639 echo $ECHO_N "checking for --${enablestring:-enable}-xlocale... $ECHO_C" >&6; }
5640           # Check whether --enable-xlocale was given.
5641 if test "${enable_xlocale+set}" = set; then
5642   enableval=$enable_xlocale;
5643                           if test "$enableval" = yes; then
5644                             wx_cv_use_xlocale='wxUSE_XLOCALE=yes'
5645                           else
5646                             wx_cv_use_xlocale='wxUSE_XLOCALE=no'
5647                           fi
5648
5649 else
5650
5651                           wx_cv_use_xlocale='wxUSE_XLOCALE=${'DEFAULT_wxUSE_XLOCALE":-$defaultval}"
5652
5653 fi
5654
5655
5656           eval "$wx_cv_use_xlocale"
5657
5658           if test x"$enablestring" = xdisable; then
5659             if test $wxUSE_XLOCALE = yes; then
5660               result=no
5661             else
5662               result=yes
5663             fi
5664           else
5665             result=$wxUSE_XLOCALE
5666           fi
5667
5668           { echo "$as_me:$LINENO: result: $result" >&5
5669 echo "${ECHO_T}$result" >&6; }
5670
5671
5672           enablestring=
5673           defaultval=$wxUSE_ALL_FEATURES
5674           if test -z "$defaultval"; then
5675               if test x"$enablestring" = xdisable; then
5676                   defaultval=yes
5677               else
5678                   defaultval=no
5679               fi
5680           fi
5681
5682           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
5683 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6; }
5684           # Check whether --enable-config was given.
5685 if test "${enable_config+set}" = set; then
5686   enableval=$enable_config;
5687                           if test "$enableval" = yes; then
5688                             wx_cv_use_config='wxUSE_CONFIG=yes'
5689                           else
5690                             wx_cv_use_config='wxUSE_CONFIG=no'
5691                           fi
5692
5693 else
5694
5695                           wx_cv_use_config='wxUSE_CONFIG=${'DEFAULT_wxUSE_CONFIG":-$defaultval}"
5696
5697 fi
5698
5699
5700           eval "$wx_cv_use_config"
5701
5702           if test x"$enablestring" = xdisable; then
5703             if test $wxUSE_CONFIG = yes; then
5704               result=no
5705             else
5706               result=yes
5707             fi
5708           else
5709             result=$wxUSE_CONFIG
5710           fi
5711
5712           { echo "$as_me:$LINENO: result: $result" >&5
5713 echo "${ECHO_T}$result" >&6; }
5714
5715
5716
5717           enablestring=
5718           defaultval=$wxUSE_ALL_FEATURES
5719           if test -z "$defaultval"; then
5720               if test x"$enablestring" = xdisable; then
5721                   defaultval=yes
5722               else
5723                   defaultval=no
5724               fi
5725           fi
5726
5727           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
5728 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6; }
5729           # Check whether --enable-protocols was given.
5730 if test "${enable_protocols+set}" = set; then
5731   enableval=$enable_protocols;
5732                           if test "$enableval" = yes; then
5733                             wx_cv_use_protocols='wxUSE_PROTOCOL=yes'
5734                           else
5735                             wx_cv_use_protocols='wxUSE_PROTOCOL=no'
5736                           fi
5737
5738 else
5739
5740                           wx_cv_use_protocols='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
5741
5742 fi
5743
5744
5745           eval "$wx_cv_use_protocols"
5746
5747           if test x"$enablestring" = xdisable; then
5748             if test $wxUSE_PROTOCOL = yes; then
5749               result=no
5750             else
5751               result=yes
5752             fi
5753           else
5754             result=$wxUSE_PROTOCOL
5755           fi
5756
5757           { echo "$as_me:$LINENO: result: $result" >&5
5758 echo "${ECHO_T}$result" >&6; }
5759
5760
5761           enablestring=
5762           defaultval=$wxUSE_ALL_FEATURES
5763           if test -z "$defaultval"; then
5764               if test x"$enablestring" = xdisable; then
5765                   defaultval=yes
5766               else
5767                   defaultval=no
5768               fi
5769           fi
5770
5771           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
5772 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6; }
5773           # Check whether --enable-ftp was given.
5774 if test "${enable_ftp+set}" = set; then
5775   enableval=$enable_ftp;
5776                           if test "$enableval" = yes; then
5777                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
5778                           else
5779                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
5780                           fi
5781
5782 else
5783
5784                           wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
5785
5786 fi
5787
5788
5789           eval "$wx_cv_use_ftp"
5790
5791           if test x"$enablestring" = xdisable; then
5792             if test $wxUSE_PROTOCOL_FTP = yes; then
5793               result=no
5794             else
5795               result=yes
5796             fi
5797           else
5798             result=$wxUSE_PROTOCOL_FTP
5799           fi
5800
5801           { echo "$as_me:$LINENO: result: $result" >&5
5802 echo "${ECHO_T}$result" >&6; }
5803
5804
5805           enablestring=
5806           defaultval=$wxUSE_ALL_FEATURES
5807           if test -z "$defaultval"; then
5808               if test x"$enablestring" = xdisable; then
5809                   defaultval=yes
5810               else
5811                   defaultval=no
5812               fi
5813           fi
5814
5815           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
5816 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6; }
5817           # Check whether --enable-http was given.
5818 if test "${enable_http+set}" = set; then
5819   enableval=$enable_http;
5820                           if test "$enableval" = yes; then
5821                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
5822                           else
5823                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
5824                           fi
5825
5826 else
5827
5828                           wx_cv_use_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
5829
5830 fi
5831
5832
5833           eval "$wx_cv_use_http"
5834
5835           if test x"$enablestring" = xdisable; then
5836             if test $wxUSE_PROTOCOL_HTTP = yes; then
5837               result=no
5838             else
5839               result=yes
5840             fi
5841           else
5842             result=$wxUSE_PROTOCOL_HTTP
5843           fi
5844
5845           { echo "$as_me:$LINENO: result: $result" >&5
5846 echo "${ECHO_T}$result" >&6; }
5847
5848
5849           enablestring=
5850           defaultval=$wxUSE_ALL_FEATURES
5851           if test -z "$defaultval"; then
5852               if test x"$enablestring" = xdisable; then
5853                   defaultval=yes
5854               else
5855                   defaultval=no
5856               fi
5857           fi
5858
5859           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
5860 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6; }
5861           # Check whether --enable-fileproto was given.
5862 if test "${enable_fileproto+set}" = set; then
5863   enableval=$enable_fileproto;
5864                           if test "$enableval" = yes; then
5865                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
5866                           else
5867                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
5868                           fi
5869
5870 else
5871
5872                           wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
5873
5874 fi
5875
5876
5877           eval "$wx_cv_use_fileproto"
5878
5879           if test x"$enablestring" = xdisable; then
5880             if test $wxUSE_PROTOCOL_FILE = yes; then
5881               result=no
5882             else
5883               result=yes
5884             fi
5885           else
5886             result=$wxUSE_PROTOCOL_FILE
5887           fi
5888
5889           { echo "$as_me:$LINENO: result: $result" >&5
5890 echo "${ECHO_T}$result" >&6; }
5891
5892
5893           enablestring=
5894           defaultval=$wxUSE_ALL_FEATURES
5895           if test -z "$defaultval"; then
5896               if test x"$enablestring" = xdisable; then
5897                   defaultval=yes
5898               else
5899                   defaultval=no
5900               fi
5901           fi
5902
5903           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
5904 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6; }
5905           # Check whether --enable-sockets was given.
5906 if test "${enable_sockets+set}" = set; then
5907   enableval=$enable_sockets;
5908                           if test "$enableval" = yes; then
5909                             wx_cv_use_sockets='wxUSE_SOCKETS=yes'
5910                           else
5911                             wx_cv_use_sockets='wxUSE_SOCKETS=no'
5912                           fi
5913
5914 else
5915
5916                           wx_cv_use_sockets='wxUSE_SOCKETS=${'DEFAULT_wxUSE_SOCKETS":-$defaultval}"
5917
5918 fi
5919
5920
5921           eval "$wx_cv_use_sockets"
5922
5923           if test x"$enablestring" = xdisable; then
5924             if test $wxUSE_SOCKETS = yes; then
5925               result=no
5926             else
5927               result=yes
5928             fi
5929           else
5930             result=$wxUSE_SOCKETS
5931           fi
5932
5933           { echo "$as_me:$LINENO: result: $result" >&5
5934 echo "${ECHO_T}$result" >&6; }
5935
5936
5937           enablestring=
5938           defaultval=$wxUSE_ALL_FEATURES
5939           if test -z "$defaultval"; then
5940               if test x"$enablestring" = xdisable; then
5941                   defaultval=yes
5942               else
5943                   defaultval=no
5944               fi
5945           fi
5946
5947           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipv6" >&5
5948 echo $ECHO_N "checking for --${enablestring:-enable}-ipv6... $ECHO_C" >&6; }
5949           # Check whether --enable-ipv6 was given.
5950 if test "${enable_ipv6+set}" = set; then
5951   enableval=$enable_ipv6;
5952                           if test "$enableval" = yes; then
5953                             wx_cv_use_ipv6='wxUSE_IPV6=yes'
5954                           else
5955                             wx_cv_use_ipv6='wxUSE_IPV6=no'
5956                           fi
5957
5958 else
5959
5960                           wx_cv_use_ipv6='wxUSE_IPV6=${'DEFAULT_wxUSE_IPV6":-$defaultval}"
5961
5962 fi
5963
5964
5965           eval "$wx_cv_use_ipv6"
5966
5967           if test x"$enablestring" = xdisable; then
5968             if test $wxUSE_IPV6 = yes; then
5969               result=no
5970             else
5971               result=yes
5972             fi
5973           else
5974             result=$wxUSE_IPV6
5975           fi
5976
5977           { echo "$as_me:$LINENO: result: $result" >&5
5978 echo "${ECHO_T}$result" >&6; }
5979
5980
5981           enablestring=
5982           defaultval=$wxUSE_ALL_FEATURES
5983           if test -z "$defaultval"; then
5984               if test x"$enablestring" = xdisable; then
5985                   defaultval=yes
5986               else
5987                   defaultval=no
5988               fi
5989           fi
5990
5991           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
5992 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6; }
5993           # Check whether --enable-ole was given.
5994 if test "${enable_ole+set}" = set; then
5995   enableval=$enable_ole;
5996                           if test "$enableval" = yes; then
5997                             wx_cv_use_ole='wxUSE_OLE=yes'
5998                           else
5999                             wx_cv_use_ole='wxUSE_OLE=no'
6000                           fi
6001
6002 else
6003
6004                           wx_cv_use_ole='wxUSE_OLE=${'DEFAULT_wxUSE_OLE":-$defaultval}"
6005
6006 fi
6007
6008
6009           eval "$wx_cv_use_ole"
6010
6011           if test x"$enablestring" = xdisable; then
6012             if test $wxUSE_OLE = yes; then
6013               result=no
6014             else
6015               result=yes
6016             fi
6017           else
6018             result=$wxUSE_OLE
6019           fi
6020
6021           { echo "$as_me:$LINENO: result: $result" >&5
6022 echo "${ECHO_T}$result" >&6; }
6023
6024
6025           enablestring=
6026           defaultval=$wxUSE_ALL_FEATURES
6027           if test -z "$defaultval"; then
6028               if test x"$enablestring" = xdisable; then
6029                   defaultval=yes
6030               else
6031                   defaultval=no
6032               fi
6033           fi
6034
6035           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
6036 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6; }
6037           # Check whether --enable-dataobj was given.
6038 if test "${enable_dataobj+set}" = set; then
6039   enableval=$enable_dataobj;
6040                           if test "$enableval" = yes; then
6041                             wx_cv_use_dataobj='wxUSE_DATAOBJ=yes'
6042                           else
6043                             wx_cv_use_dataobj='wxUSE_DATAOBJ=no'
6044                           fi
6045
6046 else
6047
6048                           wx_cv_use_dataobj='wxUSE_DATAOBJ=${'DEFAULT_wxUSE_DATAOBJ":-$defaultval}"
6049
6050 fi
6051
6052
6053           eval "$wx_cv_use_dataobj"
6054
6055           if test x"$enablestring" = xdisable; then
6056             if test $wxUSE_DATAOBJ = yes; then
6057               result=no
6058             else
6059               result=yes
6060             fi
6061           else
6062             result=$wxUSE_DATAOBJ
6063           fi
6064
6065           { echo "$as_me:$LINENO: result: $result" >&5
6066 echo "${ECHO_T}$result" >&6; }
6067
6068
6069
6070           enablestring=
6071           defaultval=$wxUSE_ALL_FEATURES
6072           if test -z "$defaultval"; then
6073               if test x"$enablestring" = xdisable; then
6074                   defaultval=yes
6075               else
6076                   defaultval=no
6077               fi
6078           fi
6079
6080           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
6081 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6; }
6082           # Check whether --enable-ipc was given.
6083 if test "${enable_ipc+set}" = set; then
6084   enableval=$enable_ipc;
6085                           if test "$enableval" = yes; then
6086                             wx_cv_use_ipc='wxUSE_IPC=yes'
6087                           else
6088                             wx_cv_use_ipc='wxUSE_IPC=no'
6089                           fi
6090
6091 else
6092
6093                           wx_cv_use_ipc='wxUSE_IPC=${'DEFAULT_wxUSE_IPC":-$defaultval}"
6094
6095 fi
6096
6097
6098           eval "$wx_cv_use_ipc"
6099
6100           if test x"$enablestring" = xdisable; then
6101             if test $wxUSE_IPC = yes; then
6102               result=no
6103             else
6104               result=yes
6105             fi
6106           else
6107             result=$wxUSE_IPC
6108           fi
6109
6110           { echo "$as_me:$LINENO: result: $result" >&5
6111 echo "${ECHO_T}$result" >&6; }
6112
6113
6114
6115           enablestring=
6116           defaultval=$wxUSE_ALL_FEATURES
6117           if test -z "$defaultval"; then
6118               if test x"$enablestring" = xdisable; then
6119                   defaultval=yes
6120               else
6121                   defaultval=no
6122               fi
6123           fi
6124
6125           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-baseevtloop" >&5
6126 echo $ECHO_N "checking for --${enablestring:-enable}-baseevtloop... $ECHO_C" >&6; }
6127           # Check whether --enable-baseevtloop was given.
6128 if test "${enable_baseevtloop+set}" = set; then
6129   enableval=$enable_baseevtloop;
6130                           if test "$enableval" = yes; then
6131                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=yes'
6132                           else
6133                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=no'
6134                           fi
6135
6136 else
6137
6138                           wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=${'DEFAULT_wxUSE_CONSOLE_EVENTLOOP":-$defaultval}"
6139
6140 fi
6141
6142
6143           eval "$wx_cv_use_baseevtloop"
6144
6145           if test x"$enablestring" = xdisable; then
6146             if test $wxUSE_CONSOLE_EVENTLOOP = yes; then
6147               result=no
6148             else
6149               result=yes
6150             fi
6151           else
6152             result=$wxUSE_CONSOLE_EVENTLOOP
6153           fi
6154
6155           { echo "$as_me:$LINENO: result: $result" >&5
6156 echo "${ECHO_T}$result" >&6; }
6157
6158
6159           enablestring=
6160           defaultval=$wxUSE_ALL_FEATURES
6161           if test -z "$defaultval"; then
6162               if test x"$enablestring" = xdisable; then
6163                   defaultval=yes
6164               else
6165                   defaultval=no
6166               fi
6167           fi
6168
6169           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-epollloop" >&5
6170 echo $ECHO_N "checking for --${enablestring:-enable}-epollloop... $ECHO_C" >&6; }
6171           # Check whether --enable-epollloop was given.
6172 if test "${enable_epollloop+set}" = set; then
6173   enableval=$enable_epollloop;
6174                           if test "$enableval" = yes; then
6175                             wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=yes'
6176                           else
6177                             wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=no'
6178                           fi
6179
6180 else
6181
6182                           wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=${'DEFAULT_wxUSE_EPOLL_DISPATCHER":-$defaultval}"
6183
6184 fi
6185
6186
6187           eval "$wx_cv_use_epollloop"
6188
6189           if test x"$enablestring" = xdisable; then
6190             if test $wxUSE_EPOLL_DISPATCHER = yes; then
6191               result=no
6192             else
6193               result=yes
6194             fi
6195           else
6196             result=$wxUSE_EPOLL_DISPATCHER
6197           fi
6198
6199           { echo "$as_me:$LINENO: result: $result" >&5
6200 echo "${ECHO_T}$result" >&6; }
6201
6202
6203           enablestring=
6204           defaultval=$wxUSE_ALL_FEATURES
6205           if test -z "$defaultval"; then
6206               if test x"$enablestring" = xdisable; then
6207                   defaultval=yes
6208               else
6209                   defaultval=no
6210               fi
6211           fi
6212
6213           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-selectloop" >&5
6214 echo $ECHO_N "checking for --${enablestring:-enable}-selectloop... $ECHO_C" >&6; }
6215           # Check whether --enable-selectloop was given.
6216 if test "${enable_selectloop+set}" = set; then
6217   enableval=$enable_selectloop;
6218                           if test "$enableval" = yes; then
6219                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=yes'
6220                           else
6221                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=no'
6222                           fi
6223
6224 else
6225
6226                           wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=${'DEFAULT_wxUSE_SELECT_DISPATCHER":-$defaultval}"
6227
6228 fi
6229
6230
6231           eval "$wx_cv_use_selectloop"
6232
6233           if test x"$enablestring" = xdisable; then
6234             if test $wxUSE_SELECT_DISPATCHER = yes; then
6235               result=no
6236             else
6237               result=yes
6238             fi
6239           else
6240             result=$wxUSE_SELECT_DISPATCHER
6241           fi
6242
6243           { echo "$as_me:$LINENO: result: $result" >&5
6244 echo "${ECHO_T}$result" >&6; }
6245
6246
6247
6248           enablestring=
6249           defaultval=$wxUSE_ALL_FEATURES
6250           if test -z "$defaultval"; then
6251               if test x"$enablestring" = xdisable; then
6252                   defaultval=yes
6253               else
6254                   defaultval=no
6255               fi
6256           fi
6257
6258           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
6259 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6; }
6260           # Check whether --enable-apple_ieee was given.
6261 if test "${enable_apple_ieee+set}" = set; then
6262   enableval=$enable_apple_ieee;
6263                           if test "$enableval" = yes; then
6264                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
6265                           else
6266                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
6267                           fi
6268
6269 else
6270
6271                           wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=${'DEFAULT_wxUSE_APPLE_IEEE":-$defaultval}"
6272
6273 fi
6274
6275
6276           eval "$wx_cv_use_apple_ieee"
6277
6278           if test x"$enablestring" = xdisable; then
6279             if test $wxUSE_APPLE_IEEE = yes; then
6280               result=no
6281             else
6282               result=yes
6283             fi
6284           else
6285             result=$wxUSE_APPLE_IEEE
6286           fi
6287
6288           { echo "$as_me:$LINENO: result: $result" >&5
6289 echo "${ECHO_T}$result" >&6; }
6290
6291
6292           enablestring=
6293           defaultval=$wxUSE_ALL_FEATURES
6294           if test -z "$defaultval"; then
6295               if test x"$enablestring" = xdisable; then
6296                   defaultval=yes
6297               else
6298                   defaultval=no
6299               fi
6300           fi
6301
6302           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
6303 echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6; }
6304           # Check whether --enable-arcstream was given.
6305 if test "${enable_arcstream+set}" = set; then
6306   enableval=$enable_arcstream;
6307                           if test "$enableval" = yes; then
6308                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
6309                           else
6310                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
6311                           fi
6312
6313 else
6314
6315                           wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=${'DEFAULT_wxUSE_ARCHIVE_STREAMS":-$defaultval}"
6316
6317 fi
6318
6319
6320           eval "$wx_cv_use_arcstream"
6321
6322           if test x"$enablestring" = xdisable; then
6323             if test $wxUSE_ARCHIVE_STREAMS = yes; then
6324               result=no
6325             else
6326               result=yes
6327             fi
6328           else
6329             result=$wxUSE_ARCHIVE_STREAMS
6330           fi
6331
6332           { echo "$as_me:$LINENO: result: $result" >&5
6333 echo "${ECHO_T}$result" >&6; }
6334
6335
6336           enablestring=
6337           defaultval=$wxUSE_ALL_FEATURES
6338           if test -z "$defaultval"; then
6339               if test x"$enablestring" = xdisable; then
6340                   defaultval=yes
6341               else
6342                   defaultval=no
6343               fi
6344           fi
6345
6346           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-base64" >&5
6347 echo $ECHO_N "checking for --${enablestring:-enable}-base64... $ECHO_C" >&6; }
6348           # Check whether --enable-base64 was given.
6349 if test "${enable_base64+set}" = set; then
6350   enableval=$enable_base64;
6351                           if test "$enableval" = yes; then
6352                             wx_cv_use_base64='wxUSE_BASE64=yes'
6353                           else
6354                             wx_cv_use_base64='wxUSE_BASE64=no'
6355                           fi
6356
6357 else
6358
6359                           wx_cv_use_base64='wxUSE_BASE64=${'DEFAULT_wxUSE_BASE64":-$defaultval}"
6360
6361 fi
6362
6363
6364           eval "$wx_cv_use_base64"
6365
6366           if test x"$enablestring" = xdisable; then
6367             if test $wxUSE_BASE64 = yes; then
6368               result=no
6369             else
6370               result=yes
6371             fi
6372           else
6373             result=$wxUSE_BASE64
6374           fi
6375
6376           { echo "$as_me:$LINENO: result: $result" >&5
6377 echo "${ECHO_T}$result" >&6; }
6378
6379
6380           enablestring=
6381           defaultval=$wxUSE_ALL_FEATURES
6382           if test -z "$defaultval"; then
6383               if test x"$enablestring" = xdisable; then
6384                   defaultval=yes
6385               else
6386                   defaultval=no
6387               fi
6388           fi
6389
6390           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
6391 echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6; }
6392           # Check whether --enable-backtrace was given.
6393 if test "${enable_backtrace+set}" = set; then
6394   enableval=$enable_backtrace;
6395                           if test "$enableval" = yes; then
6396                             wx_cv_use_backtrace='wxUSE_STACKWALKER=yes'
6397                           else
6398                             wx_cv_use_backtrace='wxUSE_STACKWALKER=no'
6399                           fi
6400
6401 else
6402
6403                           wx_cv_use_backtrace='wxUSE_STACKWALKER=${'DEFAULT_wxUSE_STACKWALKER":-$defaultval}"
6404
6405 fi
6406
6407
6408           eval "$wx_cv_use_backtrace"
6409
6410           if test x"$enablestring" = xdisable; then
6411             if test $wxUSE_STACKWALKER = yes; then
6412               result=no
6413             else
6414               result=yes
6415             fi
6416           else
6417             result=$wxUSE_STACKWALKER
6418           fi
6419
6420           { echo "$as_me:$LINENO: result: $result" >&5
6421 echo "${ECHO_T}$result" >&6; }
6422
6423
6424           enablestring=
6425           defaultval=$wxUSE_ALL_FEATURES
6426           if test -z "$defaultval"; then
6427               if test x"$enablestring" = xdisable; then
6428                   defaultval=yes
6429               else
6430                   defaultval=no
6431               fi
6432           fi
6433
6434           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
6435 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6; }
6436           # Check whether --enable-catch_segvs was given.
6437 if test "${enable_catch_segvs+set}" = set; then
6438   enableval=$enable_catch_segvs;
6439                           if test "$enableval" = yes; then
6440                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
6441                           else
6442                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
6443                           fi
6444
6445 else
6446
6447                           wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=${'DEFAULT_wxUSE_ON_FATAL_EXCEPTION":-$defaultval}"
6448
6449 fi
6450
6451
6452           eval "$wx_cv_use_catch_segvs"
6453
6454           if test x"$enablestring" = xdisable; then
6455             if test $wxUSE_ON_FATAL_EXCEPTION = yes; then
6456               result=no
6457             else
6458               result=yes
6459             fi
6460           else
6461             result=$wxUSE_ON_FATAL_EXCEPTION
6462           fi
6463
6464           { echo "$as_me:$LINENO: result: $result" >&5
6465 echo "${ECHO_T}$result" >&6; }
6466
6467
6468           enablestring=
6469           defaultval=$wxUSE_ALL_FEATURES
6470           if test -z "$defaultval"; then
6471               if test x"$enablestring" = xdisable; then
6472                   defaultval=yes
6473               else
6474                   defaultval=no
6475               fi
6476           fi
6477
6478           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
6479 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6; }
6480           # Check whether --enable-cmdline was given.
6481 if test "${enable_cmdline+set}" = set; then
6482   enableval=$enable_cmdline;
6483                           if test "$enableval" = yes; then
6484                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
6485                           else
6486                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
6487                           fi
6488
6489 else
6490
6491                           wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=${'DEFAULT_wxUSE_CMDLINE_PARSER":-$defaultval}"
6492
6493 fi
6494
6495
6496           eval "$wx_cv_use_cmdline"
6497
6498           if test x"$enablestring" = xdisable; then
6499             if test $wxUSE_CMDLINE_PARSER = yes; then
6500               result=no
6501             else
6502               result=yes
6503             fi
6504           else
6505             result=$wxUSE_CMDLINE_PARSER
6506           fi
6507
6508           { echo "$as_me:$LINENO: result: $result" >&5
6509 echo "${ECHO_T}$result" >&6; }
6510
6511
6512           enablestring=
6513           defaultval=$wxUSE_ALL_FEATURES
6514           if test -z "$defaultval"; then
6515               if test x"$enablestring" = xdisable; then
6516                   defaultval=yes
6517               else
6518                   defaultval=no
6519               fi
6520           fi
6521
6522           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
6523 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6; }
6524           # Check whether --enable-datetime was given.
6525 if test "${enable_datetime+set}" = set; then
6526   enableval=$enable_datetime;
6527                           if test "$enableval" = yes; then
6528                             wx_cv_use_datetime='wxUSE_DATETIME=yes'
6529                           else
6530                             wx_cv_use_datetime='wxUSE_DATETIME=no'
6531                           fi
6532
6533 else
6534
6535                           wx_cv_use_datetime='wxUSE_DATETIME=${'DEFAULT_wxUSE_DATETIME":-$defaultval}"
6536
6537 fi
6538
6539
6540           eval "$wx_cv_use_datetime"
6541
6542           if test x"$enablestring" = xdisable; then
6543             if test $wxUSE_DATETIME = yes; then
6544               result=no
6545             else
6546               result=yes
6547             fi
6548           else
6549             result=$wxUSE_DATETIME
6550           fi
6551
6552           { echo "$as_me:$LINENO: result: $result" >&5
6553 echo "${ECHO_T}$result" >&6; }
6554
6555
6556           enablestring=
6557           defaultval=$wxUSE_ALL_FEATURES
6558           if test -z "$defaultval"; then
6559               if test x"$enablestring" = xdisable; then
6560                   defaultval=yes
6561               else
6562                   defaultval=no
6563               fi
6564           fi
6565
6566           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
6567 echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6; }
6568           # Check whether --enable-debugreport was given.
6569 if test "${enable_debugreport+set}" = set; then
6570   enableval=$enable_debugreport;
6571                           if test "$enableval" = yes; then
6572                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
6573                           else
6574                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
6575                           fi
6576
6577 else
6578
6579                           wx_cv_use_debugreport='wxUSE_DEBUGREPORT=${'DEFAULT_wxUSE_DEBUGREPORT":-$defaultval}"
6580
6581 fi
6582
6583
6584           eval "$wx_cv_use_debugreport"
6585
6586           if test x"$enablestring" = xdisable; then
6587             if test $wxUSE_DEBUGREPORT = yes; then
6588               result=no
6589             else
6590               result=yes
6591             fi
6592           else
6593             result=$wxUSE_DEBUGREPORT
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}-dialupman" >&5
6611 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6; }
6612           # Check whether --enable-dialupman was given.
6613 if test "${enable_dialupman+set}" = set; then
6614   enableval=$enable_dialupman;
6615                           if test "$enableval" = yes; then
6616                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
6617                           else
6618                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
6619                           fi
6620
6621 else
6622
6623                           wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=${'DEFAULT_wxUSE_DIALUP_MANAGER":-$defaultval}"
6624
6625 fi
6626
6627
6628           eval "$wx_cv_use_dialupman"
6629
6630           if test x"$enablestring" = xdisable; then
6631             if test $wxUSE_DIALUP_MANAGER = yes; then
6632               result=no
6633             else
6634               result=yes
6635             fi
6636           else
6637             result=$wxUSE_DIALUP_MANAGER
6638           fi
6639
6640           { echo "$as_me:$LINENO: result: $result" >&5
6641 echo "${ECHO_T}$result" >&6; }
6642
6643
6644           enablestring=
6645           defaultval=$wxUSE_ALL_FEATURES
6646           if test -z "$defaultval"; then
6647               if test x"$enablestring" = xdisable; then
6648                   defaultval=yes
6649               else
6650                   defaultval=no
6651               fi
6652           fi
6653
6654           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
6655 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6; }
6656           # Check whether --enable-dynlib was given.
6657 if test "${enable_dynlib+set}" = set; then
6658   enableval=$enable_dynlib;
6659                           if test "$enableval" = yes; then
6660                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
6661                           else
6662                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
6663                           fi
6664
6665 else
6666
6667                           wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=${'DEFAULT_wxUSE_DYNLIB_CLASS":-$defaultval}"
6668
6669 fi
6670
6671
6672           eval "$wx_cv_use_dynlib"
6673
6674           if test x"$enablestring" = xdisable; then
6675             if test $wxUSE_DYNLIB_CLASS = yes; then
6676               result=no
6677             else
6678               result=yes
6679             fi
6680           else
6681             result=$wxUSE_DYNLIB_CLASS
6682           fi
6683
6684           { echo "$as_me:$LINENO: result: $result" >&5
6685 echo "${ECHO_T}$result" >&6; }
6686
6687
6688           enablestring=
6689           defaultval=$wxUSE_ALL_FEATURES
6690           if test -z "$defaultval"; then
6691               if test x"$enablestring" = xdisable; then
6692                   defaultval=yes
6693               else
6694                   defaultval=no
6695               fi
6696           fi
6697
6698           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
6699 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6; }
6700           # Check whether --enable-dynamicloader was given.
6701 if test "${enable_dynamicloader+set}" = set; then
6702   enableval=$enable_dynamicloader;
6703                           if test "$enableval" = yes; then
6704                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
6705                           else
6706                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
6707                           fi
6708
6709 else
6710
6711                           wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=${'DEFAULT_wxUSE_DYNAMIC_LOADER":-$defaultval}"
6712
6713 fi
6714
6715
6716           eval "$wx_cv_use_dynamicloader"
6717
6718           if test x"$enablestring" = xdisable; then
6719             if test $wxUSE_DYNAMIC_LOADER = yes; then
6720               result=no
6721             else
6722               result=yes
6723             fi
6724           else
6725             result=$wxUSE_DYNAMIC_LOADER
6726           fi
6727
6728           { echo "$as_me:$LINENO: result: $result" >&5
6729 echo "${ECHO_T}$result" >&6; }
6730
6731
6732           enablestring=
6733           defaultval=$wxUSE_ALL_FEATURES
6734           if test -z "$defaultval"; then
6735               if test x"$enablestring" = xdisable; then
6736                   defaultval=yes
6737               else
6738                   defaultval=no
6739               fi
6740           fi
6741
6742           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
6743 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6; }
6744           # Check whether --enable-exceptions was given.
6745 if test "${enable_exceptions+set}" = set; then
6746   enableval=$enable_exceptions;
6747                           if test "$enableval" = yes; then
6748                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
6749                           else
6750                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
6751                           fi
6752
6753 else
6754
6755                           wx_cv_use_exceptions='wxUSE_EXCEPTIONS=${'DEFAULT_wxUSE_EXCEPTIONS":-$defaultval}"
6756
6757 fi
6758
6759
6760           eval "$wx_cv_use_exceptions"
6761
6762           if test x"$enablestring" = xdisable; then
6763             if test $wxUSE_EXCEPTIONS = yes; then
6764               result=no
6765             else
6766               result=yes
6767             fi
6768           else
6769             result=$wxUSE_EXCEPTIONS
6770           fi
6771
6772           { echo "$as_me:$LINENO: result: $result" >&5
6773 echo "${ECHO_T}$result" >&6; }
6774
6775
6776           enablestring=
6777           defaultval=$wxUSE_ALL_FEATURES
6778           if test -z "$defaultval"; then
6779               if test x"$enablestring" = xdisable; then
6780                   defaultval=yes
6781               else
6782                   defaultval=no
6783               fi
6784           fi
6785
6786           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
6787 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6; }
6788           # Check whether --enable-ffile was given.
6789 if test "${enable_ffile+set}" = set; then
6790   enableval=$enable_ffile;
6791                           if test "$enableval" = yes; then
6792                             wx_cv_use_ffile='wxUSE_FFILE=yes'
6793                           else
6794                             wx_cv_use_ffile='wxUSE_FFILE=no'
6795                           fi
6796
6797 else
6798
6799                           wx_cv_use_ffile='wxUSE_FFILE=${'DEFAULT_wxUSE_FFILE":-$defaultval}"
6800
6801 fi
6802
6803
6804           eval "$wx_cv_use_ffile"
6805
6806           if test x"$enablestring" = xdisable; then
6807             if test $wxUSE_FFILE = yes; then
6808               result=no
6809             else
6810               result=yes
6811             fi
6812           else
6813             result=$wxUSE_FFILE
6814           fi
6815
6816           { echo "$as_me:$LINENO: result: $result" >&5
6817 echo "${ECHO_T}$result" >&6; }
6818
6819
6820           enablestring=
6821           defaultval=$wxUSE_ALL_FEATURES
6822           if test -z "$defaultval"; then
6823               if test x"$enablestring" = xdisable; then
6824                   defaultval=yes
6825               else
6826                   defaultval=no
6827               fi
6828           fi
6829
6830           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
6831 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6; }
6832           # Check whether --enable-file was given.
6833 if test "${enable_file+set}" = set; then
6834   enableval=$enable_file;
6835                           if test "$enableval" = yes; then
6836                             wx_cv_use_file='wxUSE_FILE=yes'
6837                           else
6838                             wx_cv_use_file='wxUSE_FILE=no'
6839                           fi
6840
6841 else
6842
6843                           wx_cv_use_file='wxUSE_FILE=${'DEFAULT_wxUSE_FILE":-$defaultval}"
6844
6845 fi
6846
6847
6848           eval "$wx_cv_use_file"
6849
6850           if test x"$enablestring" = xdisable; then
6851             if test $wxUSE_FILE = yes; then
6852               result=no
6853             else
6854               result=yes
6855             fi
6856           else
6857             result=$wxUSE_FILE
6858           fi
6859
6860           { echo "$as_me:$LINENO: result: $result" >&5
6861 echo "${ECHO_T}$result" >&6; }
6862
6863
6864           enablestring=
6865           defaultval=$wxUSE_ALL_FEATURES
6866           if test -z "$defaultval"; then
6867               if test x"$enablestring" = xdisable; then
6868                   defaultval=yes
6869               else
6870                   defaultval=no
6871               fi
6872           fi
6873
6874           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
6875 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6; }
6876           # Check whether --enable-filesystem was given.
6877 if test "${enable_filesystem+set}" = set; then
6878   enableval=$enable_filesystem;
6879                           if test "$enableval" = yes; then
6880                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
6881                           else
6882                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=no'
6883                           fi
6884
6885 else
6886
6887                           wx_cv_use_filesystem='wxUSE_FILESYSTEM=${'DEFAULT_wxUSE_FILESYSTEM":-$defaultval}"
6888
6889 fi
6890
6891
6892           eval "$wx_cv_use_filesystem"
6893
6894           if test x"$enablestring" = xdisable; then
6895             if test $wxUSE_FILESYSTEM = yes; then
6896               result=no
6897             else
6898               result=yes
6899             fi
6900           else
6901             result=$wxUSE_FILESYSTEM
6902           fi
6903
6904           { echo "$as_me:$LINENO: result: $result" >&5
6905 echo "${ECHO_T}$result" >&6; }
6906
6907
6908           enablestring=
6909           defaultval=$wxUSE_ALL_FEATURES
6910           if test -z "$defaultval"; then
6911               if test x"$enablestring" = xdisable; then
6912                   defaultval=yes
6913               else
6914                   defaultval=no
6915               fi
6916           fi
6917
6918           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontenum" >&5
6919 echo $ECHO_N "checking for --${enablestring:-enable}-fontenum... $ECHO_C" >&6; }
6920           # Check whether --enable-fontenum was given.
6921 if test "${enable_fontenum+set}" = set; then
6922   enableval=$enable_fontenum;
6923                           if test "$enableval" = yes; then
6924                             wx_cv_use_fontenum='wxUSE_FONTENUM=yes'
6925                           else
6926                             wx_cv_use_fontenum='wxUSE_FONTENUM=no'
6927                           fi
6928
6929 else
6930
6931                           wx_cv_use_fontenum='wxUSE_FONTENUM=${'DEFAULT_wxUSE_FONTENUM":-$defaultval}"
6932
6933 fi
6934
6935
6936           eval "$wx_cv_use_fontenum"
6937
6938           if test x"$enablestring" = xdisable; then
6939             if test $wxUSE_FONTENUM = yes; then
6940               result=no
6941             else
6942               result=yes
6943             fi
6944           else
6945             result=$wxUSE_FONTENUM
6946           fi
6947
6948           { echo "$as_me:$LINENO: result: $result" >&5
6949 echo "${ECHO_T}$result" >&6; }
6950
6951
6952           enablestring=
6953           defaultval=$wxUSE_ALL_FEATURES
6954           if test -z "$defaultval"; then
6955               if test x"$enablestring" = xdisable; then
6956                   defaultval=yes
6957               else
6958                   defaultval=no
6959               fi
6960           fi
6961
6962           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
6963 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6; }
6964           # Check whether --enable-fontmap was given.
6965 if test "${enable_fontmap+set}" = set; then
6966   enableval=$enable_fontmap;
6967                           if test "$enableval" = yes; then
6968                             wx_cv_use_fontmap='wxUSE_FONTMAP=yes'
6969                           else
6970                             wx_cv_use_fontmap='wxUSE_FONTMAP=no'
6971                           fi
6972
6973 else
6974
6975                           wx_cv_use_fontmap='wxUSE_FONTMAP=${'DEFAULT_wxUSE_FONTMAP":-$defaultval}"
6976
6977 fi
6978
6979
6980           eval "$wx_cv_use_fontmap"
6981
6982           if test x"$enablestring" = xdisable; then
6983             if test $wxUSE_FONTMAP = yes; then
6984               result=no
6985             else
6986               result=yes
6987             fi
6988           else
6989             result=$wxUSE_FONTMAP
6990           fi
6991
6992           { echo "$as_me:$LINENO: result: $result" >&5
6993 echo "${ECHO_T}$result" >&6; }
6994
6995
6996           enablestring=
6997           defaultval=$wxUSE_ALL_FEATURES
6998           if test -z "$defaultval"; then
6999               if test x"$enablestring" = xdisable; then
7000                   defaultval=yes
7001               else
7002                   defaultval=no
7003               fi
7004           fi
7005
7006           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_archive" >&5
7007 echo $ECHO_N "checking for --${enablestring:-enable}-fs_archive... $ECHO_C" >&6; }
7008           # Check whether --enable-fs_archive was given.
7009 if test "${enable_fs_archive+set}" = set; then
7010   enableval=$enable_fs_archive;
7011                           if test "$enableval" = yes; then
7012                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=yes'
7013                           else
7014                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=no'
7015                           fi
7016
7017 else
7018
7019                           wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=${'DEFAULT_wxUSE_FS_ARCHIVE":-$defaultval}"
7020
7021 fi
7022
7023
7024           eval "$wx_cv_use_fs_archive"
7025
7026           if test x"$enablestring" = xdisable; then
7027             if test $wxUSE_FS_ARCHIVE = yes; then
7028               result=no
7029             else
7030               result=yes
7031             fi
7032           else
7033             result=$wxUSE_FS_ARCHIVE
7034           fi
7035
7036           { echo "$as_me:$LINENO: result: $result" >&5
7037 echo "${ECHO_T}$result" >&6; }
7038
7039
7040           enablestring=
7041           defaultval=$wxUSE_ALL_FEATURES
7042           if test -z "$defaultval"; then
7043               if test x"$enablestring" = xdisable; then
7044                   defaultval=yes
7045               else
7046                   defaultval=no
7047               fi
7048           fi
7049
7050           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
7051 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6; }
7052           # Check whether --enable-fs_inet was given.
7053 if test "${enable_fs_inet+set}" = set; then
7054   enableval=$enable_fs_inet;
7055                           if test "$enableval" = yes; then
7056                             wx_cv_use_fs_inet='wxUSE_FS_INET=yes'
7057                           else
7058                             wx_cv_use_fs_inet='wxUSE_FS_INET=no'
7059                           fi
7060
7061 else
7062
7063                           wx_cv_use_fs_inet='wxUSE_FS_INET=${'DEFAULT_wxUSE_FS_INET":-$defaultval}"
7064
7065 fi
7066
7067
7068           eval "$wx_cv_use_fs_inet"
7069
7070           if test x"$enablestring" = xdisable; then
7071             if test $wxUSE_FS_INET = yes; then
7072               result=no
7073             else
7074               result=yes
7075             fi
7076           else
7077             result=$wxUSE_FS_INET
7078           fi
7079
7080           { echo "$as_me:$LINENO: result: $result" >&5
7081 echo "${ECHO_T}$result" >&6; }
7082
7083
7084           enablestring=
7085           defaultval=$wxUSE_ALL_FEATURES
7086           if test -z "$defaultval"; then
7087               if test x"$enablestring" = xdisable; then
7088                   defaultval=yes
7089               else
7090                   defaultval=no
7091               fi
7092           fi
7093
7094           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
7095 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6; }
7096           # Check whether --enable-fs_zip was given.
7097 if test "${enable_fs_zip+set}" = set; then
7098   enableval=$enable_fs_zip;
7099                           if test "$enableval" = yes; then
7100                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
7101                           else
7102                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=no'
7103                           fi
7104
7105 else
7106
7107                           wx_cv_use_fs_zip='wxUSE_FS_ZIP=${'DEFAULT_wxUSE_FS_ZIP":-$defaultval}"
7108
7109 fi
7110
7111
7112           eval "$wx_cv_use_fs_zip"
7113
7114           if test x"$enablestring" = xdisable; then
7115             if test $wxUSE_FS_ZIP = yes; then
7116               result=no
7117             else
7118               result=yes
7119             fi
7120           else
7121             result=$wxUSE_FS_ZIP
7122           fi
7123
7124           { echo "$as_me:$LINENO: result: $result" >&5
7125 echo "${ECHO_T}$result" >&6; }
7126
7127
7128           enablestring=
7129           defaultval=$wxUSE_ALL_FEATURES
7130           if test -z "$defaultval"; then
7131               if test x"$enablestring" = xdisable; then
7132                   defaultval=yes
7133               else
7134                   defaultval=no
7135               fi
7136           fi
7137
7138           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
7139 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6; }
7140           # Check whether --enable-geometry was given.
7141 if test "${enable_geometry+set}" = set; then
7142   enableval=$enable_geometry;
7143                           if test "$enableval" = yes; then
7144                             wx_cv_use_geometry='wxUSE_GEOMETRY=yes'
7145                           else
7146                             wx_cv_use_geometry='wxUSE_GEOMETRY=no'
7147                           fi
7148
7149 else
7150
7151                           wx_cv_use_geometry='wxUSE_GEOMETRY=${'DEFAULT_wxUSE_GEOMETRY":-$defaultval}"
7152
7153 fi
7154
7155
7156           eval "$wx_cv_use_geometry"
7157
7158           if test x"$enablestring" = xdisable; then
7159             if test $wxUSE_GEOMETRY = yes; then
7160               result=no
7161             else
7162               result=yes
7163             fi
7164           else
7165             result=$wxUSE_GEOMETRY
7166           fi
7167
7168           { echo "$as_me:$LINENO: result: $result" >&5
7169 echo "${ECHO_T}$result" >&6; }
7170
7171
7172           enablestring=
7173           defaultval=$wxUSE_ALL_FEATURES
7174           if test -z "$defaultval"; then
7175               if test x"$enablestring" = xdisable; then
7176                   defaultval=yes
7177               else
7178                   defaultval=no
7179               fi
7180           fi
7181
7182           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
7183 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6; }
7184           # Check whether --enable-log was given.
7185 if test "${enable_log+set}" = set; then
7186   enableval=$enable_log;
7187                           if test "$enableval" = yes; then
7188                             wx_cv_use_log='wxUSE_LOG=yes'
7189                           else
7190                             wx_cv_use_log='wxUSE_LOG=no'
7191                           fi
7192
7193 else
7194
7195                           wx_cv_use_log='wxUSE_LOG=${'DEFAULT_wxUSE_LOG":-$defaultval}"
7196
7197 fi
7198
7199
7200           eval "$wx_cv_use_log"
7201
7202           if test x"$enablestring" = xdisable; then
7203             if test $wxUSE_LOG = yes; then
7204               result=no
7205             else
7206               result=yes
7207             fi
7208           else
7209             result=$wxUSE_LOG
7210           fi
7211
7212           { echo "$as_me:$LINENO: result: $result" >&5
7213 echo "${ECHO_T}$result" >&6; }
7214
7215
7216           enablestring=
7217           defaultval=$wxUSE_ALL_FEATURES
7218           if test -z "$defaultval"; then
7219               if test x"$enablestring" = xdisable; then
7220                   defaultval=yes
7221               else
7222                   defaultval=no
7223               fi
7224           fi
7225
7226           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
7227 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6; }
7228           # Check whether --enable-longlong was given.
7229 if test "${enable_longlong+set}" = set; then
7230   enableval=$enable_longlong;
7231                           if test "$enableval" = yes; then
7232                             wx_cv_use_longlong='wxUSE_LONGLONG=yes'
7233                           else
7234                             wx_cv_use_longlong='wxUSE_LONGLONG=no'
7235                           fi
7236
7237 else
7238
7239                           wx_cv_use_longlong='wxUSE_LONGLONG=${'DEFAULT_wxUSE_LONGLONG":-$defaultval}"
7240
7241 fi
7242
7243
7244           eval "$wx_cv_use_longlong"
7245
7246           if test x"$enablestring" = xdisable; then
7247             if test $wxUSE_LONGLONG = yes; then
7248               result=no
7249             else
7250               result=yes
7251             fi
7252           else
7253             result=$wxUSE_LONGLONG
7254           fi
7255
7256           { echo "$as_me:$LINENO: result: $result" >&5
7257 echo "${ECHO_T}$result" >&6; }
7258
7259
7260           enablestring=
7261           defaultval=$wxUSE_ALL_FEATURES
7262           if test -z "$defaultval"; then
7263               if test x"$enablestring" = xdisable; then
7264                   defaultval=yes
7265               else
7266                   defaultval=no
7267               fi
7268           fi
7269
7270           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
7271 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6; }
7272           # Check whether --enable-mimetype was given.
7273 if test "${enable_mimetype+set}" = set; then
7274   enableval=$enable_mimetype;
7275                           if test "$enableval" = yes; then
7276                             wx_cv_use_mimetype='wxUSE_MIMETYPE=yes'
7277                           else
7278                             wx_cv_use_mimetype='wxUSE_MIMETYPE=no'
7279                           fi
7280
7281 else
7282
7283                           wx_cv_use_mimetype='wxUSE_MIMETYPE=${'DEFAULT_wxUSE_MIMETYPE":-$defaultval}"
7284
7285 fi
7286
7287
7288           eval "$wx_cv_use_mimetype"
7289
7290           if test x"$enablestring" = xdisable; then
7291             if test $wxUSE_MIMETYPE = yes; then
7292               result=no
7293             else
7294               result=yes
7295             fi
7296           else
7297             result=$wxUSE_MIMETYPE
7298           fi
7299
7300           { echo "$as_me:$LINENO: result: $result" >&5
7301 echo "${ECHO_T}$result" >&6; }
7302
7303
7304           enablestring=
7305           defaultval=$wxUSE_ALL_FEATURES
7306           if test -z "$defaultval"; then
7307               if test x"$enablestring" = xdisable; then
7308                   defaultval=yes
7309               else
7310                   defaultval=no
7311               fi
7312           fi
7313
7314           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
7315 echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6; }
7316           # Check whether --enable-printfposparam was given.
7317 if test "${enable_printfposparam+set}" = set; then
7318   enableval=$enable_printfposparam;
7319                           if test "$enableval" = yes; then
7320                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
7321                           else
7322                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
7323                           fi
7324
7325 else
7326
7327                           wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=${'DEFAULT_wxUSE_PRINTF_POS_PARAMS":-$defaultval}"
7328
7329 fi
7330
7331
7332           eval "$wx_cv_use_printfposparam"
7333
7334           if test x"$enablestring" = xdisable; then
7335             if test $wxUSE_PRINTF_POS_PARAMS = yes; then
7336               result=no
7337             else
7338               result=yes
7339             fi
7340           else
7341             result=$wxUSE_PRINTF_POS_PARAMS
7342           fi
7343
7344           { echo "$as_me:$LINENO: result: $result" >&5
7345 echo "${ECHO_T}$result" >&6; }
7346
7347
7348           enablestring=
7349           defaultval=$wxUSE_ALL_FEATURES
7350           if test -z "$defaultval"; then
7351               if test x"$enablestring" = xdisable; then
7352                   defaultval=yes
7353               else
7354                   defaultval=no
7355               fi
7356           fi
7357
7358           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
7359 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6; }
7360           # Check whether --enable-snglinst was given.
7361 if test "${enable_snglinst+set}" = set; then
7362   enableval=$enable_snglinst;
7363                           if test "$enableval" = yes; then
7364                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
7365                           else
7366                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
7367                           fi
7368
7369 else
7370
7371                           wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=${'DEFAULT_wxUSE_SNGLINST_CHECKER":-$defaultval}"
7372
7373 fi
7374
7375
7376           eval "$wx_cv_use_snglinst"
7377
7378           if test x"$enablestring" = xdisable; then
7379             if test $wxUSE_SNGLINST_CHECKER = yes; then
7380               result=no
7381             else
7382               result=yes
7383             fi
7384           else
7385             result=$wxUSE_SNGLINST_CHECKER
7386           fi
7387
7388           { echo "$as_me:$LINENO: result: $result" >&5
7389 echo "${ECHO_T}$result" >&6; }
7390
7391
7392           enablestring=
7393           defaultval=$wxUSE_ALL_FEATURES
7394           if test -z "$defaultval"; then
7395               if test x"$enablestring" = xdisable; then
7396                   defaultval=yes
7397               else
7398                   defaultval=no
7399               fi
7400           fi
7401
7402           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
7403 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6; }
7404           # Check whether --enable-sound was given.
7405 if test "${enable_sound+set}" = set; then
7406   enableval=$enable_sound;
7407                           if test "$enableval" = yes; then
7408                             wx_cv_use_sound='wxUSE_SOUND=yes'
7409                           else
7410                             wx_cv_use_sound='wxUSE_SOUND=no'
7411                           fi
7412
7413 else
7414
7415                           wx_cv_use_sound='wxUSE_SOUND=${'DEFAULT_wxUSE_SOUND":-$defaultval}"
7416
7417 fi
7418
7419
7420           eval "$wx_cv_use_sound"
7421
7422           if test x"$enablestring" = xdisable; then
7423             if test $wxUSE_SOUND = yes; then
7424               result=no
7425             else
7426               result=yes
7427             fi
7428           else
7429             result=$wxUSE_SOUND
7430           fi
7431
7432           { echo "$as_me:$LINENO: result: $result" >&5
7433 echo "${ECHO_T}$result" >&6; }
7434
7435
7436           enablestring=
7437           defaultval=$wxUSE_ALL_FEATURES
7438           if test -z "$defaultval"; then
7439               if test x"$enablestring" = xdisable; then
7440                   defaultval=yes
7441               else
7442                   defaultval=no
7443               fi
7444           fi
7445
7446           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
7447 echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6; }
7448           # Check whether --enable-stdpaths was given.
7449 if test "${enable_stdpaths+set}" = set; then
7450   enableval=$enable_stdpaths;
7451                           if test "$enableval" = yes; then
7452                             wx_cv_use_stdpaths='wxUSE_STDPATHS=yes'
7453                           else
7454                             wx_cv_use_stdpaths='wxUSE_STDPATHS=no'
7455                           fi
7456
7457 else
7458
7459                           wx_cv_use_stdpaths='wxUSE_STDPATHS=${'DEFAULT_wxUSE_STDPATHS":-$defaultval}"
7460
7461 fi
7462
7463
7464           eval "$wx_cv_use_stdpaths"
7465
7466           if test x"$enablestring" = xdisable; then
7467             if test $wxUSE_STDPATHS = yes; then
7468               result=no
7469             else
7470               result=yes
7471             fi
7472           else
7473             result=$wxUSE_STDPATHS
7474           fi
7475
7476           { echo "$as_me:$LINENO: result: $result" >&5
7477 echo "${ECHO_T}$result" >&6; }
7478
7479
7480           enablestring=
7481           defaultval=$wxUSE_ALL_FEATURES
7482           if test -z "$defaultval"; then
7483               if test x"$enablestring" = xdisable; then
7484                   defaultval=yes
7485               else
7486                   defaultval=no
7487               fi
7488           fi
7489
7490           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
7491 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6; }
7492           # Check whether --enable-stopwatch was given.
7493 if test "${enable_stopwatch+set}" = set; then
7494   enableval=$enable_stopwatch;
7495                           if test "$enableval" = yes; then
7496                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
7497                           else
7498                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=no'
7499                           fi
7500
7501 else
7502
7503                           wx_cv_use_stopwatch='wxUSE_STOPWATCH=${'DEFAULT_wxUSE_STOPWATCH":-$defaultval}"
7504
7505 fi
7506
7507
7508           eval "$wx_cv_use_stopwatch"
7509
7510           if test x"$enablestring" = xdisable; then
7511             if test $wxUSE_STOPWATCH = yes; then
7512               result=no
7513             else
7514               result=yes
7515             fi
7516           else
7517             result=$wxUSE_STOPWATCH
7518           fi
7519
7520           { echo "$as_me:$LINENO: result: $result" >&5
7521 echo "${ECHO_T}$result" >&6; }
7522
7523
7524           enablestring=
7525           defaultval=$wxUSE_ALL_FEATURES
7526           if test -z "$defaultval"; then
7527               if test x"$enablestring" = xdisable; then
7528                   defaultval=yes
7529               else
7530                   defaultval=no
7531               fi
7532           fi
7533
7534           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
7535 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6; }
7536           # Check whether --enable-streams was given.
7537 if test "${enable_streams+set}" = set; then
7538   enableval=$enable_streams;
7539                           if test "$enableval" = yes; then
7540                             wx_cv_use_streams='wxUSE_STREAMS=yes'
7541                           else
7542                             wx_cv_use_streams='wxUSE_STREAMS=no'
7543                           fi
7544
7545 else
7546
7547                           wx_cv_use_streams='wxUSE_STREAMS=${'DEFAULT_wxUSE_STREAMS":-$defaultval}"
7548
7549 fi
7550
7551
7552           eval "$wx_cv_use_streams"
7553
7554           if test x"$enablestring" = xdisable; then
7555             if test $wxUSE_STREAMS = yes; then
7556               result=no
7557             else
7558               result=yes
7559             fi
7560           else
7561             result=$wxUSE_STREAMS
7562           fi
7563
7564           { echo "$as_me:$LINENO: result: $result" >&5
7565 echo "${ECHO_T}$result" >&6; }
7566
7567
7568           enablestring=
7569           defaultval=$wxUSE_ALL_FEATURES
7570           if test -z "$defaultval"; then
7571               if test x"$enablestring" = xdisable; then
7572                   defaultval=yes
7573               else
7574                   defaultval=no
7575               fi
7576           fi
7577
7578           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
7579 echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6; }
7580           # Check whether --enable-system_options was given.
7581 if test "${enable_system_options+set}" = set; then
7582   enableval=$enable_system_options;
7583                           if test "$enableval" = yes; then
7584                             wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
7585                           else
7586                             wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
7587                           fi
7588
7589 else
7590
7591                           wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=${'DEFAULT_wxUSE_SYSTEM_OPTIONS":-$defaultval}"
7592
7593 fi
7594
7595
7596           eval "$wx_cv_use_system_options"
7597
7598           if test x"$enablestring" = xdisable; then
7599             if test $wxUSE_SYSTEM_OPTIONS = yes; then
7600               result=no
7601             else
7602               result=yes
7603             fi
7604           else
7605             result=$wxUSE_SYSTEM_OPTIONS
7606           fi
7607
7608           { echo "$as_me:$LINENO: result: $result" >&5
7609 echo "${ECHO_T}$result" >&6; }
7610
7611
7612           enablestring=
7613           defaultval=$wxUSE_ALL_FEATURES
7614           if test -z "$defaultval"; then
7615               if test x"$enablestring" = xdisable; then
7616                   defaultval=yes
7617               else
7618                   defaultval=no
7619               fi
7620           fi
7621
7622           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tarstream" >&5
7623 echo $ECHO_N "checking for --${enablestring:-enable}-tarstream... $ECHO_C" >&6; }
7624           # Check whether --enable-tarstream was given.
7625 if test "${enable_tarstream+set}" = set; then
7626   enableval=$enable_tarstream;
7627                           if test "$enableval" = yes; then
7628                             wx_cv_use_tarstream='wxUSE_TARSTREAM=yes'
7629                           else
7630                             wx_cv_use_tarstream='wxUSE_TARSTREAM=no'
7631                           fi
7632
7633 else
7634
7635                           wx_cv_use_tarstream='wxUSE_TARSTREAM=${'DEFAULT_wxUSE_TARSTREAM":-$defaultval}"
7636
7637 fi
7638
7639
7640           eval "$wx_cv_use_tarstream"
7641
7642           if test x"$enablestring" = xdisable; then
7643             if test $wxUSE_TARSTREAM = yes; then
7644               result=no
7645             else
7646               result=yes
7647             fi
7648           else
7649             result=$wxUSE_TARSTREAM
7650           fi
7651
7652           { echo "$as_me:$LINENO: result: $result" >&5
7653 echo "${ECHO_T}$result" >&6; }
7654
7655
7656           enablestring=
7657           defaultval=$wxUSE_ALL_FEATURES
7658           if test -z "$defaultval"; then
7659               if test x"$enablestring" = xdisable; then
7660                   defaultval=yes
7661               else
7662                   defaultval=no
7663               fi
7664           fi
7665
7666           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
7667 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6; }
7668           # Check whether --enable-textbuf was given.
7669 if test "${enable_textbuf+set}" = set; then
7670   enableval=$enable_textbuf;
7671                           if test "$enableval" = yes; then
7672                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
7673                           else
7674                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
7675                           fi
7676
7677 else
7678
7679                           wx_cv_use_textbuf='wxUSE_TEXTBUFFER=${'DEFAULT_wxUSE_TEXTBUFFER":-$defaultval}"
7680
7681 fi
7682
7683
7684           eval "$wx_cv_use_textbuf"
7685
7686           if test x"$enablestring" = xdisable; then
7687             if test $wxUSE_TEXTBUFFER = yes; then
7688               result=no
7689             else
7690               result=yes
7691             fi
7692           else
7693             result=$wxUSE_TEXTBUFFER
7694           fi
7695
7696           { echo "$as_me:$LINENO: result: $result" >&5
7697 echo "${ECHO_T}$result" >&6; }
7698
7699
7700           enablestring=
7701           defaultval=$wxUSE_ALL_FEATURES
7702           if test -z "$defaultval"; then
7703               if test x"$enablestring" = xdisable; then
7704                   defaultval=yes
7705               else
7706                   defaultval=no
7707               fi
7708           fi
7709
7710           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
7711 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6; }
7712           # Check whether --enable-textfile was given.
7713 if test "${enable_textfile+set}" = set; then
7714   enableval=$enable_textfile;
7715                           if test "$enableval" = yes; then
7716                             wx_cv_use_textfile='wxUSE_TEXTFILE=yes'
7717                           else
7718                             wx_cv_use_textfile='wxUSE_TEXTFILE=no'
7719                           fi
7720
7721 else
7722
7723                           wx_cv_use_textfile='wxUSE_TEXTFILE=${'DEFAULT_wxUSE_TEXTFILE":-$defaultval}"
7724
7725 fi
7726
7727
7728           eval "$wx_cv_use_textfile"
7729
7730           if test x"$enablestring" = xdisable; then
7731             if test $wxUSE_TEXTFILE = yes; then
7732               result=no
7733             else
7734               result=yes
7735             fi
7736           else
7737             result=$wxUSE_TEXTFILE
7738           fi
7739
7740           { echo "$as_me:$LINENO: result: $result" >&5
7741 echo "${ECHO_T}$result" >&6; }
7742
7743
7744           enablestring=
7745           defaultval=$wxUSE_ALL_FEATURES
7746           if test -z "$defaultval"; then
7747               if test x"$enablestring" = xdisable; then
7748                   defaultval=yes
7749               else
7750                   defaultval=no
7751               fi
7752           fi
7753
7754           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
7755 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6; }
7756           # Check whether --enable-timer was given.
7757 if test "${enable_timer+set}" = set; then
7758   enableval=$enable_timer;
7759                           if test "$enableval" = yes; then
7760                             wx_cv_use_timer='wxUSE_TIMER=yes'
7761                           else
7762                             wx_cv_use_timer='wxUSE_TIMER=no'
7763                           fi
7764
7765 else
7766
7767                           wx_cv_use_timer='wxUSE_TIMER=${'DEFAULT_wxUSE_TIMER":-$defaultval}"
7768
7769 fi
7770
7771
7772           eval "$wx_cv_use_timer"
7773
7774           if test x"$enablestring" = xdisable; then
7775             if test $wxUSE_TIMER = yes; then
7776               result=no
7777             else
7778               result=yes
7779             fi
7780           else
7781             result=$wxUSE_TIMER
7782           fi
7783
7784           { echo "$as_me:$LINENO: result: $result" >&5
7785 echo "${ECHO_T}$result" >&6; }
7786
7787
7788           enablestring=
7789           defaultval=$wxUSE_ALL_FEATURES
7790           if test -z "$defaultval"; then
7791               if test x"$enablestring" = xdisable; then
7792                   defaultval=yes
7793               else
7794                   defaultval=no
7795               fi
7796           fi
7797
7798           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5
7799 echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6; }
7800           # Check whether --enable-variant was given.
7801 if test "${enable_variant+set}" = set; then
7802   enableval=$enable_variant;
7803                           if test "$enableval" = yes; then
7804                             wx_cv_use_variant='wxUSE_VARIANT=yes'
7805                           else
7806                             wx_cv_use_variant='wxUSE_VARIANT=no'
7807                           fi
7808
7809 else
7810
7811                           wx_cv_use_variant='wxUSE_VARIANT=${'DEFAULT_wxUSE_VARIANT":-$defaultval}"
7812
7813 fi
7814
7815
7816           eval "$wx_cv_use_variant"
7817
7818           if test x"$enablestring" = xdisable; then
7819             if test $wxUSE_VARIANT = yes; then
7820               result=no
7821             else
7822               result=yes
7823             fi
7824           else
7825             result=$wxUSE_VARIANT
7826           fi
7827
7828           { echo "$as_me:$LINENO: result: $result" >&5
7829 echo "${ECHO_T}$result" >&6; }
7830
7831
7832           enablestring=
7833           defaultval=$wxUSE_ALL_FEATURES
7834           if test -z "$defaultval"; then
7835               if test x"$enablestring" = xdisable; then
7836                   defaultval=yes
7837               else
7838                   defaultval=no
7839               fi
7840           fi
7841
7842           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
7843 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6; }
7844           # Check whether --enable-zipstream was given.
7845 if test "${enable_zipstream+set}" = set; then
7846   enableval=$enable_zipstream;
7847                           if test "$enableval" = yes; then
7848                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
7849                           else
7850                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
7851                           fi
7852
7853 else
7854
7855                           wx_cv_use_zipstream='wxUSE_ZIPSTREAM=${'DEFAULT_wxUSE_ZIPSTREAM":-$defaultval}"
7856
7857 fi
7858
7859
7860           eval "$wx_cv_use_zipstream"
7861
7862           if test x"$enablestring" = xdisable; then
7863             if test $wxUSE_ZIPSTREAM = yes; then
7864               result=no
7865             else
7866               result=yes
7867             fi
7868           else
7869             result=$wxUSE_ZIPSTREAM
7870           fi
7871
7872           { echo "$as_me:$LINENO: result: $result" >&5
7873 echo "${ECHO_T}$result" >&6; }
7874
7875
7876
7877           enablestring=
7878           defaultval=$wxUSE_ALL_FEATURES
7879           if test -z "$defaultval"; then
7880               if test x"$enablestring" = xdisable; then
7881                   defaultval=yes
7882               else
7883                   defaultval=no
7884               fi
7885           fi
7886
7887           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
7888 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6; }
7889           # Check whether --enable-url was given.
7890 if test "${enable_url+set}" = set; then
7891   enableval=$enable_url;
7892                           if test "$enableval" = yes; then
7893                             wx_cv_use_url='wxUSE_URL=yes'
7894                           else
7895                             wx_cv_use_url='wxUSE_URL=no'
7896                           fi
7897
7898 else
7899
7900                           wx_cv_use_url='wxUSE_URL=${'DEFAULT_wxUSE_URL":-$defaultval}"
7901
7902 fi
7903
7904
7905           eval "$wx_cv_use_url"
7906
7907           if test x"$enablestring" = xdisable; then
7908             if test $wxUSE_URL = yes; then
7909               result=no
7910             else
7911               result=yes
7912             fi
7913           else
7914             result=$wxUSE_URL
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}-protocol" >&5
7932 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6; }
7933           # Check whether --enable-protocol was given.
7934 if test "${enable_protocol+set}" = set; then
7935   enableval=$enable_protocol;
7936                           if test "$enableval" = yes; then
7937                             wx_cv_use_protocol='wxUSE_PROTOCOL=yes'
7938                           else
7939                             wx_cv_use_protocol='wxUSE_PROTOCOL=no'
7940                           fi
7941
7942 else
7943
7944                           wx_cv_use_protocol='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
7945
7946 fi
7947
7948
7949           eval "$wx_cv_use_protocol"
7950
7951           if test x"$enablestring" = xdisable; then
7952             if test $wxUSE_PROTOCOL = yes; then
7953               result=no
7954             else
7955               result=yes
7956             fi
7957           else
7958             result=$wxUSE_PROTOCOL
7959           fi
7960
7961           { echo "$as_me:$LINENO: result: $result" >&5
7962 echo "${ECHO_T}$result" >&6; }
7963
7964
7965           enablestring=
7966           defaultval=$wxUSE_ALL_FEATURES
7967           if test -z "$defaultval"; then
7968               if test x"$enablestring" = xdisable; then
7969                   defaultval=yes
7970               else
7971                   defaultval=no
7972               fi
7973           fi
7974
7975           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
7976 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6; }
7977           # Check whether --enable-protocol_http was given.
7978 if test "${enable_protocol_http+set}" = set; then
7979   enableval=$enable_protocol_http;
7980                           if test "$enableval" = yes; then
7981                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
7982                           else
7983                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
7984                           fi
7985
7986 else
7987
7988                           wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
7989
7990 fi
7991
7992
7993           eval "$wx_cv_use_protocol_http"
7994
7995           if test x"$enablestring" = xdisable; then
7996             if test $wxUSE_PROTOCOL_HTTP = yes; then
7997               result=no
7998             else
7999               result=yes
8000             fi
8001           else
8002             result=$wxUSE_PROTOCOL_HTTP
8003           fi
8004
8005           { echo "$as_me:$LINENO: result: $result" >&5
8006 echo "${ECHO_T}$result" >&6; }
8007
8008
8009           enablestring=
8010           defaultval=$wxUSE_ALL_FEATURES
8011           if test -z "$defaultval"; then
8012               if test x"$enablestring" = xdisable; then
8013                   defaultval=yes
8014               else
8015                   defaultval=no
8016               fi
8017           fi
8018
8019           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
8020 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6; }
8021           # Check whether --enable-protocol_ftp was given.
8022 if test "${enable_protocol_ftp+set}" = set; then
8023   enableval=$enable_protocol_ftp;
8024                           if test "$enableval" = yes; then
8025                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
8026                           else
8027                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
8028                           fi
8029
8030 else
8031
8032                           wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
8033
8034 fi
8035
8036
8037           eval "$wx_cv_use_protocol_ftp"
8038
8039           if test x"$enablestring" = xdisable; then
8040             if test $wxUSE_PROTOCOL_FTP = yes; then
8041               result=no
8042             else
8043               result=yes
8044             fi
8045           else
8046             result=$wxUSE_PROTOCOL_FTP
8047           fi
8048
8049           { echo "$as_me:$LINENO: result: $result" >&5
8050 echo "${ECHO_T}$result" >&6; }
8051
8052
8053           enablestring=
8054           defaultval=$wxUSE_ALL_FEATURES
8055           if test -z "$defaultval"; then
8056               if test x"$enablestring" = xdisable; then
8057                   defaultval=yes
8058               else
8059                   defaultval=no
8060               fi
8061           fi
8062
8063           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
8064 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6; }
8065           # Check whether --enable-protocol_file was given.
8066 if test "${enable_protocol_file+set}" = set; then
8067   enableval=$enable_protocol_file;
8068                           if test "$enableval" = yes; then
8069                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
8070                           else
8071                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
8072                           fi
8073
8074 else
8075
8076                           wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
8077
8078 fi
8079
8080
8081           eval "$wx_cv_use_protocol_file"
8082
8083           if test x"$enablestring" = xdisable; then
8084             if test $wxUSE_PROTOCOL_FILE = yes; then
8085               result=no
8086             else
8087               result=yes
8088             fi
8089           else
8090             result=$wxUSE_PROTOCOL_FILE
8091           fi
8092
8093           { echo "$as_me:$LINENO: result: $result" >&5
8094 echo "${ECHO_T}$result" >&6; }
8095
8096
8097
8098           enablestring=
8099           defaultval=$wxUSE_ALL_FEATURES
8100           if test -z "$defaultval"; then
8101               if test x"$enablestring" = xdisable; then
8102                   defaultval=yes
8103               else
8104                   defaultval=no
8105               fi
8106           fi
8107
8108           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
8109 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6; }
8110           # Check whether --enable-threads was given.
8111 if test "${enable_threads+set}" = set; then
8112   enableval=$enable_threads;
8113                           if test "$enableval" = yes; then
8114                             wx_cv_use_threads='wxUSE_THREADS=yes'
8115                           else
8116                             wx_cv_use_threads='wxUSE_THREADS=no'
8117                           fi
8118
8119 else
8120
8121                           wx_cv_use_threads='wxUSE_THREADS=${'DEFAULT_wxUSE_THREADS":-$defaultval}"
8122
8123 fi
8124
8125
8126           eval "$wx_cv_use_threads"
8127
8128           if test x"$enablestring" = xdisable; then
8129             if test $wxUSE_THREADS = yes; then
8130               result=no
8131             else
8132               result=yes
8133             fi
8134           else
8135             result=$wxUSE_THREADS
8136           fi
8137
8138           { echo "$as_me:$LINENO: result: $result" >&5
8139 echo "${ECHO_T}$result" >&6; }
8140
8141
8142
8143           enablestring=
8144           defaultval=
8145           if test -z "$defaultval"; then
8146               if test x"$enablestring" = xdisable; then
8147                   defaultval=yes
8148               else
8149                   defaultval=no
8150               fi
8151           fi
8152
8153           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iniconf" >&5
8154 echo $ECHO_N "checking for --${enablestring:-enable}-iniconf... $ECHO_C" >&6; }
8155           # Check whether --enable-iniconf was given.
8156 if test "${enable_iniconf+set}" = set; then
8157   enableval=$enable_iniconf;
8158                           if test "$enableval" = yes; then
8159                             wx_cv_use_iniconf='wxUSE_INICONF=yes'
8160                           else
8161                             wx_cv_use_iniconf='wxUSE_INICONF=no'
8162                           fi
8163
8164 else
8165
8166                           wx_cv_use_iniconf='wxUSE_INICONF=${'DEFAULT_wxUSE_INICONF":-$defaultval}"
8167
8168 fi
8169
8170
8171           eval "$wx_cv_use_iniconf"
8172
8173           if test x"$enablestring" = xdisable; then
8174             if test $wxUSE_INICONF = yes; then
8175               result=no
8176             else
8177               result=yes
8178             fi
8179           else
8180             result=$wxUSE_INICONF
8181           fi
8182
8183           { echo "$as_me:$LINENO: result: $result" >&5
8184 echo "${ECHO_T}$result" >&6; }
8185
8186
8187           enablestring=
8188           defaultval=$wxUSE_ALL_FEATURES
8189           if test -z "$defaultval"; then
8190               if test x"$enablestring" = xdisable; then
8191                   defaultval=yes
8192               else
8193                   defaultval=no
8194               fi
8195           fi
8196
8197           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-regkey" >&5
8198 echo $ECHO_N "checking for --${enablestring:-enable}-regkey... $ECHO_C" >&6; }
8199           # Check whether --enable-regkey was given.
8200 if test "${enable_regkey+set}" = set; then
8201   enableval=$enable_regkey;
8202                           if test "$enableval" = yes; then
8203                             wx_cv_use_regkey='wxUSE_REGKEY=yes'
8204                           else
8205                             wx_cv_use_regkey='wxUSE_REGKEY=no'
8206                           fi
8207
8208 else
8209
8210                           wx_cv_use_regkey='wxUSE_REGKEY=${'DEFAULT_wxUSE_REGKEY":-$defaultval}"
8211
8212 fi
8213
8214
8215           eval "$wx_cv_use_regkey"
8216
8217           if test x"$enablestring" = xdisable; then
8218             if test $wxUSE_REGKEY = yes; then
8219               result=no
8220             else
8221               result=yes
8222             fi
8223           else
8224             result=$wxUSE_REGKEY
8225           fi
8226
8227           { echo "$as_me:$LINENO: result: $result" >&5
8228 echo "${ECHO_T}$result" >&6; }
8229
8230
8231 if test "$wxUSE_GUI" = "yes"; then
8232
8233
8234
8235           enablestring=
8236           defaultval=$wxUSE_ALL_FEATURES
8237           if test -z "$defaultval"; then
8238               if test x"$enablestring" = xdisable; then
8239                   defaultval=yes
8240               else
8241                   defaultval=no
8242               fi
8243           fi
8244
8245           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
8246 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6; }
8247           # Check whether --enable-docview was given.
8248 if test "${enable_docview+set}" = set; then
8249   enableval=$enable_docview;
8250                           if test "$enableval" = yes; then
8251                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
8252                           else
8253                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
8254                           fi
8255
8256 else
8257
8258                           wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=${'DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE":-$defaultval}"
8259
8260 fi
8261
8262
8263           eval "$wx_cv_use_docview"
8264
8265           if test x"$enablestring" = xdisable; then
8266             if test $wxUSE_DOC_VIEW_ARCHITECTURE = yes; then
8267               result=no
8268             else
8269               result=yes
8270             fi
8271           else
8272             result=$wxUSE_DOC_VIEW_ARCHITECTURE
8273           fi
8274
8275           { echo "$as_me:$LINENO: result: $result" >&5
8276 echo "${ECHO_T}$result" >&6; }
8277
8278
8279           enablestring=
8280           defaultval=$wxUSE_ALL_FEATURES
8281           if test -z "$defaultval"; then
8282               if test x"$enablestring" = xdisable; then
8283                   defaultval=yes
8284               else
8285                   defaultval=no
8286               fi
8287           fi
8288
8289           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
8290 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6; }
8291           # Check whether --enable-help was given.
8292 if test "${enable_help+set}" = set; then
8293   enableval=$enable_help;
8294                           if test "$enableval" = yes; then
8295                             wx_cv_use_help='wxUSE_HELP=yes'
8296                           else
8297                             wx_cv_use_help='wxUSE_HELP=no'
8298                           fi
8299
8300 else
8301
8302                           wx_cv_use_help='wxUSE_HELP=${'DEFAULT_wxUSE_HELP":-$defaultval}"
8303
8304 fi
8305
8306
8307           eval "$wx_cv_use_help"
8308
8309           if test x"$enablestring" = xdisable; then
8310             if test $wxUSE_HELP = yes; then
8311               result=no
8312             else
8313               result=yes
8314             fi
8315           else
8316             result=$wxUSE_HELP
8317           fi
8318
8319           { echo "$as_me:$LINENO: result: $result" >&5
8320 echo "${ECHO_T}$result" >&6; }
8321
8322
8323           enablestring=
8324           defaultval=$wxUSE_ALL_FEATURES
8325           if test -z "$defaultval"; then
8326               if test x"$enablestring" = xdisable; then
8327                   defaultval=yes
8328               else
8329                   defaultval=no
8330               fi
8331           fi
8332
8333           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
8334 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6; }
8335           # Check whether --enable-mshtmlhelp was given.
8336 if test "${enable_mshtmlhelp+set}" = set; then
8337   enableval=$enable_mshtmlhelp;
8338                           if test "$enableval" = yes; then
8339                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
8340                           else
8341                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
8342                           fi
8343
8344 else
8345
8346                           wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=${'DEFAULT_wxUSE_MS_HTML_HELP":-$defaultval}"
8347
8348 fi
8349
8350
8351           eval "$wx_cv_use_mshtmlhelp"
8352
8353           if test x"$enablestring" = xdisable; then
8354             if test $wxUSE_MS_HTML_HELP = yes; then
8355               result=no
8356             else
8357               result=yes
8358             fi
8359           else
8360             result=$wxUSE_MS_HTML_HELP
8361           fi
8362
8363           { echo "$as_me:$LINENO: result: $result" >&5
8364 echo "${ECHO_T}$result" >&6; }
8365
8366
8367           enablestring=
8368           defaultval=$wxUSE_ALL_FEATURES
8369           if test -z "$defaultval"; then
8370               if test x"$enablestring" = xdisable; then
8371                   defaultval=yes
8372               else
8373                   defaultval=no
8374               fi
8375           fi
8376
8377           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
8378 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6; }
8379           # Check whether --enable-html was given.
8380 if test "${enable_html+set}" = set; then
8381   enableval=$enable_html;
8382                           if test "$enableval" = yes; then
8383                             wx_cv_use_html='wxUSE_HTML=yes'
8384                           else
8385                             wx_cv_use_html='wxUSE_HTML=no'
8386                           fi
8387
8388 else
8389
8390                           wx_cv_use_html='wxUSE_HTML=${'DEFAULT_wxUSE_HTML":-$defaultval}"
8391
8392 fi
8393
8394
8395           eval "$wx_cv_use_html"
8396
8397           if test x"$enablestring" = xdisable; then
8398             if test $wxUSE_HTML = yes; then
8399               result=no
8400             else
8401               result=yes
8402             fi
8403           else
8404             result=$wxUSE_HTML
8405           fi
8406
8407           { echo "$as_me:$LINENO: result: $result" >&5
8408 echo "${ECHO_T}$result" >&6; }
8409
8410
8411           enablestring=
8412           defaultval=$wxUSE_ALL_FEATURES
8413           if test -z "$defaultval"; then
8414               if test x"$enablestring" = xdisable; then
8415                   defaultval=yes
8416               else
8417                   defaultval=no
8418               fi
8419           fi
8420
8421           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
8422 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6; }
8423           # Check whether --enable-htmlhelp was given.
8424 if test "${enable_htmlhelp+set}" = set; then
8425   enableval=$enable_htmlhelp;
8426                           if test "$enableval" = yes; then
8427                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
8428                           else
8429                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
8430                           fi
8431
8432 else
8433
8434                           wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=${'DEFAULT_wxUSE_WXHTML_HELP":-$defaultval}"
8435
8436 fi
8437
8438
8439           eval "$wx_cv_use_htmlhelp"
8440
8441           if test x"$enablestring" = xdisable; then
8442             if test $wxUSE_WXHTML_HELP = yes; then
8443               result=no
8444             else
8445               result=yes
8446             fi
8447           else
8448             result=$wxUSE_WXHTML_HELP
8449           fi
8450
8451           { echo "$as_me:$LINENO: result: $result" >&5
8452 echo "${ECHO_T}$result" >&6; }
8453
8454
8455           enablestring=
8456           defaultval=$wxUSE_ALL_FEATURES
8457           if test -z "$defaultval"; then
8458               if test x"$enablestring" = xdisable; then
8459                   defaultval=yes
8460               else
8461                   defaultval=no
8462               fi
8463           fi
8464
8465           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
8466 echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6; }
8467           # Check whether --enable-xrc was given.
8468 if test "${enable_xrc+set}" = set; then
8469   enableval=$enable_xrc;
8470                           if test "$enableval" = yes; then
8471                             wx_cv_use_xrc='wxUSE_XRC=yes'
8472                           else
8473                             wx_cv_use_xrc='wxUSE_XRC=no'
8474                           fi
8475
8476 else
8477
8478                           wx_cv_use_xrc='wxUSE_XRC=${'DEFAULT_wxUSE_XRC":-$defaultval}"
8479
8480 fi
8481
8482
8483           eval "$wx_cv_use_xrc"
8484
8485           if test x"$enablestring" = xdisable; then
8486             if test $wxUSE_XRC = yes; then
8487               result=no
8488             else
8489               result=yes
8490             fi
8491           else
8492             result=$wxUSE_XRC
8493           fi
8494
8495           { echo "$as_me:$LINENO: result: $result" >&5
8496 echo "${ECHO_T}$result" >&6; }
8497
8498
8499           enablestring=
8500           defaultval=$wxUSE_ALL_FEATURES
8501           if test -z "$defaultval"; then
8502               if test x"$enablestring" = xdisable; then
8503                   defaultval=yes
8504               else
8505                   defaultval=no
8506               fi
8507           fi
8508
8509           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
8510 echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6; }
8511           # Check whether --enable-aui was given.
8512 if test "${enable_aui+set}" = set; then
8513   enableval=$enable_aui;
8514                           if test "$enableval" = yes; then
8515                             wx_cv_use_aui='wxUSE_AUI=yes'
8516                           else
8517                             wx_cv_use_aui='wxUSE_AUI=no'
8518                           fi
8519
8520 else
8521
8522                           wx_cv_use_aui='wxUSE_AUI=${'DEFAULT_wxUSE_AUI":-$defaultval}"
8523
8524 fi
8525
8526
8527           eval "$wx_cv_use_aui"
8528
8529           if test x"$enablestring" = xdisable; then
8530             if test $wxUSE_AUI = yes; then
8531               result=no
8532             else
8533               result=yes
8534             fi
8535           else
8536             result=$wxUSE_AUI
8537           fi
8538
8539           { echo "$as_me:$LINENO: result: $result" >&5
8540 echo "${ECHO_T}$result" >&6; }
8541
8542
8543           enablestring=
8544           defaultval=$wxUSE_ALL_FEATURES
8545           if test -z "$defaultval"; then
8546               if test x"$enablestring" = xdisable; then
8547                   defaultval=yes
8548               else
8549                   defaultval=no
8550               fi
8551           fi
8552
8553           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-propgrid" >&5
8554 echo $ECHO_N "checking for --${enablestring:-enable}-propgrid... $ECHO_C" >&6; }
8555           # Check whether --enable-propgrid was given.
8556 if test "${enable_propgrid+set}" = set; then
8557   enableval=$enable_propgrid;
8558                           if test "$enableval" = yes; then
8559                             wx_cv_use_propgrid='wxUSE_PROPGRID=yes'
8560                           else
8561                             wx_cv_use_propgrid='wxUSE_PROPGRID=no'
8562                           fi
8563
8564 else
8565
8566                           wx_cv_use_propgrid='wxUSE_PROPGRID=${'DEFAULT_wxUSE_PROPGRID":-$defaultval}"
8567
8568 fi
8569
8570
8571           eval "$wx_cv_use_propgrid"
8572
8573           if test x"$enablestring" = xdisable; then
8574             if test $wxUSE_PROPGRID = yes; then
8575               result=no
8576             else
8577               result=yes
8578             fi
8579           else
8580             result=$wxUSE_PROPGRID
8581           fi
8582
8583           { echo "$as_me:$LINENO: result: $result" >&5
8584 echo "${ECHO_T}$result" >&6; }
8585
8586
8587           enablestring=
8588           defaultval=$wxUSE_ALL_FEATURES
8589           if test -z "$defaultval"; then
8590               if test x"$enablestring" = xdisable; then
8591                   defaultval=yes
8592               else
8593                   defaultval=no
8594               fi
8595           fi
8596
8597           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stc" >&5
8598 echo $ECHO_N "checking for --${enablestring:-enable}-stc... $ECHO_C" >&6; }
8599           # Check whether --enable-stc was given.
8600 if test "${enable_stc+set}" = set; then
8601   enableval=$enable_stc;
8602                           if test "$enableval" = yes; then
8603                             wx_cv_use_stc='wxUSE_STC=yes'
8604                           else
8605                             wx_cv_use_stc='wxUSE_STC=no'
8606                           fi
8607
8608 else
8609
8610                           wx_cv_use_stc='wxUSE_STC=${'DEFAULT_wxUSE_STC":-$defaultval}"
8611
8612 fi
8613
8614
8615           eval "$wx_cv_use_stc"
8616
8617           if test x"$enablestring" = xdisable; then
8618             if test $wxUSE_STC = yes; then
8619               result=no
8620             else
8621               result=yes
8622             fi
8623           else
8624             result=$wxUSE_STC
8625           fi
8626
8627           { echo "$as_me:$LINENO: result: $result" >&5
8628 echo "${ECHO_T}$result" >&6; }
8629
8630
8631           enablestring=
8632           defaultval=$wxUSE_ALL_FEATURES
8633           if test -z "$defaultval"; then
8634               if test x"$enablestring" = xdisable; then
8635                   defaultval=yes
8636               else
8637                   defaultval=no
8638               fi
8639           fi
8640
8641           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
8642 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6; }
8643           # Check whether --enable-constraints was given.
8644 if test "${enable_constraints+set}" = set; then
8645   enableval=$enable_constraints;
8646                           if test "$enableval" = yes; then
8647                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
8648                           else
8649                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=no'
8650                           fi
8651
8652 else
8653
8654                           wx_cv_use_constraints='wxUSE_CONSTRAINTS=${'DEFAULT_wxUSE_CONSTRAINTS":-$defaultval}"
8655
8656 fi
8657
8658
8659           eval "$wx_cv_use_constraints"
8660
8661           if test x"$enablestring" = xdisable; then
8662             if test $wxUSE_CONSTRAINTS = yes; then
8663               result=no
8664             else
8665               result=yes
8666             fi
8667           else
8668             result=$wxUSE_CONSTRAINTS
8669           fi
8670
8671           { echo "$as_me:$LINENO: result: $result" >&5
8672 echo "${ECHO_T}$result" >&6; }
8673
8674
8675           enablestring=
8676           defaultval=$wxUSE_ALL_FEATURES
8677           if test -z "$defaultval"; then
8678               if test x"$enablestring" = xdisable; then
8679                   defaultval=yes
8680               else
8681                   defaultval=no
8682               fi
8683           fi
8684
8685           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
8686 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6; }
8687           # Check whether --enable-loggui was given.
8688 if test "${enable_loggui+set}" = set; then
8689   enableval=$enable_loggui;
8690                           if test "$enableval" = yes; then
8691                             wx_cv_use_loggui='wxUSE_LOGGUI=yes'
8692                           else
8693                             wx_cv_use_loggui='wxUSE_LOGGUI=no'
8694                           fi
8695
8696 else
8697
8698                           wx_cv_use_loggui='wxUSE_LOGGUI=${'DEFAULT_wxUSE_LOGGUI":-$defaultval}"
8699
8700 fi
8701
8702
8703           eval "$wx_cv_use_loggui"
8704
8705           if test x"$enablestring" = xdisable; then
8706             if test $wxUSE_LOGGUI = yes; then
8707               result=no
8708             else
8709               result=yes
8710             fi
8711           else
8712             result=$wxUSE_LOGGUI
8713           fi
8714
8715           { echo "$as_me:$LINENO: result: $result" >&5
8716 echo "${ECHO_T}$result" >&6; }
8717
8718
8719           enablestring=
8720           defaultval=$wxUSE_ALL_FEATURES
8721           if test -z "$defaultval"; then
8722               if test x"$enablestring" = xdisable; then
8723                   defaultval=yes
8724               else
8725                   defaultval=no
8726               fi
8727           fi
8728
8729           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
8730 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6; }
8731           # Check whether --enable-logwin was given.
8732 if test "${enable_logwin+set}" = set; then
8733   enableval=$enable_logwin;
8734                           if test "$enableval" = yes; then
8735                             wx_cv_use_logwin='wxUSE_LOGWINDOW=yes'
8736                           else
8737                             wx_cv_use_logwin='wxUSE_LOGWINDOW=no'
8738                           fi
8739
8740 else
8741
8742                           wx_cv_use_logwin='wxUSE_LOGWINDOW=${'DEFAULT_wxUSE_LOGWINDOW":-$defaultval}"
8743
8744 fi
8745
8746
8747           eval "$wx_cv_use_logwin"
8748
8749           if test x"$enablestring" = xdisable; then
8750             if test $wxUSE_LOGWINDOW = yes; then
8751               result=no
8752             else
8753               result=yes
8754             fi
8755           else
8756             result=$wxUSE_LOGWINDOW
8757           fi
8758
8759           { echo "$as_me:$LINENO: result: $result" >&5
8760 echo "${ECHO_T}$result" >&6; }
8761
8762
8763           enablestring=
8764           defaultval=$wxUSE_ALL_FEATURES
8765           if test -z "$defaultval"; then
8766               if test x"$enablestring" = xdisable; then
8767                   defaultval=yes
8768               else
8769                   defaultval=no
8770               fi
8771           fi
8772
8773           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
8774 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6; }
8775           # Check whether --enable-logdialog was given.
8776 if test "${enable_logdialog+set}" = set; then
8777   enableval=$enable_logdialog;
8778                           if test "$enableval" = yes; then
8779                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
8780                           else
8781                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=no'
8782                           fi
8783
8784 else
8785
8786                           wx_cv_use_logdialog='wxUSE_LOGDIALOG=${'DEFAULT_wxUSE_LOGDIALOG":-$defaultval}"
8787
8788 fi
8789
8790
8791           eval "$wx_cv_use_logdialog"
8792
8793           if test x"$enablestring" = xdisable; then
8794             if test $wxUSE_LOGDIALOG = yes; then
8795               result=no
8796             else
8797               result=yes
8798             fi
8799           else
8800             result=$wxUSE_LOGDIALOG
8801           fi
8802
8803           { echo "$as_me:$LINENO: result: $result" >&5
8804 echo "${ECHO_T}$result" >&6; }
8805
8806
8807           enablestring=
8808           defaultval=$wxUSE_ALL_FEATURES
8809           if test -z "$defaultval"; then
8810               if test x"$enablestring" = xdisable; then
8811                   defaultval=yes
8812               else
8813                   defaultval=no
8814               fi
8815           fi
8816
8817           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
8818 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6; }
8819           # Check whether --enable-mdi was given.
8820 if test "${enable_mdi+set}" = set; then
8821   enableval=$enable_mdi;
8822                           if test "$enableval" = yes; then
8823                             wx_cv_use_mdi='wxUSE_MDI=yes'
8824                           else
8825                             wx_cv_use_mdi='wxUSE_MDI=no'
8826                           fi
8827
8828 else
8829
8830                           wx_cv_use_mdi='wxUSE_MDI=${'DEFAULT_wxUSE_MDI":-$defaultval}"
8831
8832 fi
8833
8834
8835           eval "$wx_cv_use_mdi"
8836
8837           if test x"$enablestring" = xdisable; then
8838             if test $wxUSE_MDI = yes; then
8839               result=no
8840             else
8841               result=yes
8842             fi
8843           else
8844             result=$wxUSE_MDI
8845           fi
8846
8847           { echo "$as_me:$LINENO: result: $result" >&5
8848 echo "${ECHO_T}$result" >&6; }
8849
8850
8851           enablestring=
8852           defaultval=$wxUSE_ALL_FEATURES
8853           if test -z "$defaultval"; then
8854               if test x"$enablestring" = xdisable; then
8855                   defaultval=yes
8856               else
8857                   defaultval=no
8858               fi
8859           fi
8860
8861           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
8862 echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6; }
8863           # Check whether --enable-mdidoc was given.
8864 if test "${enable_mdidoc+set}" = set; then
8865   enableval=$enable_mdidoc;
8866                           if test "$enableval" = yes; then
8867                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
8868                           else
8869                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
8870                           fi
8871
8872 else
8873
8874                           wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=${'DEFAULT_wxUSE_MDI_ARCHITECTURE":-$defaultval}"
8875
8876 fi
8877
8878
8879           eval "$wx_cv_use_mdidoc"
8880
8881           if test x"$enablestring" = xdisable; then
8882             if test $wxUSE_MDI_ARCHITECTURE = yes; then
8883               result=no
8884             else
8885               result=yes
8886             fi
8887           else
8888             result=$wxUSE_MDI_ARCHITECTURE
8889           fi
8890
8891           { echo "$as_me:$LINENO: result: $result" >&5
8892 echo "${ECHO_T}$result" >&6; }
8893
8894
8895           enablestring=
8896           defaultval=$wxUSE_ALL_FEATURES
8897           if test -z "$defaultval"; then
8898               if test x"$enablestring" = xdisable; then
8899                   defaultval=yes
8900               else
8901                   defaultval=no
8902               fi
8903           fi
8904
8905           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
8906 echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6; }
8907           # Check whether --enable-mediactrl was given.
8908 if test "${enable_mediactrl+set}" = set; then
8909   enableval=$enable_mediactrl;
8910                           if test "$enableval" = yes; then
8911                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
8912                           else
8913                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
8914                           fi
8915
8916 else
8917
8918                           wx_cv_use_mediactrl='wxUSE_MEDIACTRL=${'DEFAULT_wxUSE_MEDIACTRL":-$defaultval}"
8919
8920 fi
8921
8922
8923           eval "$wx_cv_use_mediactrl"
8924
8925           if test x"$enablestring" = xdisable; then
8926             if test $wxUSE_MEDIACTRL = yes; then
8927               result=no
8928             else
8929               result=yes
8930             fi
8931           else
8932             result=$wxUSE_MEDIACTRL
8933           fi
8934
8935           { echo "$as_me:$LINENO: result: $result" >&5
8936 echo "${ECHO_T}$result" >&6; }
8937
8938
8939           enablestring=
8940           defaultval=$wxUSE_ALL_FEATURES
8941           if test -z "$defaultval"; then
8942               if test x"$enablestring" = xdisable; then
8943                   defaultval=yes
8944               else
8945                   defaultval=no
8946               fi
8947           fi
8948
8949           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
8950 echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6; }
8951           # Check whether --enable-gstreamer8 was given.
8952 if test "${enable_gstreamer8+set}" = set; then
8953   enableval=$enable_gstreamer8;
8954                           if test "$enableval" = yes; then
8955                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
8956                           else
8957                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
8958                           fi
8959
8960 else
8961
8962                           wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=${'DEFAULT_wxUSE_GSTREAMER8":-$defaultval}"
8963
8964 fi
8965
8966
8967           eval "$wx_cv_use_gstreamer8"
8968
8969           if test x"$enablestring" = xdisable; then
8970             if test $wxUSE_GSTREAMER8 = yes; then
8971               result=no
8972             else
8973               result=yes
8974             fi
8975           else
8976             result=$wxUSE_GSTREAMER8
8977           fi
8978
8979           { echo "$as_me:$LINENO: result: $result" >&5
8980 echo "${ECHO_T}$result" >&6; }
8981
8982
8983           enablestring=
8984           defaultval=$wxUSE_ALL_FEATURES
8985           if test -z "$defaultval"; then
8986               if test x"$enablestring" = xdisable; then
8987                   defaultval=yes
8988               else
8989                   defaultval=no
8990               fi
8991           fi
8992
8993           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
8994 echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6; }
8995           # Check whether --enable-webkit was given.
8996 if test "${enable_webkit+set}" = set; then
8997   enableval=$enable_webkit;
8998                           if test "$enableval" = yes; then
8999                             wx_cv_use_webkit='wxUSE_WEBKIT=yes'
9000                           else
9001                             wx_cv_use_webkit='wxUSE_WEBKIT=no'
9002                           fi
9003
9004 else
9005
9006                           wx_cv_use_webkit='wxUSE_WEBKIT=${'DEFAULT_wxUSE_WEBKIT":-$defaultval}"
9007
9008 fi
9009
9010
9011           eval "$wx_cv_use_webkit"
9012
9013           if test x"$enablestring" = xdisable; then
9014             if test $wxUSE_WEBKIT = yes; then
9015               result=no
9016             else
9017               result=yes
9018             fi
9019           else
9020             result=$wxUSE_WEBKIT
9021           fi
9022
9023           { echo "$as_me:$LINENO: result: $result" >&5
9024 echo "${ECHO_T}$result" >&6; }
9025
9026
9027           enablestring=
9028           defaultval=$wxUSE_ALL_FEATURES
9029           if test -z "$defaultval"; then
9030               if test x"$enablestring" = xdisable; then
9031                   defaultval=yes
9032               else
9033                   defaultval=no
9034               fi
9035           fi
9036
9037           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richtext" >&5
9038 echo $ECHO_N "checking for --${enablestring:-enable}-richtext... $ECHO_C" >&6; }
9039           # Check whether --enable-richtext was given.
9040 if test "${enable_richtext+set}" = set; then
9041   enableval=$enable_richtext;
9042                           if test "$enableval" = yes; then
9043                             wx_cv_use_richtext='wxUSE_RICHTEXT=yes'
9044                           else
9045                             wx_cv_use_richtext='wxUSE_RICHTEXT=no'
9046                           fi
9047
9048 else
9049
9050                           wx_cv_use_richtext='wxUSE_RICHTEXT=${'DEFAULT_wxUSE_RICHTEXT":-$defaultval}"
9051
9052 fi
9053
9054
9055           eval "$wx_cv_use_richtext"
9056
9057           if test x"$enablestring" = xdisable; then
9058             if test $wxUSE_RICHTEXT = yes; then
9059               result=no
9060             else
9061               result=yes
9062             fi
9063           else
9064             result=$wxUSE_RICHTEXT
9065           fi
9066
9067           { echo "$as_me:$LINENO: result: $result" >&5
9068 echo "${ECHO_T}$result" >&6; }
9069
9070
9071           enablestring=
9072           defaultval=$wxUSE_ALL_FEATURES
9073           if test -z "$defaultval"; then
9074               if test x"$enablestring" = xdisable; then
9075                   defaultval=yes
9076               else
9077                   defaultval=no
9078               fi
9079           fi
9080
9081           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5
9082 echo $ECHO_N "checking for --${enablestring:-enable}-graphics_ctx... $ECHO_C" >&6; }
9083           # Check whether --enable-graphics_ctx was given.
9084 if test "${enable_graphics_ctx+set}" = set; then
9085   enableval=$enable_graphics_ctx;
9086                           if test "$enableval" = yes; then
9087                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes'
9088                           else
9089                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no'
9090                           fi
9091
9092 else
9093
9094                           wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=${'DEFAULT_wxUSE_GRAPHICS_CONTEXT":-$defaultval}"
9095
9096 fi
9097
9098
9099           eval "$wx_cv_use_graphics_ctx"
9100
9101           if test x"$enablestring" = xdisable; then
9102             if test $wxUSE_GRAPHICS_CONTEXT = yes; then
9103               result=no
9104             else
9105               result=yes
9106             fi
9107           else
9108             result=$wxUSE_GRAPHICS_CONTEXT
9109           fi
9110
9111           { echo "$as_me:$LINENO: result: $result" >&5
9112 echo "${ECHO_T}$result" >&6; }
9113
9114
9115           enablestring=
9116           defaultval=$wxUSE_ALL_FEATURES
9117           if test -z "$defaultval"; then
9118               if test x"$enablestring" = xdisable; then
9119                   defaultval=yes
9120               else
9121                   defaultval=no
9122               fi
9123           fi
9124
9125           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
9126 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6; }
9127           # Check whether --enable-postscript was given.
9128 if test "${enable_postscript+set}" = set; then
9129   enableval=$enable_postscript;
9130                           if test "$enableval" = yes; then
9131                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
9132                           else
9133                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=no'
9134                           fi
9135
9136 else
9137
9138                           wx_cv_use_postscript='wxUSE_POSTSCRIPT=${'DEFAULT_wxUSE_POSTSCRIPT":-$defaultval}"
9139
9140 fi
9141
9142
9143           eval "$wx_cv_use_postscript"
9144
9145           if test x"$enablestring" = xdisable; then
9146             if test $wxUSE_POSTSCRIPT = yes; then
9147               result=no
9148             else
9149               result=yes
9150             fi
9151           else
9152             result=$wxUSE_POSTSCRIPT
9153           fi
9154
9155           { echo "$as_me:$LINENO: result: $result" >&5
9156 echo "${ECHO_T}$result" >&6; }
9157
9158
9159           enablestring=
9160           defaultval=$wxUSE_ALL_FEATURES
9161           if test -z "$defaultval"; then
9162               if test x"$enablestring" = xdisable; then
9163                   defaultval=yes
9164               else
9165                   defaultval=no
9166               fi
9167           fi
9168
9169           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
9170 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6; }
9171           # Check whether --enable-printarch was given.
9172 if test "${enable_printarch+set}" = set; then
9173   enableval=$enable_printarch;
9174                           if test "$enableval" = yes; then
9175                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
9176                           else
9177                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
9178                           fi
9179
9180 else
9181
9182                           wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=${'DEFAULT_wxUSE_PRINTING_ARCHITECTURE":-$defaultval}"
9183
9184 fi
9185
9186
9187           eval "$wx_cv_use_printarch"
9188
9189           if test x"$enablestring" = xdisable; then
9190             if test $wxUSE_PRINTING_ARCHITECTURE = yes; then
9191               result=no
9192             else
9193               result=yes
9194             fi
9195           else
9196             result=$wxUSE_PRINTING_ARCHITECTURE
9197           fi
9198
9199           { echo "$as_me:$LINENO: result: $result" >&5
9200 echo "${ECHO_T}$result" >&6; }
9201
9202
9203           enablestring=
9204           defaultval=$wxUSE_ALL_FEATURES
9205           if test -z "$defaultval"; then
9206               if test x"$enablestring" = xdisable; then
9207                   defaultval=yes
9208               else
9209                   defaultval=no
9210               fi
9211           fi
9212
9213           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-svg" >&5
9214 echo $ECHO_N "checking for --${enablestring:-enable}-svg... $ECHO_C" >&6; }
9215           # Check whether --enable-svg was given.
9216 if test "${enable_svg+set}" = set; then
9217   enableval=$enable_svg;
9218                           if test "$enableval" = yes; then
9219                             wx_cv_use_svg='wxUSE_SVG=yes'
9220                           else
9221                             wx_cv_use_svg='wxUSE_SVG=no'
9222                           fi
9223
9224 else
9225
9226                           wx_cv_use_svg='wxUSE_SVG=${'DEFAULT_wxUSE_SVG":-$defaultval}"
9227
9228 fi
9229
9230
9231           eval "$wx_cv_use_svg"
9232
9233           if test x"$enablestring" = xdisable; then
9234             if test $wxUSE_SVG = yes; then
9235               result=no
9236             else
9237               result=yes
9238             fi
9239           else
9240             result=$wxUSE_SVG
9241           fi
9242
9243           { echo "$as_me:$LINENO: result: $result" >&5
9244 echo "${ECHO_T}$result" >&6; }
9245
9246
9247
9248
9249           enablestring=
9250           defaultval=$wxUSE_ALL_FEATURES
9251           if test -z "$defaultval"; then
9252               if test x"$enablestring" = xdisable; then
9253                   defaultval=yes
9254               else
9255                   defaultval=no
9256               fi
9257           fi
9258
9259           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
9260 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6; }
9261           # Check whether --enable-clipboard was given.
9262 if test "${enable_clipboard+set}" = set; then
9263   enableval=$enable_clipboard;
9264                           if test "$enableval" = yes; then
9265                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
9266                           else
9267                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=no'
9268                           fi
9269
9270 else
9271
9272                           wx_cv_use_clipboard='wxUSE_CLIPBOARD=${'DEFAULT_wxUSE_CLIPBOARD":-$defaultval}"
9273
9274 fi
9275
9276
9277           eval "$wx_cv_use_clipboard"
9278
9279           if test x"$enablestring" = xdisable; then
9280             if test $wxUSE_CLIPBOARD = yes; then
9281               result=no
9282             else
9283               result=yes
9284             fi
9285           else
9286             result=$wxUSE_CLIPBOARD
9287           fi
9288
9289           { echo "$as_me:$LINENO: result: $result" >&5
9290 echo "${ECHO_T}$result" >&6; }
9291
9292
9293           enablestring=
9294           defaultval=$wxUSE_ALL_FEATURES
9295           if test -z "$defaultval"; then
9296               if test x"$enablestring" = xdisable; then
9297                   defaultval=yes
9298               else
9299                   defaultval=no
9300               fi
9301           fi
9302
9303           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
9304 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6; }
9305           # Check whether --enable-dnd was given.
9306 if test "${enable_dnd+set}" = set; then
9307   enableval=$enable_dnd;
9308                           if test "$enableval" = yes; then
9309                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
9310                           else
9311                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
9312                           fi
9313
9314 else
9315
9316                           wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=${'DEFAULT_wxUSE_DRAG_AND_DROP":-$defaultval}"
9317
9318 fi
9319
9320
9321           eval "$wx_cv_use_dnd"
9322
9323           if test x"$enablestring" = xdisable; then
9324             if test $wxUSE_DRAG_AND_DROP = yes; then
9325               result=no
9326             else
9327               result=yes
9328             fi
9329           else
9330             result=$wxUSE_DRAG_AND_DROP
9331           fi
9332
9333           { echo "$as_me:$LINENO: result: $result" >&5
9334 echo "${ECHO_T}$result" >&6; }
9335
9336
9337           enablestring=
9338           defaultval=$wxUSE_ALL_FEATURES
9339           if test -z "$defaultval"; then
9340               if test x"$enablestring" = xdisable; then
9341                   defaultval=yes
9342               else
9343                   defaultval=no
9344               fi
9345           fi
9346
9347           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9348 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
9349           # Check whether --enable-metafile was given.
9350 if test "${enable_metafile+set}" = set; then
9351   enableval=$enable_metafile;
9352                           if test "$enableval" = yes; then
9353                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
9354                           else
9355                             wx_cv_use_metafile='wxUSE_METAFILE=no'
9356                           fi
9357
9358 else
9359
9360                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
9361
9362 fi
9363
9364
9365           eval "$wx_cv_use_metafile"
9366
9367           if test x"$enablestring" = xdisable; then
9368             if test $wxUSE_METAFILE = yes; then
9369               result=no
9370             else
9371               result=yes
9372             fi
9373           else
9374             result=$wxUSE_METAFILE
9375           fi
9376
9377           { echo "$as_me:$LINENO: result: $result" >&5
9378 echo "${ECHO_T}$result" >&6; }
9379
9380
9381
9382 DEFAULT_wxUSE_CONTROLS=none
9383
9384           enablestring=disable
9385           defaultval=
9386           if test -z "$defaultval"; then
9387               if test x"$enablestring" = xdisable; then
9388                   defaultval=yes
9389               else
9390                   defaultval=no
9391               fi
9392           fi
9393
9394           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
9395 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6; }
9396           # Check whether --enable-controls was given.
9397 if test "${enable_controls+set}" = set; then
9398   enableval=$enable_controls;
9399                           if test "$enableval" = yes; then
9400                             wx_cv_use_controls='wxUSE_CONTROLS=yes'
9401                           else
9402                             wx_cv_use_controls='wxUSE_CONTROLS=no'
9403                           fi
9404
9405 else
9406
9407                           wx_cv_use_controls='wxUSE_CONTROLS=${'DEFAULT_wxUSE_CONTROLS":-$defaultval}"
9408
9409 fi
9410
9411
9412           eval "$wx_cv_use_controls"
9413
9414           if test x"$enablestring" = xdisable; then
9415             if test $wxUSE_CONTROLS = yes; then
9416               result=no
9417             else
9418               result=yes
9419             fi
9420           else
9421             result=$wxUSE_CONTROLS
9422           fi
9423
9424           { echo "$as_me:$LINENO: result: $result" >&5
9425 echo "${ECHO_T}$result" >&6; }
9426
9427
9428 if test "$wxUSE_CONTROLS" = "no"; then
9429     DEFAULT_wxUSE_ACCEL=no
9430     DEFAULT_wxUSE_ANIMATIONCTRL=no
9431     DEFAULT_wxUSE_BMPBUTTON=no
9432     DEFAULT_wxUSE_BUTTON=no
9433     DEFAULT_wxUSE_CALCTRL=no
9434     DEFAULT_wxUSE_CARET=no
9435     DEFAULT_wxUSE_CHECKBOX=no
9436     DEFAULT_wxUSE_CHECKLISTBOX=no
9437     DEFAULT_wxUSE_CHOICE=no
9438     DEFAULT_wxUSE_CHOICEBOOK=no
9439     DEFAULT_wxUSE_COLLPANE=no
9440     DEFAULT_wxUSE_COLOURPICKERCTRL=no
9441     DEFAULT_wxUSE_COMBOBOX=no
9442     DEFAULT_wxUSE_COMBOBOX=no
9443     DEFAULT_wxUSE_DATAVIEWCTRL=no
9444     DEFAULT_wxUSE_DATEPICKCTRL=no
9445     DEFAULT_wxUSE_DETECT_SM=no
9446     DEFAULT_wxUSE_DIRPICKERCTRL=no
9447     DEFAULT_wxUSE_DISPLAY=no
9448     DEFAULT_wxUSE_FILECTRL=no
9449     DEFAULT_wxUSE_FILEPICKERCTRL=no
9450     DEFAULT_wxUSE_FONTPICKERCTRL=no
9451     DEFAULT_wxUSE_GAUGE=no
9452     DEFAULT_wxUSE_GRID=no
9453     DEFAULT_wxUSE_HEADERCTRL=no
9454     DEFAULT_wxUSE_HYPERLINKCTRL=no
9455     DEFAULT_wxUSE_IMAGLIST=no
9456     DEFAULT_wxUSE_LISTBOOK=no
9457     DEFAULT_wxUSE_LISTBOX=no
9458     DEFAULT_wxUSE_LISTCTRL=no
9459     DEFAULT_wxUSE_NOTEBOOK=no
9460     DEFAULT_wxUSE_POPUPWIN=no
9461     DEFAULT_wxUSE_RADIOBOX=no
9462     DEFAULT_wxUSE_RADIOBTN=no
9463     DEFAULT_wxUSE_REARRANGECTRL=no
9464     DEFAULT_wxUSE_SASH=no
9465     DEFAULT_wxUSE_SCROLLBAR=no
9466     DEFAULT_wxUSE_SEARCHCTRL=no
9467     DEFAULT_wxUSE_SLIDER=no
9468     DEFAULT_wxUSE_SPINBTN=no
9469     DEFAULT_wxUSE_SPINCTRL=no
9470     DEFAULT_wxUSE_SPLITTER=no
9471     DEFAULT_wxUSE_STATBMP=no
9472     DEFAULT_wxUSE_STATBOX=no
9473     DEFAULT_wxUSE_STATLINE=no
9474     DEFAULT_wxUSE_STATUSBAR=no
9475     DEFAULT_wxUSE_TIPWINDOW=no
9476     DEFAULT_wxUSE_TOGGLEBTN=no
9477     DEFAULT_wxUSE_TOOLBAR=no
9478     DEFAULT_wxUSE_TOOLBAR_NATIVE=no
9479     DEFAULT_wxUSE_TOOLBOOK=no
9480     DEFAULT_wxUSE_TOOLTIPS=no
9481     DEFAULT_wxUSE_TREEBOOK=no
9482     DEFAULT_wxUSE_TREECTRL=no
9483 fi
9484
9485
9486           enablestring=
9487           defaultval=$wxUSE_ALL_FEATURES
9488           if test -z "$defaultval"; then
9489               if test x"$enablestring" = xdisable; then
9490                   defaultval=yes
9491               else
9492                   defaultval=no
9493               fi
9494           fi
9495
9496           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
9497 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6; }
9498           # Check whether --enable-accel was given.
9499 if test "${enable_accel+set}" = set; then
9500   enableval=$enable_accel;
9501                           if test "$enableval" = yes; then
9502                             wx_cv_use_accel='wxUSE_ACCEL=yes'
9503                           else
9504                             wx_cv_use_accel='wxUSE_ACCEL=no'
9505                           fi
9506
9507 else
9508
9509                           wx_cv_use_accel='wxUSE_ACCEL=${'DEFAULT_wxUSE_ACCEL":-$defaultval}"
9510
9511 fi
9512
9513
9514           eval "$wx_cv_use_accel"
9515
9516           if test x"$enablestring" = xdisable; then
9517             if test $wxUSE_ACCEL = yes; then
9518               result=no
9519             else
9520               result=yes
9521             fi
9522           else
9523             result=$wxUSE_ACCEL
9524           fi
9525
9526           { echo "$as_me:$LINENO: result: $result" >&5
9527 echo "${ECHO_T}$result" >&6; }
9528
9529
9530           enablestring=
9531           defaultval=$wxUSE_ALL_FEATURES
9532           if test -z "$defaultval"; then
9533               if test x"$enablestring" = xdisable; then
9534                   defaultval=yes
9535               else
9536                   defaultval=no
9537               fi
9538           fi
9539
9540           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-animatectrl" >&5
9541 echo $ECHO_N "checking for --${enablestring:-enable}-animatectrl... $ECHO_C" >&6; }
9542           # Check whether --enable-animatectrl was given.
9543 if test "${enable_animatectrl+set}" = set; then
9544   enableval=$enable_animatectrl;
9545                           if test "$enableval" = yes; then
9546                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=yes'
9547                           else
9548                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=no'
9549                           fi
9550
9551 else
9552
9553                           wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=${'DEFAULT_wxUSE_ANIMATIONCTRL":-$defaultval}"
9554
9555 fi
9556
9557
9558           eval "$wx_cv_use_animatectrl"
9559
9560           if test x"$enablestring" = xdisable; then
9561             if test $wxUSE_ANIMATIONCTRL = yes; then
9562               result=no
9563             else
9564               result=yes
9565             fi
9566           else
9567             result=$wxUSE_ANIMATIONCTRL
9568           fi
9569
9570           { echo "$as_me:$LINENO: result: $result" >&5
9571 echo "${ECHO_T}$result" >&6; }
9572
9573
9574           enablestring=
9575           defaultval=$wxUSE_ALL_FEATURES
9576           if test -z "$defaultval"; then
9577               if test x"$enablestring" = xdisable; then
9578                   defaultval=yes
9579               else
9580                   defaultval=no
9581               fi
9582           fi
9583
9584           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
9585 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6; }
9586           # Check whether --enable-bmpbutton was given.
9587 if test "${enable_bmpbutton+set}" = set; then
9588   enableval=$enable_bmpbutton;
9589                           if test "$enableval" = yes; then
9590                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
9591                           else
9592                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
9593                           fi
9594
9595 else
9596
9597                           wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=${'DEFAULT_wxUSE_BMPBUTTON":-$defaultval}"
9598
9599 fi
9600
9601
9602           eval "$wx_cv_use_bmpbutton"
9603
9604           if test x"$enablestring" = xdisable; then
9605             if test $wxUSE_BMPBUTTON = yes; then
9606               result=no
9607             else
9608               result=yes
9609             fi
9610           else
9611             result=$wxUSE_BMPBUTTON
9612           fi
9613
9614           { echo "$as_me:$LINENO: result: $result" >&5
9615 echo "${ECHO_T}$result" >&6; }
9616
9617
9618           enablestring=
9619           defaultval=$wxUSE_ALL_FEATURES
9620           if test -z "$defaultval"; then
9621               if test x"$enablestring" = xdisable; then
9622                   defaultval=yes
9623               else
9624                   defaultval=no
9625               fi
9626           fi
9627
9628           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
9629 echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6; }
9630           # Check whether --enable-bmpcombobox was given.
9631 if test "${enable_bmpcombobox+set}" = set; then
9632   enableval=$enable_bmpcombobox;
9633                           if test "$enableval" = yes; then
9634                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
9635                           else
9636                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
9637                           fi
9638
9639 else
9640
9641                           wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=${'DEFAULT_wxUSE_BITMAPCOMBOBOX":-$defaultval}"
9642
9643 fi
9644
9645
9646           eval "$wx_cv_use_bmpcombobox"
9647
9648           if test x"$enablestring" = xdisable; then
9649             if test $wxUSE_BITMAPCOMBOBOX = yes; then
9650               result=no
9651             else
9652               result=yes
9653             fi
9654           else
9655             result=$wxUSE_BITMAPCOMBOBOX
9656           fi
9657
9658           { echo "$as_me:$LINENO: result: $result" >&5
9659 echo "${ECHO_T}$result" >&6; }
9660
9661
9662           enablestring=
9663           defaultval=$wxUSE_ALL_FEATURES
9664           if test -z "$defaultval"; then
9665               if test x"$enablestring" = xdisable; then
9666                   defaultval=yes
9667               else
9668                   defaultval=no
9669               fi
9670           fi
9671
9672           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
9673 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6; }
9674           # Check whether --enable-button was given.
9675 if test "${enable_button+set}" = set; then
9676   enableval=$enable_button;
9677                           if test "$enableval" = yes; then
9678                             wx_cv_use_button='wxUSE_BUTTON=yes'
9679                           else
9680                             wx_cv_use_button='wxUSE_BUTTON=no'
9681                           fi
9682
9683 else
9684
9685                           wx_cv_use_button='wxUSE_BUTTON=${'DEFAULT_wxUSE_BUTTON":-$defaultval}"
9686
9687 fi
9688
9689
9690           eval "$wx_cv_use_button"
9691
9692           if test x"$enablestring" = xdisable; then
9693             if test $wxUSE_BUTTON = yes; then
9694               result=no
9695             else
9696               result=yes
9697             fi
9698           else
9699             result=$wxUSE_BUTTON
9700           fi
9701
9702           { echo "$as_me:$LINENO: result: $result" >&5
9703 echo "${ECHO_T}$result" >&6; }
9704
9705
9706           enablestring=
9707           defaultval=$wxUSE_ALL_FEATURES
9708           if test -z "$defaultval"; then
9709               if test x"$enablestring" = xdisable; then
9710                   defaultval=yes
9711               else
9712                   defaultval=no
9713               fi
9714           fi
9715
9716           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
9717 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6; }
9718           # Check whether --enable-calendar was given.
9719 if test "${enable_calendar+set}" = set; then
9720   enableval=$enable_calendar;
9721                           if test "$enableval" = yes; then
9722                             wx_cv_use_calendar='wxUSE_CALCTRL=yes'
9723                           else
9724                             wx_cv_use_calendar='wxUSE_CALCTRL=no'
9725                           fi
9726
9727 else
9728
9729                           wx_cv_use_calendar='wxUSE_CALCTRL=${'DEFAULT_wxUSE_CALCTRL":-$defaultval}"
9730
9731 fi
9732
9733
9734           eval "$wx_cv_use_calendar"
9735
9736           if test x"$enablestring" = xdisable; then
9737             if test $wxUSE_CALCTRL = yes; then
9738               result=no
9739             else
9740               result=yes
9741             fi
9742           else
9743             result=$wxUSE_CALCTRL
9744           fi
9745
9746           { echo "$as_me:$LINENO: result: $result" >&5
9747 echo "${ECHO_T}$result" >&6; }
9748
9749
9750           enablestring=
9751           defaultval=$wxUSE_ALL_FEATURES
9752           if test -z "$defaultval"; then
9753               if test x"$enablestring" = xdisable; then
9754                   defaultval=yes
9755               else
9756                   defaultval=no
9757               fi
9758           fi
9759
9760           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
9761 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6; }
9762           # Check whether --enable-caret was given.
9763 if test "${enable_caret+set}" = set; then
9764   enableval=$enable_caret;
9765                           if test "$enableval" = yes; then
9766                             wx_cv_use_caret='wxUSE_CARET=yes'
9767                           else
9768                             wx_cv_use_caret='wxUSE_CARET=no'
9769                           fi
9770
9771 else
9772
9773                           wx_cv_use_caret='wxUSE_CARET=${'DEFAULT_wxUSE_CARET":-$defaultval}"
9774
9775 fi
9776
9777
9778           eval "$wx_cv_use_caret"
9779
9780           if test x"$enablestring" = xdisable; then
9781             if test $wxUSE_CARET = yes; then
9782               result=no
9783             else
9784               result=yes
9785             fi
9786           else
9787             result=$wxUSE_CARET
9788           fi
9789
9790           { echo "$as_me:$LINENO: result: $result" >&5
9791 echo "${ECHO_T}$result" >&6; }
9792
9793
9794           enablestring=
9795           defaultval=$wxUSE_ALL_FEATURES
9796           if test -z "$defaultval"; then
9797               if test x"$enablestring" = xdisable; then
9798                   defaultval=yes
9799               else
9800                   defaultval=no
9801               fi
9802           fi
9803
9804           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
9805 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6; }
9806           # Check whether --enable-checkbox was given.
9807 if test "${enable_checkbox+set}" = set; then
9808   enableval=$enable_checkbox;
9809                           if test "$enableval" = yes; then
9810                             wx_cv_use_checkbox='wxUSE_CHECKBOX=yes'
9811                           else
9812                             wx_cv_use_checkbox='wxUSE_CHECKBOX=no'
9813                           fi
9814
9815 else
9816
9817                           wx_cv_use_checkbox='wxUSE_CHECKBOX=${'DEFAULT_wxUSE_CHECKBOX":-$defaultval}"
9818
9819 fi
9820
9821
9822           eval "$wx_cv_use_checkbox"
9823
9824           if test x"$enablestring" = xdisable; then
9825             if test $wxUSE_CHECKBOX = yes; then
9826               result=no
9827             else
9828               result=yes
9829             fi
9830           else
9831             result=$wxUSE_CHECKBOX
9832           fi
9833
9834           { echo "$as_me:$LINENO: result: $result" >&5
9835 echo "${ECHO_T}$result" >&6; }
9836
9837
9838           enablestring=
9839           defaultval=$wxUSE_ALL_FEATURES
9840           if test -z "$defaultval"; then
9841               if test x"$enablestring" = xdisable; then
9842                   defaultval=yes
9843               else
9844                   defaultval=no
9845               fi
9846           fi
9847
9848           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
9849 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6; }
9850           # Check whether --enable-checklst was given.
9851 if test "${enable_checklst+set}" = set; then
9852   enableval=$enable_checklst;
9853                           if test "$enableval" = yes; then
9854                             wx_cv_use_checklst='wxUSE_CHECKLST=yes'
9855                           else
9856                             wx_cv_use_checklst='wxUSE_CHECKLST=no'
9857                           fi
9858
9859 else
9860
9861                           wx_cv_use_checklst='wxUSE_CHECKLST=${'DEFAULT_wxUSE_CHECKLST":-$defaultval}"
9862
9863 fi
9864
9865
9866           eval "$wx_cv_use_checklst"
9867
9868           if test x"$enablestring" = xdisable; then
9869             if test $wxUSE_CHECKLST = yes; then
9870               result=no
9871             else
9872               result=yes
9873             fi
9874           else
9875             result=$wxUSE_CHECKLST
9876           fi
9877
9878           { echo "$as_me:$LINENO: result: $result" >&5
9879 echo "${ECHO_T}$result" >&6; }
9880
9881
9882           enablestring=
9883           defaultval=$wxUSE_ALL_FEATURES
9884           if test -z "$defaultval"; then
9885               if test x"$enablestring" = xdisable; then
9886                   defaultval=yes
9887               else
9888                   defaultval=no
9889               fi
9890           fi
9891
9892           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
9893 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6; }
9894           # Check whether --enable-choice was given.
9895 if test "${enable_choice+set}" = set; then
9896   enableval=$enable_choice;
9897                           if test "$enableval" = yes; then
9898                             wx_cv_use_choice='wxUSE_CHOICE=yes'
9899                           else
9900                             wx_cv_use_choice='wxUSE_CHOICE=no'
9901                           fi
9902
9903 else
9904
9905                           wx_cv_use_choice='wxUSE_CHOICE=${'DEFAULT_wxUSE_CHOICE":-$defaultval}"
9906
9907 fi
9908
9909
9910           eval "$wx_cv_use_choice"
9911
9912           if test x"$enablestring" = xdisable; then
9913             if test $wxUSE_CHOICE = yes; then
9914               result=no
9915             else
9916               result=yes
9917             fi
9918           else
9919             result=$wxUSE_CHOICE
9920           fi
9921
9922           { echo "$as_me:$LINENO: result: $result" >&5
9923 echo "${ECHO_T}$result" >&6; }
9924
9925
9926           enablestring=
9927           defaultval=$wxUSE_ALL_FEATURES
9928           if test -z "$defaultval"; then
9929               if test x"$enablestring" = xdisable; then
9930                   defaultval=yes
9931               else
9932                   defaultval=no
9933               fi
9934           fi
9935
9936           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
9937 echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6; }
9938           # Check whether --enable-choicebook was given.
9939 if test "${enable_choicebook+set}" = set; then
9940   enableval=$enable_choicebook;
9941                           if test "$enableval" = yes; then
9942                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
9943                           else
9944                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
9945                           fi
9946
9947 else
9948
9949                           wx_cv_use_choicebook='wxUSE_CHOICEBOOK=${'DEFAULT_wxUSE_CHOICEBOOK":-$defaultval}"
9950
9951 fi
9952
9953
9954           eval "$wx_cv_use_choicebook"
9955
9956           if test x"$enablestring" = xdisable; then
9957             if test $wxUSE_CHOICEBOOK = yes; then
9958               result=no
9959             else
9960               result=yes
9961             fi
9962           else
9963             result=$wxUSE_CHOICEBOOK
9964           fi
9965
9966           { echo "$as_me:$LINENO: result: $result" >&5
9967 echo "${ECHO_T}$result" >&6; }
9968
9969
9970           enablestring=
9971           defaultval=$wxUSE_ALL_FEATURES
9972           if test -z "$defaultval"; then
9973               if test x"$enablestring" = xdisable; then
9974                   defaultval=yes
9975               else
9976                   defaultval=no
9977               fi
9978           fi
9979
9980           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-collpane" >&5
9981 echo $ECHO_N "checking for --${enablestring:-enable}-collpane... $ECHO_C" >&6; }
9982           # Check whether --enable-collpane was given.
9983 if test "${enable_collpane+set}" = set; then
9984   enableval=$enable_collpane;
9985                           if test "$enableval" = yes; then
9986                             wx_cv_use_collpane='wxUSE_COLLPANE=yes'
9987                           else
9988                             wx_cv_use_collpane='wxUSE_COLLPANE=no'
9989                           fi
9990
9991 else
9992
9993                           wx_cv_use_collpane='wxUSE_COLLPANE=${'DEFAULT_wxUSE_COLLPANE":-$defaultval}"
9994
9995 fi
9996
9997
9998           eval "$wx_cv_use_collpane"
9999
10000           if test x"$enablestring" = xdisable; then
10001             if test $wxUSE_COLLPANE = yes; then
10002               result=no
10003             else
10004               result=yes
10005             fi
10006           else
10007             result=$wxUSE_COLLPANE
10008           fi
10009
10010           { echo "$as_me:$LINENO: result: $result" >&5
10011 echo "${ECHO_T}$result" >&6; }
10012
10013
10014           enablestring=
10015           defaultval=$wxUSE_ALL_FEATURES
10016           if test -z "$defaultval"; then
10017               if test x"$enablestring" = xdisable; then
10018                   defaultval=yes
10019               else
10020                   defaultval=no
10021               fi
10022           fi
10023
10024           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
10025 echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6; }
10026           # Check whether --enable-colourpicker was given.
10027 if test "${enable_colourpicker+set}" = set; then
10028   enableval=$enable_colourpicker;
10029                           if test "$enableval" = yes; then
10030                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
10031                           else
10032                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
10033                           fi
10034
10035 else
10036
10037                           wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=${'DEFAULT_wxUSE_COLOURPICKERCTRL":-$defaultval}"
10038
10039 fi
10040
10041
10042           eval "$wx_cv_use_colourpicker"
10043
10044           if test x"$enablestring" = xdisable; then
10045             if test $wxUSE_COLOURPICKERCTRL = yes; then
10046               result=no
10047             else
10048               result=yes
10049             fi
10050           else
10051             result=$wxUSE_COLOURPICKERCTRL
10052           fi
10053
10054           { echo "$as_me:$LINENO: result: $result" >&5
10055 echo "${ECHO_T}$result" >&6; }
10056
10057
10058           enablestring=
10059           defaultval=$wxUSE_ALL_FEATURES
10060           if test -z "$defaultval"; then
10061               if test x"$enablestring" = xdisable; then
10062                   defaultval=yes
10063               else
10064                   defaultval=no
10065               fi
10066           fi
10067
10068           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
10069 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6; }
10070           # Check whether --enable-combobox was given.
10071 if test "${enable_combobox+set}" = set; then
10072   enableval=$enable_combobox;
10073                           if test "$enableval" = yes; then
10074                             wx_cv_use_combobox='wxUSE_COMBOBOX=yes'
10075                           else
10076                             wx_cv_use_combobox='wxUSE_COMBOBOX=no'
10077                           fi
10078
10079 else
10080
10081                           wx_cv_use_combobox='wxUSE_COMBOBOX=${'DEFAULT_wxUSE_COMBOBOX":-$defaultval}"
10082
10083 fi
10084
10085
10086           eval "$wx_cv_use_combobox"
10087
10088           if test x"$enablestring" = xdisable; then
10089             if test $wxUSE_COMBOBOX = yes; then
10090               result=no
10091             else
10092               result=yes
10093             fi
10094           else
10095             result=$wxUSE_COMBOBOX
10096           fi
10097
10098           { echo "$as_me:$LINENO: result: $result" >&5
10099 echo "${ECHO_T}$result" >&6; }
10100
10101
10102           enablestring=
10103           defaultval=$wxUSE_ALL_FEATURES
10104           if test -z "$defaultval"; then
10105               if test x"$enablestring" = xdisable; then
10106                   defaultval=yes
10107               else
10108                   defaultval=no
10109               fi
10110           fi
10111
10112           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
10113 echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6; }
10114           # Check whether --enable-comboctrl was given.
10115 if test "${enable_comboctrl+set}" = set; then
10116   enableval=$enable_comboctrl;
10117                           if test "$enableval" = yes; then
10118                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
10119                           else
10120                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
10121                           fi
10122
10123 else
10124
10125                           wx_cv_use_comboctrl='wxUSE_COMBOCTRL=${'DEFAULT_wxUSE_COMBOCTRL":-$defaultval}"
10126
10127 fi
10128
10129
10130           eval "$wx_cv_use_comboctrl"
10131
10132           if test x"$enablestring" = xdisable; then
10133             if test $wxUSE_COMBOCTRL = yes; then
10134               result=no
10135             else
10136               result=yes
10137             fi
10138           else
10139             result=$wxUSE_COMBOCTRL
10140           fi
10141
10142           { echo "$as_me:$LINENO: result: $result" >&5
10143 echo "${ECHO_T}$result" >&6; }
10144
10145
10146           enablestring=
10147           defaultval=$wxUSE_ALL_FEATURES
10148           if test -z "$defaultval"; then
10149               if test x"$enablestring" = xdisable; then
10150                   defaultval=yes
10151               else
10152                   defaultval=no
10153               fi
10154           fi
10155
10156           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
10157 echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6; }
10158           # Check whether --enable-dataviewctrl was given.
10159 if test "${enable_dataviewctrl+set}" = set; then
10160   enableval=$enable_dataviewctrl;
10161                           if test "$enableval" = yes; then
10162                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
10163                           else
10164                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
10165                           fi
10166
10167 else
10168
10169                           wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=${'DEFAULT_wxUSE_DATAVIEWCTRL":-$defaultval}"
10170
10171 fi
10172
10173
10174           eval "$wx_cv_use_dataviewctrl"
10175
10176           if test x"$enablestring" = xdisable; then
10177             if test $wxUSE_DATAVIEWCTRL = yes; then
10178               result=no
10179             else
10180               result=yes
10181             fi
10182           else
10183             result=$wxUSE_DATAVIEWCTRL
10184           fi
10185
10186           { echo "$as_me:$LINENO: result: $result" >&5
10187 echo "${ECHO_T}$result" >&6; }
10188
10189
10190           enablestring=
10191           defaultval=$wxUSE_ALL_FEATURES
10192           if test -z "$defaultval"; then
10193               if test x"$enablestring" = xdisable; then
10194                   defaultval=yes
10195               else
10196                   defaultval=no
10197               fi
10198           fi
10199
10200           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
10201 echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6; }
10202           # Check whether --enable-datepick was given.
10203 if test "${enable_datepick+set}" = set; then
10204   enableval=$enable_datepick;
10205                           if test "$enableval" = yes; then
10206                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
10207                           else
10208                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
10209                           fi
10210
10211 else
10212
10213                           wx_cv_use_datepick='wxUSE_DATEPICKCTRL=${'DEFAULT_wxUSE_DATEPICKCTRL":-$defaultval}"
10214
10215 fi
10216
10217
10218           eval "$wx_cv_use_datepick"
10219
10220           if test x"$enablestring" = xdisable; then
10221             if test $wxUSE_DATEPICKCTRL = yes; then
10222               result=no
10223             else
10224               result=yes
10225             fi
10226           else
10227             result=$wxUSE_DATEPICKCTRL
10228           fi
10229
10230           { echo "$as_me:$LINENO: result: $result" >&5
10231 echo "${ECHO_T}$result" >&6; }
10232
10233
10234           enablestring=
10235           defaultval=$wxUSE_ALL_FEATURES
10236           if test -z "$defaultval"; then
10237               if test x"$enablestring" = xdisable; then
10238                   defaultval=yes
10239               else
10240                   defaultval=no
10241               fi
10242           fi
10243
10244           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-detect_sm" >&5
10245 echo $ECHO_N "checking for --${enablestring:-enable}-detect_sm... $ECHO_C" >&6; }
10246           # Check whether --enable-detect_sm was given.
10247 if test "${enable_detect_sm+set}" = set; then
10248   enableval=$enable_detect_sm;
10249                           if test "$enableval" = yes; then
10250                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=yes'
10251                           else
10252                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=no'
10253                           fi
10254
10255 else
10256
10257                           wx_cv_use_detect_sm='wxUSE_DETECT_SM=${'DEFAULT_wxUSE_DETECT_SM":-$defaultval}"
10258
10259 fi
10260
10261
10262           eval "$wx_cv_use_detect_sm"
10263
10264           if test x"$enablestring" = xdisable; then
10265             if test $wxUSE_DETECT_SM = yes; then
10266               result=no
10267             else
10268               result=yes
10269             fi
10270           else
10271             result=$wxUSE_DETECT_SM
10272           fi
10273
10274           { echo "$as_me:$LINENO: result: $result" >&5
10275 echo "${ECHO_T}$result" >&6; }
10276
10277
10278           enablestring=
10279           defaultval=$wxUSE_ALL_FEATURES
10280           if test -z "$defaultval"; then
10281               if test x"$enablestring" = xdisable; then
10282                   defaultval=yes
10283               else
10284                   defaultval=no
10285               fi
10286           fi
10287
10288           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
10289 echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6; }
10290           # Check whether --enable-dirpicker was given.
10291 if test "${enable_dirpicker+set}" = set; then
10292   enableval=$enable_dirpicker;
10293                           if test "$enableval" = yes; then
10294                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
10295                           else
10296                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
10297                           fi
10298
10299 else
10300
10301                           wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=${'DEFAULT_wxUSE_DIRPICKERCTRL":-$defaultval}"
10302
10303 fi
10304
10305
10306           eval "$wx_cv_use_dirpicker"
10307
10308           if test x"$enablestring" = xdisable; then
10309             if test $wxUSE_DIRPICKERCTRL = yes; then
10310               result=no
10311             else
10312               result=yes
10313             fi
10314           else
10315             result=$wxUSE_DIRPICKERCTRL
10316           fi
10317
10318           { echo "$as_me:$LINENO: result: $result" >&5
10319 echo "${ECHO_T}$result" >&6; }
10320
10321
10322           enablestring=
10323           defaultval=$wxUSE_ALL_FEATURES
10324           if test -z "$defaultval"; then
10325               if test x"$enablestring" = xdisable; then
10326                   defaultval=yes
10327               else
10328                   defaultval=no
10329               fi
10330           fi
10331
10332           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
10333 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6; }
10334           # Check whether --enable-display was given.
10335 if test "${enable_display+set}" = set; then
10336   enableval=$enable_display;
10337                           if test "$enableval" = yes; then
10338                             wx_cv_use_display='wxUSE_DISPLAY=yes'
10339                           else
10340                             wx_cv_use_display='wxUSE_DISPLAY=no'
10341                           fi
10342
10343 else
10344
10345                           wx_cv_use_display='wxUSE_DISPLAY=${'DEFAULT_wxUSE_DISPLAY":-$defaultval}"
10346
10347 fi
10348
10349
10350           eval "$wx_cv_use_display"
10351
10352           if test x"$enablestring" = xdisable; then
10353             if test $wxUSE_DISPLAY = yes; then
10354               result=no
10355             else
10356               result=yes
10357             fi
10358           else
10359             result=$wxUSE_DISPLAY
10360           fi
10361
10362           { echo "$as_me:$LINENO: result: $result" >&5
10363 echo "${ECHO_T}$result" >&6; }
10364
10365
10366           enablestring=
10367           defaultval=$wxUSE_ALL_FEATURES
10368           if test -z "$defaultval"; then
10369               if test x"$enablestring" = xdisable; then
10370                   defaultval=yes
10371               else
10372                   defaultval=no
10373               fi
10374           fi
10375
10376           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-editablebox" >&5
10377 echo $ECHO_N "checking for --${enablestring:-enable}-editablebox... $ECHO_C" >&6; }
10378           # Check whether --enable-editablebox was given.
10379 if test "${enable_editablebox+set}" = set; then
10380   enableval=$enable_editablebox;
10381                           if test "$enableval" = yes; then
10382                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=yes'
10383                           else
10384                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=no'
10385                           fi
10386
10387 else
10388
10389                           wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=${'DEFAULT_wxUSE_EDITABLELISTBOX":-$defaultval}"
10390
10391 fi
10392
10393
10394           eval "$wx_cv_use_editablebox"
10395
10396           if test x"$enablestring" = xdisable; then
10397             if test $wxUSE_EDITABLELISTBOX = yes; then
10398               result=no
10399             else
10400               result=yes
10401             fi
10402           else
10403             result=$wxUSE_EDITABLELISTBOX
10404           fi
10405
10406           { echo "$as_me:$LINENO: result: $result" >&5
10407 echo "${ECHO_T}$result" >&6; }
10408
10409
10410           enablestring=
10411           defaultval=$wxUSE_ALL_FEATURES
10412           if test -z "$defaultval"; then
10413               if test x"$enablestring" = xdisable; then
10414                   defaultval=yes
10415               else
10416                   defaultval=no
10417               fi
10418           fi
10419
10420           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filectrl" >&5
10421 echo $ECHO_N "checking for --${enablestring:-enable}-filectrl... $ECHO_C" >&6; }
10422           # Check whether --enable-filectrl was given.
10423 if test "${enable_filectrl+set}" = set; then
10424   enableval=$enable_filectrl;
10425                           if test "$enableval" = yes; then
10426                             wx_cv_use_filectrl='wxUSE_FILECTRL=yes'
10427                           else
10428                             wx_cv_use_filectrl='wxUSE_FILECTRL=no'
10429                           fi
10430
10431 else
10432
10433                           wx_cv_use_filectrl='wxUSE_FILECTRL=${'DEFAULT_wxUSE_FILECTRL":-$defaultval}"
10434
10435 fi
10436
10437
10438           eval "$wx_cv_use_filectrl"
10439
10440           if test x"$enablestring" = xdisable; then
10441             if test $wxUSE_FILECTRL = yes; then
10442               result=no
10443             else
10444               result=yes
10445             fi
10446           else
10447             result=$wxUSE_FILECTRL
10448           fi
10449
10450           { echo "$as_me:$LINENO: result: $result" >&5
10451 echo "${ECHO_T}$result" >&6; }
10452
10453
10454           enablestring=
10455           defaultval=$wxUSE_ALL_FEATURES
10456           if test -z "$defaultval"; then
10457               if test x"$enablestring" = xdisable; then
10458                   defaultval=yes
10459               else
10460                   defaultval=no
10461               fi
10462           fi
10463
10464           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
10465 echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6; }
10466           # Check whether --enable-filepicker was given.
10467 if test "${enable_filepicker+set}" = set; then
10468   enableval=$enable_filepicker;
10469                           if test "$enableval" = yes; then
10470                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
10471                           else
10472                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
10473                           fi
10474
10475 else
10476
10477                           wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=${'DEFAULT_wxUSE_FILEPICKERCTRL":-$defaultval}"
10478
10479 fi
10480
10481
10482           eval "$wx_cv_use_filepicker"
10483
10484           if test x"$enablestring" = xdisable; then
10485             if test $wxUSE_FILEPICKERCTRL = yes; then
10486               result=no
10487             else
10488               result=yes
10489             fi
10490           else
10491             result=$wxUSE_FILEPICKERCTRL
10492           fi
10493
10494           { echo "$as_me:$LINENO: result: $result" >&5
10495 echo "${ECHO_T}$result" >&6; }
10496
10497
10498           enablestring=
10499           defaultval=$wxUSE_ALL_FEATURES
10500           if test -z "$defaultval"; then
10501               if test x"$enablestring" = xdisable; then
10502                   defaultval=yes
10503               else
10504                   defaultval=no
10505               fi
10506           fi
10507
10508           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
10509 echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6; }
10510           # Check whether --enable-fontpicker was given.
10511 if test "${enable_fontpicker+set}" = set; then
10512   enableval=$enable_fontpicker;
10513                           if test "$enableval" = yes; then
10514                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
10515                           else
10516                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
10517                           fi
10518
10519 else
10520
10521                           wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=${'DEFAULT_wxUSE_FONTPICKERCTRL":-$defaultval}"
10522
10523 fi
10524
10525
10526           eval "$wx_cv_use_fontpicker"
10527
10528           if test x"$enablestring" = xdisable; then
10529             if test $wxUSE_FONTPICKERCTRL = yes; then
10530               result=no
10531             else
10532               result=yes
10533             fi
10534           else
10535             result=$wxUSE_FONTPICKERCTRL
10536           fi
10537
10538           { echo "$as_me:$LINENO: result: $result" >&5
10539 echo "${ECHO_T}$result" >&6; }
10540
10541
10542           enablestring=
10543           defaultval=$wxUSE_ALL_FEATURES
10544           if test -z "$defaultval"; then
10545               if test x"$enablestring" = xdisable; then
10546                   defaultval=yes
10547               else
10548                   defaultval=no
10549               fi
10550           fi
10551
10552           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
10553 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6; }
10554           # Check whether --enable-gauge was given.
10555 if test "${enable_gauge+set}" = set; then
10556   enableval=$enable_gauge;
10557                           if test "$enableval" = yes; then
10558                             wx_cv_use_gauge='wxUSE_GAUGE=yes'
10559                           else
10560                             wx_cv_use_gauge='wxUSE_GAUGE=no'
10561                           fi
10562
10563 else
10564
10565                           wx_cv_use_gauge='wxUSE_GAUGE=${'DEFAULT_wxUSE_GAUGE":-$defaultval}"
10566
10567 fi
10568
10569
10570           eval "$wx_cv_use_gauge"
10571
10572           if test x"$enablestring" = xdisable; then
10573             if test $wxUSE_GAUGE = yes; then
10574               result=no
10575             else
10576               result=yes
10577             fi
10578           else
10579             result=$wxUSE_GAUGE
10580           fi
10581
10582           { echo "$as_me:$LINENO: result: $result" >&5
10583 echo "${ECHO_T}$result" >&6; }
10584
10585
10586           enablestring=
10587           defaultval=$wxUSE_ALL_FEATURES
10588           if test -z "$defaultval"; then
10589               if test x"$enablestring" = xdisable; then
10590                   defaultval=yes
10591               else
10592                   defaultval=no
10593               fi
10594           fi
10595
10596           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
10597 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6; }
10598           # Check whether --enable-grid was given.
10599 if test "${enable_grid+set}" = set; then
10600   enableval=$enable_grid;
10601                           if test "$enableval" = yes; then
10602                             wx_cv_use_grid='wxUSE_GRID=yes'
10603                           else
10604                             wx_cv_use_grid='wxUSE_GRID=no'
10605                           fi
10606
10607 else
10608
10609                           wx_cv_use_grid='wxUSE_GRID=${'DEFAULT_wxUSE_GRID":-$defaultval}"
10610
10611 fi
10612
10613
10614           eval "$wx_cv_use_grid"
10615
10616           if test x"$enablestring" = xdisable; then
10617             if test $wxUSE_GRID = yes; then
10618               result=no
10619             else
10620               result=yes
10621             fi
10622           else
10623             result=$wxUSE_GRID
10624           fi
10625
10626           { echo "$as_me:$LINENO: result: $result" >&5
10627 echo "${ECHO_T}$result" >&6; }
10628
10629
10630           enablestring=
10631           defaultval=$wxUSE_ALL_FEATURES
10632           if test -z "$defaultval"; then
10633               if test x"$enablestring" = xdisable; then
10634                   defaultval=yes
10635               else
10636                   defaultval=no
10637               fi
10638           fi
10639
10640           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-headerctrl" >&5
10641 echo $ECHO_N "checking for --${enablestring:-enable}-headerctrl... $ECHO_C" >&6; }
10642           # Check whether --enable-headerctrl was given.
10643 if test "${enable_headerctrl+set}" = set; then
10644   enableval=$enable_headerctrl;
10645                           if test "$enableval" = yes; then
10646                             wx_cv_use_headerctrl='wxUSE_HEADERCTRL=yes'
10647                           else
10648                             wx_cv_use_headerctrl='wxUSE_HEADERCTRL=no'
10649                           fi
10650
10651 else
10652
10653                           wx_cv_use_headerctrl='wxUSE_HEADERCTRL=${'DEFAULT_wxUSE_HEADERCTRL":-$defaultval}"
10654
10655 fi
10656
10657
10658           eval "$wx_cv_use_headerctrl"
10659
10660           if test x"$enablestring" = xdisable; then
10661             if test $wxUSE_HEADERCTRL = yes; then
10662               result=no
10663             else
10664               result=yes
10665             fi
10666           else
10667             result=$wxUSE_HEADERCTRL
10668           fi
10669
10670           { echo "$as_me:$LINENO: result: $result" >&5
10671 echo "${ECHO_T}$result" >&6; }
10672
10673
10674           enablestring=
10675           defaultval=$wxUSE_ALL_FEATURES
10676           if test -z "$defaultval"; then
10677               if test x"$enablestring" = xdisable; then
10678                   defaultval=yes
10679               else
10680                   defaultval=no
10681               fi
10682           fi
10683
10684           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
10685 echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6; }
10686           # Check whether --enable-hyperlink was given.
10687 if test "${enable_hyperlink+set}" = set; then
10688   enableval=$enable_hyperlink;
10689                           if test "$enableval" = yes; then
10690                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
10691                           else
10692                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
10693                           fi
10694
10695 else
10696
10697                           wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=${'DEFAULT_wxUSE_HYPERLINKCTRL":-$defaultval}"
10698
10699 fi
10700
10701
10702           eval "$wx_cv_use_hyperlink"
10703
10704           if test x"$enablestring" = xdisable; then
10705             if test $wxUSE_HYPERLINKCTRL = yes; then
10706               result=no
10707             else
10708               result=yes
10709             fi
10710           else
10711             result=$wxUSE_HYPERLINKCTRL
10712           fi
10713
10714           { echo "$as_me:$LINENO: result: $result" >&5
10715 echo "${ECHO_T}$result" >&6; }
10716
10717
10718           enablestring=
10719           defaultval=$wxUSE_ALL_FEATURES
10720           if test -z "$defaultval"; then
10721               if test x"$enablestring" = xdisable; then
10722                   defaultval=yes
10723               else
10724                   defaultval=no
10725               fi
10726           fi
10727
10728           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
10729 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6; }
10730           # Check whether --enable-imaglist was given.
10731 if test "${enable_imaglist+set}" = set; then
10732   enableval=$enable_imaglist;
10733                           if test "$enableval" = yes; then
10734                             wx_cv_use_imaglist='wxUSE_IMAGLIST=yes'
10735                           else
10736                             wx_cv_use_imaglist='wxUSE_IMAGLIST=no'
10737                           fi
10738
10739 else
10740
10741                           wx_cv_use_imaglist='wxUSE_IMAGLIST=${'DEFAULT_wxUSE_IMAGLIST":-$defaultval}"
10742
10743 fi
10744
10745
10746           eval "$wx_cv_use_imaglist"
10747
10748           if test x"$enablestring" = xdisable; then
10749             if test $wxUSE_IMAGLIST = yes; then
10750               result=no
10751             else
10752               result=yes
10753             fi
10754           else
10755             result=$wxUSE_IMAGLIST
10756           fi
10757
10758           { echo "$as_me:$LINENO: result: $result" >&5
10759 echo "${ECHO_T}$result" >&6; }
10760
10761
10762           enablestring=
10763           defaultval=$wxUSE_ALL_FEATURES
10764           if test -z "$defaultval"; then
10765               if test x"$enablestring" = xdisable; then
10766                   defaultval=yes
10767               else
10768                   defaultval=no
10769               fi
10770           fi
10771
10772           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
10773 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6; }
10774           # Check whether --enable-listbook was given.
10775 if test "${enable_listbook+set}" = set; then
10776   enableval=$enable_listbook;
10777                           if test "$enableval" = yes; then
10778                             wx_cv_use_listbook='wxUSE_LISTBOOK=yes'
10779                           else
10780                             wx_cv_use_listbook='wxUSE_LISTBOOK=no'
10781                           fi
10782
10783 else
10784
10785                           wx_cv_use_listbook='wxUSE_LISTBOOK=${'DEFAULT_wxUSE_LISTBOOK":-$defaultval}"
10786
10787 fi
10788
10789
10790           eval "$wx_cv_use_listbook"
10791
10792           if test x"$enablestring" = xdisable; then
10793             if test $wxUSE_LISTBOOK = yes; then
10794               result=no
10795             else
10796               result=yes
10797             fi
10798           else
10799             result=$wxUSE_LISTBOOK
10800           fi
10801
10802           { echo "$as_me:$LINENO: result: $result" >&5
10803 echo "${ECHO_T}$result" >&6; }
10804
10805
10806           enablestring=
10807           defaultval=$wxUSE_ALL_FEATURES
10808           if test -z "$defaultval"; then
10809               if test x"$enablestring" = xdisable; then
10810                   defaultval=yes
10811               else
10812                   defaultval=no
10813               fi
10814           fi
10815
10816           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
10817 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6; }
10818           # Check whether --enable-listbox was given.
10819 if test "${enable_listbox+set}" = set; then
10820   enableval=$enable_listbox;
10821                           if test "$enableval" = yes; then
10822                             wx_cv_use_listbox='wxUSE_LISTBOX=yes'
10823                           else
10824                             wx_cv_use_listbox='wxUSE_LISTBOX=no'
10825                           fi
10826
10827 else
10828
10829                           wx_cv_use_listbox='wxUSE_LISTBOX=${'DEFAULT_wxUSE_LISTBOX":-$defaultval}"
10830
10831 fi
10832
10833
10834           eval "$wx_cv_use_listbox"
10835
10836           if test x"$enablestring" = xdisable; then
10837             if test $wxUSE_LISTBOX = yes; then
10838               result=no
10839             else
10840               result=yes
10841             fi
10842           else
10843             result=$wxUSE_LISTBOX
10844           fi
10845
10846           { echo "$as_me:$LINENO: result: $result" >&5
10847 echo "${ECHO_T}$result" >&6; }
10848
10849
10850           enablestring=
10851           defaultval=$wxUSE_ALL_FEATURES
10852           if test -z "$defaultval"; then
10853               if test x"$enablestring" = xdisable; then
10854                   defaultval=yes
10855               else
10856                   defaultval=no
10857               fi
10858           fi
10859
10860           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
10861 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6; }
10862           # Check whether --enable-listctrl was given.
10863 if test "${enable_listctrl+set}" = set; then
10864   enableval=$enable_listctrl;
10865                           if test "$enableval" = yes; then
10866                             wx_cv_use_listctrl='wxUSE_LISTCTRL=yes'
10867                           else
10868                             wx_cv_use_listctrl='wxUSE_LISTCTRL=no'
10869                           fi
10870
10871 else
10872
10873                           wx_cv_use_listctrl='wxUSE_LISTCTRL=${'DEFAULT_wxUSE_LISTCTRL":-$defaultval}"
10874
10875 fi
10876
10877
10878           eval "$wx_cv_use_listctrl"
10879
10880           if test x"$enablestring" = xdisable; then
10881             if test $wxUSE_LISTCTRL = yes; then
10882               result=no
10883             else
10884               result=yes
10885             fi
10886           else
10887             result=$wxUSE_LISTCTRL
10888           fi
10889
10890           { echo "$as_me:$LINENO: result: $result" >&5
10891 echo "${ECHO_T}$result" >&6; }
10892
10893
10894           enablestring=
10895           defaultval=$wxUSE_ALL_FEATURES
10896           if test -z "$defaultval"; then
10897               if test x"$enablestring" = xdisable; then
10898                   defaultval=yes
10899               else
10900                   defaultval=no
10901               fi
10902           fi
10903
10904           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
10905 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6; }
10906           # Check whether --enable-notebook was given.
10907 if test "${enable_notebook+set}" = set; then
10908   enableval=$enable_notebook;
10909                           if test "$enableval" = yes; then
10910                             wx_cv_use_notebook='wxUSE_NOTEBOOK=yes'
10911                           else
10912                             wx_cv_use_notebook='wxUSE_NOTEBOOK=no'
10913                           fi
10914
10915 else
10916
10917                           wx_cv_use_notebook='wxUSE_NOTEBOOK=${'DEFAULT_wxUSE_NOTEBOOK":-$defaultval}"
10918
10919 fi
10920
10921
10922           eval "$wx_cv_use_notebook"
10923
10924           if test x"$enablestring" = xdisable; then
10925             if test $wxUSE_NOTEBOOK = yes; then
10926               result=no
10927             else
10928               result=yes
10929             fi
10930           else
10931             result=$wxUSE_NOTEBOOK
10932           fi
10933
10934           { echo "$as_me:$LINENO: result: $result" >&5
10935 echo "${ECHO_T}$result" >&6; }
10936
10937
10938           enablestring=
10939           defaultval=$wxUSE_ALL_FEATURES
10940           if test -z "$defaultval"; then
10941               if test x"$enablestring" = xdisable; then
10942                   defaultval=yes
10943               else
10944                   defaultval=no
10945               fi
10946           fi
10947
10948           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notifmsg" >&5
10949 echo $ECHO_N "checking for --${enablestring:-enable}-notifmsg... $ECHO_C" >&6; }
10950           # Check whether --enable-notifmsg was given.
10951 if test "${enable_notifmsg+set}" = set; then
10952   enableval=$enable_notifmsg;
10953                           if test "$enableval" = yes; then
10954                             wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=yes'
10955                           else
10956                             wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=no'
10957                           fi
10958
10959 else
10960
10961                           wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=${'DEFAULT_wxUSE_NOTIFICATION_MESSAGE":-$defaultval}"
10962
10963 fi
10964
10965
10966           eval "$wx_cv_use_notifmsg"
10967
10968           if test x"$enablestring" = xdisable; then
10969             if test $wxUSE_NOTIFICATION_MESSAGE = yes; then
10970               result=no
10971             else
10972               result=yes
10973             fi
10974           else
10975             result=$wxUSE_NOTIFICATION_MESSAGE
10976           fi
10977
10978           { echo "$as_me:$LINENO: result: $result" >&5
10979 echo "${ECHO_T}$result" >&6; }
10980
10981
10982           enablestring=
10983           defaultval=$wxUSE_ALL_FEATURES
10984           if test -z "$defaultval"; then
10985               if test x"$enablestring" = xdisable; then
10986                   defaultval=yes
10987               else
10988                   defaultval=no
10989               fi
10990           fi
10991
10992           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
10993 echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6; }
10994           # Check whether --enable-odcombobox was given.
10995 if test "${enable_odcombobox+set}" = set; then
10996   enableval=$enable_odcombobox;
10997                           if test "$enableval" = yes; then
10998                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
10999                           else
11000                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
11001                           fi
11002
11003 else
11004
11005                           wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=${'DEFAULT_wxUSE_ODCOMBOBOX":-$defaultval}"
11006
11007 fi
11008
11009
11010           eval "$wx_cv_use_odcombobox"
11011
11012           if test x"$enablestring" = xdisable; then
11013             if test $wxUSE_ODCOMBOBOX = yes; then
11014               result=no
11015             else
11016               result=yes
11017             fi
11018           else
11019             result=$wxUSE_ODCOMBOBOX
11020           fi
11021
11022           { echo "$as_me:$LINENO: result: $result" >&5
11023 echo "${ECHO_T}$result" >&6; }
11024
11025
11026           enablestring=
11027           defaultval=$wxUSE_ALL_FEATURES
11028           if test -z "$defaultval"; then
11029               if test x"$enablestring" = xdisable; then
11030                   defaultval=yes
11031               else
11032                   defaultval=no
11033               fi
11034           fi
11035
11036           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
11037 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6; }
11038           # Check whether --enable-popupwin was given.
11039 if test "${enable_popupwin+set}" = set; then
11040   enableval=$enable_popupwin;
11041                           if test "$enableval" = yes; then
11042                             wx_cv_use_popupwin='wxUSE_POPUPWIN=yes'
11043                           else
11044                             wx_cv_use_popupwin='wxUSE_POPUPWIN=no'
11045                           fi
11046
11047 else
11048
11049                           wx_cv_use_popupwin='wxUSE_POPUPWIN=${'DEFAULT_wxUSE_POPUPWIN":-$defaultval}"
11050
11051 fi
11052
11053
11054           eval "$wx_cv_use_popupwin"
11055
11056           if test x"$enablestring" = xdisable; then
11057             if test $wxUSE_POPUPWIN = yes; then
11058               result=no
11059             else
11060               result=yes
11061             fi
11062           else
11063             result=$wxUSE_POPUPWIN
11064           fi
11065
11066           { echo "$as_me:$LINENO: result: $result" >&5
11067 echo "${ECHO_T}$result" >&6; }
11068
11069
11070           enablestring=
11071           defaultval=$wxUSE_ALL_FEATURES
11072           if test -z "$defaultval"; then
11073               if test x"$enablestring" = xdisable; then
11074                   defaultval=yes
11075               else
11076                   defaultval=no
11077               fi
11078           fi
11079
11080           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
11081 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6; }
11082           # Check whether --enable-radiobox was given.
11083 if test "${enable_radiobox+set}" = set; then
11084   enableval=$enable_radiobox;
11085                           if test "$enableval" = yes; then
11086                             wx_cv_use_radiobox='wxUSE_RADIOBOX=yes'
11087                           else
11088                             wx_cv_use_radiobox='wxUSE_RADIOBOX=no'
11089                           fi
11090
11091 else
11092
11093                           wx_cv_use_radiobox='wxUSE_RADIOBOX=${'DEFAULT_wxUSE_RADIOBOX":-$defaultval}"
11094
11095 fi
11096
11097
11098           eval "$wx_cv_use_radiobox"
11099
11100           if test x"$enablestring" = xdisable; then
11101             if test $wxUSE_RADIOBOX = yes; then
11102               result=no
11103             else
11104               result=yes
11105             fi
11106           else
11107             result=$wxUSE_RADIOBOX
11108           fi
11109
11110           { echo "$as_me:$LINENO: result: $result" >&5
11111 echo "${ECHO_T}$result" >&6; }
11112
11113
11114           enablestring=
11115           defaultval=$wxUSE_ALL_FEATURES
11116           if test -z "$defaultval"; then
11117               if test x"$enablestring" = xdisable; then
11118                   defaultval=yes
11119               else
11120                   defaultval=no
11121               fi
11122           fi
11123
11124           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
11125 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6; }
11126           # Check whether --enable-radiobtn was given.
11127 if test "${enable_radiobtn+set}" = set; then
11128   enableval=$enable_radiobtn;
11129                           if test "$enableval" = yes; then
11130                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
11131                           else
11132                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=no'
11133                           fi
11134
11135 else
11136
11137                           wx_cv_use_radiobtn='wxUSE_RADIOBTN=${'DEFAULT_wxUSE_RADIOBTN":-$defaultval}"
11138
11139 fi
11140
11141
11142           eval "$wx_cv_use_radiobtn"
11143
11144           if test x"$enablestring" = xdisable; then
11145             if test $wxUSE_RADIOBTN = yes; then
11146               result=no
11147             else
11148               result=yes
11149             fi
11150           else
11151             result=$wxUSE_RADIOBTN
11152           fi
11153
11154           { echo "$as_me:$LINENO: result: $result" >&5
11155 echo "${ECHO_T}$result" >&6; }
11156
11157
11158           enablestring=
11159           defaultval=$wxUSE_ALL_FEATURES
11160           if test -z "$defaultval"; then
11161               if test x"$enablestring" = xdisable; then
11162                   defaultval=yes
11163               else
11164                   defaultval=no
11165               fi
11166           fi
11167
11168           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rearrangectrl" >&5
11169 echo $ECHO_N "checking for --${enablestring:-enable}-rearrangectrl... $ECHO_C" >&6; }
11170           # Check whether --enable-rearrangectrl was given.
11171 if test "${enable_rearrangectrl+set}" = set; then
11172   enableval=$enable_rearrangectrl;
11173                           if test "$enableval" = yes; then
11174                             wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=yes'
11175                           else
11176                             wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=no'
11177                           fi
11178
11179 else
11180
11181                           wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=${'DEFAULT_wxUSE_REARRANGECTRL":-$defaultval}"
11182
11183 fi
11184
11185
11186           eval "$wx_cv_use_rearrangectrl"
11187
11188           if test x"$enablestring" = xdisable; then
11189             if test $wxUSE_REARRANGECTRL = yes; then
11190               result=no
11191             else
11192               result=yes
11193             fi
11194           else
11195             result=$wxUSE_REARRANGECTRL
11196           fi
11197
11198           { echo "$as_me:$LINENO: result: $result" >&5
11199 echo "${ECHO_T}$result" >&6; }
11200
11201
11202           enablestring=
11203           defaultval=$wxUSE_ALL_FEATURES
11204           if test -z "$defaultval"; then
11205               if test x"$enablestring" = xdisable; then
11206                   defaultval=yes
11207               else
11208                   defaultval=no
11209               fi
11210           fi
11211
11212           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
11213 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6; }
11214           # Check whether --enable-sash was given.
11215 if test "${enable_sash+set}" = set; then
11216   enableval=$enable_sash;
11217                           if test "$enableval" = yes; then
11218                             wx_cv_use_sash='wxUSE_SASH=yes'
11219                           else
11220                             wx_cv_use_sash='wxUSE_SASH=no'
11221                           fi
11222
11223 else
11224
11225                           wx_cv_use_sash='wxUSE_SASH=${'DEFAULT_wxUSE_SASH":-$defaultval}"
11226
11227 fi
11228
11229
11230           eval "$wx_cv_use_sash"
11231
11232           if test x"$enablestring" = xdisable; then
11233             if test $wxUSE_SASH = yes; then
11234               result=no
11235             else
11236               result=yes
11237             fi
11238           else
11239             result=$wxUSE_SASH
11240           fi
11241
11242           { echo "$as_me:$LINENO: result: $result" >&5
11243 echo "${ECHO_T}$result" >&6; }
11244
11245
11246           enablestring=
11247           defaultval=$wxUSE_ALL_FEATURES
11248           if test -z "$defaultval"; then
11249               if test x"$enablestring" = xdisable; then
11250                   defaultval=yes
11251               else
11252                   defaultval=no
11253               fi
11254           fi
11255
11256           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
11257 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6; }
11258           # Check whether --enable-scrollbar was given.
11259 if test "${enable_scrollbar+set}" = set; then
11260   enableval=$enable_scrollbar;
11261                           if test "$enableval" = yes; then
11262                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
11263                           else
11264                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
11265                           fi
11266
11267 else
11268
11269                           wx_cv_use_scrollbar='wxUSE_SCROLLBAR=${'DEFAULT_wxUSE_SCROLLBAR":-$defaultval}"
11270
11271 fi
11272
11273
11274           eval "$wx_cv_use_scrollbar"
11275
11276           if test x"$enablestring" = xdisable; then
11277             if test $wxUSE_SCROLLBAR = yes; then
11278               result=no
11279             else
11280               result=yes
11281             fi
11282           else
11283             result=$wxUSE_SCROLLBAR
11284           fi
11285
11286           { echo "$as_me:$LINENO: result: $result" >&5
11287 echo "${ECHO_T}$result" >&6; }
11288
11289
11290           enablestring=
11291           defaultval=$wxUSE_ALL_FEATURES
11292           if test -z "$defaultval"; then
11293               if test x"$enablestring" = xdisable; then
11294                   defaultval=yes
11295               else
11296                   defaultval=no
11297               fi
11298           fi
11299
11300           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-searchctrl" >&5
11301 echo $ECHO_N "checking for --${enablestring:-enable}-searchctrl... $ECHO_C" >&6; }
11302           # Check whether --enable-searchctrl was given.
11303 if test "${enable_searchctrl+set}" = set; then
11304   enableval=$enable_searchctrl;
11305                           if test "$enableval" = yes; then
11306                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=yes'
11307                           else
11308                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=no'
11309                           fi
11310
11311 else
11312
11313                           wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=${'DEFAULT_wxUSE_SEARCHCTRL":-$defaultval}"
11314
11315 fi
11316
11317
11318           eval "$wx_cv_use_searchctrl"
11319
11320           if test x"$enablestring" = xdisable; then
11321             if test $wxUSE_SEARCHCTRL = yes; then
11322               result=no
11323             else
11324               result=yes
11325             fi
11326           else
11327             result=$wxUSE_SEARCHCTRL
11328           fi
11329
11330           { echo "$as_me:$LINENO: result: $result" >&5
11331 echo "${ECHO_T}$result" >&6; }
11332
11333
11334           enablestring=
11335           defaultval=$wxUSE_ALL_FEATURES
11336           if test -z "$defaultval"; then
11337               if test x"$enablestring" = xdisable; then
11338                   defaultval=yes
11339               else
11340                   defaultval=no
11341               fi
11342           fi
11343
11344           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
11345 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6; }
11346           # Check whether --enable-slider was given.
11347 if test "${enable_slider+set}" = set; then
11348   enableval=$enable_slider;
11349                           if test "$enableval" = yes; then
11350                             wx_cv_use_slider='wxUSE_SLIDER=yes'
11351                           else
11352                             wx_cv_use_slider='wxUSE_SLIDER=no'
11353                           fi
11354
11355 else
11356
11357                           wx_cv_use_slider='wxUSE_SLIDER=${'DEFAULT_wxUSE_SLIDER":-$defaultval}"
11358
11359 fi
11360
11361
11362           eval "$wx_cv_use_slider"
11363
11364           if test x"$enablestring" = xdisable; then
11365             if test $wxUSE_SLIDER = yes; then
11366               result=no
11367             else
11368               result=yes
11369             fi
11370           else
11371             result=$wxUSE_SLIDER
11372           fi
11373
11374           { echo "$as_me:$LINENO: result: $result" >&5
11375 echo "${ECHO_T}$result" >&6; }
11376
11377
11378           enablestring=
11379           defaultval=$wxUSE_ALL_FEATURES
11380           if test -z "$defaultval"; then
11381               if test x"$enablestring" = xdisable; then
11382                   defaultval=yes
11383               else
11384                   defaultval=no
11385               fi
11386           fi
11387
11388           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
11389 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6; }
11390           # Check whether --enable-spinbtn was given.
11391 if test "${enable_spinbtn+set}" = set; then
11392   enableval=$enable_spinbtn;
11393                           if test "$enableval" = yes; then
11394                             wx_cv_use_spinbtn='wxUSE_SPINBTN=yes'
11395                           else
11396                             wx_cv_use_spinbtn='wxUSE_SPINBTN=no'
11397                           fi
11398
11399 else
11400
11401                           wx_cv_use_spinbtn='wxUSE_SPINBTN=${'DEFAULT_wxUSE_SPINBTN":-$defaultval}"
11402
11403 fi
11404
11405
11406           eval "$wx_cv_use_spinbtn"
11407
11408           if test x"$enablestring" = xdisable; then
11409             if test $wxUSE_SPINBTN = yes; then
11410               result=no
11411             else
11412               result=yes
11413             fi
11414           else
11415             result=$wxUSE_SPINBTN
11416           fi
11417
11418           { echo "$as_me:$LINENO: result: $result" >&5
11419 echo "${ECHO_T}$result" >&6; }
11420
11421
11422           enablestring=
11423           defaultval=$wxUSE_ALL_FEATURES
11424           if test -z "$defaultval"; then
11425               if test x"$enablestring" = xdisable; then
11426                   defaultval=yes
11427               else
11428                   defaultval=no
11429               fi
11430           fi
11431
11432           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
11433 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6; }
11434           # Check whether --enable-spinctrl was given.
11435 if test "${enable_spinctrl+set}" = set; then
11436   enableval=$enable_spinctrl;
11437                           if test "$enableval" = yes; then
11438                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
11439                           else
11440                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=no'
11441                           fi
11442
11443 else
11444
11445                           wx_cv_use_spinctrl='wxUSE_SPINCTRL=${'DEFAULT_wxUSE_SPINCTRL":-$defaultval}"
11446
11447 fi
11448
11449
11450           eval "$wx_cv_use_spinctrl"
11451
11452           if test x"$enablestring" = xdisable; then
11453             if test $wxUSE_SPINCTRL = yes; then
11454               result=no
11455             else
11456               result=yes
11457             fi
11458           else
11459             result=$wxUSE_SPINCTRL
11460           fi
11461
11462           { echo "$as_me:$LINENO: result: $result" >&5
11463 echo "${ECHO_T}$result" >&6; }
11464
11465
11466           enablestring=
11467           defaultval=$wxUSE_ALL_FEATURES
11468           if test -z "$defaultval"; then
11469               if test x"$enablestring" = xdisable; then
11470                   defaultval=yes
11471               else
11472                   defaultval=no
11473               fi
11474           fi
11475
11476           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
11477 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6; }
11478           # Check whether --enable-splitter was given.
11479 if test "${enable_splitter+set}" = set; then
11480   enableval=$enable_splitter;
11481                           if test "$enableval" = yes; then
11482                             wx_cv_use_splitter='wxUSE_SPLITTER=yes'
11483                           else
11484                             wx_cv_use_splitter='wxUSE_SPLITTER=no'
11485                           fi
11486
11487 else
11488
11489                           wx_cv_use_splitter='wxUSE_SPLITTER=${'DEFAULT_wxUSE_SPLITTER":-$defaultval}"
11490
11491 fi
11492
11493
11494           eval "$wx_cv_use_splitter"
11495
11496           if test x"$enablestring" = xdisable; then
11497             if test $wxUSE_SPLITTER = yes; then
11498               result=no
11499             else
11500               result=yes
11501             fi
11502           else
11503             result=$wxUSE_SPLITTER
11504           fi
11505
11506           { echo "$as_me:$LINENO: result: $result" >&5
11507 echo "${ECHO_T}$result" >&6; }
11508
11509
11510           enablestring=
11511           defaultval=$wxUSE_ALL_FEATURES
11512           if test -z "$defaultval"; then
11513               if test x"$enablestring" = xdisable; then
11514                   defaultval=yes
11515               else
11516                   defaultval=no
11517               fi
11518           fi
11519
11520           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
11521 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6; }
11522           # Check whether --enable-statbmp was given.
11523 if test "${enable_statbmp+set}" = set; then
11524   enableval=$enable_statbmp;
11525                           if test "$enableval" = yes; then
11526                             wx_cv_use_statbmp='wxUSE_STATBMP=yes'
11527                           else
11528                             wx_cv_use_statbmp='wxUSE_STATBMP=no'
11529                           fi
11530
11531 else
11532
11533                           wx_cv_use_statbmp='wxUSE_STATBMP=${'DEFAULT_wxUSE_STATBMP":-$defaultval}"
11534
11535 fi
11536
11537
11538           eval "$wx_cv_use_statbmp"
11539
11540           if test x"$enablestring" = xdisable; then
11541             if test $wxUSE_STATBMP = yes; then
11542               result=no
11543             else
11544               result=yes
11545             fi
11546           else
11547             result=$wxUSE_STATBMP
11548           fi
11549
11550           { echo "$as_me:$LINENO: result: $result" >&5
11551 echo "${ECHO_T}$result" >&6; }
11552
11553
11554           enablestring=
11555           defaultval=$wxUSE_ALL_FEATURES
11556           if test -z "$defaultval"; then
11557               if test x"$enablestring" = xdisable; then
11558                   defaultval=yes
11559               else
11560                   defaultval=no
11561               fi
11562           fi
11563
11564           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
11565 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6; }
11566           # Check whether --enable-statbox was given.
11567 if test "${enable_statbox+set}" = set; then
11568   enableval=$enable_statbox;
11569                           if test "$enableval" = yes; then
11570                             wx_cv_use_statbox='wxUSE_STATBOX=yes'
11571                           else
11572                             wx_cv_use_statbox='wxUSE_STATBOX=no'
11573                           fi
11574
11575 else
11576
11577                           wx_cv_use_statbox='wxUSE_STATBOX=${'DEFAULT_wxUSE_STATBOX":-$defaultval}"
11578
11579 fi
11580
11581
11582           eval "$wx_cv_use_statbox"
11583
11584           if test x"$enablestring" = xdisable; then
11585             if test $wxUSE_STATBOX = yes; then
11586               result=no
11587             else
11588               result=yes
11589             fi
11590           else
11591             result=$wxUSE_STATBOX
11592           fi
11593
11594           { echo "$as_me:$LINENO: result: $result" >&5
11595 echo "${ECHO_T}$result" >&6; }
11596
11597
11598           enablestring=
11599           defaultval=$wxUSE_ALL_FEATURES
11600           if test -z "$defaultval"; then
11601               if test x"$enablestring" = xdisable; then
11602                   defaultval=yes
11603               else
11604                   defaultval=no
11605               fi
11606           fi
11607
11608           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
11609 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6; }
11610           # Check whether --enable-statline was given.
11611 if test "${enable_statline+set}" = set; then
11612   enableval=$enable_statline;
11613                           if test "$enableval" = yes; then
11614                             wx_cv_use_statline='wxUSE_STATLINE=yes'
11615                           else
11616                             wx_cv_use_statline='wxUSE_STATLINE=no'
11617                           fi
11618
11619 else
11620
11621                           wx_cv_use_statline='wxUSE_STATLINE=${'DEFAULT_wxUSE_STATLINE":-$defaultval}"
11622
11623 fi
11624
11625
11626           eval "$wx_cv_use_statline"
11627
11628           if test x"$enablestring" = xdisable; then
11629             if test $wxUSE_STATLINE = yes; then
11630               result=no
11631             else
11632               result=yes
11633             fi
11634           else
11635             result=$wxUSE_STATLINE
11636           fi
11637
11638           { echo "$as_me:$LINENO: result: $result" >&5
11639 echo "${ECHO_T}$result" >&6; }
11640
11641
11642           enablestring=
11643           defaultval=$wxUSE_ALL_FEATURES
11644           if test -z "$defaultval"; then
11645               if test x"$enablestring" = xdisable; then
11646                   defaultval=yes
11647               else
11648                   defaultval=no
11649               fi
11650           fi
11651
11652           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
11653 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6; }
11654           # Check whether --enable-stattext was given.
11655 if test "${enable_stattext+set}" = set; then
11656   enableval=$enable_stattext;
11657                           if test "$enableval" = yes; then
11658                             wx_cv_use_stattext='wxUSE_STATTEXT=yes'
11659                           else
11660                             wx_cv_use_stattext='wxUSE_STATTEXT=no'
11661                           fi
11662
11663 else
11664
11665                           wx_cv_use_stattext='wxUSE_STATTEXT=${'DEFAULT_wxUSE_STATTEXT":-$defaultval}"
11666
11667 fi
11668
11669
11670           eval "$wx_cv_use_stattext"
11671
11672           if test x"$enablestring" = xdisable; then
11673             if test $wxUSE_STATTEXT = yes; then
11674               result=no
11675             else
11676               result=yes
11677             fi
11678           else
11679             result=$wxUSE_STATTEXT
11680           fi
11681
11682           { echo "$as_me:$LINENO: result: $result" >&5
11683 echo "${ECHO_T}$result" >&6; }
11684
11685
11686           enablestring=
11687           defaultval=$wxUSE_ALL_FEATURES
11688           if test -z "$defaultval"; then
11689               if test x"$enablestring" = xdisable; then
11690                   defaultval=yes
11691               else
11692                   defaultval=no
11693               fi
11694           fi
11695
11696           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
11697 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6; }
11698           # Check whether --enable-statusbar was given.
11699 if test "${enable_statusbar+set}" = set; then
11700   enableval=$enable_statusbar;
11701                           if test "$enableval" = yes; then
11702                             wx_cv_use_statusbar='wxUSE_STATUSBAR=yes'
11703                           else
11704                             wx_cv_use_statusbar='wxUSE_STATUSBAR=no'
11705                           fi
11706
11707 else
11708
11709                           wx_cv_use_statusbar='wxUSE_STATUSBAR=${'DEFAULT_wxUSE_STATUSBAR":-$defaultval}"
11710
11711 fi
11712
11713
11714           eval "$wx_cv_use_statusbar"
11715
11716           if test x"$enablestring" = xdisable; then
11717             if test $wxUSE_STATUSBAR = yes; then
11718               result=no
11719             else
11720               result=yes
11721             fi
11722           else
11723             result=$wxUSE_STATUSBAR
11724           fi
11725
11726           { echo "$as_me:$LINENO: result: $result" >&5
11727 echo "${ECHO_T}$result" >&6; }
11728
11729
11730           enablestring=
11731           defaultval=$wxUSE_ALL_FEATURES
11732           if test -z "$defaultval"; then
11733               if test x"$enablestring" = xdisable; then
11734                   defaultval=yes
11735               else
11736                   defaultval=no
11737               fi
11738           fi
11739
11740           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-taskbaricon" >&5
11741 echo $ECHO_N "checking for --${enablestring:-enable}-taskbaricon... $ECHO_C" >&6; }
11742           # Check whether --enable-taskbaricon was given.
11743 if test "${enable_taskbaricon+set}" = set; then
11744   enableval=$enable_taskbaricon;
11745                           if test "$enableval" = yes; then
11746                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=yes'
11747                           else
11748                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=no'
11749                           fi
11750
11751 else
11752
11753                           wx_cv_use_taskbaricon='wxUSE_TASKBARICON=${'DEFAULT_wxUSE_TASKBARICON":-$defaultval}"
11754
11755 fi
11756
11757
11758           eval "$wx_cv_use_taskbaricon"
11759
11760           if test x"$enablestring" = xdisable; then
11761             if test $wxUSE_TASKBARICON = yes; then
11762               result=no
11763             else
11764               result=yes
11765             fi
11766           else
11767             result=$wxUSE_TASKBARICON
11768           fi
11769
11770           { echo "$as_me:$LINENO: result: $result" >&5
11771 echo "${ECHO_T}$result" >&6; }
11772
11773
11774           enablestring=
11775           defaultval=$wxUSE_ALL_FEATURES
11776           if test -z "$defaultval"; then
11777               if test x"$enablestring" = xdisable; then
11778                   defaultval=yes
11779               else
11780                   defaultval=no
11781               fi
11782           fi
11783
11784           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
11785 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6; }
11786           # Check whether --enable-tbarnative was given.
11787 if test "${enable_tbarnative+set}" = set; then
11788   enableval=$enable_tbarnative;
11789                           if test "$enableval" = yes; then
11790                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
11791                           else
11792                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
11793                           fi
11794
11795 else
11796
11797                           wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=${'DEFAULT_wxUSE_TOOLBAR_NATIVE":-$defaultval}"
11798
11799 fi
11800
11801
11802           eval "$wx_cv_use_tbarnative"
11803
11804           if test x"$enablestring" = xdisable; then
11805             if test $wxUSE_TOOLBAR_NATIVE = yes; then
11806               result=no
11807             else
11808               result=yes
11809             fi
11810           else
11811             result=$wxUSE_TOOLBAR_NATIVE
11812           fi
11813
11814           { echo "$as_me:$LINENO: result: $result" >&5
11815 echo "${ECHO_T}$result" >&6; }
11816
11817
11818           enablestring=
11819           defaultval=$wxUSE_ALL_FEATURES
11820           if test -z "$defaultval"; then
11821               if test x"$enablestring" = xdisable; then
11822                   defaultval=yes
11823               else
11824                   defaultval=no
11825               fi
11826           fi
11827
11828           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
11829 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6; }
11830           # Check whether --enable-textctrl was given.
11831 if test "${enable_textctrl+set}" = set; then
11832   enableval=$enable_textctrl;
11833                           if test "$enableval" = yes; then
11834                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
11835                           else
11836                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=no'
11837                           fi
11838
11839 else
11840
11841                           wx_cv_use_textctrl='wxUSE_TEXTCTRL=${'DEFAULT_wxUSE_TEXTCTRL":-$defaultval}"
11842
11843 fi
11844
11845
11846           eval "$wx_cv_use_textctrl"
11847
11848           if test x"$enablestring" = xdisable; then
11849             if test $wxUSE_TEXTCTRL = yes; then
11850               result=no
11851             else
11852               result=yes
11853             fi
11854           else
11855             result=$wxUSE_TEXTCTRL
11856           fi
11857
11858           { echo "$as_me:$LINENO: result: $result" >&5
11859 echo "${ECHO_T}$result" >&6; }
11860
11861
11862           enablestring=
11863           defaultval=$wxUSE_ALL_FEATURES
11864           if test -z "$defaultval"; then
11865               if test x"$enablestring" = xdisable; then
11866                   defaultval=yes
11867               else
11868                   defaultval=no
11869               fi
11870           fi
11871
11872           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
11873 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6; }
11874           # Check whether --enable-tipwindow was given.
11875 if test "${enable_tipwindow+set}" = set; then
11876   enableval=$enable_tipwindow;
11877                           if test "$enableval" = yes; then
11878                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
11879                           else
11880                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
11881                           fi
11882
11883 else
11884
11885                           wx_cv_use_tipwindow='wxUSE_TIPWINDOW=${'DEFAULT_wxUSE_TIPWINDOW":-$defaultval}"
11886
11887 fi
11888
11889
11890           eval "$wx_cv_use_tipwindow"
11891
11892           if test x"$enablestring" = xdisable; then
11893             if test $wxUSE_TIPWINDOW = yes; then
11894               result=no
11895             else
11896               result=yes
11897             fi
11898           else
11899             result=$wxUSE_TIPWINDOW
11900           fi
11901
11902           { echo "$as_me:$LINENO: result: $result" >&5
11903 echo "${ECHO_T}$result" >&6; }
11904
11905
11906           enablestring=
11907           defaultval=$wxUSE_ALL_FEATURES
11908           if test -z "$defaultval"; then
11909               if test x"$enablestring" = xdisable; then
11910                   defaultval=yes
11911               else
11912                   defaultval=no
11913               fi
11914           fi
11915
11916           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
11917 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6; }
11918           # Check whether --enable-togglebtn was given.
11919 if test "${enable_togglebtn+set}" = set; then
11920   enableval=$enable_togglebtn;
11921                           if test "$enableval" = yes; then
11922                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
11923                           else
11924                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
11925                           fi
11926
11927 else
11928
11929                           wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=${'DEFAULT_wxUSE_TOGGLEBTN":-$defaultval}"
11930
11931 fi
11932
11933
11934           eval "$wx_cv_use_togglebtn"
11935
11936           if test x"$enablestring" = xdisable; then
11937             if test $wxUSE_TOGGLEBTN = yes; then
11938               result=no
11939             else
11940               result=yes
11941             fi
11942           else
11943             result=$wxUSE_TOGGLEBTN
11944           fi
11945
11946           { echo "$as_me:$LINENO: result: $result" >&5
11947 echo "${ECHO_T}$result" >&6; }
11948
11949
11950           enablestring=
11951           defaultval=$wxUSE_ALL_FEATURES
11952           if test -z "$defaultval"; then
11953               if test x"$enablestring" = xdisable; then
11954                   defaultval=yes
11955               else
11956                   defaultval=no
11957               fi
11958           fi
11959
11960           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
11961 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6; }
11962           # Check whether --enable-toolbar was given.
11963 if test "${enable_toolbar+set}" = set; then
11964   enableval=$enable_toolbar;
11965                           if test "$enableval" = yes; then
11966                             wx_cv_use_toolbar='wxUSE_TOOLBAR=yes'
11967                           else
11968                             wx_cv_use_toolbar='wxUSE_TOOLBAR=no'
11969                           fi
11970
11971 else
11972
11973                           wx_cv_use_toolbar='wxUSE_TOOLBAR=${'DEFAULT_wxUSE_TOOLBAR":-$defaultval}"
11974
11975 fi
11976
11977
11978           eval "$wx_cv_use_toolbar"
11979
11980           if test x"$enablestring" = xdisable; then
11981             if test $wxUSE_TOOLBAR = yes; then
11982               result=no
11983             else
11984               result=yes
11985             fi
11986           else
11987             result=$wxUSE_TOOLBAR
11988           fi
11989
11990           { echo "$as_me:$LINENO: result: $result" >&5
11991 echo "${ECHO_T}$result" >&6; }
11992
11993
11994           enablestring=
11995           defaultval=$wxUSE_ALL_FEATURES
11996           if test -z "$defaultval"; then
11997               if test x"$enablestring" = xdisable; then
11998                   defaultval=yes
11999               else
12000                   defaultval=no
12001               fi
12002           fi
12003
12004           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
12005 echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6; }
12006           # Check whether --enable-toolbook was given.
12007 if test "${enable_toolbook+set}" = set; then
12008   enableval=$enable_toolbook;
12009                           if test "$enableval" = yes; then
12010                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
12011                           else
12012                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=no'
12013                           fi
12014
12015 else
12016
12017                           wx_cv_use_toolbook='wxUSE_TOOLBOOK=${'DEFAULT_wxUSE_TOOLBOOK":-$defaultval}"
12018
12019 fi
12020
12021
12022           eval "$wx_cv_use_toolbook"
12023
12024           if test x"$enablestring" = xdisable; then
12025             if test $wxUSE_TOOLBOOK = yes; then
12026               result=no
12027             else
12028               result=yes
12029             fi
12030           else
12031             result=$wxUSE_TOOLBOOK
12032           fi
12033
12034           { echo "$as_me:$LINENO: result: $result" >&5
12035 echo "${ECHO_T}$result" >&6; }
12036
12037
12038           enablestring=
12039           defaultval=$wxUSE_ALL_FEATURES
12040           if test -z "$defaultval"; then
12041               if test x"$enablestring" = xdisable; then
12042                   defaultval=yes
12043               else
12044                   defaultval=no
12045               fi
12046           fi
12047
12048           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
12049 echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6; }
12050           # Check whether --enable-treebook was given.
12051 if test "${enable_treebook+set}" = set; then
12052   enableval=$enable_treebook;
12053                           if test "$enableval" = yes; then
12054                             wx_cv_use_treebook='wxUSE_TREEBOOK=yes'
12055                           else
12056                             wx_cv_use_treebook='wxUSE_TREEBOOK=no'
12057                           fi
12058
12059 else
12060
12061                           wx_cv_use_treebook='wxUSE_TREEBOOK=${'DEFAULT_wxUSE_TREEBOOK":-$defaultval}"
12062
12063 fi
12064
12065
12066           eval "$wx_cv_use_treebook"
12067
12068           if test x"$enablestring" = xdisable; then
12069             if test $wxUSE_TREEBOOK = yes; then
12070               result=no
12071             else
12072               result=yes
12073             fi
12074           else
12075             result=$wxUSE_TREEBOOK
12076           fi
12077
12078           { echo "$as_me:$LINENO: result: $result" >&5
12079 echo "${ECHO_T}$result" >&6; }
12080
12081
12082           enablestring=
12083           defaultval=$wxUSE_ALL_FEATURES
12084           if test -z "$defaultval"; then
12085               if test x"$enablestring" = xdisable; then
12086                   defaultval=yes
12087               else
12088                   defaultval=no
12089               fi
12090           fi
12091
12092           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
12093 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6; }
12094           # Check whether --enable-treectrl was given.
12095 if test "${enable_treectrl+set}" = set; then
12096   enableval=$enable_treectrl;
12097                           if test "$enableval" = yes; then
12098                             wx_cv_use_treectrl='wxUSE_TREECTRL=yes'
12099                           else
12100                             wx_cv_use_treectrl='wxUSE_TREECTRL=no'
12101                           fi
12102
12103 else
12104
12105                           wx_cv_use_treectrl='wxUSE_TREECTRL=${'DEFAULT_wxUSE_TREECTRL":-$defaultval}"
12106
12107 fi
12108
12109
12110           eval "$wx_cv_use_treectrl"
12111
12112           if test x"$enablestring" = xdisable; then
12113             if test $wxUSE_TREECTRL = yes; then
12114               result=no
12115             else
12116               result=yes
12117             fi
12118           else
12119             result=$wxUSE_TREECTRL
12120           fi
12121
12122           { echo "$as_me:$LINENO: result: $result" >&5
12123 echo "${ECHO_T}$result" >&6; }
12124
12125
12126
12127
12128           enablestring=
12129           defaultval=$wxUSE_ALL_FEATURES
12130           if test -z "$defaultval"; then
12131               if test x"$enablestring" = xdisable; then
12132                   defaultval=yes
12133               else
12134                   defaultval=no
12135               fi
12136           fi
12137
12138           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
12139 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6; }
12140           # Check whether --enable-commondlg was given.
12141 if test "${enable_commondlg+set}" = set; then
12142   enableval=$enable_commondlg;
12143                           if test "$enableval" = yes; then
12144                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
12145                           else
12146                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=no'
12147                           fi
12148
12149 else
12150
12151                           wx_cv_use_commondlg='wxUSE_COMMONDLGS=${'DEFAULT_wxUSE_COMMONDLGS":-$defaultval}"
12152
12153 fi
12154
12155
12156           eval "$wx_cv_use_commondlg"
12157
12158           if test x"$enablestring" = xdisable; then
12159             if test $wxUSE_COMMONDLGS = yes; then
12160               result=no
12161             else
12162               result=yes
12163             fi
12164           else
12165             result=$wxUSE_COMMONDLGS
12166           fi
12167
12168           { echo "$as_me:$LINENO: result: $result" >&5
12169 echo "${ECHO_T}$result" >&6; }
12170
12171
12172           enablestring=
12173           defaultval=$wxUSE_ALL_FEATURES
12174           if test -z "$defaultval"; then
12175               if test x"$enablestring" = xdisable; then
12176                   defaultval=yes
12177               else
12178                   defaultval=no
12179               fi
12180           fi
12181
12182           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aboutdlg" >&5
12183 echo $ECHO_N "checking for --${enablestring:-enable}-aboutdlg... $ECHO_C" >&6; }
12184           # Check whether --enable-aboutdlg was given.
12185 if test "${enable_aboutdlg+set}" = set; then
12186   enableval=$enable_aboutdlg;
12187                           if test "$enableval" = yes; then
12188                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes'
12189                           else
12190                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=no'
12191                           fi
12192
12193 else
12194
12195                           wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=${'DEFAULT_wxUSE_ABOUTDLG":-$defaultval}"
12196
12197 fi
12198
12199
12200           eval "$wx_cv_use_aboutdlg"
12201
12202           if test x"$enablestring" = xdisable; then
12203             if test $wxUSE_ABOUTDLG = yes; then
12204               result=no
12205             else
12206               result=yes
12207             fi
12208           else
12209             result=$wxUSE_ABOUTDLG
12210           fi
12211
12212           { echo "$as_me:$LINENO: result: $result" >&5
12213 echo "${ECHO_T}$result" >&6; }
12214
12215
12216           enablestring=
12217           defaultval=$wxUSE_ALL_FEATURES
12218           if test -z "$defaultval"; then
12219               if test x"$enablestring" = xdisable; then
12220                   defaultval=yes
12221               else
12222                   defaultval=no
12223               fi
12224           fi
12225
12226           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
12227 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6; }
12228           # Check whether --enable-choicedlg was given.
12229 if test "${enable_choicedlg+set}" = set; then
12230   enableval=$enable_choicedlg;
12231                           if test "$enableval" = yes; then
12232                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
12233                           else
12234                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
12235                           fi
12236
12237 else
12238
12239                           wx_cv_use_choicedlg='wxUSE_CHOICEDLG=${'DEFAULT_wxUSE_CHOICEDLG":-$defaultval}"
12240
12241 fi
12242
12243
12244           eval "$wx_cv_use_choicedlg"
12245
12246           if test x"$enablestring" = xdisable; then
12247             if test $wxUSE_CHOICEDLG = yes; then
12248               result=no
12249             else
12250               result=yes
12251             fi
12252           else
12253             result=$wxUSE_CHOICEDLG
12254           fi
12255
12256           { echo "$as_me:$LINENO: result: $result" >&5
12257 echo "${ECHO_T}$result" >&6; }
12258
12259
12260           enablestring=
12261           defaultval=$wxUSE_ALL_FEATURES
12262           if test -z "$defaultval"; then
12263               if test x"$enablestring" = xdisable; then
12264                   defaultval=yes
12265               else
12266                   defaultval=no
12267               fi
12268           fi
12269
12270           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
12271 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6; }
12272           # Check whether --enable-coldlg was given.
12273 if test "${enable_coldlg+set}" = set; then
12274   enableval=$enable_coldlg;
12275                           if test "$enableval" = yes; then
12276                             wx_cv_use_coldlg='wxUSE_COLOURDLG=yes'
12277                           else
12278                             wx_cv_use_coldlg='wxUSE_COLOURDLG=no'
12279                           fi
12280
12281 else
12282
12283                           wx_cv_use_coldlg='wxUSE_COLOURDLG=${'DEFAULT_wxUSE_COLOURDLG":-$defaultval}"
12284
12285 fi
12286
12287
12288           eval "$wx_cv_use_coldlg"
12289
12290           if test x"$enablestring" = xdisable; then
12291             if test $wxUSE_COLOURDLG = yes; then
12292               result=no
12293             else
12294               result=yes
12295             fi
12296           else
12297             result=$wxUSE_COLOURDLG
12298           fi
12299
12300           { echo "$as_me:$LINENO: result: $result" >&5
12301 echo "${ECHO_T}$result" >&6; }
12302
12303
12304           enablestring=
12305           defaultval=$wxUSE_ALL_FEATURES
12306           if test -z "$defaultval"; then
12307               if test x"$enablestring" = xdisable; then
12308                   defaultval=yes
12309               else
12310                   defaultval=no
12311               fi
12312           fi
12313
12314           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
12315 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6; }
12316           # Check whether --enable-filedlg was given.
12317 if test "${enable_filedlg+set}" = set; then
12318   enableval=$enable_filedlg;
12319                           if test "$enableval" = yes; then
12320                             wx_cv_use_filedlg='wxUSE_FILEDLG=yes'
12321                           else
12322                             wx_cv_use_filedlg='wxUSE_FILEDLG=no'
12323                           fi
12324
12325 else
12326
12327                           wx_cv_use_filedlg='wxUSE_FILEDLG=${'DEFAULT_wxUSE_FILEDLG":-$defaultval}"
12328
12329 fi
12330
12331
12332           eval "$wx_cv_use_filedlg"
12333
12334           if test x"$enablestring" = xdisable; then
12335             if test $wxUSE_FILEDLG = yes; then
12336               result=no
12337             else
12338               result=yes
12339             fi
12340           else
12341             result=$wxUSE_FILEDLG
12342           fi
12343
12344           { echo "$as_me:$LINENO: result: $result" >&5
12345 echo "${ECHO_T}$result" >&6; }
12346
12347
12348           enablestring=
12349           defaultval=$wxUSE_ALL_FEATURES
12350           if test -z "$defaultval"; then
12351               if test x"$enablestring" = xdisable; then
12352                   defaultval=yes
12353               else
12354                   defaultval=no
12355               fi
12356           fi
12357
12358           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
12359 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6; }
12360           # Check whether --enable-finddlg was given.
12361 if test "${enable_finddlg+set}" = set; then
12362   enableval=$enable_finddlg;
12363                           if test "$enableval" = yes; then
12364                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
12365                           else
12366                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
12367                           fi
12368
12369 else
12370
12371                           wx_cv_use_finddlg='wxUSE_FINDREPLDLG=${'DEFAULT_wxUSE_FINDREPLDLG":-$defaultval}"
12372
12373 fi
12374
12375
12376           eval "$wx_cv_use_finddlg"
12377
12378           if test x"$enablestring" = xdisable; then
12379             if test $wxUSE_FINDREPLDLG = yes; then
12380               result=no
12381             else
12382               result=yes
12383             fi
12384           else
12385             result=$wxUSE_FINDREPLDLG
12386           fi
12387
12388           { echo "$as_me:$LINENO: result: $result" >&5
12389 echo "${ECHO_T}$result" >&6; }
12390
12391
12392           enablestring=
12393           defaultval=$wxUSE_ALL_FEATURES
12394           if test -z "$defaultval"; then
12395               if test x"$enablestring" = xdisable; then
12396                   defaultval=yes
12397               else
12398                   defaultval=no
12399               fi
12400           fi
12401
12402           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
12403 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6; }
12404           # Check whether --enable-fontdlg was given.
12405 if test "${enable_fontdlg+set}" = set; then
12406   enableval=$enable_fontdlg;
12407                           if test "$enableval" = yes; then
12408                             wx_cv_use_fontdlg='wxUSE_FONTDLG=yes'
12409                           else
12410                             wx_cv_use_fontdlg='wxUSE_FONTDLG=no'
12411                           fi
12412
12413 else
12414
12415                           wx_cv_use_fontdlg='wxUSE_FONTDLG=${'DEFAULT_wxUSE_FONTDLG":-$defaultval}"
12416
12417 fi
12418
12419
12420           eval "$wx_cv_use_fontdlg"
12421
12422           if test x"$enablestring" = xdisable; then
12423             if test $wxUSE_FONTDLG = yes; then
12424               result=no
12425             else
12426               result=yes
12427             fi
12428           else
12429             result=$wxUSE_FONTDLG
12430           fi
12431
12432           { echo "$as_me:$LINENO: result: $result" >&5
12433 echo "${ECHO_T}$result" >&6; }
12434
12435
12436           enablestring=
12437           defaultval=$wxUSE_ALL_FEATURES
12438           if test -z "$defaultval"; then
12439               if test x"$enablestring" = xdisable; then
12440                   defaultval=yes
12441               else
12442                   defaultval=no
12443               fi
12444           fi
12445
12446           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
12447 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6; }
12448           # Check whether --enable-dirdlg was given.
12449 if test "${enable_dirdlg+set}" = set; then
12450   enableval=$enable_dirdlg;
12451                           if test "$enableval" = yes; then
12452                             wx_cv_use_dirdlg='wxUSE_DIRDLG=yes'
12453                           else
12454                             wx_cv_use_dirdlg='wxUSE_DIRDLG=no'
12455                           fi
12456
12457 else
12458
12459                           wx_cv_use_dirdlg='wxUSE_DIRDLG=${'DEFAULT_wxUSE_DIRDLG":-$defaultval}"
12460
12461 fi
12462
12463
12464           eval "$wx_cv_use_dirdlg"
12465
12466           if test x"$enablestring" = xdisable; then
12467             if test $wxUSE_DIRDLG = yes; then
12468               result=no
12469             else
12470               result=yes
12471             fi
12472           else
12473             result=$wxUSE_DIRDLG
12474           fi
12475
12476           { echo "$as_me:$LINENO: result: $result" >&5
12477 echo "${ECHO_T}$result" >&6; }
12478
12479
12480           enablestring=
12481           defaultval=$wxUSE_ALL_FEATURES
12482           if test -z "$defaultval"; then
12483               if test x"$enablestring" = xdisable; then
12484                   defaultval=yes
12485               else
12486                   defaultval=no
12487               fi
12488           fi
12489
12490           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
12491 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6; }
12492           # Check whether --enable-msgdlg was given.
12493 if test "${enable_msgdlg+set}" = set; then
12494   enableval=$enable_msgdlg;
12495                           if test "$enableval" = yes; then
12496                             wx_cv_use_msgdlg='wxUSE_MSGDLG=yes'
12497                           else
12498                             wx_cv_use_msgdlg='wxUSE_MSGDLG=no'
12499                           fi
12500
12501 else
12502
12503                           wx_cv_use_msgdlg='wxUSE_MSGDLG=${'DEFAULT_wxUSE_MSGDLG":-$defaultval}"
12504
12505 fi
12506
12507
12508           eval "$wx_cv_use_msgdlg"
12509
12510           if test x"$enablestring" = xdisable; then
12511             if test $wxUSE_MSGDLG = yes; then
12512               result=no
12513             else
12514               result=yes
12515             fi
12516           else
12517             result=$wxUSE_MSGDLG
12518           fi
12519
12520           { echo "$as_me:$LINENO: result: $result" >&5
12521 echo "${ECHO_T}$result" >&6; }
12522
12523
12524           enablestring=
12525           defaultval=$wxUSE_ALL_FEATURES
12526           if test -z "$defaultval"; then
12527               if test x"$enablestring" = xdisable; then
12528                   defaultval=yes
12529               else
12530                   defaultval=no
12531               fi
12532           fi
12533
12534           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
12535 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6; }
12536           # Check whether --enable-numberdlg was given.
12537 if test "${enable_numberdlg+set}" = set; then
12538   enableval=$enable_numberdlg;
12539                           if test "$enableval" = yes; then
12540                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
12541                           else
12542                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
12543                           fi
12544
12545 else
12546
12547                           wx_cv_use_numberdlg='wxUSE_NUMBERDLG=${'DEFAULT_wxUSE_NUMBERDLG":-$defaultval}"
12548
12549 fi
12550
12551
12552           eval "$wx_cv_use_numberdlg"
12553
12554           if test x"$enablestring" = xdisable; then
12555             if test $wxUSE_NUMBERDLG = yes; then
12556               result=no
12557             else
12558               result=yes
12559             fi
12560           else
12561             result=$wxUSE_NUMBERDLG
12562           fi
12563
12564           { echo "$as_me:$LINENO: result: $result" >&5
12565 echo "${ECHO_T}$result" >&6; }
12566
12567
12568           enablestring=
12569           defaultval=$wxUSE_ALL_FEATURES
12570           if test -z "$defaultval"; then
12571               if test x"$enablestring" = xdisable; then
12572                   defaultval=yes
12573               else
12574                   defaultval=no
12575               fi
12576           fi
12577
12578           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
12579 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6; }
12580           # Check whether --enable-splash was given.
12581 if test "${enable_splash+set}" = set; then
12582   enableval=$enable_splash;
12583                           if test "$enableval" = yes; then
12584                             wx_cv_use_splash='wxUSE_SPLASH=yes'
12585                           else
12586                             wx_cv_use_splash='wxUSE_SPLASH=no'
12587                           fi
12588
12589 else
12590
12591                           wx_cv_use_splash='wxUSE_SPLASH=${'DEFAULT_wxUSE_SPLASH":-$defaultval}"
12592
12593 fi
12594
12595
12596           eval "$wx_cv_use_splash"
12597
12598           if test x"$enablestring" = xdisable; then
12599             if test $wxUSE_SPLASH = yes; then
12600               result=no
12601             else
12602               result=yes
12603             fi
12604           else
12605             result=$wxUSE_SPLASH
12606           fi
12607
12608           { echo "$as_me:$LINENO: result: $result" >&5
12609 echo "${ECHO_T}$result" >&6; }
12610
12611
12612           enablestring=
12613           defaultval=$wxUSE_ALL_FEATURES
12614           if test -z "$defaultval"; then
12615               if test x"$enablestring" = xdisable; then
12616                   defaultval=yes
12617               else
12618                   defaultval=no
12619               fi
12620           fi
12621
12622           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
12623 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6; }
12624           # Check whether --enable-textdlg was given.
12625 if test "${enable_textdlg+set}" = set; then
12626   enableval=$enable_textdlg;
12627                           if test "$enableval" = yes; then
12628                             wx_cv_use_textdlg='wxUSE_TEXTDLG=yes'
12629                           else
12630                             wx_cv_use_textdlg='wxUSE_TEXTDLG=no'
12631                           fi
12632
12633 else
12634
12635                           wx_cv_use_textdlg='wxUSE_TEXTDLG=${'DEFAULT_wxUSE_TEXTDLG":-$defaultval}"
12636
12637 fi
12638
12639
12640           eval "$wx_cv_use_textdlg"
12641
12642           if test x"$enablestring" = xdisable; then
12643             if test $wxUSE_TEXTDLG = yes; then
12644               result=no
12645             else
12646               result=yes
12647             fi
12648           else
12649             result=$wxUSE_TEXTDLG
12650           fi
12651
12652           { echo "$as_me:$LINENO: result: $result" >&5
12653 echo "${ECHO_T}$result" >&6; }
12654
12655
12656           enablestring=
12657           defaultval=$wxUSE_ALL_FEATURES
12658           if test -z "$defaultval"; then
12659               if test x"$enablestring" = xdisable; then
12660                   defaultval=yes
12661               else
12662                   defaultval=no
12663               fi
12664           fi
12665
12666           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
12667 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6; }
12668           # Check whether --enable-tipdlg was given.
12669 if test "${enable_tipdlg+set}" = set; then
12670   enableval=$enable_tipdlg;
12671                           if test "$enableval" = yes; then
12672                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
12673                           else
12674                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
12675                           fi
12676
12677 else
12678
12679                           wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=${'DEFAULT_wxUSE_STARTUP_TIPS":-$defaultval}"
12680
12681 fi
12682
12683
12684           eval "$wx_cv_use_tipdlg"
12685
12686           if test x"$enablestring" = xdisable; then
12687             if test $wxUSE_STARTUP_TIPS = yes; then
12688               result=no
12689             else
12690               result=yes
12691             fi
12692           else
12693             result=$wxUSE_STARTUP_TIPS
12694           fi
12695
12696           { echo "$as_me:$LINENO: result: $result" >&5
12697 echo "${ECHO_T}$result" >&6; }
12698
12699
12700           enablestring=
12701           defaultval=$wxUSE_ALL_FEATURES
12702           if test -z "$defaultval"; then
12703               if test x"$enablestring" = xdisable; then
12704                   defaultval=yes
12705               else
12706                   defaultval=no
12707               fi
12708           fi
12709
12710           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
12711 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6; }
12712           # Check whether --enable-progressdlg was given.
12713 if test "${enable_progressdlg+set}" = set; then
12714   enableval=$enable_progressdlg;
12715                           if test "$enableval" = yes; then
12716                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
12717                           else
12718                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
12719                           fi
12720
12721 else
12722
12723                           wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=${'DEFAULT_wxUSE_PROGRESSDLG":-$defaultval}"
12724
12725 fi
12726
12727
12728           eval "$wx_cv_use_progressdlg"
12729
12730           if test x"$enablestring" = xdisable; then
12731             if test $wxUSE_PROGRESSDLG = yes; then
12732               result=no
12733             else
12734               result=yes
12735             fi
12736           else
12737             result=$wxUSE_PROGRESSDLG
12738           fi
12739
12740           { echo "$as_me:$LINENO: result: $result" >&5
12741 echo "${ECHO_T}$result" >&6; }
12742
12743
12744           enablestring=
12745           defaultval=$wxUSE_ALL_FEATURES
12746           if test -z "$defaultval"; then
12747               if test x"$enablestring" = xdisable; then
12748                   defaultval=yes
12749               else
12750                   defaultval=no
12751               fi
12752           fi
12753
12754           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
12755 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6; }
12756           # Check whether --enable-wizarddlg was given.
12757 if test "${enable_wizarddlg+set}" = set; then
12758   enableval=$enable_wizarddlg;
12759                           if test "$enableval" = yes; then
12760                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
12761                           else
12762                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
12763                           fi
12764
12765 else
12766
12767                           wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=${'DEFAULT_wxUSE_WIZARDDLG":-$defaultval}"
12768
12769 fi
12770
12771
12772           eval "$wx_cv_use_wizarddlg"
12773
12774           if test x"$enablestring" = xdisable; then
12775             if test $wxUSE_WIZARDDLG = yes; then
12776               result=no
12777             else
12778               result=yes
12779             fi
12780           else
12781             result=$wxUSE_WIZARDDLG
12782           fi
12783
12784           { echo "$as_me:$LINENO: result: $result" >&5
12785 echo "${ECHO_T}$result" >&6; }
12786
12787
12788
12789
12790           enablestring=
12791           defaultval=$wxUSE_ALL_FEATURES
12792           if test -z "$defaultval"; then
12793               if test x"$enablestring" = xdisable; then
12794                   defaultval=yes
12795               else
12796                   defaultval=no
12797               fi
12798           fi
12799
12800           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
12801 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6; }
12802           # Check whether --enable-menus was given.
12803 if test "${enable_menus+set}" = set; then
12804   enableval=$enable_menus;
12805                           if test "$enableval" = yes; then
12806                             wx_cv_use_menus='wxUSE_MENUS=yes'
12807                           else
12808                             wx_cv_use_menus='wxUSE_MENUS=no'
12809                           fi
12810
12811 else
12812
12813                           wx_cv_use_menus='wxUSE_MENUS=${'DEFAULT_wxUSE_MENUS":-$defaultval}"
12814
12815 fi
12816
12817
12818           eval "$wx_cv_use_menus"
12819
12820           if test x"$enablestring" = xdisable; then
12821             if test $wxUSE_MENUS = yes; then
12822               result=no
12823             else
12824               result=yes
12825             fi
12826           else
12827             result=$wxUSE_MENUS
12828           fi
12829
12830           { echo "$as_me:$LINENO: result: $result" >&5
12831 echo "${ECHO_T}$result" >&6; }
12832
12833
12834           enablestring=
12835           defaultval=$wxUSE_ALL_FEATURES
12836           if test -z "$defaultval"; then
12837               if test x"$enablestring" = xdisable; then
12838                   defaultval=yes
12839               else
12840                   defaultval=no
12841               fi
12842           fi
12843
12844           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
12845 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6; }
12846           # Check whether --enable-miniframe was given.
12847 if test "${enable_miniframe+set}" = set; then
12848   enableval=$enable_miniframe;
12849                           if test "$enableval" = yes; then
12850                             wx_cv_use_miniframe='wxUSE_MINIFRAME=yes'
12851                           else
12852                             wx_cv_use_miniframe='wxUSE_MINIFRAME=no'
12853                           fi
12854
12855 else
12856
12857                           wx_cv_use_miniframe='wxUSE_MINIFRAME=${'DEFAULT_wxUSE_MINIFRAME":-$defaultval}"
12858
12859 fi
12860
12861
12862           eval "$wx_cv_use_miniframe"
12863
12864           if test x"$enablestring" = xdisable; then
12865             if test $wxUSE_MINIFRAME = yes; then
12866               result=no
12867             else
12868               result=yes
12869             fi
12870           else
12871             result=$wxUSE_MINIFRAME
12872           fi
12873
12874           { echo "$as_me:$LINENO: result: $result" >&5
12875 echo "${ECHO_T}$result" >&6; }
12876
12877
12878           enablestring=
12879           defaultval=$wxUSE_ALL_FEATURES
12880           if test -z "$defaultval"; then
12881               if test x"$enablestring" = xdisable; then
12882                   defaultval=yes
12883               else
12884                   defaultval=no
12885               fi
12886           fi
12887
12888           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
12889 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6; }
12890           # Check whether --enable-tooltips was given.
12891 if test "${enable_tooltips+set}" = set; then
12892   enableval=$enable_tooltips;
12893                           if test "$enableval" = yes; then
12894                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
12895                           else
12896                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=no'
12897                           fi
12898
12899 else
12900
12901                           wx_cv_use_tooltips='wxUSE_TOOLTIPS=${'DEFAULT_wxUSE_TOOLTIPS":-$defaultval}"
12902
12903 fi
12904
12905
12906           eval "$wx_cv_use_tooltips"
12907
12908           if test x"$enablestring" = xdisable; then
12909             if test $wxUSE_TOOLTIPS = yes; then
12910               result=no
12911             else
12912               result=yes
12913             fi
12914           else
12915             result=$wxUSE_TOOLTIPS
12916           fi
12917
12918           { echo "$as_me:$LINENO: result: $result" >&5
12919 echo "${ECHO_T}$result" >&6; }
12920
12921
12922           enablestring=
12923           defaultval=$wxUSE_ALL_FEATURES
12924           if test -z "$defaultval"; then
12925               if test x"$enablestring" = xdisable; then
12926                   defaultval=yes
12927               else
12928                   defaultval=no
12929               fi
12930           fi
12931
12932           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
12933 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6; }
12934           # Check whether --enable-splines was given.
12935 if test "${enable_splines+set}" = set; then
12936   enableval=$enable_splines;
12937                           if test "$enableval" = yes; then
12938                             wx_cv_use_splines='wxUSE_SPLINES=yes'
12939                           else
12940                             wx_cv_use_splines='wxUSE_SPLINES=no'
12941                           fi
12942
12943 else
12944
12945                           wx_cv_use_splines='wxUSE_SPLINES=${'DEFAULT_wxUSE_SPLINES":-$defaultval}"
12946
12947 fi
12948
12949
12950           eval "$wx_cv_use_splines"
12951
12952           if test x"$enablestring" = xdisable; then
12953             if test $wxUSE_SPLINES = yes; then
12954               result=no
12955             else
12956               result=yes
12957             fi
12958           else
12959             result=$wxUSE_SPLINES
12960           fi
12961
12962           { echo "$as_me:$LINENO: result: $result" >&5
12963 echo "${ECHO_T}$result" >&6; }
12964
12965
12966           enablestring=
12967           defaultval=$wxUSE_ALL_FEATURES
12968           if test -z "$defaultval"; then
12969               if test x"$enablestring" = xdisable; then
12970                   defaultval=yes
12971               else
12972                   defaultval=no
12973               fi
12974           fi
12975
12976           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
12977 echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6; }
12978           # Check whether --enable-mousewheel was given.
12979 if test "${enable_mousewheel+set}" = set; then
12980   enableval=$enable_mousewheel;
12981                           if test "$enableval" = yes; then
12982                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
12983                           else
12984                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
12985                           fi
12986
12987 else
12988
12989                           wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=${'DEFAULT_wxUSE_MOUSEWHEEL":-$defaultval}"
12990
12991 fi
12992
12993
12994           eval "$wx_cv_use_mousewheel"
12995
12996           if test x"$enablestring" = xdisable; then
12997             if test $wxUSE_MOUSEWHEEL = yes; then
12998               result=no
12999             else
13000               result=yes
13001             fi
13002           else
13003             result=$wxUSE_MOUSEWHEEL
13004           fi
13005
13006           { echo "$as_me:$LINENO: result: $result" >&5
13007 echo "${ECHO_T}$result" >&6; }
13008
13009
13010           enablestring=
13011           defaultval=$wxUSE_ALL_FEATURES
13012           if test -z "$defaultval"; then
13013               if test x"$enablestring" = xdisable; then
13014                   defaultval=yes
13015               else
13016                   defaultval=no
13017               fi
13018           fi
13019
13020           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
13021 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6; }
13022           # Check whether --enable-validators was given.
13023 if test "${enable_validators+set}" = set; then
13024   enableval=$enable_validators;
13025                           if test "$enableval" = yes; then
13026                             wx_cv_use_validators='wxUSE_VALIDATORS=yes'
13027                           else
13028                             wx_cv_use_validators='wxUSE_VALIDATORS=no'
13029                           fi
13030
13031 else
13032
13033                           wx_cv_use_validators='wxUSE_VALIDATORS=${'DEFAULT_wxUSE_VALIDATORS":-$defaultval}"
13034
13035 fi
13036
13037
13038           eval "$wx_cv_use_validators"
13039
13040           if test x"$enablestring" = xdisable; then
13041             if test $wxUSE_VALIDATORS = yes; then
13042               result=no
13043             else
13044               result=yes
13045             fi
13046           else
13047             result=$wxUSE_VALIDATORS
13048           fi
13049
13050           { echo "$as_me:$LINENO: result: $result" >&5
13051 echo "${ECHO_T}$result" >&6; }
13052
13053
13054           enablestring=
13055           defaultval=$wxUSE_ALL_FEATURES
13056           if test -z "$defaultval"; then
13057               if test x"$enablestring" = xdisable; then
13058                   defaultval=yes
13059               else
13060                   defaultval=no
13061               fi
13062           fi
13063
13064           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
13065 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6; }
13066           # Check whether --enable-busyinfo was given.
13067 if test "${enable_busyinfo+set}" = set; then
13068   enableval=$enable_busyinfo;
13069                           if test "$enableval" = yes; then
13070                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
13071                           else
13072                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=no'
13073                           fi
13074
13075 else
13076
13077                           wx_cv_use_busyinfo='wxUSE_BUSYINFO=${'DEFAULT_wxUSE_BUSYINFO":-$defaultval}"
13078
13079 fi
13080
13081
13082           eval "$wx_cv_use_busyinfo"
13083
13084           if test x"$enablestring" = xdisable; then
13085             if test $wxUSE_BUSYINFO = yes; then
13086               result=no
13087             else
13088               result=yes
13089             fi
13090           else
13091             result=$wxUSE_BUSYINFO
13092           fi
13093
13094           { echo "$as_me:$LINENO: result: $result" >&5
13095 echo "${ECHO_T}$result" >&6; }
13096
13097
13098           enablestring=
13099           defaultval=$wxUSE_ALL_FEATURES
13100           if test -z "$defaultval"; then
13101               if test x"$enablestring" = xdisable; then
13102                   defaultval=yes
13103               else
13104                   defaultval=no
13105               fi
13106           fi
13107
13108           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
13109 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6; }
13110           # Check whether --enable-joystick was given.
13111 if test "${enable_joystick+set}" = set; then
13112   enableval=$enable_joystick;
13113                           if test "$enableval" = yes; then
13114                             wx_cv_use_joystick='wxUSE_JOYSTICK=yes'
13115                           else
13116                             wx_cv_use_joystick='wxUSE_JOYSTICK=no'
13117                           fi
13118
13119 else
13120
13121                           wx_cv_use_joystick='wxUSE_JOYSTICK=${'DEFAULT_wxUSE_JOYSTICK":-$defaultval}"
13122
13123 fi
13124
13125
13126           eval "$wx_cv_use_joystick"
13127
13128           if test x"$enablestring" = xdisable; then
13129             if test $wxUSE_JOYSTICK = yes; then
13130               result=no
13131             else
13132               result=yes
13133             fi
13134           else
13135             result=$wxUSE_JOYSTICK
13136           fi
13137
13138           { echo "$as_me:$LINENO: result: $result" >&5
13139 echo "${ECHO_T}$result" >&6; }
13140
13141
13142           enablestring=
13143           defaultval=$wxUSE_ALL_FEATURES
13144           if test -z "$defaultval"; then
13145               if test x"$enablestring" = xdisable; then
13146                   defaultval=yes
13147               else
13148                   defaultval=no
13149               fi
13150           fi
13151
13152           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
13153 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
13154           # Check whether --enable-metafile was given.
13155 if test "${enable_metafile+set}" = set; then
13156   enableval=$enable_metafile;
13157                           if test "$enableval" = yes; then
13158                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
13159                           else
13160                             wx_cv_use_metafile='wxUSE_METAFILE=no'
13161                           fi
13162
13163 else
13164
13165                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
13166
13167 fi
13168
13169
13170           eval "$wx_cv_use_metafile"
13171
13172           if test x"$enablestring" = xdisable; then
13173             if test $wxUSE_METAFILE = yes; then
13174               result=no
13175             else
13176               result=yes
13177             fi
13178           else
13179             result=$wxUSE_METAFILE
13180           fi
13181
13182           { echo "$as_me:$LINENO: result: $result" >&5
13183 echo "${ECHO_T}$result" >&6; }
13184
13185
13186           enablestring=
13187           defaultval=$wxUSE_ALL_FEATURES
13188           if test -z "$defaultval"; then
13189               if test x"$enablestring" = xdisable; then
13190                   defaultval=yes
13191               else
13192                   defaultval=no
13193               fi
13194           fi
13195
13196           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
13197 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6; }
13198           # Check whether --enable-dragimage was given.
13199 if test "${enable_dragimage+set}" = set; then
13200   enableval=$enable_dragimage;
13201                           if test "$enableval" = yes; then
13202                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
13203                           else
13204                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
13205                           fi
13206
13207 else
13208
13209                           wx_cv_use_dragimage='wxUSE_DRAGIMAGE=${'DEFAULT_wxUSE_DRAGIMAGE":-$defaultval}"
13210
13211 fi
13212
13213
13214           eval "$wx_cv_use_dragimage"
13215
13216           if test x"$enablestring" = xdisable; then
13217             if test $wxUSE_DRAGIMAGE = yes; then
13218               result=no
13219             else
13220               result=yes
13221             fi
13222           else
13223             result=$wxUSE_DRAGIMAGE
13224           fi
13225
13226           { echo "$as_me:$LINENO: result: $result" >&5
13227 echo "${ECHO_T}$result" >&6; }
13228
13229
13230           enablestring=
13231           defaultval=$wxUSE_ALL_FEATURES
13232           if test -z "$defaultval"; then
13233               if test x"$enablestring" = xdisable; then
13234                   defaultval=yes
13235               else
13236                   defaultval=no
13237               fi
13238           fi
13239
13240           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
13241 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6; }
13242           # Check whether --enable-accessibility was given.
13243 if test "${enable_accessibility+set}" = set; then
13244   enableval=$enable_accessibility;
13245                           if test "$enableval" = yes; then
13246                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
13247                           else
13248                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
13249                           fi
13250
13251 else
13252
13253                           wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=${'DEFAULT_wxUSE_ACCESSIBILITY":-$defaultval}"
13254
13255 fi
13256
13257
13258           eval "$wx_cv_use_accessibility"
13259
13260           if test x"$enablestring" = xdisable; then
13261             if test $wxUSE_ACCESSIBILITY = yes; then
13262               result=no
13263             else
13264               result=yes
13265             fi
13266           else
13267             result=$wxUSE_ACCESSIBILITY
13268           fi
13269
13270           { echo "$as_me:$LINENO: result: $result" >&5
13271 echo "${ECHO_T}$result" >&6; }
13272
13273
13274
13275
13276           enablestring=
13277           defaultval=$wxUSE_ALL_FEATURES
13278           if test -z "$defaultval"; then
13279               if test x"$enablestring" = xdisable; then
13280                   defaultval=yes
13281               else
13282                   defaultval=no
13283               fi
13284           fi
13285
13286           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
13287 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6; }
13288           # Check whether --enable-palette was given.
13289 if test "${enable_palette+set}" = set; then
13290   enableval=$enable_palette;
13291                           if test "$enableval" = yes; then
13292                             wx_cv_use_palette='wxUSE_PALETTE=yes'
13293                           else
13294                             wx_cv_use_palette='wxUSE_PALETTE=no'
13295                           fi
13296
13297 else
13298
13299                           wx_cv_use_palette='wxUSE_PALETTE=${'DEFAULT_wxUSE_PALETTE":-$defaultval}"
13300
13301 fi
13302
13303
13304           eval "$wx_cv_use_palette"
13305
13306           if test x"$enablestring" = xdisable; then
13307             if test $wxUSE_PALETTE = yes; then
13308               result=no
13309             else
13310               result=yes
13311             fi
13312           else
13313             result=$wxUSE_PALETTE
13314           fi
13315
13316           { echo "$as_me:$LINENO: result: $result" >&5
13317 echo "${ECHO_T}$result" >&6; }
13318
13319
13320           enablestring=
13321           defaultval=$wxUSE_ALL_FEATURES
13322           if test -z "$defaultval"; then
13323               if test x"$enablestring" = xdisable; then
13324                   defaultval=yes
13325               else
13326                   defaultval=no
13327               fi
13328           fi
13329
13330           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
13331 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6; }
13332           # Check whether --enable-image was given.
13333 if test "${enable_image+set}" = set; then
13334   enableval=$enable_image;
13335                           if test "$enableval" = yes; then
13336                             wx_cv_use_image='wxUSE_IMAGE=yes'
13337                           else
13338                             wx_cv_use_image='wxUSE_IMAGE=no'
13339                           fi
13340
13341 else
13342
13343                           wx_cv_use_image='wxUSE_IMAGE=${'DEFAULT_wxUSE_IMAGE":-$defaultval}"
13344
13345 fi
13346
13347
13348           eval "$wx_cv_use_image"
13349
13350           if test x"$enablestring" = xdisable; then
13351             if test $wxUSE_IMAGE = yes; then
13352               result=no
13353             else
13354               result=yes
13355             fi
13356           else
13357             result=$wxUSE_IMAGE
13358           fi
13359
13360           { echo "$as_me:$LINENO: result: $result" >&5
13361 echo "${ECHO_T}$result" >&6; }
13362
13363
13364           enablestring=
13365           defaultval=$wxUSE_ALL_FEATURES
13366           if test -z "$defaultval"; then
13367               if test x"$enablestring" = xdisable; then
13368                   defaultval=yes
13369               else
13370                   defaultval=no
13371               fi
13372           fi
13373
13374           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
13375 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6; }
13376           # Check whether --enable-gif was given.
13377 if test "${enable_gif+set}" = set; then
13378   enableval=$enable_gif;
13379                           if test "$enableval" = yes; then
13380                             wx_cv_use_gif='wxUSE_GIF=yes'
13381                           else
13382                             wx_cv_use_gif='wxUSE_GIF=no'
13383                           fi
13384
13385 else
13386
13387                           wx_cv_use_gif='wxUSE_GIF=${'DEFAULT_wxUSE_GIF":-$defaultval}"
13388
13389 fi
13390
13391
13392           eval "$wx_cv_use_gif"
13393
13394           if test x"$enablestring" = xdisable; then
13395             if test $wxUSE_GIF = yes; then
13396               result=no
13397             else
13398               result=yes
13399             fi
13400           else
13401             result=$wxUSE_GIF
13402           fi
13403
13404           { echo "$as_me:$LINENO: result: $result" >&5
13405 echo "${ECHO_T}$result" >&6; }
13406
13407
13408           enablestring=
13409           defaultval=$wxUSE_ALL_FEATURES
13410           if test -z "$defaultval"; then
13411               if test x"$enablestring" = xdisable; then
13412                   defaultval=yes
13413               else
13414                   defaultval=no
13415               fi
13416           fi
13417
13418           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
13419 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6; }
13420           # Check whether --enable-pcx was given.
13421 if test "${enable_pcx+set}" = set; then
13422   enableval=$enable_pcx;
13423                           if test "$enableval" = yes; then
13424                             wx_cv_use_pcx='wxUSE_PCX=yes'
13425                           else
13426                             wx_cv_use_pcx='wxUSE_PCX=no'
13427                           fi
13428
13429 else
13430
13431                           wx_cv_use_pcx='wxUSE_PCX=${'DEFAULT_wxUSE_PCX":-$defaultval}"
13432
13433 fi
13434
13435
13436           eval "$wx_cv_use_pcx"
13437
13438           if test x"$enablestring" = xdisable; then
13439             if test $wxUSE_PCX = yes; then
13440               result=no
13441             else
13442               result=yes
13443             fi
13444           else
13445             result=$wxUSE_PCX
13446           fi
13447
13448           { echo "$as_me:$LINENO: result: $result" >&5
13449 echo "${ECHO_T}$result" >&6; }
13450
13451
13452           enablestring=
13453           defaultval=$wxUSE_ALL_FEATURES
13454           if test -z "$defaultval"; then
13455               if test x"$enablestring" = xdisable; then
13456                   defaultval=yes
13457               else
13458                   defaultval=no
13459               fi
13460           fi
13461
13462           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tga" >&5
13463 echo $ECHO_N "checking for --${enablestring:-enable}-tga... $ECHO_C" >&6; }
13464           # Check whether --enable-tga was given.
13465 if test "${enable_tga+set}" = set; then
13466   enableval=$enable_tga;
13467                           if test "$enableval" = yes; then
13468                             wx_cv_use_tga='wxUSE_TGA=yes'
13469                           else
13470                             wx_cv_use_tga='wxUSE_TGA=no'
13471                           fi
13472
13473 else
13474
13475                           wx_cv_use_tga='wxUSE_TGA=${'DEFAULT_wxUSE_TGA":-$defaultval}"
13476
13477 fi
13478
13479
13480           eval "$wx_cv_use_tga"
13481
13482           if test x"$enablestring" = xdisable; then
13483             if test $wxUSE_TGA = yes; then
13484               result=no
13485             else
13486               result=yes
13487             fi
13488           else
13489             result=$wxUSE_TGA
13490           fi
13491
13492           { echo "$as_me:$LINENO: result: $result" >&5
13493 echo "${ECHO_T}$result" >&6; }
13494
13495
13496           enablestring=
13497           defaultval=$wxUSE_ALL_FEATURES
13498           if test -z "$defaultval"; then
13499               if test x"$enablestring" = xdisable; then
13500                   defaultval=yes
13501               else
13502                   defaultval=no
13503               fi
13504           fi
13505
13506           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
13507 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6; }
13508           # Check whether --enable-iff was given.
13509 if test "${enable_iff+set}" = set; then
13510   enableval=$enable_iff;
13511                           if test "$enableval" = yes; then
13512                             wx_cv_use_iff='wxUSE_IFF=yes'
13513                           else
13514                             wx_cv_use_iff='wxUSE_IFF=no'
13515                           fi
13516
13517 else
13518
13519                           wx_cv_use_iff='wxUSE_IFF=${'DEFAULT_wxUSE_IFF":-$defaultval}"
13520
13521 fi
13522
13523
13524           eval "$wx_cv_use_iff"
13525
13526           if test x"$enablestring" = xdisable; then
13527             if test $wxUSE_IFF = yes; then
13528               result=no
13529             else
13530               result=yes
13531             fi
13532           else
13533             result=$wxUSE_IFF
13534           fi
13535
13536           { echo "$as_me:$LINENO: result: $result" >&5
13537 echo "${ECHO_T}$result" >&6; }
13538
13539
13540           enablestring=
13541           defaultval=$wxUSE_ALL_FEATURES
13542           if test -z "$defaultval"; then
13543               if test x"$enablestring" = xdisable; then
13544                   defaultval=yes
13545               else
13546                   defaultval=no
13547               fi
13548           fi
13549
13550           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
13551 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6; }
13552           # Check whether --enable-pnm was given.
13553 if test "${enable_pnm+set}" = set; then
13554   enableval=$enable_pnm;
13555                           if test "$enableval" = yes; then
13556                             wx_cv_use_pnm='wxUSE_PNM=yes'
13557                           else
13558                             wx_cv_use_pnm='wxUSE_PNM=no'
13559                           fi
13560
13561 else
13562
13563                           wx_cv_use_pnm='wxUSE_PNM=${'DEFAULT_wxUSE_PNM":-$defaultval}"
13564
13565 fi
13566
13567
13568           eval "$wx_cv_use_pnm"
13569
13570           if test x"$enablestring" = xdisable; then
13571             if test $wxUSE_PNM = yes; then
13572               result=no
13573             else
13574               result=yes
13575             fi
13576           else
13577             result=$wxUSE_PNM
13578           fi
13579
13580           { echo "$as_me:$LINENO: result: $result" >&5
13581 echo "${ECHO_T}$result" >&6; }
13582
13583
13584           enablestring=
13585           defaultval=$wxUSE_ALL_FEATURES
13586           if test -z "$defaultval"; then
13587               if test x"$enablestring" = xdisable; then
13588                   defaultval=yes
13589               else
13590                   defaultval=no
13591               fi
13592           fi
13593
13594           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
13595 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6; }
13596           # Check whether --enable-xpm was given.
13597 if test "${enable_xpm+set}" = set; then
13598   enableval=$enable_xpm;
13599                           if test "$enableval" = yes; then
13600                             wx_cv_use_xpm='wxUSE_XPM=yes'
13601                           else
13602                             wx_cv_use_xpm='wxUSE_XPM=no'
13603                           fi
13604
13605 else
13606
13607                           wx_cv_use_xpm='wxUSE_XPM=${'DEFAULT_wxUSE_XPM":-$defaultval}"
13608
13609 fi
13610
13611
13612           eval "$wx_cv_use_xpm"
13613
13614           if test x"$enablestring" = xdisable; then
13615             if test $wxUSE_XPM = yes; then
13616               result=no
13617             else
13618               result=yes
13619             fi
13620           else
13621             result=$wxUSE_XPM
13622           fi
13623
13624           { echo "$as_me:$LINENO: result: $result" >&5
13625 echo "${ECHO_T}$result" >&6; }
13626
13627
13628           enablestring=
13629           defaultval=$wxUSE_ALL_FEATURES
13630           if test -z "$defaultval"; then
13631               if test x"$enablestring" = xdisable; then
13632                   defaultval=yes
13633               else
13634                   defaultval=no
13635               fi
13636           fi
13637
13638           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
13639 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6; }
13640           # Check whether --enable-ico_cur was given.
13641 if test "${enable_ico_cur+set}" = set; then
13642   enableval=$enable_ico_cur;
13643                           if test "$enableval" = yes; then
13644                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
13645                           else
13646                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=no'
13647                           fi
13648
13649 else
13650
13651                           wx_cv_use_ico_cur='wxUSE_ICO_CUR=${'DEFAULT_wxUSE_ICO_CUR":-$defaultval}"
13652
13653 fi
13654
13655
13656           eval "$wx_cv_use_ico_cur"
13657
13658           if test x"$enablestring" = xdisable; then
13659             if test $wxUSE_ICO_CUR = yes; then
13660               result=no
13661             else
13662               result=yes
13663             fi
13664           else
13665             result=$wxUSE_ICO_CUR
13666           fi
13667
13668           { echo "$as_me:$LINENO: result: $result" >&5
13669 echo "${ECHO_T}$result" >&6; }
13670
13671
13672
13673
13674           enablestring=
13675           defaultval=$wxUSE_ALL_FEATURES
13676           if test -z "$defaultval"; then
13677               if test x"$enablestring" = xdisable; then
13678                   defaultval=yes
13679               else
13680                   defaultval=no
13681               fi
13682           fi
13683
13684           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
13685 echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6; }
13686           # Check whether --enable-dccache was given.
13687 if test "${enable_dccache+set}" = set; then
13688   enableval=$enable_dccache;
13689                           if test "$enableval" = yes; then
13690                             wx_cv_use_dccache='wxUSE_DC_CACHEING=yes'
13691                           else
13692                             wx_cv_use_dccache='wxUSE_DC_CACHEING=no'
13693                           fi
13694
13695 else
13696
13697                           wx_cv_use_dccache='wxUSE_DC_CACHEING=${'DEFAULT_wxUSE_DC_CACHEING":-$defaultval}"
13698
13699 fi
13700
13701
13702           eval "$wx_cv_use_dccache"
13703
13704           if test x"$enablestring" = xdisable; then
13705             if test $wxUSE_DC_CACHEING = yes; then
13706               result=no
13707             else
13708               result=yes
13709             fi
13710           else
13711             result=$wxUSE_DC_CACHEING
13712           fi
13713
13714           { echo "$as_me:$LINENO: result: $result" >&5
13715 echo "${ECHO_T}$result" >&6; }
13716
13717
13718           enablestring=
13719           defaultval=$wxUSE_ALL_FEATURES
13720           if test -z "$defaultval"; then
13721               if test x"$enablestring" = xdisable; then
13722                   defaultval=yes
13723               else
13724                   defaultval=no
13725               fi
13726           fi
13727
13728           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ps-in-msw" >&5
13729 echo $ECHO_N "checking for --${enablestring:-enable}-ps-in-msw... $ECHO_C" >&6; }
13730           # Check whether --enable-ps-in-msw was given.
13731 if test "${enable_ps_in_msw+set}" = set; then
13732   enableval=$enable_ps_in_msw;
13733                           if test "$enableval" = yes; then
13734                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=yes'
13735                           else
13736                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=no'
13737                           fi
13738
13739 else
13740
13741                           wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=${'DEFAULT_wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW":-$defaultval}"
13742
13743 fi
13744
13745
13746           eval "$wx_cv_use_ps_in_msw"
13747
13748           if test x"$enablestring" = xdisable; then
13749             if test $wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW = yes; then
13750               result=no
13751             else
13752               result=yes
13753             fi
13754           else
13755             result=$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW
13756           fi
13757
13758           { echo "$as_me:$LINENO: result: $result" >&5
13759 echo "${ECHO_T}$result" >&6; }
13760
13761
13762           enablestring=
13763           defaultval=$wxUSE_ALL_FEATURES
13764           if test -z "$defaultval"; then
13765               if test x"$enablestring" = xdisable; then
13766                   defaultval=yes
13767               else
13768                   defaultval=no
13769               fi
13770           fi
13771
13772           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ownerdrawn" >&5
13773 echo $ECHO_N "checking for --${enablestring:-enable}-ownerdrawn... $ECHO_C" >&6; }
13774           # Check whether --enable-ownerdrawn was given.
13775 if test "${enable_ownerdrawn+set}" = set; then
13776   enableval=$enable_ownerdrawn;
13777                           if test "$enableval" = yes; then
13778                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=yes'
13779                           else
13780                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=no'
13781                           fi
13782
13783 else
13784
13785                           wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=${'DEFAULT_wxUSE_OWNER_DRAWN":-$defaultval}"
13786
13787 fi
13788
13789
13790           eval "$wx_cv_use_ownerdrawn"
13791
13792           if test x"$enablestring" = xdisable; then
13793             if test $wxUSE_OWNER_DRAWN = yes; then
13794               result=no
13795             else
13796               result=yes
13797             fi
13798           else
13799             result=$wxUSE_OWNER_DRAWN
13800           fi
13801
13802           { echo "$as_me:$LINENO: result: $result" >&5
13803 echo "${ECHO_T}$result" >&6; }
13804
13805
13806           enablestring=
13807           defaultval=$wxUSE_ALL_FEATURES
13808           if test -z "$defaultval"; then
13809               if test x"$enablestring" = xdisable; then
13810                   defaultval=yes
13811               else
13812                   defaultval=no
13813               fi
13814           fi
13815
13816           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-uxtheme" >&5
13817 echo $ECHO_N "checking for --${enablestring:-enable}-uxtheme... $ECHO_C" >&6; }
13818           # Check whether --enable-uxtheme was given.
13819 if test "${enable_uxtheme+set}" = set; then
13820   enableval=$enable_uxtheme;
13821                           if test "$enableval" = yes; then
13822                             wx_cv_use_uxtheme='wxUSE_UXTHEME=yes'
13823                           else
13824                             wx_cv_use_uxtheme='wxUSE_UXTHEME=no'
13825                           fi
13826
13827 else
13828
13829                           wx_cv_use_uxtheme='wxUSE_UXTHEME=${'DEFAULT_wxUSE_UXTHEME":-$defaultval}"
13830
13831 fi
13832
13833
13834           eval "$wx_cv_use_uxtheme"
13835
13836           if test x"$enablestring" = xdisable; then
13837             if test $wxUSE_UXTHEME = yes; then
13838               result=no
13839             else
13840               result=yes
13841             fi
13842           else
13843             result=$wxUSE_UXTHEME
13844           fi
13845
13846           { echo "$as_me:$LINENO: result: $result" >&5
13847 echo "${ECHO_T}$result" >&6; }
13848
13849
13850           enablestring=
13851           defaultval=$wxUSE_ALL_FEATURES
13852           if test -z "$defaultval"; then
13853               if test x"$enablestring" = xdisable; then
13854                   defaultval=yes
13855               else
13856                   defaultval=no
13857               fi
13858           fi
13859
13860           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxdib" >&5
13861 echo $ECHO_N "checking for --${enablestring:-enable}-wxdib... $ECHO_C" >&6; }
13862           # Check whether --enable-wxdib was given.
13863 if test "${enable_wxdib+set}" = set; then
13864   enableval=$enable_wxdib;
13865                           if test "$enableval" = yes; then
13866                             wx_cv_use_wxdib='wxUSE_DIB=yes'
13867                           else
13868                             wx_cv_use_wxdib='wxUSE_DIB=no'
13869                           fi
13870
13871 else
13872
13873                           wx_cv_use_wxdib='wxUSE_DIB=${'DEFAULT_wxUSE_DIB":-$defaultval}"
13874
13875 fi
13876
13877
13878           eval "$wx_cv_use_wxdib"
13879
13880           if test x"$enablestring" = xdisable; then
13881             if test $wxUSE_DIB = yes; then
13882               result=no
13883             else
13884               result=yes
13885             fi
13886           else
13887             result=$wxUSE_DIB
13888           fi
13889
13890           { echo "$as_me:$LINENO: result: $result" >&5
13891 echo "${ECHO_T}$result" >&6; }
13892
13893
13894 if test "$wxUSE_MSW" != 1; then
13895     DEFAULT_wxUSE_AUTOID_MANAGEMENT=no
13896 fi
13897
13898
13899           enablestring=
13900           defaultval=$wxUSE_ALL_FEATURES
13901           if test -z "$defaultval"; then
13902               if test x"$enablestring" = xdisable; then
13903                   defaultval=yes
13904               else
13905                   defaultval=no
13906               fi
13907           fi
13908
13909           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-autoidman" >&5
13910 echo $ECHO_N "checking for --${enablestring:-enable}-autoidman... $ECHO_C" >&6; }
13911           # Check whether --enable-autoidman was given.
13912 if test "${enable_autoidman+set}" = set; then
13913   enableval=$enable_autoidman;
13914                           if test "$enableval" = yes; then
13915                             wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=yes'
13916                           else
13917                             wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=no'
13918                           fi
13919
13920 else
13921
13922                           wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=${'DEFAULT_wxUSE_AUTOID_MANAGEMENT":-$defaultval}"
13923
13924 fi
13925
13926
13927           eval "$wx_cv_use_autoidman"
13928
13929           if test x"$enablestring" = xdisable; then
13930             if test $wxUSE_AUTOID_MANAGEMENT = yes; then
13931               result=no
13932             else
13933               result=yes
13934             fi
13935           else
13936             result=$wxUSE_AUTOID_MANAGEMENT
13937           fi
13938
13939           { echo "$as_me:$LINENO: result: $result" >&5
13940 echo "${ECHO_T}$result" >&6; }
13941
13942
13943 fi
13944
13945
13946 cat >confcache <<\_ACEOF
13947 # This file is a shell script that caches the results of configure
13948 # tests run on this system so they can be shared between configure
13949 # scripts and configure runs, see configure's option --config-cache.
13950 # It is not useful on other systems.  If it contains results you don't
13951 # want to keep, you may remove or edit it.
13952 #
13953 # config.status only pays attention to the cache file if you give it
13954 # the --recheck option to rerun configure.
13955 #
13956 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13957 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13958 # following values.
13959
13960 _ACEOF
13961
13962 # The following way of writing the cache mishandles newlines in values,
13963 # but we know of no workaround that is simple, portable, and efficient.
13964 # So, we kill variables containing newlines.
13965 # Ultrix sh set writes to stderr and can't be redirected directly,
13966 # and sets the high bit in the cache file unless we assign to the vars.
13967 (
13968   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13969     eval ac_val=\$$ac_var
13970     case $ac_val in #(
13971     *${as_nl}*)
13972       case $ac_var in #(
13973       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
13974 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
13975       esac
13976       case $ac_var in #(
13977       _ | IFS | as_nl) ;; #(
13978       *) $as_unset $ac_var ;;
13979       esac ;;
13980     esac
13981   done
13982
13983   (set) 2>&1 |
13984     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13985     *${as_nl}ac_space=\ *)
13986       # `set' does not quote correctly, so add quotes (double-quote
13987       # substitution turns \\\\ into \\, and sed turns \\ into \).
13988       sed -n \
13989         "s/'/'\\\\''/g;
13990           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13991       ;; #(
13992     *)
13993       # `set' quotes correctly as required by POSIX, so do not add quotes.
13994       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13995       ;;
13996     esac |
13997     sort
13998 ) |
13999   sed '
14000      /^ac_cv_env_/b end
14001      t clear
14002      :clear
14003      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14004      t end
14005      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14006      :end' >>confcache
14007 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14008   if test -w "$cache_file"; then
14009     test "x$cache_file" != "x/dev/null" &&
14010       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
14011 echo "$as_me: updating cache $cache_file" >&6;}
14012     cat confcache >$cache_file
14013   else
14014     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14015 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14016   fi
14017 fi
14018 rm -f confcache
14019
14020 CFLAGS=${CFLAGS:=}
14021
14022
14023
14024     ac_ext=c
14025 ac_cpp='$CPP $CPPFLAGS'
14026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14029 if test -n "$ac_tool_prefix"; then
14030   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
14031 set dummy ${ac_tool_prefix}gcc; ac_word=$2
14032 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14034 if test "${ac_cv_prog_CC+set}" = set; then
14035   echo $ECHO_N "(cached) $ECHO_C" >&6
14036 else
14037   if test -n "$CC"; then
14038   ac_cv_prog_CC="$CC" # Let the user override the test.
14039 else
14040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14041 for as_dir in $PATH
14042 do
14043   IFS=$as_save_IFS
14044   test -z "$as_dir" && as_dir=.
14045   for ac_exec_ext in '' $ac_executable_extensions; do
14046   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14047     ac_cv_prog_CC="${ac_tool_prefix}gcc"
14048     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14049     break 2
14050   fi
14051 done
14052 done
14053 IFS=$as_save_IFS
14054
14055 fi
14056 fi
14057 CC=$ac_cv_prog_CC
14058 if test -n "$CC"; then
14059   { echo "$as_me:$LINENO: result: $CC" >&5
14060 echo "${ECHO_T}$CC" >&6; }
14061 else
14062   { echo "$as_me:$LINENO: result: no" >&5
14063 echo "${ECHO_T}no" >&6; }
14064 fi
14065
14066
14067 fi
14068 if test -z "$ac_cv_prog_CC"; then
14069   ac_ct_CC=$CC
14070   # Extract the first word of "gcc", so it can be a program name with args.
14071 set dummy gcc; ac_word=$2
14072 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14074 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
14075   echo $ECHO_N "(cached) $ECHO_C" >&6
14076 else
14077   if test -n "$ac_ct_CC"; then
14078   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14079 else
14080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14081 for as_dir in $PATH
14082 do
14083   IFS=$as_save_IFS
14084   test -z "$as_dir" && as_dir=.
14085   for ac_exec_ext in '' $ac_executable_extensions; do
14086   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14087     ac_cv_prog_ac_ct_CC="gcc"
14088     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14089     break 2
14090   fi
14091 done
14092 done
14093 IFS=$as_save_IFS
14094
14095 fi
14096 fi
14097 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14098 if test -n "$ac_ct_CC"; then
14099   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
14100 echo "${ECHO_T}$ac_ct_CC" >&6; }
14101 else
14102   { echo "$as_me:$LINENO: result: no" >&5
14103 echo "${ECHO_T}no" >&6; }
14104 fi
14105
14106   if test "x$ac_ct_CC" = x; then
14107     CC=""
14108   else
14109     case $cross_compiling:$ac_tool_warned in
14110 yes:)
14111 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14112 whose name does not start with the host triplet.  If you think this
14113 configuration is useful to you, please write to autoconf@gnu.org." >&5
14114 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14115 whose name does not start with the host triplet.  If you think this
14116 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14117 ac_tool_warned=yes ;;
14118 esac
14119     CC=$ac_ct_CC
14120   fi
14121 else
14122   CC="$ac_cv_prog_CC"
14123 fi
14124
14125 if test -z "$CC"; then
14126           if test -n "$ac_tool_prefix"; then
14127     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
14128 set dummy ${ac_tool_prefix}cc; ac_word=$2
14129 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14131 if test "${ac_cv_prog_CC+set}" = set; then
14132   echo $ECHO_N "(cached) $ECHO_C" >&6
14133 else
14134   if test -n "$CC"; then
14135   ac_cv_prog_CC="$CC" # Let the user override the test.
14136 else
14137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14138 for as_dir in $PATH
14139 do
14140   IFS=$as_save_IFS
14141   test -z "$as_dir" && as_dir=.
14142   for ac_exec_ext in '' $ac_executable_extensions; do
14143   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14144     ac_cv_prog_CC="${ac_tool_prefix}cc"
14145     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14146     break 2
14147   fi
14148 done
14149 done
14150 IFS=$as_save_IFS
14151
14152 fi
14153 fi
14154 CC=$ac_cv_prog_CC
14155 if test -n "$CC"; then
14156   { echo "$as_me:$LINENO: result: $CC" >&5
14157 echo "${ECHO_T}$CC" >&6; }
14158 else
14159   { echo "$as_me:$LINENO: result: no" >&5
14160 echo "${ECHO_T}no" >&6; }
14161 fi
14162
14163
14164   fi
14165 fi
14166 if test -z "$CC"; then
14167   # Extract the first word of "cc", so it can be a program name with args.
14168 set dummy cc; ac_word=$2
14169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14171 if test "${ac_cv_prog_CC+set}" = set; then
14172   echo $ECHO_N "(cached) $ECHO_C" >&6
14173 else
14174   if test -n "$CC"; then
14175   ac_cv_prog_CC="$CC" # Let the user override the test.
14176 else
14177   ac_prog_rejected=no
14178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14179 for as_dir in $PATH
14180 do
14181   IFS=$as_save_IFS
14182   test -z "$as_dir" && as_dir=.
14183   for ac_exec_ext in '' $ac_executable_extensions; do
14184   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14185     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
14186        ac_prog_rejected=yes
14187        continue
14188      fi
14189     ac_cv_prog_CC="cc"
14190     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14191     break 2
14192   fi
14193 done
14194 done
14195 IFS=$as_save_IFS
14196
14197 if test $ac_prog_rejected = yes; then
14198   # We found a bogon in the path, so make sure we never use it.
14199   set dummy $ac_cv_prog_CC
14200   shift
14201   if test $# != 0; then
14202     # We chose a different compiler from the bogus one.
14203     # However, it has the same basename, so the bogon will be chosen
14204     # first if we set CC to just the basename; use the full file name.
14205     shift
14206     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
14207   fi
14208 fi
14209 fi
14210 fi
14211 CC=$ac_cv_prog_CC
14212 if test -n "$CC"; then
14213   { echo "$as_me:$LINENO: result: $CC" >&5
14214 echo "${ECHO_T}$CC" >&6; }
14215 else
14216   { echo "$as_me:$LINENO: result: no" >&5
14217 echo "${ECHO_T}no" >&6; }
14218 fi
14219
14220
14221 fi
14222 if test -z "$CC"; then
14223   if test -n "$ac_tool_prefix"; then
14224   for ac_prog in cl.exe
14225   do
14226     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14227 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14230 if test "${ac_cv_prog_CC+set}" = set; then
14231   echo $ECHO_N "(cached) $ECHO_C" >&6
14232 else
14233   if test -n "$CC"; then
14234   ac_cv_prog_CC="$CC" # Let the user override the test.
14235 else
14236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14237 for as_dir in $PATH
14238 do
14239   IFS=$as_save_IFS
14240   test -z "$as_dir" && as_dir=.
14241   for ac_exec_ext in '' $ac_executable_extensions; do
14242   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14243     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
14244     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14245     break 2
14246   fi
14247 done
14248 done
14249 IFS=$as_save_IFS
14250
14251 fi
14252 fi
14253 CC=$ac_cv_prog_CC
14254 if test -n "$CC"; then
14255   { echo "$as_me:$LINENO: result: $CC" >&5
14256 echo "${ECHO_T}$CC" >&6; }
14257 else
14258   { echo "$as_me:$LINENO: result: no" >&5
14259 echo "${ECHO_T}no" >&6; }
14260 fi
14261
14262
14263     test -n "$CC" && break
14264   done
14265 fi
14266 if test -z "$CC"; then
14267   ac_ct_CC=$CC
14268   for ac_prog in cl.exe
14269 do
14270   # Extract the first word of "$ac_prog", so it can be a program name with args.
14271 set dummy $ac_prog; ac_word=$2
14272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14274 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
14275   echo $ECHO_N "(cached) $ECHO_C" >&6
14276 else
14277   if test -n "$ac_ct_CC"; then
14278   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14279 else
14280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14281 for as_dir in $PATH
14282 do
14283   IFS=$as_save_IFS
14284   test -z "$as_dir" && as_dir=.
14285   for ac_exec_ext in '' $ac_executable_extensions; do
14286   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14287     ac_cv_prog_ac_ct_CC="$ac_prog"
14288     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14289     break 2
14290   fi
14291 done
14292 done
14293 IFS=$as_save_IFS
14294
14295 fi
14296 fi
14297 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14298 if test -n "$ac_ct_CC"; then
14299   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
14300 echo "${ECHO_T}$ac_ct_CC" >&6; }
14301 else
14302   { echo "$as_me:$LINENO: result: no" >&5
14303 echo "${ECHO_T}no" >&6; }
14304 fi
14305
14306
14307   test -n "$ac_ct_CC" && break
14308 done
14309
14310   if test "x$ac_ct_CC" = x; then
14311     CC=""
14312   else
14313     case $cross_compiling:$ac_tool_warned in
14314 yes:)
14315 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14316 whose name does not start with the host triplet.  If you think this
14317 configuration is useful to you, please write to autoconf@gnu.org." >&5
14318 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14319 whose name does not start with the host triplet.  If you think this
14320 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14321 ac_tool_warned=yes ;;
14322 esac
14323     CC=$ac_ct_CC
14324   fi
14325 fi
14326
14327 fi
14328
14329
14330 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
14331 See \`config.log' for more details." >&5
14332 echo "$as_me: error: no acceptable C compiler found in \$PATH
14333 See \`config.log' for more details." >&2;}
14334    { (exit 1); exit 1; }; }
14335
14336 # Provide some information about the compiler.
14337 echo "$as_me:$LINENO: checking for C compiler version" >&5
14338 ac_compiler=`set X $ac_compile; echo $2`
14339 { (ac_try="$ac_compiler --version >&5"
14340 case "(($ac_try" in
14341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14342   *) ac_try_echo=$ac_try;;
14343 esac
14344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14345   (eval "$ac_compiler --version >&5") 2>&5
14346   ac_status=$?
14347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348   (exit $ac_status); }
14349 { (ac_try="$ac_compiler -v >&5"
14350 case "(($ac_try" in
14351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14352   *) ac_try_echo=$ac_try;;
14353 esac
14354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14355   (eval "$ac_compiler -v >&5") 2>&5
14356   ac_status=$?
14357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358   (exit $ac_status); }
14359 { (ac_try="$ac_compiler -V >&5"
14360 case "(($ac_try" in
14361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14362   *) ac_try_echo=$ac_try;;
14363 esac
14364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14365   (eval "$ac_compiler -V >&5") 2>&5
14366   ac_status=$?
14367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368   (exit $ac_status); }
14369
14370 cat >conftest.$ac_ext <<_ACEOF
14371 /* confdefs.h.  */
14372 _ACEOF
14373 cat confdefs.h >>conftest.$ac_ext
14374 cat >>conftest.$ac_ext <<_ACEOF
14375 /* end confdefs.h.  */
14376
14377 int
14378 main ()
14379 {
14380
14381   ;
14382   return 0;
14383 }
14384 _ACEOF
14385 ac_clean_files_save=$ac_clean_files
14386 ac_clean_files="$ac_clean_files a.out a.exe b.out"
14387 # Try to create an executable without -o first, disregard a.out.
14388 # It will help us diagnose broken compilers, and finding out an intuition
14389 # of exeext.
14390 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
14391 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
14392 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
14393 #
14394 # List of possible output files, starting from the most likely.
14395 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
14396 # only as a last resort.  b.out is created by i960 compilers.
14397 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
14398 #
14399 # The IRIX 6 linker writes into existing files which may not be
14400 # executable, retaining their permissions.  Remove them first so a
14401 # subsequent execution test works.
14402 ac_rmfiles=
14403 for ac_file in $ac_files
14404 do
14405   case $ac_file in
14406     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
14407     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
14408   esac
14409 done
14410 rm -f $ac_rmfiles
14411
14412 if { (ac_try="$ac_link_default"
14413 case "(($ac_try" in
14414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14415   *) ac_try_echo=$ac_try;;
14416 esac
14417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14418   (eval "$ac_link_default") 2>&5
14419   ac_status=$?
14420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421   (exit $ac_status); }; then
14422   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
14423 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
14424 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
14425 # so that the user can short-circuit this test for compilers unknown to
14426 # Autoconf.
14427 for ac_file in $ac_files ''
14428 do
14429   test -f "$ac_file" || continue
14430   case $ac_file in
14431     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
14432         ;;
14433     [ab].out )
14434         # We found the default executable, but exeext='' is most
14435         # certainly right.
14436         break;;
14437     *.* )
14438         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
14439         then :; else
14440            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
14441         fi
14442         # We set ac_cv_exeext here because the later test for it is not
14443         # safe: cross compilers may not add the suffix if given an `-o'
14444         # argument, so we may need to know it at that point already.
14445         # Even if this section looks crufty: it has the advantage of
14446         # actually working.
14447         break;;
14448     * )
14449         break;;
14450   esac
14451 done
14452 test "$ac_cv_exeext" = no && ac_cv_exeext=
14453
14454 else
14455   ac_file=''
14456 fi
14457
14458 { echo "$as_me:$LINENO: result: $ac_file" >&5
14459 echo "${ECHO_T}$ac_file" >&6; }
14460 if test -z "$ac_file"; then
14461   echo "$as_me: failed program was:" >&5
14462 sed 's/^/| /' conftest.$ac_ext >&5
14463
14464 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
14465 See \`config.log' for more details." >&5
14466 echo "$as_me: error: C compiler cannot create executables
14467 See \`config.log' for more details." >&2;}
14468    { (exit 77); exit 77; }; }
14469 fi
14470
14471 ac_exeext=$ac_cv_exeext
14472
14473 # Check that the compiler produces executables we can run.  If not, either
14474 # the compiler is broken, or we cross compile.
14475 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
14476 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
14477 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
14478 # If not cross compiling, check that we can run a simple program.
14479 if test "$cross_compiling" != yes; then
14480   if { ac_try='./$ac_file'
14481   { (case "(($ac_try" in
14482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14483   *) ac_try_echo=$ac_try;;
14484 esac
14485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14486   (eval "$ac_try") 2>&5
14487   ac_status=$?
14488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489   (exit $ac_status); }; }; then
14490     cross_compiling=no
14491   else
14492     if test "$cross_compiling" = maybe; then
14493         cross_compiling=yes
14494     else
14495         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
14496 If you meant to cross compile, use \`--host'.
14497 See \`config.log' for more details." >&5
14498 echo "$as_me: error: cannot run C compiled programs.
14499 If you meant to cross compile, use \`--host'.
14500 See \`config.log' for more details." >&2;}
14501    { (exit 1); exit 1; }; }
14502     fi
14503   fi
14504 fi
14505 { echo "$as_me:$LINENO: result: yes" >&5
14506 echo "${ECHO_T}yes" >&6; }
14507
14508 rm -f a.out a.exe conftest$ac_cv_exeext b.out
14509 ac_clean_files=$ac_clean_files_save
14510 # Check that the compiler produces executables we can run.  If not, either
14511 # the compiler is broken, or we cross compile.
14512 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
14513 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
14514 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
14515 echo "${ECHO_T}$cross_compiling" >&6; }
14516
14517 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
14518 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
14519 if { (ac_try="$ac_link"
14520 case "(($ac_try" in
14521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14522   *) ac_try_echo=$ac_try;;
14523 esac
14524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14525   (eval "$ac_link") 2>&5
14526   ac_status=$?
14527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528   (exit $ac_status); }; then
14529   # If both `conftest.exe' and `conftest' are `present' (well, observable)
14530 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
14531 # work properly (i.e., refer to `conftest.exe'), while it won't with
14532 # `rm'.
14533 for ac_file in conftest.exe conftest conftest.*; do
14534   test -f "$ac_file" || continue
14535   case $ac_file in
14536     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
14537     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
14538           break;;
14539     * ) break;;
14540   esac
14541 done
14542 else
14543   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
14544 See \`config.log' for more details." >&5
14545 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
14546 See \`config.log' for more details." >&2;}
14547    { (exit 1); exit 1; }; }
14548 fi
14549
14550 rm -f conftest$ac_cv_exeext
14551 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
14552 echo "${ECHO_T}$ac_cv_exeext" >&6; }
14553
14554 rm -f conftest.$ac_ext
14555 EXEEXT=$ac_cv_exeext
14556 ac_exeext=$EXEEXT
14557 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
14558 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
14559 if test "${ac_cv_objext+set}" = set; then
14560   echo $ECHO_N "(cached) $ECHO_C" >&6
14561 else
14562   cat >conftest.$ac_ext <<_ACEOF
14563 /* confdefs.h.  */
14564 _ACEOF
14565 cat confdefs.h >>conftest.$ac_ext
14566 cat >>conftest.$ac_ext <<_ACEOF
14567 /* end confdefs.h.  */
14568
14569 int
14570 main ()
14571 {
14572
14573   ;
14574   return 0;
14575 }
14576 _ACEOF
14577 rm -f conftest.o conftest.obj
14578 if { (ac_try="$ac_compile"
14579 case "(($ac_try" in
14580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14581   *) ac_try_echo=$ac_try;;
14582 esac
14583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14584   (eval "$ac_compile") 2>&5
14585   ac_status=$?
14586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587   (exit $ac_status); }; then
14588   for ac_file in conftest.o conftest.obj conftest.*; do
14589   test -f "$ac_file" || continue;
14590   case $ac_file in
14591     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
14592     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
14593        break;;
14594   esac
14595 done
14596 else
14597   echo "$as_me: failed program was:" >&5
14598 sed 's/^/| /' conftest.$ac_ext >&5
14599
14600 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
14601 See \`config.log' for more details." >&5
14602 echo "$as_me: error: cannot compute suffix of object files: cannot compile
14603 See \`config.log' for more details." >&2;}
14604    { (exit 1); exit 1; }; }
14605 fi
14606
14607 rm -f conftest.$ac_cv_objext conftest.$ac_ext
14608 fi
14609 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
14610 echo "${ECHO_T}$ac_cv_objext" >&6; }
14611 OBJEXT=$ac_cv_objext
14612 ac_objext=$OBJEXT
14613 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
14614 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
14615 if test "${ac_cv_c_compiler_gnu+set}" = set; then
14616   echo $ECHO_N "(cached) $ECHO_C" >&6
14617 else
14618   cat >conftest.$ac_ext <<_ACEOF
14619 /* confdefs.h.  */
14620 _ACEOF
14621 cat confdefs.h >>conftest.$ac_ext
14622 cat >>conftest.$ac_ext <<_ACEOF
14623 /* end confdefs.h.  */
14624
14625 int
14626 main ()
14627 {
14628 #ifndef __GNUC__
14629        choke me
14630 #endif
14631
14632   ;
14633   return 0;
14634 }
14635 _ACEOF
14636 rm -f conftest.$ac_objext
14637 if { (ac_try="$ac_compile"
14638 case "(($ac_try" in
14639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14640   *) ac_try_echo=$ac_try;;
14641 esac
14642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14643   (eval "$ac_compile") 2>conftest.er1
14644   ac_status=$?
14645   grep -v '^ *+' conftest.er1 >conftest.err
14646   rm -f conftest.er1
14647   cat conftest.err >&5
14648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649   (exit $ac_status); } && {
14650          test -z "$ac_c_werror_flag" ||
14651          test ! -s conftest.err
14652        } && test -s conftest.$ac_objext; then
14653   ac_compiler_gnu=yes
14654 else
14655   echo "$as_me: failed program was:" >&5
14656 sed 's/^/| /' conftest.$ac_ext >&5
14657
14658         ac_compiler_gnu=no
14659 fi
14660
14661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14662 ac_cv_c_compiler_gnu=$ac_compiler_gnu
14663
14664 fi
14665 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
14666 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
14667 GCC=`test $ac_compiler_gnu = yes && echo yes`
14668 ac_test_CFLAGS=${CFLAGS+set}
14669 ac_save_CFLAGS=$CFLAGS
14670 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
14671 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
14672 if test "${ac_cv_prog_cc_g+set}" = set; then
14673   echo $ECHO_N "(cached) $ECHO_C" >&6
14674 else
14675   ac_save_c_werror_flag=$ac_c_werror_flag
14676    ac_c_werror_flag=yes
14677    ac_cv_prog_cc_g=no
14678    CFLAGS="-g"
14679    cat >conftest.$ac_ext <<_ACEOF
14680 /* confdefs.h.  */
14681 _ACEOF
14682 cat confdefs.h >>conftest.$ac_ext
14683 cat >>conftest.$ac_ext <<_ACEOF
14684 /* end confdefs.h.  */
14685
14686 int
14687 main ()
14688 {
14689
14690   ;
14691   return 0;
14692 }
14693 _ACEOF
14694 rm -f conftest.$ac_objext
14695 if { (ac_try="$ac_compile"
14696 case "(($ac_try" in
14697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14698   *) ac_try_echo=$ac_try;;
14699 esac
14700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14701   (eval "$ac_compile") 2>conftest.er1
14702   ac_status=$?
14703   grep -v '^ *+' conftest.er1 >conftest.err
14704   rm -f conftest.er1
14705   cat conftest.err >&5
14706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14707   (exit $ac_status); } && {
14708          test -z "$ac_c_werror_flag" ||
14709          test ! -s conftest.err
14710        } && test -s conftest.$ac_objext; then
14711   ac_cv_prog_cc_g=yes
14712 else
14713   echo "$as_me: failed program was:" >&5
14714 sed 's/^/| /' conftest.$ac_ext >&5
14715
14716         CFLAGS=""
14717       cat >conftest.$ac_ext <<_ACEOF
14718 /* confdefs.h.  */
14719 _ACEOF
14720 cat confdefs.h >>conftest.$ac_ext
14721 cat >>conftest.$ac_ext <<_ACEOF
14722 /* end confdefs.h.  */
14723
14724 int
14725 main ()
14726 {
14727
14728   ;
14729   return 0;
14730 }
14731 _ACEOF
14732 rm -f conftest.$ac_objext
14733 if { (ac_try="$ac_compile"
14734 case "(($ac_try" in
14735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14736   *) ac_try_echo=$ac_try;;
14737 esac
14738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14739   (eval "$ac_compile") 2>conftest.er1
14740   ac_status=$?
14741   grep -v '^ *+' conftest.er1 >conftest.err
14742   rm -f conftest.er1
14743   cat conftest.err >&5
14744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745   (exit $ac_status); } && {
14746          test -z "$ac_c_werror_flag" ||
14747          test ! -s conftest.err
14748        } && test -s conftest.$ac_objext; then
14749   :
14750 else
14751   echo "$as_me: failed program was:" >&5
14752 sed 's/^/| /' conftest.$ac_ext >&5
14753
14754         ac_c_werror_flag=$ac_save_c_werror_flag
14755          CFLAGS="-g"
14756          cat >conftest.$ac_ext <<_ACEOF
14757 /* confdefs.h.  */
14758 _ACEOF
14759 cat confdefs.h >>conftest.$ac_ext
14760 cat >>conftest.$ac_ext <<_ACEOF
14761 /* end confdefs.h.  */
14762
14763 int
14764 main ()
14765 {
14766
14767   ;
14768   return 0;
14769 }
14770 _ACEOF
14771 rm -f conftest.$ac_objext
14772 if { (ac_try="$ac_compile"
14773 case "(($ac_try" in
14774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14775   *) ac_try_echo=$ac_try;;
14776 esac
14777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14778   (eval "$ac_compile") 2>conftest.er1
14779   ac_status=$?
14780   grep -v '^ *+' conftest.er1 >conftest.err
14781   rm -f conftest.er1
14782   cat conftest.err >&5
14783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784   (exit $ac_status); } && {
14785          test -z "$ac_c_werror_flag" ||
14786          test ! -s conftest.err
14787        } && test -s conftest.$ac_objext; then
14788   ac_cv_prog_cc_g=yes
14789 else
14790   echo "$as_me: failed program was:" >&5
14791 sed 's/^/| /' conftest.$ac_ext >&5
14792
14793
14794 fi
14795
14796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14797 fi
14798
14799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14800 fi
14801
14802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14803    ac_c_werror_flag=$ac_save_c_werror_flag
14804 fi
14805 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
14806 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
14807 if test "$ac_test_CFLAGS" = set; then
14808   CFLAGS=$ac_save_CFLAGS
14809 elif test $ac_cv_prog_cc_g = yes; then
14810   if test "$GCC" = yes; then
14811     CFLAGS="-g -O2"
14812   else
14813     CFLAGS="-g"
14814   fi
14815 else
14816   if test "$GCC" = yes; then
14817     CFLAGS="-O2"
14818   else
14819     CFLAGS=
14820   fi
14821 fi
14822 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
14823 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
14824 if test "${ac_cv_prog_cc_c89+set}" = set; then
14825   echo $ECHO_N "(cached) $ECHO_C" >&6
14826 else
14827   ac_cv_prog_cc_c89=no
14828 ac_save_CC=$CC
14829 cat >conftest.$ac_ext <<_ACEOF
14830 /* confdefs.h.  */
14831 _ACEOF
14832 cat confdefs.h >>conftest.$ac_ext
14833 cat >>conftest.$ac_ext <<_ACEOF
14834 /* end confdefs.h.  */
14835 #include <stdarg.h>
14836 #include <stdio.h>
14837 #include <sys/types.h>
14838 #include <sys/stat.h>
14839 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
14840 struct buf { int x; };
14841 FILE * (*rcsopen) (struct buf *, struct stat *, int);
14842 static char *e (p, i)
14843      char **p;
14844      int i;
14845 {
14846   return p[i];
14847 }
14848 static char *f (char * (*g) (char **, int), char **p, ...)
14849 {
14850   char *s;
14851   va_list v;
14852   va_start (v,p);
14853   s = g (p, va_arg (v,int));
14854   va_end (v);
14855   return s;
14856 }
14857
14858 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
14859    function prototypes and stuff, but not '\xHH' hex character constants.
14860    These don't provoke an error unfortunately, instead are silently treated
14861    as 'x'.  The following induces an error, until -std is added to get
14862    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
14863    array size at least.  It's necessary to write '\x00'==0 to get something
14864    that's true only with -std.  */
14865 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
14866
14867 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
14868    inside strings and character constants.  */
14869 #define FOO(x) 'x'
14870 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
14871
14872 int test (int i, double x);
14873 struct s1 {int (*f) (int a);};
14874 struct s2 {int (*f) (double a);};
14875 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
14876 int argc;
14877 char **argv;
14878 int
14879 main ()
14880 {
14881 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
14882   ;
14883   return 0;
14884 }
14885 _ACEOF
14886 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
14887         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14888 do
14889   CC="$ac_save_CC $ac_arg"
14890   rm -f conftest.$ac_objext
14891 if { (ac_try="$ac_compile"
14892 case "(($ac_try" in
14893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14894   *) ac_try_echo=$ac_try;;
14895 esac
14896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14897   (eval "$ac_compile") 2>conftest.er1
14898   ac_status=$?
14899   grep -v '^ *+' conftest.er1 >conftest.err
14900   rm -f conftest.er1
14901   cat conftest.err >&5
14902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903   (exit $ac_status); } && {
14904          test -z "$ac_c_werror_flag" ||
14905          test ! -s conftest.err
14906        } && test -s conftest.$ac_objext; then
14907   ac_cv_prog_cc_c89=$ac_arg
14908 else
14909   echo "$as_me: failed program was:" >&5
14910 sed 's/^/| /' conftest.$ac_ext >&5
14911
14912
14913 fi
14914
14915 rm -f core conftest.err conftest.$ac_objext
14916   test "x$ac_cv_prog_cc_c89" != "xno" && break
14917 done
14918 rm -f conftest.$ac_ext
14919 CC=$ac_save_CC
14920
14921 fi
14922 # AC_CACHE_VAL
14923 case "x$ac_cv_prog_cc_c89" in
14924   x)
14925     { echo "$as_me:$LINENO: result: none needed" >&5
14926 echo "${ECHO_T}none needed" >&6; } ;;
14927   xno)
14928     { echo "$as_me:$LINENO: result: unsupported" >&5
14929 echo "${ECHO_T}unsupported" >&6; } ;;
14930   *)
14931     CC="$CC $ac_cv_prog_cc_c89"
14932     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
14933 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
14934 esac
14935
14936
14937 ac_ext=c
14938 ac_cpp='$CPP $CPPFLAGS'
14939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14942
14943
14944
14945
14946     ac_ext=c
14947 ac_cpp='$CPP $CPPFLAGS'
14948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14951
14952     { echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
14953 echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6; }
14954 if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
14955   echo $ECHO_N "(cached) $ECHO_C" >&6
14956 else
14957   cat >conftest.$ac_ext <<_ACEOF
14958 /* confdefs.h.  */
14959 _ACEOF
14960 cat confdefs.h >>conftest.$ac_ext
14961 cat >>conftest.$ac_ext <<_ACEOF
14962 /* end confdefs.h.  */
14963
14964 int
14965 main ()
14966 {
14967
14968              #ifndef __INTEL_COMPILER
14969                 choke me
14970              #endif
14971
14972   ;
14973   return 0;
14974 }
14975 _ACEOF
14976 rm -f conftest.$ac_objext
14977 if { (ac_try="$ac_compile"
14978 case "(($ac_try" in
14979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14980   *) ac_try_echo=$ac_try;;
14981 esac
14982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14983   (eval "$ac_compile") 2>conftest.er1
14984   ac_status=$?
14985   grep -v '^ *+' conftest.er1 >conftest.err
14986   rm -f conftest.er1
14987   cat conftest.err >&5
14988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989   (exit $ac_status); } && {
14990          test -z "$ac_c_werror_flag" ||
14991          test ! -s conftest.err
14992        } && test -s conftest.$ac_objext; then
14993   bakefile_cv_c_compiler___INTEL_COMPILER=yes
14994 else
14995   echo "$as_me: failed program was:" >&5
14996 sed 's/^/| /' conftest.$ac_ext >&5
14997
14998         bakefile_cv_c_compiler___INTEL_COMPILER=no
14999
15000 fi
15001
15002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15003
15004
15005 fi
15006 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
15007 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6; }
15008     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
15009         :; INTELCC=yes
15010     else
15011         :;
15012     fi
15013     ac_ext=c
15014 ac_cpp='$CPP $CPPFLAGS'
15015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15018
15019
15020
15021
15022         if test "$INTELCC" = "yes"; then
15023
15024
15025     ac_ext=c
15026 ac_cpp='$CPP $CPPFLAGS'
15027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15030
15031     { echo "$as_me:$LINENO: checking whether we are using Intel C compiler v8 or later" >&5
15032 echo $ECHO_N "checking whether we are using Intel C compiler v8 or later... $ECHO_C" >&6; }
15033 if test "${bakefile_cv_c_compiler___INTEL_COMPILER_lt_800+set}" = set; then
15034   echo $ECHO_N "(cached) $ECHO_C" >&6
15035 else
15036   cat >conftest.$ac_ext <<_ACEOF
15037 /* confdefs.h.  */
15038 _ACEOF
15039 cat confdefs.h >>conftest.$ac_ext
15040 cat >>conftest.$ac_ext <<_ACEOF
15041 /* end confdefs.h.  */
15042
15043 int
15044 main ()
15045 {
15046
15047              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 800
15048                 choke me
15049              #endif
15050
15051   ;
15052   return 0;
15053 }
15054 _ACEOF
15055 rm -f conftest.$ac_objext
15056 if { (ac_try="$ac_compile"
15057 case "(($ac_try" in
15058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15059   *) ac_try_echo=$ac_try;;
15060 esac
15061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15062   (eval "$ac_compile") 2>conftest.er1
15063   ac_status=$?
15064   grep -v '^ *+' conftest.er1 >conftest.err
15065   rm -f conftest.er1
15066   cat conftest.err >&5
15067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15068   (exit $ac_status); } && {
15069          test -z "$ac_c_werror_flag" ||
15070          test ! -s conftest.err
15071        } && test -s conftest.$ac_objext; then
15072   bakefile_cv_c_compiler___INTEL_COMPILER_lt_800=yes
15073 else
15074   echo "$as_me: failed program was:" >&5
15075 sed 's/^/| /' conftest.$ac_ext >&5
15076
15077         bakefile_cv_c_compiler___INTEL_COMPILER_lt_800=no
15078
15079 fi
15080
15081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15082
15083
15084 fi
15085 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" >&5
15086 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" >&6; }
15087     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" = "xyes"; then
15088         :; INTELCC8=yes
15089     else
15090         :;
15091     fi
15092     ac_ext=c
15093 ac_cpp='$CPP $CPPFLAGS'
15094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15097
15098
15099
15100
15101
15102     ac_ext=c
15103 ac_cpp='$CPP $CPPFLAGS'
15104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15107
15108     { echo "$as_me:$LINENO: checking whether we are using Intel C compiler v10 or later" >&5
15109 echo $ECHO_N "checking whether we are using Intel C compiler v10 or later... $ECHO_C" >&6; }
15110 if test "${bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000+set}" = set; then
15111   echo $ECHO_N "(cached) $ECHO_C" >&6
15112 else
15113   cat >conftest.$ac_ext <<_ACEOF
15114 /* confdefs.h.  */
15115 _ACEOF
15116 cat confdefs.h >>conftest.$ac_ext
15117 cat >>conftest.$ac_ext <<_ACEOF
15118 /* end confdefs.h.  */
15119
15120 int
15121 main ()
15122 {
15123
15124              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 1000
15125                 choke me
15126              #endif
15127
15128   ;
15129   return 0;
15130 }
15131 _ACEOF
15132 rm -f conftest.$ac_objext
15133 if { (ac_try="$ac_compile"
15134 case "(($ac_try" in
15135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15136   *) ac_try_echo=$ac_try;;
15137 esac
15138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15139   (eval "$ac_compile") 2>conftest.er1
15140   ac_status=$?
15141   grep -v '^ *+' conftest.er1 >conftest.err
15142   rm -f conftest.er1
15143   cat conftest.err >&5
15144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145   (exit $ac_status); } && {
15146          test -z "$ac_c_werror_flag" ||
15147          test ! -s conftest.err
15148        } && test -s conftest.$ac_objext; then
15149   bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000=yes
15150 else
15151   echo "$as_me: failed program was:" >&5
15152 sed 's/^/| /' conftest.$ac_ext >&5
15153
15154         bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000=no
15155
15156 fi
15157
15158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15159
15160
15161 fi
15162 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" >&5
15163 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" >&6; }
15164     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" = "xyes"; then
15165         :; INTELCC10=yes
15166     else
15167         :;
15168     fi
15169     ac_ext=c
15170 ac_cpp='$CPP $CPPFLAGS'
15171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15174
15175
15176
15177     fi
15178
15179         if test "x$GCC" != "xyes"; then
15180         if test "xCC" = "xC"; then
15181             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
15182 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
15183 if test "${bakefile_cv_c_exto+set}" = set; then
15184   echo $ECHO_N "(cached) $ECHO_C" >&6
15185 else
15186   cat >conftest.$ac_ext <<_ACEOF
15187 /* confdefs.h.  */
15188 _ACEOF
15189 cat confdefs.h >>conftest.$ac_ext
15190 cat >>conftest.$ac_ext <<_ACEOF
15191 /* end confdefs.h.  */
15192
15193 int
15194 main ()
15195 {
15196
15197   ;
15198   return 0;
15199 }
15200 _ACEOF
15201 rm -f conftest.$ac_objext conftest.$ac_ext.o
15202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15203   (eval $ac_compile) 2>&5
15204   ac_status=$?
15205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206   (exit $ac_status); }; then
15207   for ac_file in `(ls conftest.* 2>/dev/null)`; do
15208     case $ac_file in
15209         conftest.$ac_ext.o)
15210             bakefile_cv_c_exto="-ext o"
15211             ;;
15212         *)
15213             ;;
15214     esac
15215 done
15216 else
15217   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
15218 See \`config.log' for more details." >&5
15219 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
15220 See \`config.log' for more details." >&2;}
15221    { (exit 1); exit 1; }; }
15222
15223 fi
15224
15225 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
15226
15227 fi
15228 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
15229 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
15230 if test "x$bakefile_cv_c_exto" '!=' "x"; then
15231     if test "c" = "c"; then
15232         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
15233     fi
15234     if test "c" = "cxx"; then
15235         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
15236     fi
15237 fi
15238
15239             if test "x$bakefile_cv_c_exto" '!=' "x"; then
15240                 unset ac_cv_prog_cc_g
15241                 ac_test_CFLAGS=${CFLAGS+set}
15242 ac_save_CFLAGS=$CFLAGS
15243 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
15244 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
15245 if test "${ac_cv_prog_cc_g+set}" = set; then
15246   echo $ECHO_N "(cached) $ECHO_C" >&6
15247 else
15248   ac_save_c_werror_flag=$ac_c_werror_flag
15249    ac_c_werror_flag=yes
15250    ac_cv_prog_cc_g=no
15251    CFLAGS="-g"
15252    cat >conftest.$ac_ext <<_ACEOF
15253 /* confdefs.h.  */
15254 _ACEOF
15255 cat confdefs.h >>conftest.$ac_ext
15256 cat >>conftest.$ac_ext <<_ACEOF
15257 /* end confdefs.h.  */
15258
15259 int
15260 main ()
15261 {
15262
15263   ;
15264   return 0;
15265 }
15266 _ACEOF
15267 rm -f conftest.$ac_objext
15268 if { (ac_try="$ac_compile"
15269 case "(($ac_try" in
15270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15271   *) ac_try_echo=$ac_try;;
15272 esac
15273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15274   (eval "$ac_compile") 2>conftest.er1
15275   ac_status=$?
15276   grep -v '^ *+' conftest.er1 >conftest.err
15277   rm -f conftest.er1
15278   cat conftest.err >&5
15279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280   (exit $ac_status); } && {
15281          test -z "$ac_c_werror_flag" ||
15282          test ! -s conftest.err
15283        } && test -s conftest.$ac_objext; then
15284   ac_cv_prog_cc_g=yes
15285 else
15286   echo "$as_me: failed program was:" >&5
15287 sed 's/^/| /' conftest.$ac_ext >&5
15288
15289         CFLAGS=""
15290       cat >conftest.$ac_ext <<_ACEOF
15291 /* confdefs.h.  */
15292 _ACEOF
15293 cat confdefs.h >>conftest.$ac_ext
15294 cat >>conftest.$ac_ext <<_ACEOF
15295 /* end confdefs.h.  */
15296
15297 int
15298 main ()
15299 {
15300
15301   ;
15302   return 0;
15303 }
15304 _ACEOF
15305 rm -f conftest.$ac_objext
15306 if { (ac_try="$ac_compile"
15307 case "(($ac_try" in
15308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15309   *) ac_try_echo=$ac_try;;
15310 esac
15311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15312   (eval "$ac_compile") 2>conftest.er1
15313   ac_status=$?
15314   grep -v '^ *+' conftest.er1 >conftest.err
15315   rm -f conftest.er1
15316   cat conftest.err >&5
15317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318   (exit $ac_status); } && {
15319          test -z "$ac_c_werror_flag" ||
15320          test ! -s conftest.err
15321        } && test -s conftest.$ac_objext; then
15322   :
15323 else
15324   echo "$as_me: failed program was:" >&5
15325 sed 's/^/| /' conftest.$ac_ext >&5
15326
15327         ac_c_werror_flag=$ac_save_c_werror_flag
15328          CFLAGS="-g"
15329          cat >conftest.$ac_ext <<_ACEOF
15330 /* confdefs.h.  */
15331 _ACEOF
15332 cat confdefs.h >>conftest.$ac_ext
15333 cat >>conftest.$ac_ext <<_ACEOF
15334 /* end confdefs.h.  */
15335
15336 int
15337 main ()
15338 {
15339
15340   ;
15341   return 0;
15342 }
15343 _ACEOF
15344 rm -f conftest.$ac_objext
15345 if { (ac_try="$ac_compile"
15346 case "(($ac_try" in
15347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15348   *) ac_try_echo=$ac_try;;
15349 esac
15350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15351   (eval "$ac_compile") 2>conftest.er1
15352   ac_status=$?
15353   grep -v '^ *+' conftest.er1 >conftest.err
15354   rm -f conftest.er1
15355   cat conftest.err >&5
15356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357   (exit $ac_status); } && {
15358          test -z "$ac_c_werror_flag" ||
15359          test ! -s conftest.err
15360        } && test -s conftest.$ac_objext; then
15361   ac_cv_prog_cc_g=yes
15362 else
15363   echo "$as_me: failed program was:" >&5
15364 sed 's/^/| /' conftest.$ac_ext >&5
15365
15366
15367 fi
15368
15369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15370 fi
15371
15372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15373 fi
15374
15375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15376    ac_c_werror_flag=$ac_save_c_werror_flag
15377 fi
15378 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
15379 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
15380 if test "$ac_test_CFLAGS" = set; then
15381   CFLAGS=$ac_save_CFLAGS
15382 elif test $ac_cv_prog_cc_g = yes; then
15383   if test "$GCC" = yes; then
15384     CFLAGS="-g -O2"
15385   else
15386     CFLAGS="-g"
15387   fi
15388 else
15389   if test "$GCC" = yes; then
15390     CFLAGS="-O2"
15391   else
15392     CFLAGS=
15393   fi
15394 fi
15395             fi
15396         fi
15397
15398                         case `uname -s` in
15399             AIX*)
15400
15401
15402     ac_ext=c
15403 ac_cpp='$CPP $CPPFLAGS'
15404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15407
15408     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
15409 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
15410 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
15411   echo $ECHO_N "(cached) $ECHO_C" >&6
15412 else
15413   cat >conftest.$ac_ext <<_ACEOF
15414 /* confdefs.h.  */
15415 _ACEOF
15416 cat confdefs.h >>conftest.$ac_ext
15417 cat >>conftest.$ac_ext <<_ACEOF
15418 /* end confdefs.h.  */
15419
15420 int
15421 main ()
15422 {
15423
15424              #ifndef __xlC__
15425                 choke me
15426              #endif
15427
15428   ;
15429   return 0;
15430 }
15431 _ACEOF
15432 rm -f conftest.$ac_objext
15433 if { (ac_try="$ac_compile"
15434 case "(($ac_try" in
15435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15436   *) ac_try_echo=$ac_try;;
15437 esac
15438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15439   (eval "$ac_compile") 2>conftest.er1
15440   ac_status=$?
15441   grep -v '^ *+' conftest.er1 >conftest.err
15442   rm -f conftest.er1
15443   cat conftest.err >&5
15444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445   (exit $ac_status); } && {
15446          test -z "$ac_c_werror_flag" ||
15447          test ! -s conftest.err
15448        } && test -s conftest.$ac_objext; then
15449   bakefile_cv_c_compiler___xlC__=yes
15450 else
15451   echo "$as_me: failed program was:" >&5
15452 sed 's/^/| /' conftest.$ac_ext >&5
15453
15454         bakefile_cv_c_compiler___xlC__=no
15455
15456 fi
15457
15458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15459
15460
15461 fi
15462 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
15463 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
15464     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
15465         :; XLCC=yes
15466     else
15467         :;
15468     fi
15469     ac_ext=c
15470 ac_cpp='$CPP $CPPFLAGS'
15471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15474
15475
15476
15477                 ;;
15478
15479             Darwin)
15480
15481
15482     ac_ext=c
15483 ac_cpp='$CPP $CPPFLAGS'
15484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15487
15488     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
15489 echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6; }
15490 if test "${bakefile_cv_c_compiler___MWERKS__+set}" = set; then
15491   echo $ECHO_N "(cached) $ECHO_C" >&6
15492 else
15493   cat >conftest.$ac_ext <<_ACEOF
15494 /* confdefs.h.  */
15495 _ACEOF
15496 cat confdefs.h >>conftest.$ac_ext
15497 cat >>conftest.$ac_ext <<_ACEOF
15498 /* end confdefs.h.  */
15499
15500 int
15501 main ()
15502 {
15503
15504              #ifndef __MWERKS__
15505                 choke me
15506              #endif
15507
15508   ;
15509   return 0;
15510 }
15511 _ACEOF
15512 rm -f conftest.$ac_objext
15513 if { (ac_try="$ac_compile"
15514 case "(($ac_try" in
15515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15516   *) ac_try_echo=$ac_try;;
15517 esac
15518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15519   (eval "$ac_compile") 2>conftest.er1
15520   ac_status=$?
15521   grep -v '^ *+' conftest.er1 >conftest.err
15522   rm -f conftest.er1
15523   cat conftest.err >&5
15524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525   (exit $ac_status); } && {
15526          test -z "$ac_c_werror_flag" ||
15527          test ! -s conftest.err
15528        } && test -s conftest.$ac_objext; then
15529   bakefile_cv_c_compiler___MWERKS__=yes
15530 else
15531   echo "$as_me: failed program was:" >&5
15532 sed 's/^/| /' conftest.$ac_ext >&5
15533
15534         bakefile_cv_c_compiler___MWERKS__=no
15535
15536 fi
15537
15538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15539
15540
15541 fi
15542 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___MWERKS__" >&5
15543 echo "${ECHO_T}$bakefile_cv_c_compiler___MWERKS__" >&6; }
15544     if test "x$bakefile_cv_c_compiler___MWERKS__" = "xyes"; then
15545         :; MWCC=yes
15546     else
15547         :;
15548     fi
15549     ac_ext=c
15550 ac_cpp='$CPP $CPPFLAGS'
15551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15554
15555
15556
15557                 if test "$MWCC" != "yes"; then
15558
15559
15560     ac_ext=c
15561 ac_cpp='$CPP $CPPFLAGS'
15562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15565
15566     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
15567 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
15568 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
15569   echo $ECHO_N "(cached) $ECHO_C" >&6
15570 else
15571   cat >conftest.$ac_ext <<_ACEOF
15572 /* confdefs.h.  */
15573 _ACEOF
15574 cat confdefs.h >>conftest.$ac_ext
15575 cat >>conftest.$ac_ext <<_ACEOF
15576 /* end confdefs.h.  */
15577
15578 int
15579 main ()
15580 {
15581
15582              #ifndef __xlC__
15583                 choke me
15584              #endif
15585
15586   ;
15587   return 0;
15588 }
15589 _ACEOF
15590 rm -f conftest.$ac_objext
15591 if { (ac_try="$ac_compile"
15592 case "(($ac_try" in
15593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15594   *) ac_try_echo=$ac_try;;
15595 esac
15596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15597   (eval "$ac_compile") 2>conftest.er1
15598   ac_status=$?
15599   grep -v '^ *+' conftest.er1 >conftest.err
15600   rm -f conftest.er1
15601   cat conftest.err >&5
15602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603   (exit $ac_status); } && {
15604          test -z "$ac_c_werror_flag" ||
15605          test ! -s conftest.err
15606        } && test -s conftest.$ac_objext; then
15607   bakefile_cv_c_compiler___xlC__=yes
15608 else
15609   echo "$as_me: failed program was:" >&5
15610 sed 's/^/| /' conftest.$ac_ext >&5
15611
15612         bakefile_cv_c_compiler___xlC__=no
15613
15614 fi
15615
15616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15617
15618
15619 fi
15620 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
15621 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
15622     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
15623         :; XLCC=yes
15624     else
15625         :;
15626     fi
15627     ac_ext=c
15628 ac_cpp='$CPP $CPPFLAGS'
15629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15632
15633
15634
15635                 fi
15636                 ;;
15637
15638             IRIX*)
15639
15640
15641     ac_ext=c
15642 ac_cpp='$CPP $CPPFLAGS'
15643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15646
15647     { echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
15648 echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6; }
15649 if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
15650   echo $ECHO_N "(cached) $ECHO_C" >&6
15651 else
15652   cat >conftest.$ac_ext <<_ACEOF
15653 /* confdefs.h.  */
15654 _ACEOF
15655 cat confdefs.h >>conftest.$ac_ext
15656 cat >>conftest.$ac_ext <<_ACEOF
15657 /* end confdefs.h.  */
15658
15659 int
15660 main ()
15661 {
15662
15663              #ifndef _SGI_COMPILER_VERSION
15664                 choke me
15665              #endif
15666
15667   ;
15668   return 0;
15669 }
15670 _ACEOF
15671 rm -f conftest.$ac_objext
15672 if { (ac_try="$ac_compile"
15673 case "(($ac_try" in
15674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15675   *) ac_try_echo=$ac_try;;
15676 esac
15677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15678   (eval "$ac_compile") 2>conftest.er1
15679   ac_status=$?
15680   grep -v '^ *+' conftest.er1 >conftest.err
15681   rm -f conftest.er1
15682   cat conftest.err >&5
15683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684   (exit $ac_status); } && {
15685          test -z "$ac_c_werror_flag" ||
15686          test ! -s conftest.err
15687        } && test -s conftest.$ac_objext; then
15688   bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
15689 else
15690   echo "$as_me: failed program was:" >&5
15691 sed 's/^/| /' conftest.$ac_ext >&5
15692
15693         bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
15694
15695 fi
15696
15697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15698
15699
15700 fi
15701 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
15702 echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6; }
15703     if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
15704         :; SGICC=yes
15705     else
15706         :;
15707     fi
15708     ac_ext=c
15709 ac_cpp='$CPP $CPPFLAGS'
15710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15713
15714
15715
15716                 ;;
15717
15718             Linux*)
15719                                                 if test "$INTELCC" != "yes"; then
15720
15721
15722     ac_ext=c
15723 ac_cpp='$CPP $CPPFLAGS'
15724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15727
15728     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
15729 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
15730 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
15731   echo $ECHO_N "(cached) $ECHO_C" >&6
15732 else
15733   cat >conftest.$ac_ext <<_ACEOF
15734 /* confdefs.h.  */
15735 _ACEOF
15736 cat confdefs.h >>conftest.$ac_ext
15737 cat >>conftest.$ac_ext <<_ACEOF
15738 /* end confdefs.h.  */
15739
15740 int
15741 main ()
15742 {
15743
15744              #ifndef __SUNPRO_C
15745                 choke me
15746              #endif
15747
15748   ;
15749   return 0;
15750 }
15751 _ACEOF
15752 rm -f conftest.$ac_objext
15753 if { (ac_try="$ac_compile"
15754 case "(($ac_try" in
15755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15756   *) ac_try_echo=$ac_try;;
15757 esac
15758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15759   (eval "$ac_compile") 2>conftest.er1
15760   ac_status=$?
15761   grep -v '^ *+' conftest.er1 >conftest.err
15762   rm -f conftest.er1
15763   cat conftest.err >&5
15764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765   (exit $ac_status); } && {
15766          test -z "$ac_c_werror_flag" ||
15767          test ! -s conftest.err
15768        } && test -s conftest.$ac_objext; then
15769   bakefile_cv_c_compiler___SUNPRO_C=yes
15770 else
15771   echo "$as_me: failed program was:" >&5
15772 sed 's/^/| /' conftest.$ac_ext >&5
15773
15774         bakefile_cv_c_compiler___SUNPRO_C=no
15775
15776 fi
15777
15778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15779
15780
15781 fi
15782 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
15783 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
15784     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
15785         :; SUNCC=yes
15786     else
15787         :;
15788     fi
15789     ac_ext=c
15790 ac_cpp='$CPP $CPPFLAGS'
15791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15794
15795
15796
15797                 fi
15798                 ;;
15799
15800             HP-UX*)
15801
15802
15803     ac_ext=c
15804 ac_cpp='$CPP $CPPFLAGS'
15805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15808
15809     { echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
15810 echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6; }
15811 if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
15812   echo $ECHO_N "(cached) $ECHO_C" >&6
15813 else
15814   cat >conftest.$ac_ext <<_ACEOF
15815 /* confdefs.h.  */
15816 _ACEOF
15817 cat confdefs.h >>conftest.$ac_ext
15818 cat >>conftest.$ac_ext <<_ACEOF
15819 /* end confdefs.h.  */
15820
15821 int
15822 main ()
15823 {
15824
15825              #ifndef __HP_cc
15826                 choke me
15827              #endif
15828
15829   ;
15830   return 0;
15831 }
15832 _ACEOF
15833 rm -f conftest.$ac_objext
15834 if { (ac_try="$ac_compile"
15835 case "(($ac_try" in
15836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15837   *) ac_try_echo=$ac_try;;
15838 esac
15839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15840   (eval "$ac_compile") 2>conftest.er1
15841   ac_status=$?
15842   grep -v '^ *+' conftest.er1 >conftest.err
15843   rm -f conftest.er1
15844   cat conftest.err >&5
15845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15846   (exit $ac_status); } && {
15847          test -z "$ac_c_werror_flag" ||
15848          test ! -s conftest.err
15849        } && test -s conftest.$ac_objext; then
15850   bakefile_cv_c_compiler___HP_cc=yes
15851 else
15852   echo "$as_me: failed program was:" >&5
15853 sed 's/^/| /' conftest.$ac_ext >&5
15854
15855         bakefile_cv_c_compiler___HP_cc=no
15856
15857 fi
15858
15859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15860
15861
15862 fi
15863 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
15864 echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6; }
15865     if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
15866         :; HPCC=yes
15867     else
15868         :;
15869     fi
15870     ac_ext=c
15871 ac_cpp='$CPP $CPPFLAGS'
15872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15875
15876
15877
15878                 ;;
15879
15880             OSF1)
15881
15882
15883     ac_ext=c
15884 ac_cpp='$CPP $CPPFLAGS'
15885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15888
15889     { echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
15890 echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6; }
15891 if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
15892   echo $ECHO_N "(cached) $ECHO_C" >&6
15893 else
15894   cat >conftest.$ac_ext <<_ACEOF
15895 /* confdefs.h.  */
15896 _ACEOF
15897 cat confdefs.h >>conftest.$ac_ext
15898 cat >>conftest.$ac_ext <<_ACEOF
15899 /* end confdefs.h.  */
15900
15901 int
15902 main ()
15903 {
15904
15905              #ifndef __DECC
15906                 choke me
15907              #endif
15908
15909   ;
15910   return 0;
15911 }
15912 _ACEOF
15913 rm -f conftest.$ac_objext
15914 if { (ac_try="$ac_compile"
15915 case "(($ac_try" in
15916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15917   *) ac_try_echo=$ac_try;;
15918 esac
15919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15920   (eval "$ac_compile") 2>conftest.er1
15921   ac_status=$?
15922   grep -v '^ *+' conftest.er1 >conftest.err
15923   rm -f conftest.er1
15924   cat conftest.err >&5
15925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926   (exit $ac_status); } && {
15927          test -z "$ac_c_werror_flag" ||
15928          test ! -s conftest.err
15929        } && test -s conftest.$ac_objext; then
15930   bakefile_cv_c_compiler___DECC=yes
15931 else
15932   echo "$as_me: failed program was:" >&5
15933 sed 's/^/| /' conftest.$ac_ext >&5
15934
15935         bakefile_cv_c_compiler___DECC=no
15936
15937 fi
15938
15939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15940
15941
15942 fi
15943 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
15944 echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6; }
15945     if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
15946         :; COMPAQCC=yes
15947     else
15948         :;
15949     fi
15950     ac_ext=c
15951 ac_cpp='$CPP $CPPFLAGS'
15952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15955
15956
15957
15958                 ;;
15959
15960             SunOS)
15961
15962
15963     ac_ext=c
15964 ac_cpp='$CPP $CPPFLAGS'
15965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15968
15969     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
15970 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
15971 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
15972   echo $ECHO_N "(cached) $ECHO_C" >&6
15973 else
15974   cat >conftest.$ac_ext <<_ACEOF
15975 /* confdefs.h.  */
15976 _ACEOF
15977 cat confdefs.h >>conftest.$ac_ext
15978 cat >>conftest.$ac_ext <<_ACEOF
15979 /* end confdefs.h.  */
15980
15981 int
15982 main ()
15983 {
15984
15985              #ifndef __SUNPRO_C
15986                 choke me
15987              #endif
15988
15989   ;
15990   return 0;
15991 }
15992 _ACEOF
15993 rm -f conftest.$ac_objext
15994 if { (ac_try="$ac_compile"
15995 case "(($ac_try" in
15996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15997   *) ac_try_echo=$ac_try;;
15998 esac
15999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16000   (eval "$ac_compile") 2>conftest.er1
16001   ac_status=$?
16002   grep -v '^ *+' conftest.er1 >conftest.err
16003   rm -f conftest.er1
16004   cat conftest.err >&5
16005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006   (exit $ac_status); } && {
16007          test -z "$ac_c_werror_flag" ||
16008          test ! -s conftest.err
16009        } && test -s conftest.$ac_objext; then
16010   bakefile_cv_c_compiler___SUNPRO_C=yes
16011 else
16012   echo "$as_me: failed program was:" >&5
16013 sed 's/^/| /' conftest.$ac_ext >&5
16014
16015         bakefile_cv_c_compiler___SUNPRO_C=no
16016
16017 fi
16018
16019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16020
16021
16022 fi
16023 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
16024 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
16025     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
16026         :; SUNCC=yes
16027     else
16028         :;
16029     fi
16030     ac_ext=c
16031 ac_cpp='$CPP $CPPFLAGS'
16032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16035
16036
16037
16038                 ;;
16039         esac
16040     fi
16041
16042
16043
16044 ac_ext=c
16045 ac_cpp='$CPP $CPPFLAGS'
16046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16049 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
16050 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
16051 # On Suns, sometimes $CPP names a directory.
16052 if test -n "$CPP" && test -d "$CPP"; then
16053   CPP=
16054 fi
16055 if test -z "$CPP"; then
16056   if test "${ac_cv_prog_CPP+set}" = set; then
16057   echo $ECHO_N "(cached) $ECHO_C" >&6
16058 else
16059       # Double quotes because CPP needs to be expanded
16060     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
16061     do
16062       ac_preproc_ok=false
16063 for ac_c_preproc_warn_flag in '' yes
16064 do
16065   # Use a header file that comes with gcc, so configuring glibc
16066   # with a fresh cross-compiler works.
16067   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16068   # <limits.h> exists even on freestanding compilers.
16069   # On the NeXT, cc -E runs the code through the compiler's parser,
16070   # not just through cpp. "Syntax error" is here to catch this case.
16071   cat >conftest.$ac_ext <<_ACEOF
16072 /* confdefs.h.  */
16073 _ACEOF
16074 cat confdefs.h >>conftest.$ac_ext
16075 cat >>conftest.$ac_ext <<_ACEOF
16076 /* end confdefs.h.  */
16077 #ifdef __STDC__
16078 # include <limits.h>
16079 #else
16080 # include <assert.h>
16081 #endif
16082                      Syntax error
16083 _ACEOF
16084 if { (ac_try="$ac_cpp conftest.$ac_ext"
16085 case "(($ac_try" in
16086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16087   *) ac_try_echo=$ac_try;;
16088 esac
16089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16090   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16091   ac_status=$?
16092   grep -v '^ *+' conftest.er1 >conftest.err
16093   rm -f conftest.er1
16094   cat conftest.err >&5
16095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16096   (exit $ac_status); } >/dev/null && {
16097          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16098          test ! -s conftest.err
16099        }; then
16100   :
16101 else
16102   echo "$as_me: failed program was:" >&5
16103 sed 's/^/| /' conftest.$ac_ext >&5
16104
16105   # Broken: fails on valid input.
16106 continue
16107 fi
16108
16109 rm -f conftest.err conftest.$ac_ext
16110
16111   # OK, works on sane cases.  Now check whether nonexistent headers
16112   # can be detected and how.
16113   cat >conftest.$ac_ext <<_ACEOF
16114 /* confdefs.h.  */
16115 _ACEOF
16116 cat confdefs.h >>conftest.$ac_ext
16117 cat >>conftest.$ac_ext <<_ACEOF
16118 /* end confdefs.h.  */
16119 #include <ac_nonexistent.h>
16120 _ACEOF
16121 if { (ac_try="$ac_cpp conftest.$ac_ext"
16122 case "(($ac_try" in
16123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16124   *) ac_try_echo=$ac_try;;
16125 esac
16126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16127   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16128   ac_status=$?
16129   grep -v '^ *+' conftest.er1 >conftest.err
16130   rm -f conftest.er1
16131   cat conftest.err >&5
16132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133   (exit $ac_status); } >/dev/null && {
16134          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16135          test ! -s conftest.err
16136        }; then
16137   # Broken: success on invalid input.
16138 continue
16139 else
16140   echo "$as_me: failed program was:" >&5
16141 sed 's/^/| /' conftest.$ac_ext >&5
16142
16143   # Passes both tests.
16144 ac_preproc_ok=:
16145 break
16146 fi
16147
16148 rm -f conftest.err conftest.$ac_ext
16149
16150 done
16151 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16152 rm -f conftest.err conftest.$ac_ext
16153 if $ac_preproc_ok; then
16154   break
16155 fi
16156
16157     done
16158     ac_cv_prog_CPP=$CPP
16159
16160 fi
16161   CPP=$ac_cv_prog_CPP
16162 else
16163   ac_cv_prog_CPP=$CPP
16164 fi
16165 { echo "$as_me:$LINENO: result: $CPP" >&5
16166 echo "${ECHO_T}$CPP" >&6; }
16167 ac_preproc_ok=false
16168 for ac_c_preproc_warn_flag in '' yes
16169 do
16170   # Use a header file that comes with gcc, so configuring glibc
16171   # with a fresh cross-compiler works.
16172   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16173   # <limits.h> exists even on freestanding compilers.
16174   # On the NeXT, cc -E runs the code through the compiler's parser,
16175   # not just through cpp. "Syntax error" is here to catch this case.
16176   cat >conftest.$ac_ext <<_ACEOF
16177 /* confdefs.h.  */
16178 _ACEOF
16179 cat confdefs.h >>conftest.$ac_ext
16180 cat >>conftest.$ac_ext <<_ACEOF
16181 /* end confdefs.h.  */
16182 #ifdef __STDC__
16183 # include <limits.h>
16184 #else
16185 # include <assert.h>
16186 #endif
16187                      Syntax error
16188 _ACEOF
16189 if { (ac_try="$ac_cpp conftest.$ac_ext"
16190 case "(($ac_try" in
16191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16192   *) ac_try_echo=$ac_try;;
16193 esac
16194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16195   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16196   ac_status=$?
16197   grep -v '^ *+' conftest.er1 >conftest.err
16198   rm -f conftest.er1
16199   cat conftest.err >&5
16200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16201   (exit $ac_status); } >/dev/null && {
16202          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16203          test ! -s conftest.err
16204        }; then
16205   :
16206 else
16207   echo "$as_me: failed program was:" >&5
16208 sed 's/^/| /' conftest.$ac_ext >&5
16209
16210   # Broken: fails on valid input.
16211 continue
16212 fi
16213
16214 rm -f conftest.err conftest.$ac_ext
16215
16216   # OK, works on sane cases.  Now check whether nonexistent headers
16217   # can be detected and how.
16218   cat >conftest.$ac_ext <<_ACEOF
16219 /* confdefs.h.  */
16220 _ACEOF
16221 cat confdefs.h >>conftest.$ac_ext
16222 cat >>conftest.$ac_ext <<_ACEOF
16223 /* end confdefs.h.  */
16224 #include <ac_nonexistent.h>
16225 _ACEOF
16226 if { (ac_try="$ac_cpp conftest.$ac_ext"
16227 case "(($ac_try" in
16228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16229   *) ac_try_echo=$ac_try;;
16230 esac
16231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16232   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16233   ac_status=$?
16234   grep -v '^ *+' conftest.er1 >conftest.err
16235   rm -f conftest.er1
16236   cat conftest.err >&5
16237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238   (exit $ac_status); } >/dev/null && {
16239          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16240          test ! -s conftest.err
16241        }; then
16242   # Broken: success on invalid input.
16243 continue
16244 else
16245   echo "$as_me: failed program was:" >&5
16246 sed 's/^/| /' conftest.$ac_ext >&5
16247
16248   # Passes both tests.
16249 ac_preproc_ok=:
16250 break
16251 fi
16252
16253 rm -f conftest.err conftest.$ac_ext
16254
16255 done
16256 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16257 rm -f conftest.err conftest.$ac_ext
16258 if $ac_preproc_ok; then
16259   :
16260 else
16261   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
16262 See \`config.log' for more details." >&5
16263 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
16264 See \`config.log' for more details." >&2;}
16265    { (exit 1); exit 1; }; }
16266 fi
16267
16268 ac_ext=c
16269 ac_cpp='$CPP $CPPFLAGS'
16270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16273
16274
16275 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
16276 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
16277 if test "${ac_cv_path_GREP+set}" = set; then
16278   echo $ECHO_N "(cached) $ECHO_C" >&6
16279 else
16280   # Extract the first word of "grep ggrep" to use in msg output
16281 if test -z "$GREP"; then
16282 set dummy grep ggrep; ac_prog_name=$2
16283 if test "${ac_cv_path_GREP+set}" = set; then
16284   echo $ECHO_N "(cached) $ECHO_C" >&6
16285 else
16286   ac_path_GREP_found=false
16287 # Loop through the user's path and test for each of PROGNAME-LIST
16288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16289 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
16290 do
16291   IFS=$as_save_IFS
16292   test -z "$as_dir" && as_dir=.
16293   for ac_prog in grep ggrep; do
16294   for ac_exec_ext in '' $ac_executable_extensions; do
16295     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
16296     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
16297     # Check for GNU ac_path_GREP and select it if it is found.
16298   # Check for GNU $ac_path_GREP
16299 case `"$ac_path_GREP" --version 2>&1` in
16300 *GNU*)
16301   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
16302 *)
16303   ac_count=0
16304   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
16305   while :
16306   do
16307     cat "conftest.in" "conftest.in" >"conftest.tmp"
16308     mv "conftest.tmp" "conftest.in"
16309     cp "conftest.in" "conftest.nl"
16310     echo 'GREP' >> "conftest.nl"
16311     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
16312     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
16313     ac_count=`expr $ac_count + 1`
16314     if test $ac_count -gt ${ac_path_GREP_max-0}; then
16315       # Best one so far, save it but keep looking for a better one
16316       ac_cv_path_GREP="$ac_path_GREP"
16317       ac_path_GREP_max=$ac_count
16318     fi
16319     # 10*(2^10) chars as input seems more than enough
16320     test $ac_count -gt 10 && break
16321   done
16322   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
16323 esac
16324
16325
16326     $ac_path_GREP_found && break 3
16327   done
16328 done
16329
16330 done
16331 IFS=$as_save_IFS
16332
16333
16334 fi
16335
16336 GREP="$ac_cv_path_GREP"
16337 if test -z "$GREP"; then
16338   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
16339 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
16340    { (exit 1); exit 1; }; }
16341 fi
16342
16343 else
16344   ac_cv_path_GREP=$GREP
16345 fi
16346
16347
16348 fi
16349 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
16350 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
16351  GREP="$ac_cv_path_GREP"
16352
16353
16354 { echo "$as_me:$LINENO: checking for egrep" >&5
16355 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
16356 if test "${ac_cv_path_EGREP+set}" = set; then
16357   echo $ECHO_N "(cached) $ECHO_C" >&6
16358 else
16359   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
16360    then ac_cv_path_EGREP="$GREP -E"
16361    else
16362      # Extract the first word of "egrep" to use in msg output
16363 if test -z "$EGREP"; then
16364 set dummy egrep; ac_prog_name=$2
16365 if test "${ac_cv_path_EGREP+set}" = set; then
16366   echo $ECHO_N "(cached) $ECHO_C" >&6
16367 else
16368   ac_path_EGREP_found=false
16369 # Loop through the user's path and test for each of PROGNAME-LIST
16370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16371 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
16372 do
16373   IFS=$as_save_IFS
16374   test -z "$as_dir" && as_dir=.
16375   for ac_prog in egrep; do
16376   for ac_exec_ext in '' $ac_executable_extensions; do
16377     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
16378     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
16379     # Check for GNU ac_path_EGREP and select it if it is found.
16380   # Check for GNU $ac_path_EGREP
16381 case `"$ac_path_EGREP" --version 2>&1` in
16382 *GNU*)
16383   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
16384 *)
16385   ac_count=0
16386   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
16387   while :
16388   do
16389     cat "conftest.in" "conftest.in" >"conftest.tmp"
16390     mv "conftest.tmp" "conftest.in"
16391     cp "conftest.in" "conftest.nl"
16392     echo 'EGREP' >> "conftest.nl"
16393     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
16394     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
16395     ac_count=`expr $ac_count + 1`
16396     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
16397       # Best one so far, save it but keep looking for a better one
16398       ac_cv_path_EGREP="$ac_path_EGREP"
16399       ac_path_EGREP_max=$ac_count
16400     fi
16401     # 10*(2^10) chars as input seems more than enough
16402     test $ac_count -gt 10 && break
16403   done
16404   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
16405 esac
16406
16407
16408     $ac_path_EGREP_found && break 3
16409   done
16410 done
16411
16412 done
16413 IFS=$as_save_IFS
16414
16415
16416 fi
16417
16418 EGREP="$ac_cv_path_EGREP"
16419 if test -z "$EGREP"; then
16420   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
16421 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
16422    { (exit 1); exit 1; }; }
16423 fi
16424
16425 else
16426   ac_cv_path_EGREP=$EGREP
16427 fi
16428
16429
16430    fi
16431 fi
16432 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
16433 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
16434  EGREP="$ac_cv_path_EGREP"
16435
16436
16437 if test $ac_cv_c_compiler_gnu = yes; then
16438     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
16439 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
16440 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
16441   echo $ECHO_N "(cached) $ECHO_C" >&6
16442 else
16443     ac_pattern="Autoconf.*'x'"
16444   cat >conftest.$ac_ext <<_ACEOF
16445 /* confdefs.h.  */
16446 _ACEOF
16447 cat confdefs.h >>conftest.$ac_ext
16448 cat >>conftest.$ac_ext <<_ACEOF
16449 /* end confdefs.h.  */
16450 #include <sgtty.h>
16451 Autoconf TIOCGETP
16452 _ACEOF
16453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16454   $EGREP "$ac_pattern" >/dev/null 2>&1; then
16455   ac_cv_prog_gcc_traditional=yes
16456 else
16457   ac_cv_prog_gcc_traditional=no
16458 fi
16459 rm -f conftest*
16460
16461
16462   if test $ac_cv_prog_gcc_traditional = no; then
16463     cat >conftest.$ac_ext <<_ACEOF
16464 /* confdefs.h.  */
16465 _ACEOF
16466 cat confdefs.h >>conftest.$ac_ext
16467 cat >>conftest.$ac_ext <<_ACEOF
16468 /* end confdefs.h.  */
16469 #include <termio.h>
16470 Autoconf TCGETA
16471 _ACEOF
16472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16473   $EGREP "$ac_pattern" >/dev/null 2>&1; then
16474   ac_cv_prog_gcc_traditional=yes
16475 fi
16476 rm -f conftest*
16477
16478   fi
16479 fi
16480 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
16481 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
16482   if test $ac_cv_prog_gcc_traditional = yes; then
16483     CC="$CC -traditional"
16484   fi
16485 fi
16486
16487
16488 CXXFLAGS=${CXXFLAGS:=}
16489
16490
16491
16492     ac_ext=cpp
16493 ac_cpp='$CXXCPP $CPPFLAGS'
16494 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16495 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16496 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16497 if test -z "$CXX"; then
16498   if test -n "$CCC"; then
16499     CXX=$CCC
16500   else
16501     if test -n "$ac_tool_prefix"; then
16502   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
16503   do
16504     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16505 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16506 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16508 if test "${ac_cv_prog_CXX+set}" = set; then
16509   echo $ECHO_N "(cached) $ECHO_C" >&6
16510 else
16511   if test -n "$CXX"; then
16512   ac_cv_prog_CXX="$CXX" # Let the user override the test.
16513 else
16514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16515 for as_dir in $PATH
16516 do
16517   IFS=$as_save_IFS
16518   test -z "$as_dir" && as_dir=.
16519   for ac_exec_ext in '' $ac_executable_extensions; do
16520   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16521     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
16522     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16523     break 2
16524   fi
16525 done
16526 done
16527 IFS=$as_save_IFS
16528
16529 fi
16530 fi
16531 CXX=$ac_cv_prog_CXX
16532 if test -n "$CXX"; then
16533   { echo "$as_me:$LINENO: result: $CXX" >&5
16534 echo "${ECHO_T}$CXX" >&6; }
16535 else
16536   { echo "$as_me:$LINENO: result: no" >&5
16537 echo "${ECHO_T}no" >&6; }
16538 fi
16539
16540
16541     test -n "$CXX" && break
16542   done
16543 fi
16544 if test -z "$CXX"; then
16545   ac_ct_CXX=$CXX
16546   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
16547 do
16548   # Extract the first word of "$ac_prog", so it can be a program name with args.
16549 set dummy $ac_prog; ac_word=$2
16550 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16552 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
16553   echo $ECHO_N "(cached) $ECHO_C" >&6
16554 else
16555   if test -n "$ac_ct_CXX"; then
16556   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
16557 else
16558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16559 for as_dir in $PATH
16560 do
16561   IFS=$as_save_IFS
16562   test -z "$as_dir" && as_dir=.
16563   for ac_exec_ext in '' $ac_executable_extensions; do
16564   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16565     ac_cv_prog_ac_ct_CXX="$ac_prog"
16566     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16567     break 2
16568   fi
16569 done
16570 done
16571 IFS=$as_save_IFS
16572
16573 fi
16574 fi
16575 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
16576 if test -n "$ac_ct_CXX"; then
16577   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
16578 echo "${ECHO_T}$ac_ct_CXX" >&6; }
16579 else
16580   { echo "$as_me:$LINENO: result: no" >&5
16581 echo "${ECHO_T}no" >&6; }
16582 fi
16583
16584
16585   test -n "$ac_ct_CXX" && break
16586 done
16587
16588   if test "x$ac_ct_CXX" = x; then
16589     CXX="g++"
16590   else
16591     case $cross_compiling:$ac_tool_warned in
16592 yes:)
16593 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
16594 whose name does not start with the host triplet.  If you think this
16595 configuration is useful to you, please write to autoconf@gnu.org." >&5
16596 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
16597 whose name does not start with the host triplet.  If you think this
16598 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
16599 ac_tool_warned=yes ;;
16600 esac
16601     CXX=$ac_ct_CXX
16602   fi
16603 fi
16604
16605   fi
16606 fi
16607 # Provide some information about the compiler.
16608 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
16609 ac_compiler=`set X $ac_compile; echo $2`
16610 { (ac_try="$ac_compiler --version >&5"
16611 case "(($ac_try" in
16612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16613   *) ac_try_echo=$ac_try;;
16614 esac
16615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16616   (eval "$ac_compiler --version >&5") 2>&5
16617   ac_status=$?
16618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619   (exit $ac_status); }
16620 { (ac_try="$ac_compiler -v >&5"
16621 case "(($ac_try" in
16622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16623   *) ac_try_echo=$ac_try;;
16624 esac
16625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16626   (eval "$ac_compiler -v >&5") 2>&5
16627   ac_status=$?
16628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16629   (exit $ac_status); }
16630 { (ac_try="$ac_compiler -V >&5"
16631 case "(($ac_try" in
16632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16633   *) ac_try_echo=$ac_try;;
16634 esac
16635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16636   (eval "$ac_compiler -V >&5") 2>&5
16637   ac_status=$?
16638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639   (exit $ac_status); }
16640
16641 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
16642 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
16643 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
16644   echo $ECHO_N "(cached) $ECHO_C" >&6
16645 else
16646   cat >conftest.$ac_ext <<_ACEOF
16647 /* confdefs.h.  */
16648 _ACEOF
16649 cat confdefs.h >>conftest.$ac_ext
16650 cat >>conftest.$ac_ext <<_ACEOF
16651 /* end confdefs.h.  */
16652
16653 int
16654 main ()
16655 {
16656 #ifndef __GNUC__
16657        choke me
16658 #endif
16659
16660   ;
16661   return 0;
16662 }
16663 _ACEOF
16664 rm -f conftest.$ac_objext
16665 if { (ac_try="$ac_compile"
16666 case "(($ac_try" in
16667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16668   *) ac_try_echo=$ac_try;;
16669 esac
16670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16671   (eval "$ac_compile") 2>conftest.er1
16672   ac_status=$?
16673   grep -v '^ *+' conftest.er1 >conftest.err
16674   rm -f conftest.er1
16675   cat conftest.err >&5
16676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677   (exit $ac_status); } && {
16678          test -z "$ac_cxx_werror_flag" ||
16679          test ! -s conftest.err
16680        } && test -s conftest.$ac_objext; then
16681   ac_compiler_gnu=yes
16682 else
16683   echo "$as_me: failed program was:" >&5
16684 sed 's/^/| /' conftest.$ac_ext >&5
16685
16686         ac_compiler_gnu=no
16687 fi
16688
16689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16690 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
16691
16692 fi
16693 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
16694 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
16695 GXX=`test $ac_compiler_gnu = yes && echo yes`
16696 ac_test_CXXFLAGS=${CXXFLAGS+set}
16697 ac_save_CXXFLAGS=$CXXFLAGS
16698 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
16699 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
16700 if test "${ac_cv_prog_cxx_g+set}" = set; then
16701   echo $ECHO_N "(cached) $ECHO_C" >&6
16702 else
16703   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
16704    ac_cxx_werror_flag=yes
16705    ac_cv_prog_cxx_g=no
16706    CXXFLAGS="-g"
16707    cat >conftest.$ac_ext <<_ACEOF
16708 /* confdefs.h.  */
16709 _ACEOF
16710 cat confdefs.h >>conftest.$ac_ext
16711 cat >>conftest.$ac_ext <<_ACEOF
16712 /* end confdefs.h.  */
16713
16714 int
16715 main ()
16716 {
16717
16718   ;
16719   return 0;
16720 }
16721 _ACEOF
16722 rm -f conftest.$ac_objext
16723 if { (ac_try="$ac_compile"
16724 case "(($ac_try" in
16725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16726   *) ac_try_echo=$ac_try;;
16727 esac
16728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16729   (eval "$ac_compile") 2>conftest.er1
16730   ac_status=$?
16731   grep -v '^ *+' conftest.er1 >conftest.err
16732   rm -f conftest.er1
16733   cat conftest.err >&5
16734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735   (exit $ac_status); } && {
16736          test -z "$ac_cxx_werror_flag" ||
16737          test ! -s conftest.err
16738        } && test -s conftest.$ac_objext; then
16739   ac_cv_prog_cxx_g=yes
16740 else
16741   echo "$as_me: failed program was:" >&5
16742 sed 's/^/| /' conftest.$ac_ext >&5
16743
16744         CXXFLAGS=""
16745       cat >conftest.$ac_ext <<_ACEOF
16746 /* confdefs.h.  */
16747 _ACEOF
16748 cat confdefs.h >>conftest.$ac_ext
16749 cat >>conftest.$ac_ext <<_ACEOF
16750 /* end confdefs.h.  */
16751
16752 int
16753 main ()
16754 {
16755
16756   ;
16757   return 0;
16758 }
16759 _ACEOF
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_cxx_werror_flag" ||
16775          test ! -s conftest.err
16776        } && test -s conftest.$ac_objext; then
16777   :
16778 else
16779   echo "$as_me: failed program was:" >&5
16780 sed 's/^/| /' conftest.$ac_ext >&5
16781
16782         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
16783          CXXFLAGS="-g"
16784          cat >conftest.$ac_ext <<_ACEOF
16785 /* confdefs.h.  */
16786 _ACEOF
16787 cat confdefs.h >>conftest.$ac_ext
16788 cat >>conftest.$ac_ext <<_ACEOF
16789 /* end confdefs.h.  */
16790
16791 int
16792 main ()
16793 {
16794
16795   ;
16796   return 0;
16797 }
16798 _ACEOF
16799 rm -f conftest.$ac_objext
16800 if { (ac_try="$ac_compile"
16801 case "(($ac_try" in
16802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16803   *) ac_try_echo=$ac_try;;
16804 esac
16805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16806   (eval "$ac_compile") 2>conftest.er1
16807   ac_status=$?
16808   grep -v '^ *+' conftest.er1 >conftest.err
16809   rm -f conftest.er1
16810   cat conftest.err >&5
16811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812   (exit $ac_status); } && {
16813          test -z "$ac_cxx_werror_flag" ||
16814          test ! -s conftest.err
16815        } && test -s conftest.$ac_objext; then
16816   ac_cv_prog_cxx_g=yes
16817 else
16818   echo "$as_me: failed program was:" >&5
16819 sed 's/^/| /' conftest.$ac_ext >&5
16820
16821
16822 fi
16823
16824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16825 fi
16826
16827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16828 fi
16829
16830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16831    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
16832 fi
16833 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
16834 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
16835 if test "$ac_test_CXXFLAGS" = set; then
16836   CXXFLAGS=$ac_save_CXXFLAGS
16837 elif test $ac_cv_prog_cxx_g = yes; then
16838   if test "$GXX" = yes; then
16839     CXXFLAGS="-g -O2"
16840   else
16841     CXXFLAGS="-g"
16842   fi
16843 else
16844   if test "$GXX" = yes; then
16845     CXXFLAGS="-O2"
16846   else
16847     CXXFLAGS=
16848   fi
16849 fi
16850 ac_ext=c
16851 ac_cpp='$CPP $CPPFLAGS'
16852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16855
16856
16857
16858
16859     ac_ext=cpp
16860 ac_cpp='$CXXCPP $CPPFLAGS'
16861 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16862 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16863 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16864
16865     { echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
16866 echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6; }
16867 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
16868   echo $ECHO_N "(cached) $ECHO_C" >&6
16869 else
16870   cat >conftest.$ac_ext <<_ACEOF
16871 /* confdefs.h.  */
16872 _ACEOF
16873 cat confdefs.h >>conftest.$ac_ext
16874 cat >>conftest.$ac_ext <<_ACEOF
16875 /* end confdefs.h.  */
16876
16877 int
16878 main ()
16879 {
16880
16881              #ifndef __INTEL_COMPILER
16882                 choke me
16883              #endif
16884
16885   ;
16886   return 0;
16887 }
16888 _ACEOF
16889 rm -f conftest.$ac_objext
16890 if { (ac_try="$ac_compile"
16891 case "(($ac_try" in
16892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16893   *) ac_try_echo=$ac_try;;
16894 esac
16895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16896   (eval "$ac_compile") 2>conftest.er1
16897   ac_status=$?
16898   grep -v '^ *+' conftest.er1 >conftest.err
16899   rm -f conftest.er1
16900   cat conftest.err >&5
16901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902   (exit $ac_status); } && {
16903          test -z "$ac_cxx_werror_flag" ||
16904          test ! -s conftest.err
16905        } && test -s conftest.$ac_objext; then
16906   bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
16907 else
16908   echo "$as_me: failed program was:" >&5
16909 sed 's/^/| /' conftest.$ac_ext >&5
16910
16911         bakefile_cv_cxx_compiler___INTEL_COMPILER=no
16912
16913 fi
16914
16915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16916
16917
16918 fi
16919 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
16920 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6; }
16921     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
16922         :; INTELCXX=yes
16923     else
16924         :;
16925     fi
16926     ac_ext=c
16927 ac_cpp='$CPP $CPPFLAGS'
16928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16931
16932
16933
16934
16935         if test "$INTELCXX" = "yes"; then
16936
16937
16938     ac_ext=cpp
16939 ac_cpp='$CXXCPP $CPPFLAGS'
16940 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16941 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16942 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16943
16944     { echo "$as_me:$LINENO: checking whether we are using Intel C++ compiler v8 or later" >&5
16945 echo $ECHO_N "checking whether we are using Intel C++ compiler v8 or later... $ECHO_C" >&6; }
16946 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800+set}" = set; then
16947   echo $ECHO_N "(cached) $ECHO_C" >&6
16948 else
16949   cat >conftest.$ac_ext <<_ACEOF
16950 /* confdefs.h.  */
16951 _ACEOF
16952 cat confdefs.h >>conftest.$ac_ext
16953 cat >>conftest.$ac_ext <<_ACEOF
16954 /* end confdefs.h.  */
16955
16956 int
16957 main ()
16958 {
16959
16960              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 800
16961                 choke me
16962              #endif
16963
16964   ;
16965   return 0;
16966 }
16967 _ACEOF
16968 rm -f conftest.$ac_objext
16969 if { (ac_try="$ac_compile"
16970 case "(($ac_try" in
16971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16972   *) ac_try_echo=$ac_try;;
16973 esac
16974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16975   (eval "$ac_compile") 2>conftest.er1
16976   ac_status=$?
16977   grep -v '^ *+' conftest.er1 >conftest.err
16978   rm -f conftest.er1
16979   cat conftest.err >&5
16980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16981   (exit $ac_status); } && {
16982          test -z "$ac_cxx_werror_flag" ||
16983          test ! -s conftest.err
16984        } && test -s conftest.$ac_objext; then
16985   bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800=yes
16986 else
16987   echo "$as_me: failed program was:" >&5
16988 sed 's/^/| /' conftest.$ac_ext >&5
16989
16990         bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800=no
16991
16992 fi
16993
16994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16995
16996
16997 fi
16998 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" >&5
16999 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" >&6; }
17000     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" = "xyes"; then
17001         :; INTELCXX8=yes
17002     else
17003         :;
17004     fi
17005     ac_ext=c
17006 ac_cpp='$CPP $CPPFLAGS'
17007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17010
17011
17012
17013
17014
17015     ac_ext=cpp
17016 ac_cpp='$CXXCPP $CPPFLAGS'
17017 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17018 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17019 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17020
17021     { echo "$as_me:$LINENO: checking whether we are using Intel C++ compiler v10 or later" >&5
17022 echo $ECHO_N "checking whether we are using Intel C++ compiler v10 or later... $ECHO_C" >&6; }
17023 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000+set}" = set; then
17024   echo $ECHO_N "(cached) $ECHO_C" >&6
17025 else
17026   cat >conftest.$ac_ext <<_ACEOF
17027 /* confdefs.h.  */
17028 _ACEOF
17029 cat confdefs.h >>conftest.$ac_ext
17030 cat >>conftest.$ac_ext <<_ACEOF
17031 /* end confdefs.h.  */
17032
17033 int
17034 main ()
17035 {
17036
17037              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 1000
17038                 choke me
17039              #endif
17040
17041   ;
17042   return 0;
17043 }
17044 _ACEOF
17045 rm -f conftest.$ac_objext
17046 if { (ac_try="$ac_compile"
17047 case "(($ac_try" in
17048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17049   *) ac_try_echo=$ac_try;;
17050 esac
17051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17052   (eval "$ac_compile") 2>conftest.er1
17053   ac_status=$?
17054   grep -v '^ *+' conftest.er1 >conftest.err
17055   rm -f conftest.er1
17056   cat conftest.err >&5
17057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058   (exit $ac_status); } && {
17059          test -z "$ac_cxx_werror_flag" ||
17060          test ! -s conftest.err
17061        } && test -s conftest.$ac_objext; then
17062   bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000=yes
17063 else
17064   echo "$as_me: failed program was:" >&5
17065 sed 's/^/| /' conftest.$ac_ext >&5
17066
17067         bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000=no
17068
17069 fi
17070
17071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17072
17073
17074 fi
17075 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" >&5
17076 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" >&6; }
17077     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" = "xyes"; then
17078         :; INTELCXX10=yes
17079     else
17080         :;
17081     fi
17082     ac_ext=c
17083 ac_cpp='$CPP $CPPFLAGS'
17084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17087
17088
17089
17090     fi
17091
17092         if test "x$GCXX" != "xyes"; then
17093         if test "xCXX" = "xC"; then
17094             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
17095 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
17096 if test "${bakefile_cv_c_exto+set}" = set; then
17097   echo $ECHO_N "(cached) $ECHO_C" >&6
17098 else
17099   cat >conftest.$ac_ext <<_ACEOF
17100 /* confdefs.h.  */
17101 _ACEOF
17102 cat confdefs.h >>conftest.$ac_ext
17103 cat >>conftest.$ac_ext <<_ACEOF
17104 /* end confdefs.h.  */
17105
17106 int
17107 main ()
17108 {
17109
17110   ;
17111   return 0;
17112 }
17113 _ACEOF
17114 rm -f conftest.$ac_objext conftest.$ac_ext.o
17115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17116   (eval $ac_compile) 2>&5
17117   ac_status=$?
17118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119   (exit $ac_status); }; then
17120   for ac_file in `(ls conftest.* 2>/dev/null)`; do
17121     case $ac_file in
17122         conftest.$ac_ext.o)
17123             bakefile_cv_c_exto="-ext o"
17124             ;;
17125         *)
17126             ;;
17127     esac
17128 done
17129 else
17130   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
17131 See \`config.log' for more details." >&5
17132 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
17133 See \`config.log' for more details." >&2;}
17134    { (exit 1); exit 1; }; }
17135
17136 fi
17137
17138 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
17139
17140 fi
17141 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
17142 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
17143 if test "x$bakefile_cv_c_exto" '!=' "x"; then
17144     if test "c" = "c"; then
17145         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
17146     fi
17147     if test "c" = "cxx"; then
17148         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
17149     fi
17150 fi
17151
17152             if test "x$bakefile_cv_c_exto" '!=' "x"; then
17153                 unset ac_cv_prog_cc_g
17154                 ac_test_CFLAGS=${CFLAGS+set}
17155 ac_save_CFLAGS=$CFLAGS
17156 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
17157 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
17158 if test "${ac_cv_prog_cc_g+set}" = set; then
17159   echo $ECHO_N "(cached) $ECHO_C" >&6
17160 else
17161   ac_save_c_werror_flag=$ac_c_werror_flag
17162    ac_c_werror_flag=yes
17163    ac_cv_prog_cc_g=no
17164    CFLAGS="-g"
17165    cat >conftest.$ac_ext <<_ACEOF
17166 /* confdefs.h.  */
17167 _ACEOF
17168 cat confdefs.h >>conftest.$ac_ext
17169 cat >>conftest.$ac_ext <<_ACEOF
17170 /* end confdefs.h.  */
17171
17172 int
17173 main ()
17174 {
17175
17176   ;
17177   return 0;
17178 }
17179 _ACEOF
17180 rm -f conftest.$ac_objext
17181 if { (ac_try="$ac_compile"
17182 case "(($ac_try" in
17183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17184   *) ac_try_echo=$ac_try;;
17185 esac
17186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17187   (eval "$ac_compile") 2>conftest.er1
17188   ac_status=$?
17189   grep -v '^ *+' conftest.er1 >conftest.err
17190   rm -f conftest.er1
17191   cat conftest.err >&5
17192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193   (exit $ac_status); } && {
17194          test -z "$ac_c_werror_flag" ||
17195          test ! -s conftest.err
17196        } && test -s conftest.$ac_objext; then
17197   ac_cv_prog_cc_g=yes
17198 else
17199   echo "$as_me: failed program was:" >&5
17200 sed 's/^/| /' conftest.$ac_ext >&5
17201
17202         CFLAGS=""
17203       cat >conftest.$ac_ext <<_ACEOF
17204 /* confdefs.h.  */
17205 _ACEOF
17206 cat confdefs.h >>conftest.$ac_ext
17207 cat >>conftest.$ac_ext <<_ACEOF
17208 /* end confdefs.h.  */
17209
17210 int
17211 main ()
17212 {
17213
17214   ;
17215   return 0;
17216 }
17217 _ACEOF
17218 rm -f conftest.$ac_objext
17219 if { (ac_try="$ac_compile"
17220 case "(($ac_try" in
17221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17222   *) ac_try_echo=$ac_try;;
17223 esac
17224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17225   (eval "$ac_compile") 2>conftest.er1
17226   ac_status=$?
17227   grep -v '^ *+' conftest.er1 >conftest.err
17228   rm -f conftest.er1
17229   cat conftest.err >&5
17230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231   (exit $ac_status); } && {
17232          test -z "$ac_c_werror_flag" ||
17233          test ! -s conftest.err
17234        } && test -s conftest.$ac_objext; then
17235   :
17236 else
17237   echo "$as_me: failed program was:" >&5
17238 sed 's/^/| /' conftest.$ac_ext >&5
17239
17240         ac_c_werror_flag=$ac_save_c_werror_flag
17241          CFLAGS="-g"
17242          cat >conftest.$ac_ext <<_ACEOF
17243 /* confdefs.h.  */
17244 _ACEOF
17245 cat confdefs.h >>conftest.$ac_ext
17246 cat >>conftest.$ac_ext <<_ACEOF
17247 /* end confdefs.h.  */
17248
17249 int
17250 main ()
17251 {
17252
17253   ;
17254   return 0;
17255 }
17256 _ACEOF
17257 rm -f conftest.$ac_objext
17258 if { (ac_try="$ac_compile"
17259 case "(($ac_try" in
17260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17261   *) ac_try_echo=$ac_try;;
17262 esac
17263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17264   (eval "$ac_compile") 2>conftest.er1
17265   ac_status=$?
17266   grep -v '^ *+' conftest.er1 >conftest.err
17267   rm -f conftest.er1
17268   cat conftest.err >&5
17269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17270   (exit $ac_status); } && {
17271          test -z "$ac_c_werror_flag" ||
17272          test ! -s conftest.err
17273        } && test -s conftest.$ac_objext; then
17274   ac_cv_prog_cc_g=yes
17275 else
17276   echo "$as_me: failed program was:" >&5
17277 sed 's/^/| /' conftest.$ac_ext >&5
17278
17279
17280 fi
17281
17282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17283 fi
17284
17285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17286 fi
17287
17288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17289    ac_c_werror_flag=$ac_save_c_werror_flag
17290 fi
17291 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
17292 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
17293 if test "$ac_test_CFLAGS" = set; then
17294   CFLAGS=$ac_save_CFLAGS
17295 elif test $ac_cv_prog_cc_g = yes; then
17296   if test "$GCC" = yes; then
17297     CFLAGS="-g -O2"
17298   else
17299     CFLAGS="-g"
17300   fi
17301 else
17302   if test "$GCC" = yes; then
17303     CFLAGS="-O2"
17304   else
17305     CFLAGS=
17306   fi
17307 fi
17308             fi
17309         fi
17310
17311                         case `uname -s` in
17312             AIX*)
17313
17314
17315     ac_ext=cpp
17316 ac_cpp='$CXXCPP $CPPFLAGS'
17317 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17318 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17319 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17320
17321     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
17322 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
17323 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
17324   echo $ECHO_N "(cached) $ECHO_C" >&6
17325 else
17326   cat >conftest.$ac_ext <<_ACEOF
17327 /* confdefs.h.  */
17328 _ACEOF
17329 cat confdefs.h >>conftest.$ac_ext
17330 cat >>conftest.$ac_ext <<_ACEOF
17331 /* end confdefs.h.  */
17332
17333 int
17334 main ()
17335 {
17336
17337              #ifndef __xlC__
17338                 choke me
17339              #endif
17340
17341   ;
17342   return 0;
17343 }
17344 _ACEOF
17345 rm -f conftest.$ac_objext
17346 if { (ac_try="$ac_compile"
17347 case "(($ac_try" in
17348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17349   *) ac_try_echo=$ac_try;;
17350 esac
17351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17352   (eval "$ac_compile") 2>conftest.er1
17353   ac_status=$?
17354   grep -v '^ *+' conftest.er1 >conftest.err
17355   rm -f conftest.er1
17356   cat conftest.err >&5
17357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17358   (exit $ac_status); } && {
17359          test -z "$ac_cxx_werror_flag" ||
17360          test ! -s conftest.err
17361        } && test -s conftest.$ac_objext; then
17362   bakefile_cv_cxx_compiler___xlC__=yes
17363 else
17364   echo "$as_me: failed program was:" >&5
17365 sed 's/^/| /' conftest.$ac_ext >&5
17366
17367         bakefile_cv_cxx_compiler___xlC__=no
17368
17369 fi
17370
17371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17372
17373
17374 fi
17375 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
17376 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
17377     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
17378         :; XLCXX=yes
17379     else
17380         :;
17381     fi
17382     ac_ext=c
17383 ac_cpp='$CPP $CPPFLAGS'
17384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17387
17388
17389
17390                 ;;
17391
17392             Darwin)
17393
17394
17395     ac_ext=cpp
17396 ac_cpp='$CXXCPP $CPPFLAGS'
17397 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17398 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17399 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17400
17401     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
17402 echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6; }
17403 if test "${bakefile_cv_cxx_compiler___MWERKS__+set}" = set; then
17404   echo $ECHO_N "(cached) $ECHO_C" >&6
17405 else
17406   cat >conftest.$ac_ext <<_ACEOF
17407 /* confdefs.h.  */
17408 _ACEOF
17409 cat confdefs.h >>conftest.$ac_ext
17410 cat >>conftest.$ac_ext <<_ACEOF
17411 /* end confdefs.h.  */
17412
17413 int
17414 main ()
17415 {
17416
17417              #ifndef __MWERKS__
17418                 choke me
17419              #endif
17420
17421   ;
17422   return 0;
17423 }
17424 _ACEOF
17425 rm -f conftest.$ac_objext
17426 if { (ac_try="$ac_compile"
17427 case "(($ac_try" in
17428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17429   *) ac_try_echo=$ac_try;;
17430 esac
17431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17432   (eval "$ac_compile") 2>conftest.er1
17433   ac_status=$?
17434   grep -v '^ *+' conftest.er1 >conftest.err
17435   rm -f conftest.er1
17436   cat conftest.err >&5
17437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438   (exit $ac_status); } && {
17439          test -z "$ac_cxx_werror_flag" ||
17440          test ! -s conftest.err
17441        } && test -s conftest.$ac_objext; then
17442   bakefile_cv_cxx_compiler___MWERKS__=yes
17443 else
17444   echo "$as_me: failed program was:" >&5
17445 sed 's/^/| /' conftest.$ac_ext >&5
17446
17447         bakefile_cv_cxx_compiler___MWERKS__=no
17448
17449 fi
17450
17451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17452
17453
17454 fi
17455 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___MWERKS__" >&5
17456 echo "${ECHO_T}$bakefile_cv_cxx_compiler___MWERKS__" >&6; }
17457     if test "x$bakefile_cv_cxx_compiler___MWERKS__" = "xyes"; then
17458         :; MWCXX=yes
17459     else
17460         :;
17461     fi
17462     ac_ext=c
17463 ac_cpp='$CPP $CPPFLAGS'
17464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17467
17468
17469
17470                 if test "$MWCXX" != "yes"; then
17471
17472
17473     ac_ext=cpp
17474 ac_cpp='$CXXCPP $CPPFLAGS'
17475 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17476 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17477 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17478
17479     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
17480 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
17481 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
17482   echo $ECHO_N "(cached) $ECHO_C" >&6
17483 else
17484   cat >conftest.$ac_ext <<_ACEOF
17485 /* confdefs.h.  */
17486 _ACEOF
17487 cat confdefs.h >>conftest.$ac_ext
17488 cat >>conftest.$ac_ext <<_ACEOF
17489 /* end confdefs.h.  */
17490
17491 int
17492 main ()
17493 {
17494
17495              #ifndef __xlC__
17496                 choke me
17497              #endif
17498
17499   ;
17500   return 0;
17501 }
17502 _ACEOF
17503 rm -f conftest.$ac_objext
17504 if { (ac_try="$ac_compile"
17505 case "(($ac_try" in
17506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17507   *) ac_try_echo=$ac_try;;
17508 esac
17509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17510   (eval "$ac_compile") 2>conftest.er1
17511   ac_status=$?
17512   grep -v '^ *+' conftest.er1 >conftest.err
17513   rm -f conftest.er1
17514   cat conftest.err >&5
17515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516   (exit $ac_status); } && {
17517          test -z "$ac_cxx_werror_flag" ||
17518          test ! -s conftest.err
17519        } && test -s conftest.$ac_objext; then
17520   bakefile_cv_cxx_compiler___xlC__=yes
17521 else
17522   echo "$as_me: failed program was:" >&5
17523 sed 's/^/| /' conftest.$ac_ext >&5
17524
17525         bakefile_cv_cxx_compiler___xlC__=no
17526
17527 fi
17528
17529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17530
17531
17532 fi
17533 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
17534 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
17535     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
17536         :; XLCXX=yes
17537     else
17538         :;
17539     fi
17540     ac_ext=c
17541 ac_cpp='$CPP $CPPFLAGS'
17542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17545
17546
17547
17548                 fi
17549                 ;;
17550
17551             IRIX*)
17552
17553
17554     ac_ext=cpp
17555 ac_cpp='$CXXCPP $CPPFLAGS'
17556 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17557 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17558 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17559
17560     { echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
17561 echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6; }
17562 if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
17563   echo $ECHO_N "(cached) $ECHO_C" >&6
17564 else
17565   cat >conftest.$ac_ext <<_ACEOF
17566 /* confdefs.h.  */
17567 _ACEOF
17568 cat confdefs.h >>conftest.$ac_ext
17569 cat >>conftest.$ac_ext <<_ACEOF
17570 /* end confdefs.h.  */
17571
17572 int
17573 main ()
17574 {
17575
17576              #ifndef _SGI_COMPILER_VERSION
17577                 choke me
17578              #endif
17579
17580   ;
17581   return 0;
17582 }
17583 _ACEOF
17584 rm -f conftest.$ac_objext
17585 if { (ac_try="$ac_compile"
17586 case "(($ac_try" in
17587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17588   *) ac_try_echo=$ac_try;;
17589 esac
17590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17591   (eval "$ac_compile") 2>conftest.er1
17592   ac_status=$?
17593   grep -v '^ *+' conftest.er1 >conftest.err
17594   rm -f conftest.er1
17595   cat conftest.err >&5
17596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597   (exit $ac_status); } && {
17598          test -z "$ac_cxx_werror_flag" ||
17599          test ! -s conftest.err
17600        } && test -s conftest.$ac_objext; then
17601   bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
17602 else
17603   echo "$as_me: failed program was:" >&5
17604 sed 's/^/| /' conftest.$ac_ext >&5
17605
17606         bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
17607
17608 fi
17609
17610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17611
17612
17613 fi
17614 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
17615 echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6; }
17616     if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
17617         :; SGICXX=yes
17618     else
17619         :;
17620     fi
17621     ac_ext=c
17622 ac_cpp='$CPP $CPPFLAGS'
17623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17626
17627
17628
17629                 ;;
17630
17631             Linux*)
17632                                                 if test "$INTELCXX" != "yes"; then
17633
17634
17635     ac_ext=cpp
17636 ac_cpp='$CXXCPP $CPPFLAGS'
17637 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17638 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17639 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17640
17641     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
17642 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
17643 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
17644   echo $ECHO_N "(cached) $ECHO_C" >&6
17645 else
17646   cat >conftest.$ac_ext <<_ACEOF
17647 /* confdefs.h.  */
17648 _ACEOF
17649 cat confdefs.h >>conftest.$ac_ext
17650 cat >>conftest.$ac_ext <<_ACEOF
17651 /* end confdefs.h.  */
17652
17653 int
17654 main ()
17655 {
17656
17657              #ifndef __SUNPRO_CC
17658                 choke me
17659              #endif
17660
17661   ;
17662   return 0;
17663 }
17664 _ACEOF
17665 rm -f conftest.$ac_objext
17666 if { (ac_try="$ac_compile"
17667 case "(($ac_try" in
17668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17669   *) ac_try_echo=$ac_try;;
17670 esac
17671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17672   (eval "$ac_compile") 2>conftest.er1
17673   ac_status=$?
17674   grep -v '^ *+' conftest.er1 >conftest.err
17675   rm -f conftest.er1
17676   cat conftest.err >&5
17677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678   (exit $ac_status); } && {
17679          test -z "$ac_cxx_werror_flag" ||
17680          test ! -s conftest.err
17681        } && test -s conftest.$ac_objext; then
17682   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
17683 else
17684   echo "$as_me: failed program was:" >&5
17685 sed 's/^/| /' conftest.$ac_ext >&5
17686
17687         bakefile_cv_cxx_compiler___SUNPRO_CC=no
17688
17689 fi
17690
17691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17692
17693
17694 fi
17695 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
17696 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
17697     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
17698         :; SUNCXX=yes
17699     else
17700         :;
17701     fi
17702     ac_ext=c
17703 ac_cpp='$CPP $CPPFLAGS'
17704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17707
17708
17709
17710                 fi
17711                 ;;
17712
17713             HP-UX*)
17714
17715
17716     ac_ext=cpp
17717 ac_cpp='$CXXCPP $CPPFLAGS'
17718 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17719 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17720 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17721
17722     { echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
17723 echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6; }
17724 if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
17725   echo $ECHO_N "(cached) $ECHO_C" >&6
17726 else
17727   cat >conftest.$ac_ext <<_ACEOF
17728 /* confdefs.h.  */
17729 _ACEOF
17730 cat confdefs.h >>conftest.$ac_ext
17731 cat >>conftest.$ac_ext <<_ACEOF
17732 /* end confdefs.h.  */
17733
17734 int
17735 main ()
17736 {
17737
17738              #ifndef __HP_aCC
17739                 choke me
17740              #endif
17741
17742   ;
17743   return 0;
17744 }
17745 _ACEOF
17746 rm -f conftest.$ac_objext
17747 if { (ac_try="$ac_compile"
17748 case "(($ac_try" in
17749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17750   *) ac_try_echo=$ac_try;;
17751 esac
17752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17753   (eval "$ac_compile") 2>conftest.er1
17754   ac_status=$?
17755   grep -v '^ *+' conftest.er1 >conftest.err
17756   rm -f conftest.er1
17757   cat conftest.err >&5
17758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759   (exit $ac_status); } && {
17760          test -z "$ac_cxx_werror_flag" ||
17761          test ! -s conftest.err
17762        } && test -s conftest.$ac_objext; then
17763   bakefile_cv_cxx_compiler___HP_aCC=yes
17764 else
17765   echo "$as_me: failed program was:" >&5
17766 sed 's/^/| /' conftest.$ac_ext >&5
17767
17768         bakefile_cv_cxx_compiler___HP_aCC=no
17769
17770 fi
17771
17772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17773
17774
17775 fi
17776 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
17777 echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6; }
17778     if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
17779         :; HPCXX=yes
17780     else
17781         :;
17782     fi
17783     ac_ext=c
17784 ac_cpp='$CPP $CPPFLAGS'
17785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17788
17789
17790
17791                 ;;
17792
17793             OSF1)
17794
17795
17796     ac_ext=cpp
17797 ac_cpp='$CXXCPP $CPPFLAGS'
17798 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17799 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17800 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17801
17802     { echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
17803 echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6; }
17804 if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
17805   echo $ECHO_N "(cached) $ECHO_C" >&6
17806 else
17807   cat >conftest.$ac_ext <<_ACEOF
17808 /* confdefs.h.  */
17809 _ACEOF
17810 cat confdefs.h >>conftest.$ac_ext
17811 cat >>conftest.$ac_ext <<_ACEOF
17812 /* end confdefs.h.  */
17813
17814 int
17815 main ()
17816 {
17817
17818              #ifndef __DECCXX
17819                 choke me
17820              #endif
17821
17822   ;
17823   return 0;
17824 }
17825 _ACEOF
17826 rm -f conftest.$ac_objext
17827 if { (ac_try="$ac_compile"
17828 case "(($ac_try" in
17829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17830   *) ac_try_echo=$ac_try;;
17831 esac
17832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17833   (eval "$ac_compile") 2>conftest.er1
17834   ac_status=$?
17835   grep -v '^ *+' conftest.er1 >conftest.err
17836   rm -f conftest.er1
17837   cat conftest.err >&5
17838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17839   (exit $ac_status); } && {
17840          test -z "$ac_cxx_werror_flag" ||
17841          test ! -s conftest.err
17842        } && test -s conftest.$ac_objext; then
17843   bakefile_cv_cxx_compiler___DECCXX=yes
17844 else
17845   echo "$as_me: failed program was:" >&5
17846 sed 's/^/| /' conftest.$ac_ext >&5
17847
17848         bakefile_cv_cxx_compiler___DECCXX=no
17849
17850 fi
17851
17852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17853
17854
17855 fi
17856 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
17857 echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6; }
17858     if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
17859         :; COMPAQCXX=yes
17860     else
17861         :;
17862     fi
17863     ac_ext=c
17864 ac_cpp='$CPP $CPPFLAGS'
17865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17868
17869
17870
17871                 ;;
17872
17873             SunOS)
17874
17875
17876     ac_ext=cpp
17877 ac_cpp='$CXXCPP $CPPFLAGS'
17878 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17879 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17880 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17881
17882     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
17883 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
17884 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
17885   echo $ECHO_N "(cached) $ECHO_C" >&6
17886 else
17887   cat >conftest.$ac_ext <<_ACEOF
17888 /* confdefs.h.  */
17889 _ACEOF
17890 cat confdefs.h >>conftest.$ac_ext
17891 cat >>conftest.$ac_ext <<_ACEOF
17892 /* end confdefs.h.  */
17893
17894 int
17895 main ()
17896 {
17897
17898              #ifndef __SUNPRO_CC
17899                 choke me
17900              #endif
17901
17902   ;
17903   return 0;
17904 }
17905 _ACEOF
17906 rm -f conftest.$ac_objext
17907 if { (ac_try="$ac_compile"
17908 case "(($ac_try" in
17909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17910   *) ac_try_echo=$ac_try;;
17911 esac
17912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17913   (eval "$ac_compile") 2>conftest.er1
17914   ac_status=$?
17915   grep -v '^ *+' conftest.er1 >conftest.err
17916   rm -f conftest.er1
17917   cat conftest.err >&5
17918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919   (exit $ac_status); } && {
17920          test -z "$ac_cxx_werror_flag" ||
17921          test ! -s conftest.err
17922        } && test -s conftest.$ac_objext; then
17923   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
17924 else
17925   echo "$as_me: failed program was:" >&5
17926 sed 's/^/| /' conftest.$ac_ext >&5
17927
17928         bakefile_cv_cxx_compiler___SUNPRO_CC=no
17929
17930 fi
17931
17932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17933
17934
17935 fi
17936 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
17937 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
17938     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
17939         :; SUNCXX=yes
17940     else
17941         :;
17942     fi
17943     ac_ext=c
17944 ac_cpp='$CPP $CPPFLAGS'
17945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17948
17949
17950
17951                 ;;
17952         esac
17953     fi
17954
17955
17956
17957 if test "$CXX" = "g++" -a "$GXX" != "yes"; then
17958     { { echo "$as_me:$LINENO: error: C++ compiler is needed to build wxWidgets" >&5
17959 echo "$as_me: error: C++ compiler is needed to build wxWidgets" >&2;}
17960    { (exit 1); exit 1; }; }
17961 fi
17962
17963 if test "x$SUNCXX" != xyes; then
17964     if test -n "$ac_tool_prefix"; then
17965   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
17966 set dummy ${ac_tool_prefix}ar; ac_word=$2
17967 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17969 if test "${ac_cv_prog_AR+set}" = set; then
17970   echo $ECHO_N "(cached) $ECHO_C" >&6
17971 else
17972   if test -n "$AR"; then
17973   ac_cv_prog_AR="$AR" # Let the user override the test.
17974 else
17975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17976 for as_dir in $PATH
17977 do
17978   IFS=$as_save_IFS
17979   test -z "$as_dir" && as_dir=.
17980   for ac_exec_ext in '' $ac_executable_extensions; do
17981   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17982     ac_cv_prog_AR="${ac_tool_prefix}ar"
17983     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17984     break 2
17985   fi
17986 done
17987 done
17988 IFS=$as_save_IFS
17989
17990 fi
17991 fi
17992 AR=$ac_cv_prog_AR
17993 if test -n "$AR"; then
17994   { echo "$as_me:$LINENO: result: $AR" >&5
17995 echo "${ECHO_T}$AR" >&6; }
17996 else
17997   { echo "$as_me:$LINENO: result: no" >&5
17998 echo "${ECHO_T}no" >&6; }
17999 fi
18000
18001
18002 fi
18003 if test -z "$ac_cv_prog_AR"; then
18004   ac_ct_AR=$AR
18005   # Extract the first word of "ar", so it can be a program name with args.
18006 set dummy ar; ac_word=$2
18007 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18009 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
18010   echo $ECHO_N "(cached) $ECHO_C" >&6
18011 else
18012   if test -n "$ac_ct_AR"; then
18013   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
18014 else
18015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18016 for as_dir in $PATH
18017 do
18018   IFS=$as_save_IFS
18019   test -z "$as_dir" && as_dir=.
18020   for ac_exec_ext in '' $ac_executable_extensions; do
18021   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18022     ac_cv_prog_ac_ct_AR="ar"
18023     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18024     break 2
18025   fi
18026 done
18027 done
18028 IFS=$as_save_IFS
18029
18030 fi
18031 fi
18032 ac_ct_AR=$ac_cv_prog_ac_ct_AR
18033 if test -n "$ac_ct_AR"; then
18034   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
18035 echo "${ECHO_T}$ac_ct_AR" >&6; }
18036 else
18037   { echo "$as_me:$LINENO: result: no" >&5
18038 echo "${ECHO_T}no" >&6; }
18039 fi
18040
18041   if test "x$ac_ct_AR" = x; then
18042     AR=""
18043   else
18044     case $cross_compiling:$ac_tool_warned in
18045 yes:)
18046 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18047 whose name does not start with the host triplet.  If you think this
18048 configuration is useful to you, please write to autoconf@gnu.org." >&5
18049 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18050 whose name does not start with the host triplet.  If you think this
18051 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18052 ac_tool_warned=yes ;;
18053 esac
18054     AR=$ac_ct_AR
18055   fi
18056 else
18057   AR="$ac_cv_prog_AR"
18058 fi
18059
18060     if test "x$AR" = "x" ; then
18061         { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
18062 echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
18063    { (exit 1); exit 1; }; }
18064     fi
18065 fi
18066
18067 retest_macosx_linking=no
18068
18069 #if test "$wxUSE_MAC" = 1; then
18070     if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
18071                         if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
18072             # Implicitly turn on the new --with-macosx-sdk using the default
18073             # SDK which provides the behavior this option has always had.
18074             if test "x$wxUSE_MACOSX_SDK" = "x"; then
18075                 { echo "$as_me:$LINENO: WARNING: Enabling default SDK due to --enable-universal_binary." >&5
18076 echo "$as_me: WARNING: Enabling default SDK due to --enable-universal_binary." >&2;}
18077                 { echo "$as_me:$LINENO: WARNING: If you don't want this, specify --without-macosx-sdk" >&5
18078 echo "$as_me: WARNING: If you don't want this, specify --without-macosx-sdk" >&2;}
18079                 wxUSE_MACOSX_SDK=yes
18080             fi
18081         else
18082             # Complain to user if he specified an argument to --enable-universal_binary
18083             # and also 1) specified --with-macosx-sdk using the default (yes) or
18084             # 2) specified --with-macosx-sdk using a path or 3) specified
18085             # --without-macosx-sdk (no).
18086             if test "x$wxUSE_MACOSX_SDK" != "x" ; then
18087                 { { echo "$as_me:$LINENO: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
18088 See \`config.log' for more details." >&5
18089 echo "$as_me: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
18090 See \`config.log' for more details." >&2;}
18091    { (exit 1); exit 1; }; }
18092             else
18093                 # Put the SDK path into the wxUSE_MACOSX_SDK.  We don't have to
18094                 # special-case the empty string because the below test simply
18095                 # converts "no" to the empty string anyway.
18096                 wxUSE_MACOSX_SDK="$wxUSE_UNIVERSAL_BINARY"
18097                                 { echo "$as_me:$LINENO: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&5
18098 echo "$as_me: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&2;}
18099             fi
18100         fi
18101                 OSX_UNIV_OPTS="-arch ppc -arch i386"
18102         CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS"
18103         CFLAGS="$OSX_UNIV_OPTS $CFLAGS"
18104         OBJCXXFLAGS="$OSX_UNIV_OPTS $OBJCXXFLAGS"
18105         OBJCFLAGS="$OSX_UNIV_OPTS $OBJCFLAGS"
18106         LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS"
18107                                                                                                                 retest_macosx_linking=yes
18108
18109                                         { echo "$as_me:$LINENO: WARNING: Disabling precompiled headers due to universal binary build." >&5
18110 echo "$as_me: WARNING: Disabling precompiled headers due to universal binary build." >&2;}
18111         bk_use_pch=no
18112     fi
18113 #fi
18114
18115 if test "x$wxUSE_MACOSX_SDK" = "xno"; then
18116     wxUSE_MACOSX_SDK=
18117 elif test "x$wxUSE_MACOSX_SDK" = "xyes"; then
18118     # TODO: Search for most recent SDK and use it.
18119     wxUSE_MACOSX_SDK="/Developer/SDKs/MacOSX10.4u.sdk"
18120 fi
18121
18122
18123 if test "x$wxUSE_MACOSX_SDK" != "x"; then
18124     { echo "$as_me:$LINENO: checking for SDK directory $wxUSE_MACOSX_SDK" >&5
18125 echo $ECHO_N "checking for SDK directory $wxUSE_MACOSX_SDK... $ECHO_C" >&6; }
18126     if ! test -d "$wxUSE_MACOSX_SDK"; then
18127         { { echo "$as_me:$LINENO: error: not found
18128 See \`config.log' for more details." >&5
18129 echo "$as_me: error: not found
18130 See \`config.log' for more details." >&2;}
18131    { (exit 1); exit 1; }; }
18132     else
18133         { echo "$as_me:$LINENO: result: exists" >&5
18134 echo "${ECHO_T}exists" >&6; }
18135     fi
18136     MACOSX_SDK_OPTS="-isysroot $wxUSE_MACOSX_SDK"
18137     eval "CC=\"$CC $MACOSX_SDK_OPTS\""
18138     eval "CXX=\"$CXX $MACOSX_SDK_OPTS\""
18139     eval "LD=\"$LD $MACOSX_SDK_OPTS\""
18140     retest_macosx_linking=yes
18141             fi
18142
18143 if test "x$wxUSE_MACOSX_VERSION_MIN" = "xno"; then
18144     wxUSE_MACOSX_VERSION_MIN=
18145 elif test "x$wxUSE_MACOSX_VERSION_MIN" = "xyes"; then
18146     if test "x$wxUSE_MACOSX_SDK" != "x"; then
18147         { echo "$as_me:$LINENO: checking SDK deployment version" >&5
18148 echo $ECHO_N "checking SDK deployment version... $ECHO_C" >&6; }
18149
18150         MACOSX_SDK_PLIST_VERSION_MIN=`defaults read "$wxUSE_MACOSX_SDK/SDKSettings" buildSettings | grep '^ *"\{0,1\}MACOSX_DEPLOYMENT_TARGET"\{0,1\} *= *"\{0,1\}[^"]*"\{0,1\}; *$' | sed 's/^ *"\{0,1\}MACOSX_DEPLOYMENT_TARGET"\{0,1\} *= *"\{0,1\}\([^"]*\)"\{0,1\} *; *$/\1/'`
18151
18152         # If that failed, try again with the new key
18153         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" == "x"; then
18154
18155             MACOSX_SDK_PLIST_VERSION_MIN=`defaults read "$wxUSE_MACOSX_SDK/SDKSettings" DefaultProperties | grep '^ *"\{0,1\}MACOSX_DEPLOYMENT_TARGET"\{0,1\} *= *"\{0,1\}[^"]*"\{0,1\}; *$' | sed 's/^ *"\{0,1\}MACOSX_DEPLOYMENT_TARGET"\{0,1\} *= *"\{0,1\}\([^"]*\)"\{0,1\} *; *$/\1/'`
18156
18157         fi
18158
18159         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" != "x"; then
18160             wxUSE_MACOSX_VERSION_MIN=$MACOSX_SDK_PLIST_VERSION_MIN
18161             { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
18162 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
18163         else
18164             { echo "$as_me:$LINENO: WARNING: Could not determine deployment target from SDKSettings.plist" >&5
18165 echo "$as_me: WARNING: Could not determine deployment target from SDKSettings.plist" >&2;}
18166             wxUSE_MACOSX_VERSION_MIN=
18167         fi
18168     else
18169         wxUSE_MACOSX_VERSION_MIN=
18170     fi
18171 elif test "x$wxUSE_MACOSX_VERSION_MIN" = "x"; then
18172     if test "$wxUSE_MAC" = 1; then
18173         # otherwise configure stops on leopard for universal_binary
18174         wxUSE_MACOSX_VERSION_MIN=10.4
18175     fi
18176 fi
18177
18178 if test "x$wxUSE_MACOSX_VERSION_MIN" != "x"; then
18179     MACOSX_VERSION_MIN_OPTS="-mmacosx-version-min=$wxUSE_MACOSX_VERSION_MIN"
18180     eval "CC=\"$CC $MACOSX_VERSION_MIN_OPTS\""
18181     eval "CXX=\"$CXX $MACOSX_VERSION_MIN_OPTS\""
18182     eval "LD=\"$LD $MACOSX_VERSION_MIN_OPTS\""
18183     retest_macosx_linking=yes
18184 fi
18185
18186 if test "x$retest_macosx_linking" = "xyes"; then
18187     ac_ext=c
18188 ac_cpp='$CPP $CPPFLAGS'
18189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18192
18193     { echo "$as_me:$LINENO: checking if C compiler works with SDK/version options" >&5
18194 echo $ECHO_N "checking if C compiler works with SDK/version options... $ECHO_C" >&6; }
18195     cat >conftest.$ac_ext <<_ACEOF
18196 /* confdefs.h.  */
18197 _ACEOF
18198 cat confdefs.h >>conftest.$ac_ext
18199 cat >>conftest.$ac_ext <<_ACEOF
18200 /* end confdefs.h.  */
18201
18202 int
18203 main ()
18204 {
18205
18206   ;
18207   return 0;
18208 }
18209 _ACEOF
18210 rm -f conftest.$ac_objext conftest$ac_exeext
18211 if { (ac_try="$ac_link"
18212 case "(($ac_try" in
18213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18214   *) ac_try_echo=$ac_try;;
18215 esac
18216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18217   (eval "$ac_link") 2>conftest.er1
18218   ac_status=$?
18219   grep -v '^ *+' conftest.er1 >conftest.err
18220   rm -f conftest.er1
18221   cat conftest.err >&5
18222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223   (exit $ac_status); } && {
18224          test -z "$ac_c_werror_flag" ||
18225          test ! -s conftest.err
18226        } && test -s conftest$ac_exeext &&
18227        $as_test_x conftest$ac_exeext; then
18228   { echo "$as_me:$LINENO: result: yes" >&5
18229 echo "${ECHO_T}yes" >&6; }
18230 else
18231   echo "$as_me: failed program was:" >&5
18232 sed 's/^/| /' conftest.$ac_ext >&5
18233
18234         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
18235 See \`config.log' for more details." >&5
18236 echo "$as_me: error: no.  Try a different SDK
18237 See \`config.log' for more details." >&2;}
18238    { (exit 1); exit 1; }; }; exit 1
18239 fi
18240
18241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18242       conftest$ac_exeext conftest.$ac_ext
18243     ac_ext=c
18244 ac_cpp='$CPP $CPPFLAGS'
18245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18248
18249
18250     ac_ext=cpp
18251 ac_cpp='$CXXCPP $CPPFLAGS'
18252 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18253 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18254 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18255
18256     { echo "$as_me:$LINENO: checking if C++ compiler works with SDK/version options" >&5
18257 echo $ECHO_N "checking if C++ compiler works with SDK/version options... $ECHO_C" >&6; }
18258     cat >conftest.$ac_ext <<_ACEOF
18259 /* confdefs.h.  */
18260 _ACEOF
18261 cat confdefs.h >>conftest.$ac_ext
18262 cat >>conftest.$ac_ext <<_ACEOF
18263 /* end confdefs.h.  */
18264
18265 int
18266 main ()
18267 {
18268
18269   ;
18270   return 0;
18271 }
18272 _ACEOF
18273 rm -f conftest.$ac_objext conftest$ac_exeext
18274 if { (ac_try="$ac_link"
18275 case "(($ac_try" in
18276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18277   *) ac_try_echo=$ac_try;;
18278 esac
18279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18280   (eval "$ac_link") 2>conftest.er1
18281   ac_status=$?
18282   grep -v '^ *+' conftest.er1 >conftest.err
18283   rm -f conftest.er1
18284   cat conftest.err >&5
18285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286   (exit $ac_status); } && {
18287          test -z "$ac_cxx_werror_flag" ||
18288          test ! -s conftest.err
18289        } && test -s conftest$ac_exeext &&
18290        $as_test_x conftest$ac_exeext; then
18291   { echo "$as_me:$LINENO: result: yes" >&5
18292 echo "${ECHO_T}yes" >&6; }
18293 else
18294   echo "$as_me: failed program was:" >&5
18295 sed 's/^/| /' conftest.$ac_ext >&5
18296
18297         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
18298 See \`config.log' for more details." >&5
18299 echo "$as_me: error: no.  Try a different SDK
18300 See \`config.log' for more details." >&2;}
18301    { (exit 1); exit 1; }; }; exit 1
18302 fi
18303
18304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18305       conftest$ac_exeext conftest.$ac_ext
18306     ac_ext=c
18307 ac_cpp='$CPP $CPPFLAGS'
18308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18311
18312 fi
18313
18314
18315 case "${host}" in
18316
18317                 *-*-darwin* )
18318         INSTALL_PROGRAM="cp -fp"
18319         INSTALL_DATA="cp -fp"
18320         ;;
18321     *)
18322         ;;
18323 esac
18324
18325
18326 if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
18327     CXXFLAGS="-qunique $CXXFLAGS"
18328 fi
18329
18330 case "${host}" in
18331   powerpc-*-darwin* )
18332     { echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
18333 echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6; }
18334     cat >conftest.$ac_ext <<_ACEOF
18335 /* confdefs.h.  */
18336 _ACEOF
18337 cat confdefs.h >>conftest.$ac_ext
18338 cat >>conftest.$ac_ext <<_ACEOF
18339 /* end confdefs.h.  */
18340
18341 int
18342 main ()
18343 {
18344 #ifndef __POWERPC__
18345         choke me for lack of PowerPC
18346 #endif
18347
18348   ;
18349   return 0;
18350 }
18351 _ACEOF
18352 rm -f conftest.$ac_objext
18353 if { (ac_try="$ac_compile"
18354 case "(($ac_try" in
18355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18356   *) ac_try_echo=$ac_try;;
18357 esac
18358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18359   (eval "$ac_compile") 2>conftest.er1
18360   ac_status=$?
18361   grep -v '^ *+' conftest.er1 >conftest.err
18362   rm -f conftest.er1
18363   cat conftest.err >&5
18364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365   (exit $ac_status); } && {
18366          test -z "$ac_c_werror_flag" ||
18367          test ! -s conftest.err
18368        } && test -s conftest.$ac_objext; then
18369   { echo "$as_me:$LINENO: result: yes" >&5
18370 echo "${ECHO_T}yes" >&6; }
18371 else
18372   echo "$as_me: failed program was:" >&5
18373 sed 's/^/| /' conftest.$ac_ext >&5
18374
18375         { echo "$as_me:$LINENO: result: no" >&5
18376 echo "${ECHO_T}no" >&6; }
18377         cat >>confdefs.h <<\_ACEOF
18378 #define __POWERPC__ 1
18379 _ACEOF
18380
18381
18382 fi
18383
18384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18385   ;;
18386 esac
18387
18388 case "${host}" in
18389   *-*-darwin* )
18390     { echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
18391 echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6; }
18392     cat >conftest.$ac_ext <<_ACEOF
18393 /* confdefs.h.  */
18394 _ACEOF
18395 cat confdefs.h >>conftest.$ac_ext
18396 cat >>conftest.$ac_ext <<_ACEOF
18397 /* end confdefs.h.  */
18398 #include <CoreFoundation/CFBase.h>
18399
18400 int
18401 main ()
18402 {
18403
18404   ;
18405   return 0;
18406 }
18407 _ACEOF
18408 rm -f conftest.$ac_objext
18409 if { (ac_try="$ac_compile"
18410 case "(($ac_try" in
18411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18412   *) ac_try_echo=$ac_try;;
18413 esac
18414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18415   (eval "$ac_compile") 2>conftest.er1
18416   ac_status=$?
18417   grep -v '^ *+' conftest.er1 >conftest.err
18418   rm -f conftest.er1
18419   cat conftest.err >&5
18420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421   (exit $ac_status); } && {
18422          test -z "$ac_c_werror_flag" ||
18423          test ! -s conftest.err
18424        } && test -s conftest.$ac_objext; then
18425   { echo "$as_me:$LINENO: result: yes" >&5
18426 echo "${ECHO_T}yes" >&6; }
18427 else
18428   echo "$as_me: failed program was:" >&5
18429 sed 's/^/| /' conftest.$ac_ext >&5
18430
18431         { echo "$as_me:$LINENO: result: no" >&5
18432 echo "${ECHO_T}no" >&6; }
18433         { echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
18434 echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6; }
18435         cat >conftest.$ac_ext <<_ACEOF
18436 /* confdefs.h.  */
18437 _ACEOF
18438 cat confdefs.h >>conftest.$ac_ext
18439 cat >>conftest.$ac_ext <<_ACEOF
18440 /* end confdefs.h.  */
18441 #define __CF_USE_FRAMEWORK_INCLUDES__
18442 #include <CoreFoundation/CFBase.h>
18443
18444 int
18445 main ()
18446 {
18447
18448   ;
18449   return 0;
18450 }
18451 _ACEOF
18452 rm -f conftest.$ac_objext
18453 if { (ac_try="$ac_compile"
18454 case "(($ac_try" in
18455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18456   *) ac_try_echo=$ac_try;;
18457 esac
18458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18459   (eval "$ac_compile") 2>conftest.er1
18460   ac_status=$?
18461   grep -v '^ *+' conftest.er1 >conftest.err
18462   rm -f conftest.er1
18463   cat conftest.err >&5
18464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465   (exit $ac_status); } && {
18466          test -z "$ac_c_werror_flag" ||
18467          test ! -s conftest.err
18468        } && test -s conftest.$ac_objext; then
18469   { echo "$as_me:$LINENO: result: yes" >&5
18470 echo "${ECHO_T}yes" >&6; }
18471                         CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
18472 else
18473   echo "$as_me: failed program was:" >&5
18474 sed 's/^/| /' conftest.$ac_ext >&5
18475
18476         { { echo "$as_me:$LINENO: error: no.  CoreFoundation not available.
18477 See \`config.log' for more details." >&5
18478 echo "$as_me: error: no.  CoreFoundation not available.
18479 See \`config.log' for more details." >&2;}
18480    { (exit 1); exit 1; }; }
18481
18482 fi
18483
18484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18485
18486
18487 fi
18488
18489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18490   ;;
18491 esac
18492
18493 wants_win32=0
18494 doesnt_want_win32=0
18495 case "${host}" in
18496   *-*-cygwin*)
18497       if test "$wxUSE_MSW" = 1 ; then
18498         wants_win32=1
18499       else
18500                         { echo "$as_me:$LINENO: checking if -mno-cygwin is in effect" >&5
18501 echo $ECHO_N "checking if -mno-cygwin is in effect... $ECHO_C" >&6; }
18502 if test "${wx_cv_nocygwin+set}" = set; then
18503   echo $ECHO_N "(cached) $ECHO_C" >&6
18504 else
18505
18506                 cat >conftest.$ac_ext <<_ACEOF
18507 /* confdefs.h.  */
18508 _ACEOF
18509 cat confdefs.h >>conftest.$ac_ext
18510 cat >>conftest.$ac_ext <<_ACEOF
18511 /* end confdefs.h.  */
18512
18513 int
18514 main ()
18515 {
18516
18517                         #ifdef __MINGW32__
18518                             choke me
18519                         #endif
18520
18521   ;
18522   return 0;
18523 }
18524 _ACEOF
18525 rm -f conftest.$ac_objext
18526 if { (ac_try="$ac_compile"
18527 case "(($ac_try" in
18528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18529   *) ac_try_echo=$ac_try;;
18530 esac
18531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18532   (eval "$ac_compile") 2>conftest.er1
18533   ac_status=$?
18534   grep -v '^ *+' conftest.er1 >conftest.err
18535   rm -f conftest.er1
18536   cat conftest.err >&5
18537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18538   (exit $ac_status); } && {
18539          test -z "$ac_c_werror_flag" ||
18540          test ! -s conftest.err
18541        } && test -s conftest.$ac_objext; then
18542   wx_cv_nocygwin=no
18543 else
18544   echo "$as_me: failed program was:" >&5
18545 sed 's/^/| /' conftest.$ac_ext >&5
18546
18547         wx_cv_nocygwin=yes
18548
18549 fi
18550
18551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18552
18553
18554 fi
18555 { echo "$as_me:$LINENO: result: $wx_cv_nocygwin" >&5
18556 echo "${ECHO_T}$wx_cv_nocygwin" >&6; }
18557
18558         if test "$wx_cv_nocygwin" = "yes"; then
18559             wants_win32=1
18560         else
18561             doesnt_want_win32=1
18562         fi
18563       fi
18564       if test "$wants_win32" = 1 ; then
18565         BAKEFILE_FORCE_PLATFORM=win32
18566       fi
18567   ;;
18568   *-*-mingw*)
18569       wants_win32=1
18570   ;;
18571 esac
18572
18573 if test "$wxUSE_WINE" = "yes"; then
18574     wants_win32=1
18575     LDFLAGS_GUI="-mwindows"
18576 fi
18577
18578 if test "$wants_win32" = 1 ; then
18579     USE_UNIX=0
18580     USE_WIN32=1
18581     cat >>confdefs.h <<\_ACEOF
18582 #define __WIN32__ 1
18583 _ACEOF
18584
18585     cat >>confdefs.h <<\_ACEOF
18586 #define __WIN95__ 1
18587 _ACEOF
18588
18589     cat >>confdefs.h <<\_ACEOF
18590 #define __WINDOWS__ 1
18591 _ACEOF
18592
18593     cat >>confdefs.h <<\_ACEOF
18594 #define __GNUWIN32__ 1
18595 _ACEOF
18596
18597     cat >>confdefs.h <<\_ACEOF
18598 #define STRICT 1
18599 _ACEOF
18600
18601 fi
18602 if test "$doesnt_want_win32" = 1 ; then
18603     USE_UNIX=1
18604     USE_WIN32=0
18605 fi
18606
18607 if test "$USE_UNIX" = 1 ; then
18608     wxUSE_UNIX=yes
18609     cat >>confdefs.h <<\_ACEOF
18610 #define __UNIX__ 1
18611 _ACEOF
18612
18613 fi
18614
18615 case "${host}" in
18616   *-pc-os2_emx | *-pc-os2-emx )
18617                                                       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
18618                               { echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
18619 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6; }
18620 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
18621   echo $ECHO_N "(cached) $ECHO_C" >&6
18622 else
18623   ac_check_lib_save_LIBS=$LIBS
18624 LIBS="-lcExt  $LIBS"
18625 cat >conftest.$ac_ext <<_ACEOF
18626 /* confdefs.h.  */
18627 _ACEOF
18628 cat confdefs.h >>conftest.$ac_ext
18629 cat >>conftest.$ac_ext <<_ACEOF
18630 /* end confdefs.h.  */
18631
18632 /* Override any GCC internal prototype to avoid an error.
18633    Use char because int might match the return type of a GCC
18634    builtin and then its argument prototype would still apply.  */
18635 #ifdef __cplusplus
18636 extern "C"
18637 #endif
18638 char drand48 ();
18639 int
18640 main ()
18641 {
18642 return drand48 ();
18643   ;
18644   return 0;
18645 }
18646 _ACEOF
18647 rm -f conftest.$ac_objext conftest$ac_exeext
18648 if { (ac_try="$ac_link"
18649 case "(($ac_try" in
18650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18651   *) ac_try_echo=$ac_try;;
18652 esac
18653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18654   (eval "$ac_link") 2>conftest.er1
18655   ac_status=$?
18656   grep -v '^ *+' conftest.er1 >conftest.err
18657   rm -f conftest.er1
18658   cat conftest.err >&5
18659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18660   (exit $ac_status); } && {
18661          test -z "$ac_c_werror_flag" ||
18662          test ! -s conftest.err
18663        } && test -s conftest$ac_exeext &&
18664        $as_test_x conftest$ac_exeext; then
18665   ac_cv_lib_cExt_drand48=yes
18666 else
18667   echo "$as_me: failed program was:" >&5
18668 sed 's/^/| /' conftest.$ac_ext >&5
18669
18670         ac_cv_lib_cExt_drand48=no
18671 fi
18672
18673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18674       conftest$ac_exeext conftest.$ac_ext
18675 LIBS=$ac_check_lib_save_LIBS
18676 fi
18677 { echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
18678 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6; }
18679 if test $ac_cv_lib_cExt_drand48 = yes; then
18680   LIBS="$LIBS -lcExt"
18681 fi
18682
18683       else
18684                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
18685       fi
18686                                     { echo "$as_me:$LINENO: checking for gcc/libc version" >&5
18687 echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6; }
18688 if test "${wx_cv_gccversion+set}" = set; then
18689   echo $ECHO_N "(cached) $ECHO_C" >&6
18690 else
18691
18692           if test "$cross_compiling" = yes; then
18693                 wx_cv_gccversion="EMX2"
18694
18695 else
18696   cat >conftest.$ac_ext <<_ACEOF
18697 /* confdefs.h.  */
18698 _ACEOF
18699 cat confdefs.h >>conftest.$ac_ext
18700 cat >>conftest.$ac_ext <<_ACEOF
18701 /* end confdefs.h.  */
18702
18703                   #include <stdio.h>
18704
18705                   int main()
18706                   {
18707                       FILE *f=fopen("conftestval", "w");
18708                       if (!f) exit(1);
18709                       fprintf(f,
18710                   #if (__GNUC__ < 3)
18711                               "EMX2"
18712                   #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
18713                               "EMX3"
18714                   #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
18715                               "Innotek5"
18716                   #else
18717                               "Innotek6"
18718                   #endif
18719                       );
18720                       exit(0);
18721                   }
18722
18723 _ACEOF
18724 rm -f conftest$ac_exeext
18725 if { (ac_try="$ac_link"
18726 case "(($ac_try" in
18727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18728   *) ac_try_echo=$ac_try;;
18729 esac
18730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18731   (eval "$ac_link") 2>&5
18732   ac_status=$?
18733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18734   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18735   { (case "(($ac_try" in
18736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18737   *) ac_try_echo=$ac_try;;
18738 esac
18739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18740   (eval "$ac_try") 2>&5
18741   ac_status=$?
18742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743   (exit $ac_status); }; }; then
18744   wx_cv_gccversion=`cat conftestval`
18745 else
18746   echo "$as_me: program exited with status $ac_status" >&5
18747 echo "$as_me: failed program was:" >&5
18748 sed 's/^/| /' conftest.$ac_ext >&5
18749
18750 ( exit $ac_status )
18751 wx_cv_gccversion="EMX2"
18752 fi
18753 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18754 fi
18755
18756
18757
18758 fi
18759 { echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
18760 echo "${ECHO_T}$wx_cv_gccversion" >&6; }
18761       if test "$wx_cv_gccversion" = "EMX2"; then
18762           LIBS="$LIBS -lstdcpp"
18763           LDFLAGS="$LDFLAGS -Zsysv-signals"
18764       else
18765           if test "$wx_cv_gccversion" = "EMX3"; then
18766               LIBS="$LIBS -lstdcxx -lgcc"
18767               LDFLAGS="$LDFLAGS -Zsysv-signals"
18768           else
18769               LIBS="$LIBS -lstdc++"
18770           fi
18771       fi
18772       if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
18773         { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
18774 echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
18775         wxUSE_OMF=yes
18776         enable_omf=yes
18777       fi
18778         ;;
18779   *)
18780
18781       { echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
18782 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6; }
18783 if test "${ac_cv_string_strcasecmp+set}" = set; then
18784   echo $ECHO_N "(cached) $ECHO_C" >&6
18785 else
18786
18787           cat >conftest.$ac_ext <<_ACEOF
18788 /* confdefs.h.  */
18789 _ACEOF
18790 cat confdefs.h >>conftest.$ac_ext
18791 cat >>conftest.$ac_ext <<_ACEOF
18792 /* end confdefs.h.  */
18793
18794               #include <string.h>
18795
18796 int
18797 main ()
18798 {
18799
18800                   strcasecmp("foo", "bar");
18801
18802   ;
18803   return 0;
18804 }
18805 _ACEOF
18806 rm -f conftest.$ac_objext conftest$ac_exeext
18807 if { (ac_try="$ac_link"
18808 case "(($ac_try" in
18809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18810   *) ac_try_echo=$ac_try;;
18811 esac
18812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18813   (eval "$ac_link") 2>conftest.er1
18814   ac_status=$?
18815   grep -v '^ *+' conftest.er1 >conftest.err
18816   rm -f conftest.er1
18817   cat conftest.err >&5
18818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18819   (exit $ac_status); } && {
18820          test -z "$ac_c_werror_flag" ||
18821          test ! -s conftest.err
18822        } && test -s conftest$ac_exeext &&
18823        $as_test_x conftest$ac_exeext; then
18824   ac_cv_string_strcasecmp=yes
18825 else
18826   echo "$as_me: failed program was:" >&5
18827 sed 's/^/| /' conftest.$ac_ext >&5
18828
18829         ac_cv_string_strcasecmp=no
18830
18831 fi
18832
18833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18834       conftest$ac_exeext conftest.$ac_ext
18835
18836 fi
18837 { echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
18838 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6; }
18839
18840       if test x"$ac_cv_string_strcasecmp" = "xyes"; then
18841           cat >>confdefs.h <<\_ACEOF
18842 #define HAVE_STRCASECMP_IN_STRING_H 1
18843 _ACEOF
18844
18845       else
18846           { echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
18847 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6; }
18848 if test "${ac_cv_strings_strcasecmp+set}" = set; then
18849   echo $ECHO_N "(cached) $ECHO_C" >&6
18850 else
18851
18852               cat >conftest.$ac_ext <<_ACEOF
18853 /* confdefs.h.  */
18854 _ACEOF
18855 cat confdefs.h >>conftest.$ac_ext
18856 cat >>conftest.$ac_ext <<_ACEOF
18857 /* end confdefs.h.  */
18858
18859                   #include <strings.h>
18860
18861 int
18862 main ()
18863 {
18864
18865                       strcasecmp("foo", "bar");
18866
18867   ;
18868   return 0;
18869 }
18870 _ACEOF
18871 rm -f conftest.$ac_objext conftest$ac_exeext
18872 if { (ac_try="$ac_link"
18873 case "(($ac_try" in
18874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18875   *) ac_try_echo=$ac_try;;
18876 esac
18877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18878   (eval "$ac_link") 2>conftest.er1
18879   ac_status=$?
18880   grep -v '^ *+' conftest.er1 >conftest.err
18881   rm -f conftest.er1
18882   cat conftest.err >&5
18883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884   (exit $ac_status); } && {
18885          test -z "$ac_c_werror_flag" ||
18886          test ! -s conftest.err
18887        } && test -s conftest$ac_exeext &&
18888        $as_test_x conftest$ac_exeext; then
18889   ac_cv_strings_strcasecmp=yes
18890 else
18891   echo "$as_me: failed program was:" >&5
18892 sed 's/^/| /' conftest.$ac_ext >&5
18893
18894         ac_cv_strings_strcasecmp=no
18895
18896 fi
18897
18898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18899       conftest$ac_exeext conftest.$ac_ext
18900
18901 fi
18902 { echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
18903 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6; }
18904
18905           if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
18906               cat >>confdefs.h <<\_ACEOF
18907 #define HAVE_STRCASECMP_IN_STRINGS_H 1
18908 _ACEOF
18909
18910           else
18911               { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
18912 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
18913    { (exit 1); exit 1; }; }
18914           fi
18915       fi
18916
18917         ;;
18918 esac
18919
18920
18921 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18922 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
18923 if test "${ac_cv_header_stdc+set}" = set; then
18924   echo $ECHO_N "(cached) $ECHO_C" >&6
18925 else
18926   cat >conftest.$ac_ext <<_ACEOF
18927 /* confdefs.h.  */
18928 _ACEOF
18929 cat confdefs.h >>conftest.$ac_ext
18930 cat >>conftest.$ac_ext <<_ACEOF
18931 /* end confdefs.h.  */
18932 #include <stdlib.h>
18933 #include <stdarg.h>
18934 #include <string.h>
18935 #include <float.h>
18936
18937 int
18938 main ()
18939 {
18940
18941   ;
18942   return 0;
18943 }
18944 _ACEOF
18945 rm -f conftest.$ac_objext
18946 if { (ac_try="$ac_compile"
18947 case "(($ac_try" in
18948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18949   *) ac_try_echo=$ac_try;;
18950 esac
18951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18952   (eval "$ac_compile") 2>conftest.er1
18953   ac_status=$?
18954   grep -v '^ *+' conftest.er1 >conftest.err
18955   rm -f conftest.er1
18956   cat conftest.err >&5
18957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18958   (exit $ac_status); } && {
18959          test -z "$ac_c_werror_flag" ||
18960          test ! -s conftest.err
18961        } && test -s conftest.$ac_objext; then
18962   ac_cv_header_stdc=yes
18963 else
18964   echo "$as_me: failed program was:" >&5
18965 sed 's/^/| /' conftest.$ac_ext >&5
18966
18967         ac_cv_header_stdc=no
18968 fi
18969
18970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18971
18972 if test $ac_cv_header_stdc = yes; then
18973   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18974   cat >conftest.$ac_ext <<_ACEOF
18975 /* confdefs.h.  */
18976 _ACEOF
18977 cat confdefs.h >>conftest.$ac_ext
18978 cat >>conftest.$ac_ext <<_ACEOF
18979 /* end confdefs.h.  */
18980 #include <string.h>
18981
18982 _ACEOF
18983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18984   $EGREP "memchr" >/dev/null 2>&1; then
18985   :
18986 else
18987   ac_cv_header_stdc=no
18988 fi
18989 rm -f conftest*
18990
18991 fi
18992
18993 if test $ac_cv_header_stdc = yes; then
18994   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18995   cat >conftest.$ac_ext <<_ACEOF
18996 /* confdefs.h.  */
18997 _ACEOF
18998 cat confdefs.h >>conftest.$ac_ext
18999 cat >>conftest.$ac_ext <<_ACEOF
19000 /* end confdefs.h.  */
19001 #include <stdlib.h>
19002
19003 _ACEOF
19004 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19005   $EGREP "free" >/dev/null 2>&1; then
19006   :
19007 else
19008   ac_cv_header_stdc=no
19009 fi
19010 rm -f conftest*
19011
19012 fi
19013
19014 if test $ac_cv_header_stdc = yes; then
19015   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19016   if test "$cross_compiling" = yes; then
19017   :
19018 else
19019   cat >conftest.$ac_ext <<_ACEOF
19020 /* confdefs.h.  */
19021 _ACEOF
19022 cat confdefs.h >>conftest.$ac_ext
19023 cat >>conftest.$ac_ext <<_ACEOF
19024 /* end confdefs.h.  */
19025 #include <ctype.h>
19026 #include <stdlib.h>
19027 #if ((' ' & 0x0FF) == 0x020)
19028 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19029 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19030 #else
19031 # define ISLOWER(c) \
19032                    (('a' <= (c) && (c) <= 'i') \
19033                      || ('j' <= (c) && (c) <= 'r') \
19034                      || ('s' <= (c) && (c) <= 'z'))
19035 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19036 #endif
19037
19038 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19039 int
19040 main ()
19041 {
19042   int i;
19043   for (i = 0; i < 256; i++)
19044     if (XOR (islower (i), ISLOWER (i))
19045         || toupper (i) != TOUPPER (i))
19046       return 2;
19047   return 0;
19048 }
19049 _ACEOF
19050 rm -f conftest$ac_exeext
19051 if { (ac_try="$ac_link"
19052 case "(($ac_try" in
19053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19054   *) ac_try_echo=$ac_try;;
19055 esac
19056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19057   (eval "$ac_link") 2>&5
19058   ac_status=$?
19059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19060   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19061   { (case "(($ac_try" in
19062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19063   *) ac_try_echo=$ac_try;;
19064 esac
19065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19066   (eval "$ac_try") 2>&5
19067   ac_status=$?
19068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19069   (exit $ac_status); }; }; then
19070   :
19071 else
19072   echo "$as_me: program exited with status $ac_status" >&5
19073 echo "$as_me: failed program was:" >&5
19074 sed 's/^/| /' conftest.$ac_ext >&5
19075
19076 ( exit $ac_status )
19077 ac_cv_header_stdc=no
19078 fi
19079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19080 fi
19081
19082
19083 fi
19084 fi
19085 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19086 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19087 if test $ac_cv_header_stdc = yes; then
19088
19089 cat >>confdefs.h <<\_ACEOF
19090 #define STDC_HEADERS 1
19091 _ACEOF
19092
19093 fi
19094
19095 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
19096
19097
19098
19099
19100
19101
19102
19103
19104
19105 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
19106                   inttypes.h stdint.h unistd.h
19107 do
19108 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19109 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19112   echo $ECHO_N "(cached) $ECHO_C" >&6
19113 else
19114   cat >conftest.$ac_ext <<_ACEOF
19115 /* confdefs.h.  */
19116 _ACEOF
19117 cat confdefs.h >>conftest.$ac_ext
19118 cat >>conftest.$ac_ext <<_ACEOF
19119 /* end confdefs.h.  */
19120 $ac_includes_default
19121
19122 #include <$ac_header>
19123 _ACEOF
19124 rm -f conftest.$ac_objext
19125 if { (ac_try="$ac_compile"
19126 case "(($ac_try" in
19127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19128   *) ac_try_echo=$ac_try;;
19129 esac
19130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19131   (eval "$ac_compile") 2>conftest.er1
19132   ac_status=$?
19133   grep -v '^ *+' conftest.er1 >conftest.err
19134   rm -f conftest.er1
19135   cat conftest.err >&5
19136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19137   (exit $ac_status); } && {
19138          test -z "$ac_c_werror_flag" ||
19139          test ! -s conftest.err
19140        } && test -s conftest.$ac_objext; then
19141   eval "$as_ac_Header=yes"
19142 else
19143   echo "$as_me: failed program was:" >&5
19144 sed 's/^/| /' conftest.$ac_ext >&5
19145
19146         eval "$as_ac_Header=no"
19147 fi
19148
19149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19150 fi
19151 ac_res=`eval echo '${'$as_ac_Header'}'`
19152                { echo "$as_me:$LINENO: result: $ac_res" >&5
19153 echo "${ECHO_T}$ac_res" >&6; }
19154 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19155   cat >>confdefs.h <<_ACEOF
19156 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19157 _ACEOF
19158
19159 fi
19160
19161 done
19162
19163
19164
19165
19166 for ac_header in langinfo.h wchar.h
19167 do
19168 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19169 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19172   echo $ECHO_N "(cached) $ECHO_C" >&6
19173 else
19174   cat >conftest.$ac_ext <<_ACEOF
19175 /* confdefs.h.  */
19176 _ACEOF
19177 cat confdefs.h >>conftest.$ac_ext
19178 cat >>conftest.$ac_ext <<_ACEOF
19179 /* end confdefs.h.  */
19180 $ac_includes_default
19181
19182 #include <$ac_header>
19183 _ACEOF
19184 rm -f conftest.$ac_objext
19185 if { (ac_try="$ac_compile"
19186 case "(($ac_try" in
19187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19188   *) ac_try_echo=$ac_try;;
19189 esac
19190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19191   (eval "$ac_compile") 2>conftest.er1
19192   ac_status=$?
19193   grep -v '^ *+' conftest.er1 >conftest.err
19194   rm -f conftest.er1
19195   cat conftest.err >&5
19196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197   (exit $ac_status); } && {
19198          test -z "$ac_c_werror_flag" ||
19199          test ! -s conftest.err
19200        } && test -s conftest.$ac_objext; then
19201   eval "$as_ac_Header=yes"
19202 else
19203   echo "$as_me: failed program was:" >&5
19204 sed 's/^/| /' conftest.$ac_ext >&5
19205
19206         eval "$as_ac_Header=no"
19207 fi
19208
19209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19210 fi
19211 ac_res=`eval echo '${'$as_ac_Header'}'`
19212                { echo "$as_me:$LINENO: result: $ac_res" >&5
19213 echo "${ECHO_T}$ac_res" >&6; }
19214 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19215   cat >>confdefs.h <<_ACEOF
19216 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19217 _ACEOF
19218
19219 fi
19220
19221 done
19222
19223
19224 if test "$ac_cv_header_wchar_h" != "yes"; then
19225
19226 for ac_header in wcstr.h
19227 do
19228 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19229 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19232   echo $ECHO_N "(cached) $ECHO_C" >&6
19233 else
19234   cat >conftest.$ac_ext <<_ACEOF
19235 /* confdefs.h.  */
19236 _ACEOF
19237 cat confdefs.h >>conftest.$ac_ext
19238 cat >>conftest.$ac_ext <<_ACEOF
19239 /* end confdefs.h.  */
19240 $ac_includes_default
19241
19242 #include <$ac_header>
19243 _ACEOF
19244 rm -f conftest.$ac_objext
19245 if { (ac_try="$ac_compile"
19246 case "(($ac_try" in
19247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19248   *) ac_try_echo=$ac_try;;
19249 esac
19250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19251   (eval "$ac_compile") 2>conftest.er1
19252   ac_status=$?
19253   grep -v '^ *+' conftest.er1 >conftest.err
19254   rm -f conftest.er1
19255   cat conftest.err >&5
19256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19257   (exit $ac_status); } && {
19258          test -z "$ac_c_werror_flag" ||
19259          test ! -s conftest.err
19260        } && test -s conftest.$ac_objext; then
19261   eval "$as_ac_Header=yes"
19262 else
19263   echo "$as_me: failed program was:" >&5
19264 sed 's/^/| /' conftest.$ac_ext >&5
19265
19266         eval "$as_ac_Header=no"
19267 fi
19268
19269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19270 fi
19271 ac_res=`eval echo '${'$as_ac_Header'}'`
19272                { echo "$as_me:$LINENO: result: $ac_res" >&5
19273 echo "${ECHO_T}$ac_res" >&6; }
19274 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19275   cat >>confdefs.h <<_ACEOF
19276 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19277 _ACEOF
19278
19279 fi
19280
19281 done
19282
19283 fi
19284
19285 case "${host}" in
19286   *-pc-os2_emx | *-pc-os2-emx )
19287                   if test $ac_cv_header_langinfo_h = "yes" \
19288                 -a \(   "$wx_cv_gccversion" = "EMX2" \
19289                      -o "$wx_cv_gccversion" = "EMX3" \
19290                      -o "$wx_cv_gccversion" = "Innotek5" \); then
19291           LIBS="$LIBS -lintl"
19292       fi
19293   ;;
19294 esac
19295
19296 if test "$USE_UNIX" = 1 ; then
19297
19298 for ac_header in sys/select.h
19299 do
19300 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19301 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19304   echo $ECHO_N "(cached) $ECHO_C" >&6
19305 else
19306   cat >conftest.$ac_ext <<_ACEOF
19307 /* confdefs.h.  */
19308 _ACEOF
19309 cat confdefs.h >>conftest.$ac_ext
19310 cat >>conftest.$ac_ext <<_ACEOF
19311 /* end confdefs.h.  */
19312 $ac_includes_default
19313
19314 #include <$ac_header>
19315 _ACEOF
19316 rm -f conftest.$ac_objext
19317 if { (ac_try="$ac_compile"
19318 case "(($ac_try" in
19319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19320   *) ac_try_echo=$ac_try;;
19321 esac
19322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19323   (eval "$ac_compile") 2>conftest.er1
19324   ac_status=$?
19325   grep -v '^ *+' conftest.er1 >conftest.err
19326   rm -f conftest.er1
19327   cat conftest.err >&5
19328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19329   (exit $ac_status); } && {
19330          test -z "$ac_c_werror_flag" ||
19331          test ! -s conftest.err
19332        } && test -s conftest.$ac_objext; then
19333   eval "$as_ac_Header=yes"
19334 else
19335   echo "$as_me: failed program was:" >&5
19336 sed 's/^/| /' conftest.$ac_ext >&5
19337
19338         eval "$as_ac_Header=no"
19339 fi
19340
19341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19342 fi
19343 ac_res=`eval echo '${'$as_ac_Header'}'`
19344                { echo "$as_me:$LINENO: result: $ac_res" >&5
19345 echo "${ECHO_T}$ac_res" >&6; }
19346 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19347   cat >>confdefs.h <<_ACEOF
19348 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19349 _ACEOF
19350
19351 fi
19352
19353 done
19354
19355 fi
19356
19357
19358 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19359 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
19360 if test "${ac_cv_c_const+set}" = set; then
19361   echo $ECHO_N "(cached) $ECHO_C" >&6
19362 else
19363   cat >conftest.$ac_ext <<_ACEOF
19364 /* confdefs.h.  */
19365 _ACEOF
19366 cat confdefs.h >>conftest.$ac_ext
19367 cat >>conftest.$ac_ext <<_ACEOF
19368 /* end confdefs.h.  */
19369
19370 int
19371 main ()
19372 {
19373 /* FIXME: Include the comments suggested by Paul. */
19374 #ifndef __cplusplus
19375   /* Ultrix mips cc rejects this.  */
19376   typedef int charset[2];
19377   const charset cs;
19378   /* SunOS 4.1.1 cc rejects this.  */
19379   char const *const *pcpcc;
19380   char **ppc;
19381   /* NEC SVR4.0.2 mips cc rejects this.  */
19382   struct point {int x, y;};
19383   static struct point const zero = {0,0};
19384   /* AIX XL C 1.02.0.0 rejects this.
19385      It does not let you subtract one const X* pointer from another in
19386      an arm of an if-expression whose if-part is not a constant
19387      expression */
19388   const char *g = "string";
19389   pcpcc = &g + (g ? g-g : 0);
19390   /* HPUX 7.0 cc rejects these. */
19391   ++pcpcc;
19392   ppc = (char**) pcpcc;
19393   pcpcc = (char const *const *) ppc;
19394   { /* SCO 3.2v4 cc rejects this.  */
19395     char *t;
19396     char const *s = 0 ? (char *) 0 : (char const *) 0;
19397
19398     *t++ = 0;
19399     if (s) return 0;
19400   }
19401   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19402     int x[] = {25, 17};
19403     const int *foo = &x[0];
19404     ++foo;
19405   }
19406   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19407     typedef const int *iptr;
19408     iptr p = 0;
19409     ++p;
19410   }
19411   { /* AIX XL C 1.02.0.0 rejects this saying
19412        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19413     struct s { int j; const int *ap[3]; };
19414     struct s *b; b->j = 5;
19415   }
19416   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19417     const int foo = 10;
19418     if (!foo) return 0;
19419   }
19420   return !cs[0] && !zero.x;
19421 #endif
19422
19423   ;
19424   return 0;
19425 }
19426 _ACEOF
19427 rm -f conftest.$ac_objext
19428 if { (ac_try="$ac_compile"
19429 case "(($ac_try" in
19430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19431   *) ac_try_echo=$ac_try;;
19432 esac
19433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19434   (eval "$ac_compile") 2>conftest.er1
19435   ac_status=$?
19436   grep -v '^ *+' conftest.er1 >conftest.err
19437   rm -f conftest.er1
19438   cat conftest.err >&5
19439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440   (exit $ac_status); } && {
19441          test -z "$ac_c_werror_flag" ||
19442          test ! -s conftest.err
19443        } && test -s conftest.$ac_objext; then
19444   ac_cv_c_const=yes
19445 else
19446   echo "$as_me: failed program was:" >&5
19447 sed 's/^/| /' conftest.$ac_ext >&5
19448
19449         ac_cv_c_const=no
19450 fi
19451
19452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19453 fi
19454 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19455 echo "${ECHO_T}$ac_cv_c_const" >&6; }
19456 if test $ac_cv_c_const = no; then
19457
19458 cat >>confdefs.h <<\_ACEOF
19459 #define const
19460 _ACEOF
19461
19462 fi
19463
19464 { echo "$as_me:$LINENO: checking for inline" >&5
19465 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
19466 if test "${ac_cv_c_inline+set}" = set; then
19467   echo $ECHO_N "(cached) $ECHO_C" >&6
19468 else
19469   ac_cv_c_inline=no
19470 for ac_kw in inline __inline__ __inline; do
19471   cat >conftest.$ac_ext <<_ACEOF
19472 /* confdefs.h.  */
19473 _ACEOF
19474 cat confdefs.h >>conftest.$ac_ext
19475 cat >>conftest.$ac_ext <<_ACEOF
19476 /* end confdefs.h.  */
19477 #ifndef __cplusplus
19478 typedef int foo_t;
19479 static $ac_kw foo_t static_foo () {return 0; }
19480 $ac_kw foo_t foo () {return 0; }
19481 #endif
19482
19483 _ACEOF
19484 rm -f conftest.$ac_objext
19485 if { (ac_try="$ac_compile"
19486 case "(($ac_try" in
19487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19488   *) ac_try_echo=$ac_try;;
19489 esac
19490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19491   (eval "$ac_compile") 2>conftest.er1
19492   ac_status=$?
19493   grep -v '^ *+' conftest.er1 >conftest.err
19494   rm -f conftest.er1
19495   cat conftest.err >&5
19496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19497   (exit $ac_status); } && {
19498          test -z "$ac_c_werror_flag" ||
19499          test ! -s conftest.err
19500        } && test -s conftest.$ac_objext; then
19501   ac_cv_c_inline=$ac_kw
19502 else
19503   echo "$as_me: failed program was:" >&5
19504 sed 's/^/| /' conftest.$ac_ext >&5
19505
19506
19507 fi
19508
19509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19510   test "$ac_cv_c_inline" != no && break
19511 done
19512
19513 fi
19514 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19515 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
19516
19517
19518 case $ac_cv_c_inline in
19519   inline | yes) ;;
19520   *)
19521     case $ac_cv_c_inline in
19522       no) ac_val=;;
19523       *) ac_val=$ac_cv_c_inline;;
19524     esac
19525     cat >>confdefs.h <<_ACEOF
19526 #ifndef __cplusplus
19527 #define inline $ac_val
19528 #endif
19529 _ACEOF
19530     ;;
19531 esac
19532
19533
19534 { echo "$as_me:$LINENO: checking for short" >&5
19535 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
19536 if test "${ac_cv_type_short+set}" = set; then
19537   echo $ECHO_N "(cached) $ECHO_C" >&6
19538 else
19539   cat >conftest.$ac_ext <<_ACEOF
19540 /* confdefs.h.  */
19541 _ACEOF
19542 cat confdefs.h >>conftest.$ac_ext
19543 cat >>conftest.$ac_ext <<_ACEOF
19544 /* end confdefs.h.  */
19545 $ac_includes_default
19546 typedef short ac__type_new_;
19547 int
19548 main ()
19549 {
19550 if ((ac__type_new_ *) 0)
19551   return 0;
19552 if (sizeof (ac__type_new_))
19553   return 0;
19554   ;
19555   return 0;
19556 }
19557 _ACEOF
19558 rm -f conftest.$ac_objext
19559 if { (ac_try="$ac_compile"
19560 case "(($ac_try" in
19561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19562   *) ac_try_echo=$ac_try;;
19563 esac
19564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19565   (eval "$ac_compile") 2>conftest.er1
19566   ac_status=$?
19567   grep -v '^ *+' conftest.er1 >conftest.err
19568   rm -f conftest.er1
19569   cat conftest.err >&5
19570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571   (exit $ac_status); } && {
19572          test -z "$ac_c_werror_flag" ||
19573          test ! -s conftest.err
19574        } && test -s conftest.$ac_objext; then
19575   ac_cv_type_short=yes
19576 else
19577   echo "$as_me: failed program was:" >&5
19578 sed 's/^/| /' conftest.$ac_ext >&5
19579
19580         ac_cv_type_short=no
19581 fi
19582
19583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19584 fi
19585 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
19586 echo "${ECHO_T}$ac_cv_type_short" >&6; }
19587
19588 # The cast to long int works around a bug in the HP C Compiler
19589 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19590 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19591 # This bug is HP SR number 8606223364.
19592 { echo "$as_me:$LINENO: checking size of short" >&5
19593 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
19594 if test "${ac_cv_sizeof_short+set}" = set; then
19595   echo $ECHO_N "(cached) $ECHO_C" >&6
19596 else
19597   if test "$cross_compiling" = yes; then
19598   # Depending upon the size, compute the lo and hi bounds.
19599 cat >conftest.$ac_ext <<_ACEOF
19600 /* confdefs.h.  */
19601 _ACEOF
19602 cat confdefs.h >>conftest.$ac_ext
19603 cat >>conftest.$ac_ext <<_ACEOF
19604 /* end confdefs.h.  */
19605 $ac_includes_default
19606    typedef short ac__type_sizeof_;
19607 int
19608 main ()
19609 {
19610 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
19611 test_array [0] = 0
19612
19613   ;
19614   return 0;
19615 }
19616 _ACEOF
19617 rm -f conftest.$ac_objext
19618 if { (ac_try="$ac_compile"
19619 case "(($ac_try" in
19620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19621   *) ac_try_echo=$ac_try;;
19622 esac
19623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19624   (eval "$ac_compile") 2>conftest.er1
19625   ac_status=$?
19626   grep -v '^ *+' conftest.er1 >conftest.err
19627   rm -f conftest.er1
19628   cat conftest.err >&5
19629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19630   (exit $ac_status); } && {
19631          test -z "$ac_c_werror_flag" ||
19632          test ! -s conftest.err
19633        } && test -s conftest.$ac_objext; then
19634   ac_lo=0 ac_mid=0
19635   while :; do
19636     cat >conftest.$ac_ext <<_ACEOF
19637 /* confdefs.h.  */
19638 _ACEOF
19639 cat confdefs.h >>conftest.$ac_ext
19640 cat >>conftest.$ac_ext <<_ACEOF
19641 /* end confdefs.h.  */
19642 $ac_includes_default
19643    typedef short ac__type_sizeof_;
19644 int
19645 main ()
19646 {
19647 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19648 test_array [0] = 0
19649
19650   ;
19651   return 0;
19652 }
19653 _ACEOF
19654 rm -f conftest.$ac_objext
19655 if { (ac_try="$ac_compile"
19656 case "(($ac_try" in
19657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19658   *) ac_try_echo=$ac_try;;
19659 esac
19660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19661   (eval "$ac_compile") 2>conftest.er1
19662   ac_status=$?
19663   grep -v '^ *+' conftest.er1 >conftest.err
19664   rm -f conftest.er1
19665   cat conftest.err >&5
19666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667   (exit $ac_status); } && {
19668          test -z "$ac_c_werror_flag" ||
19669          test ! -s conftest.err
19670        } && test -s conftest.$ac_objext; then
19671   ac_hi=$ac_mid; break
19672 else
19673   echo "$as_me: failed program was:" >&5
19674 sed 's/^/| /' conftest.$ac_ext >&5
19675
19676         ac_lo=`expr $ac_mid + 1`
19677                         if test $ac_lo -le $ac_mid; then
19678                           ac_lo= ac_hi=
19679                           break
19680                         fi
19681                         ac_mid=`expr 2 '*' $ac_mid + 1`
19682 fi
19683
19684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19685   done
19686 else
19687   echo "$as_me: failed program was:" >&5
19688 sed 's/^/| /' conftest.$ac_ext >&5
19689
19690         cat >conftest.$ac_ext <<_ACEOF
19691 /* confdefs.h.  */
19692 _ACEOF
19693 cat confdefs.h >>conftest.$ac_ext
19694 cat >>conftest.$ac_ext <<_ACEOF
19695 /* end confdefs.h.  */
19696 $ac_includes_default
19697    typedef short ac__type_sizeof_;
19698 int
19699 main ()
19700 {
19701 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
19702 test_array [0] = 0
19703
19704   ;
19705   return 0;
19706 }
19707 _ACEOF
19708 rm -f conftest.$ac_objext
19709 if { (ac_try="$ac_compile"
19710 case "(($ac_try" in
19711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19712   *) ac_try_echo=$ac_try;;
19713 esac
19714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19715   (eval "$ac_compile") 2>conftest.er1
19716   ac_status=$?
19717   grep -v '^ *+' conftest.er1 >conftest.err
19718   rm -f conftest.er1
19719   cat conftest.err >&5
19720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19721   (exit $ac_status); } && {
19722          test -z "$ac_c_werror_flag" ||
19723          test ! -s conftest.err
19724        } && test -s conftest.$ac_objext; then
19725   ac_hi=-1 ac_mid=-1
19726   while :; do
19727     cat >conftest.$ac_ext <<_ACEOF
19728 /* confdefs.h.  */
19729 _ACEOF
19730 cat confdefs.h >>conftest.$ac_ext
19731 cat >>conftest.$ac_ext <<_ACEOF
19732 /* end confdefs.h.  */
19733 $ac_includes_default
19734    typedef short ac__type_sizeof_;
19735 int
19736 main ()
19737 {
19738 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
19739 test_array [0] = 0
19740
19741   ;
19742   return 0;
19743 }
19744 _ACEOF
19745 rm -f conftest.$ac_objext
19746 if { (ac_try="$ac_compile"
19747 case "(($ac_try" in
19748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19749   *) ac_try_echo=$ac_try;;
19750 esac
19751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19752   (eval "$ac_compile") 2>conftest.er1
19753   ac_status=$?
19754   grep -v '^ *+' conftest.er1 >conftest.err
19755   rm -f conftest.er1
19756   cat conftest.err >&5
19757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758   (exit $ac_status); } && {
19759          test -z "$ac_c_werror_flag" ||
19760          test ! -s conftest.err
19761        } && test -s conftest.$ac_objext; then
19762   ac_lo=$ac_mid; break
19763 else
19764   echo "$as_me: failed program was:" >&5
19765 sed 's/^/| /' conftest.$ac_ext >&5
19766
19767         ac_hi=`expr '(' $ac_mid ')' - 1`
19768                         if test $ac_mid -le $ac_hi; then
19769                           ac_lo= ac_hi=
19770                           break
19771                         fi
19772                         ac_mid=`expr 2 '*' $ac_mid`
19773 fi
19774
19775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19776   done
19777 else
19778   echo "$as_me: failed program was:" >&5
19779 sed 's/^/| /' conftest.$ac_ext >&5
19780
19781         ac_lo= ac_hi=
19782 fi
19783
19784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19785 fi
19786
19787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19788 # Binary search between lo and hi bounds.
19789 while test "x$ac_lo" != "x$ac_hi"; do
19790   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19791   cat >conftest.$ac_ext <<_ACEOF
19792 /* confdefs.h.  */
19793 _ACEOF
19794 cat confdefs.h >>conftest.$ac_ext
19795 cat >>conftest.$ac_ext <<_ACEOF
19796 /* end confdefs.h.  */
19797 $ac_includes_default
19798    typedef short ac__type_sizeof_;
19799 int
19800 main ()
19801 {
19802 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19803 test_array [0] = 0
19804
19805   ;
19806   return 0;
19807 }
19808 _ACEOF
19809 rm -f conftest.$ac_objext
19810 if { (ac_try="$ac_compile"
19811 case "(($ac_try" in
19812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19813   *) ac_try_echo=$ac_try;;
19814 esac
19815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19816   (eval "$ac_compile") 2>conftest.er1
19817   ac_status=$?
19818   grep -v '^ *+' conftest.er1 >conftest.err
19819   rm -f conftest.er1
19820   cat conftest.err >&5
19821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19822   (exit $ac_status); } && {
19823          test -z "$ac_c_werror_flag" ||
19824          test ! -s conftest.err
19825        } && test -s conftest.$ac_objext; then
19826   ac_hi=$ac_mid
19827 else
19828   echo "$as_me: failed program was:" >&5
19829 sed 's/^/| /' conftest.$ac_ext >&5
19830
19831         ac_lo=`expr '(' $ac_mid ')' + 1`
19832 fi
19833
19834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19835 done
19836 case $ac_lo in
19837 ?*) ac_cv_sizeof_short=$ac_lo;;
19838 '') if test "$ac_cv_type_short" = yes; then
19839      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
19840 See \`config.log' for more details." >&5
19841 echo "$as_me: error: cannot compute sizeof (short)
19842 See \`config.log' for more details." >&2;}
19843    { (exit 77); exit 77; }; }
19844    else
19845      ac_cv_sizeof_short=0
19846    fi ;;
19847 esac
19848 else
19849   cat >conftest.$ac_ext <<_ACEOF
19850 /* confdefs.h.  */
19851 _ACEOF
19852 cat confdefs.h >>conftest.$ac_ext
19853 cat >>conftest.$ac_ext <<_ACEOF
19854 /* end confdefs.h.  */
19855 $ac_includes_default
19856    typedef short ac__type_sizeof_;
19857 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
19858 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
19859 #include <stdio.h>
19860 #include <stdlib.h>
19861 int
19862 main ()
19863 {
19864
19865   FILE *f = fopen ("conftest.val", "w");
19866   if (! f)
19867     return 1;
19868   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
19869     {
19870       long int i = longval ();
19871       if (i != ((long int) (sizeof (ac__type_sizeof_))))
19872         return 1;
19873       fprintf (f, "%ld\n", i);
19874     }
19875   else
19876     {
19877       unsigned long int i = ulongval ();
19878       if (i != ((long int) (sizeof (ac__type_sizeof_))))
19879         return 1;
19880       fprintf (f, "%lu\n", i);
19881     }
19882   return ferror (f) || fclose (f) != 0;
19883
19884   ;
19885   return 0;
19886 }
19887 _ACEOF
19888 rm -f conftest$ac_exeext
19889 if { (ac_try="$ac_link"
19890 case "(($ac_try" in
19891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19892   *) ac_try_echo=$ac_try;;
19893 esac
19894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19895   (eval "$ac_link") 2>&5
19896   ac_status=$?
19897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19898   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19899   { (case "(($ac_try" in
19900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19901   *) ac_try_echo=$ac_try;;
19902 esac
19903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19904   (eval "$ac_try") 2>&5
19905   ac_status=$?
19906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19907   (exit $ac_status); }; }; then
19908   ac_cv_sizeof_short=`cat conftest.val`
19909 else
19910   echo "$as_me: program exited with status $ac_status" >&5
19911 echo "$as_me: failed program was:" >&5
19912 sed 's/^/| /' conftest.$ac_ext >&5
19913
19914 ( exit $ac_status )
19915 if test "$ac_cv_type_short" = yes; then
19916      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
19917 See \`config.log' for more details." >&5
19918 echo "$as_me: error: cannot compute sizeof (short)
19919 See \`config.log' for more details." >&2;}
19920    { (exit 77); exit 77; }; }
19921    else
19922      ac_cv_sizeof_short=0
19923    fi
19924 fi
19925 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19926 fi
19927 rm -f conftest.val
19928 fi
19929 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
19930 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
19931
19932
19933
19934 cat >>confdefs.h <<_ACEOF
19935 #define SIZEOF_SHORT $ac_cv_sizeof_short
19936 _ACEOF
19937
19938
19939 { echo "$as_me:$LINENO: checking for void *" >&5
19940 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
19941 if test "${ac_cv_type_void_p+set}" = set; then
19942   echo $ECHO_N "(cached) $ECHO_C" >&6
19943 else
19944   cat >conftest.$ac_ext <<_ACEOF
19945 /* confdefs.h.  */
19946 _ACEOF
19947 cat confdefs.h >>conftest.$ac_ext
19948 cat >>conftest.$ac_ext <<_ACEOF
19949 /* end confdefs.h.  */
19950 $ac_includes_default
19951 typedef void * ac__type_new_;
19952 int
19953 main ()
19954 {
19955 if ((ac__type_new_ *) 0)
19956   return 0;
19957 if (sizeof (ac__type_new_))
19958   return 0;
19959   ;
19960   return 0;
19961 }
19962 _ACEOF
19963 rm -f conftest.$ac_objext
19964 if { (ac_try="$ac_compile"
19965 case "(($ac_try" in
19966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19967   *) ac_try_echo=$ac_try;;
19968 esac
19969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19970   (eval "$ac_compile") 2>conftest.er1
19971   ac_status=$?
19972   grep -v '^ *+' conftest.er1 >conftest.err
19973   rm -f conftest.er1
19974   cat conftest.err >&5
19975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19976   (exit $ac_status); } && {
19977          test -z "$ac_c_werror_flag" ||
19978          test ! -s conftest.err
19979        } && test -s conftest.$ac_objext; then
19980   ac_cv_type_void_p=yes
19981 else
19982   echo "$as_me: failed program was:" >&5
19983 sed 's/^/| /' conftest.$ac_ext >&5
19984
19985         ac_cv_type_void_p=no
19986 fi
19987
19988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19989 fi
19990 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
19991 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
19992
19993 # The cast to long int works around a bug in the HP C Compiler
19994 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19995 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19996 # This bug is HP SR number 8606223364.
19997 { echo "$as_me:$LINENO: checking size of void *" >&5
19998 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
19999 if test "${ac_cv_sizeof_void_p+set}" = set; then
20000   echo $ECHO_N "(cached) $ECHO_C" >&6
20001 else
20002   if test "$cross_compiling" = yes; then
20003   # Depending upon the size, compute the lo and hi bounds.
20004 cat >conftest.$ac_ext <<_ACEOF
20005 /* confdefs.h.  */
20006 _ACEOF
20007 cat confdefs.h >>conftest.$ac_ext
20008 cat >>conftest.$ac_ext <<_ACEOF
20009 /* end confdefs.h.  */
20010 $ac_includes_default
20011    typedef void * ac__type_sizeof_;
20012 int
20013 main ()
20014 {
20015 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20016 test_array [0] = 0
20017
20018   ;
20019   return 0;
20020 }
20021 _ACEOF
20022 rm -f conftest.$ac_objext
20023 if { (ac_try="$ac_compile"
20024 case "(($ac_try" in
20025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20026   *) ac_try_echo=$ac_try;;
20027 esac
20028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20029   (eval "$ac_compile") 2>conftest.er1
20030   ac_status=$?
20031   grep -v '^ *+' conftest.er1 >conftest.err
20032   rm -f conftest.er1
20033   cat conftest.err >&5
20034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035   (exit $ac_status); } && {
20036          test -z "$ac_c_werror_flag" ||
20037          test ! -s conftest.err
20038        } && test -s conftest.$ac_objext; then
20039   ac_lo=0 ac_mid=0
20040   while :; do
20041     cat >conftest.$ac_ext <<_ACEOF
20042 /* confdefs.h.  */
20043 _ACEOF
20044 cat confdefs.h >>conftest.$ac_ext
20045 cat >>conftest.$ac_ext <<_ACEOF
20046 /* end confdefs.h.  */
20047 $ac_includes_default
20048    typedef void * ac__type_sizeof_;
20049 int
20050 main ()
20051 {
20052 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20053 test_array [0] = 0
20054
20055   ;
20056   return 0;
20057 }
20058 _ACEOF
20059 rm -f conftest.$ac_objext
20060 if { (ac_try="$ac_compile"
20061 case "(($ac_try" in
20062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20063   *) ac_try_echo=$ac_try;;
20064 esac
20065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20066   (eval "$ac_compile") 2>conftest.er1
20067   ac_status=$?
20068   grep -v '^ *+' conftest.er1 >conftest.err
20069   rm -f conftest.er1
20070   cat conftest.err >&5
20071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20072   (exit $ac_status); } && {
20073          test -z "$ac_c_werror_flag" ||
20074          test ! -s conftest.err
20075        } && test -s conftest.$ac_objext; then
20076   ac_hi=$ac_mid; break
20077 else
20078   echo "$as_me: failed program was:" >&5
20079 sed 's/^/| /' conftest.$ac_ext >&5
20080
20081         ac_lo=`expr $ac_mid + 1`
20082                         if test $ac_lo -le $ac_mid; then
20083                           ac_lo= ac_hi=
20084                           break
20085                         fi
20086                         ac_mid=`expr 2 '*' $ac_mid + 1`
20087 fi
20088
20089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20090   done
20091 else
20092   echo "$as_me: failed program was:" >&5
20093 sed 's/^/| /' conftest.$ac_ext >&5
20094
20095         cat >conftest.$ac_ext <<_ACEOF
20096 /* confdefs.h.  */
20097 _ACEOF
20098 cat confdefs.h >>conftest.$ac_ext
20099 cat >>conftest.$ac_ext <<_ACEOF
20100 /* end confdefs.h.  */
20101 $ac_includes_default
20102    typedef void * ac__type_sizeof_;
20103 int
20104 main ()
20105 {
20106 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20107 test_array [0] = 0
20108
20109   ;
20110   return 0;
20111 }
20112 _ACEOF
20113 rm -f conftest.$ac_objext
20114 if { (ac_try="$ac_compile"
20115 case "(($ac_try" in
20116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20117   *) ac_try_echo=$ac_try;;
20118 esac
20119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20120   (eval "$ac_compile") 2>conftest.er1
20121   ac_status=$?
20122   grep -v '^ *+' conftest.er1 >conftest.err
20123   rm -f conftest.er1
20124   cat conftest.err >&5
20125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20126   (exit $ac_status); } && {
20127          test -z "$ac_c_werror_flag" ||
20128          test ! -s conftest.err
20129        } && test -s conftest.$ac_objext; then
20130   ac_hi=-1 ac_mid=-1
20131   while :; do
20132     cat >conftest.$ac_ext <<_ACEOF
20133 /* confdefs.h.  */
20134 _ACEOF
20135 cat confdefs.h >>conftest.$ac_ext
20136 cat >>conftest.$ac_ext <<_ACEOF
20137 /* end confdefs.h.  */
20138 $ac_includes_default
20139    typedef void * ac__type_sizeof_;
20140 int
20141 main ()
20142 {
20143 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20144 test_array [0] = 0
20145
20146   ;
20147   return 0;
20148 }
20149 _ACEOF
20150 rm -f conftest.$ac_objext
20151 if { (ac_try="$ac_compile"
20152 case "(($ac_try" in
20153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20154   *) ac_try_echo=$ac_try;;
20155 esac
20156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20157   (eval "$ac_compile") 2>conftest.er1
20158   ac_status=$?
20159   grep -v '^ *+' conftest.er1 >conftest.err
20160   rm -f conftest.er1
20161   cat conftest.err >&5
20162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163   (exit $ac_status); } && {
20164          test -z "$ac_c_werror_flag" ||
20165          test ! -s conftest.err
20166        } && test -s conftest.$ac_objext; then
20167   ac_lo=$ac_mid; break
20168 else
20169   echo "$as_me: failed program was:" >&5
20170 sed 's/^/| /' conftest.$ac_ext >&5
20171
20172         ac_hi=`expr '(' $ac_mid ')' - 1`
20173                         if test $ac_mid -le $ac_hi; then
20174                           ac_lo= ac_hi=
20175                           break
20176                         fi
20177                         ac_mid=`expr 2 '*' $ac_mid`
20178 fi
20179
20180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20181   done
20182 else
20183   echo "$as_me: failed program was:" >&5
20184 sed 's/^/| /' conftest.$ac_ext >&5
20185
20186         ac_lo= ac_hi=
20187 fi
20188
20189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20190 fi
20191
20192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20193 # Binary search between lo and hi bounds.
20194 while test "x$ac_lo" != "x$ac_hi"; do
20195   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20196   cat >conftest.$ac_ext <<_ACEOF
20197 /* confdefs.h.  */
20198 _ACEOF
20199 cat confdefs.h >>conftest.$ac_ext
20200 cat >>conftest.$ac_ext <<_ACEOF
20201 /* end confdefs.h.  */
20202 $ac_includes_default
20203    typedef void * ac__type_sizeof_;
20204 int
20205 main ()
20206 {
20207 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20208 test_array [0] = 0
20209
20210   ;
20211   return 0;
20212 }
20213 _ACEOF
20214 rm -f conftest.$ac_objext
20215 if { (ac_try="$ac_compile"
20216 case "(($ac_try" in
20217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20218   *) ac_try_echo=$ac_try;;
20219 esac
20220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20221   (eval "$ac_compile") 2>conftest.er1
20222   ac_status=$?
20223   grep -v '^ *+' conftest.er1 >conftest.err
20224   rm -f conftest.er1
20225   cat conftest.err >&5
20226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227   (exit $ac_status); } && {
20228          test -z "$ac_c_werror_flag" ||
20229          test ! -s conftest.err
20230        } && test -s conftest.$ac_objext; then
20231   ac_hi=$ac_mid
20232 else
20233   echo "$as_me: failed program was:" >&5
20234 sed 's/^/| /' conftest.$ac_ext >&5
20235
20236         ac_lo=`expr '(' $ac_mid ')' + 1`
20237 fi
20238
20239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20240 done
20241 case $ac_lo in
20242 ?*) ac_cv_sizeof_void_p=$ac_lo;;
20243 '') if test "$ac_cv_type_void_p" = yes; then
20244      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
20245 See \`config.log' for more details." >&5
20246 echo "$as_me: error: cannot compute sizeof (void *)
20247 See \`config.log' for more details." >&2;}
20248    { (exit 77); exit 77; }; }
20249    else
20250      ac_cv_sizeof_void_p=0
20251    fi ;;
20252 esac
20253 else
20254   cat >conftest.$ac_ext <<_ACEOF
20255 /* confdefs.h.  */
20256 _ACEOF
20257 cat confdefs.h >>conftest.$ac_ext
20258 cat >>conftest.$ac_ext <<_ACEOF
20259 /* end confdefs.h.  */
20260 $ac_includes_default
20261    typedef void * ac__type_sizeof_;
20262 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20263 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20264 #include <stdio.h>
20265 #include <stdlib.h>
20266 int
20267 main ()
20268 {
20269
20270   FILE *f = fopen ("conftest.val", "w");
20271   if (! f)
20272     return 1;
20273   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20274     {
20275       long int i = longval ();
20276       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20277         return 1;
20278       fprintf (f, "%ld\n", i);
20279     }
20280   else
20281     {
20282       unsigned long int i = ulongval ();
20283       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20284         return 1;
20285       fprintf (f, "%lu\n", i);
20286     }
20287   return ferror (f) || fclose (f) != 0;
20288
20289   ;
20290   return 0;
20291 }
20292 _ACEOF
20293 rm -f conftest$ac_exeext
20294 if { (ac_try="$ac_link"
20295 case "(($ac_try" in
20296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20297   *) ac_try_echo=$ac_try;;
20298 esac
20299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20300   (eval "$ac_link") 2>&5
20301   ac_status=$?
20302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20303   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20304   { (case "(($ac_try" in
20305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20306   *) ac_try_echo=$ac_try;;
20307 esac
20308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20309   (eval "$ac_try") 2>&5
20310   ac_status=$?
20311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312   (exit $ac_status); }; }; then
20313   ac_cv_sizeof_void_p=`cat conftest.val`
20314 else
20315   echo "$as_me: program exited with status $ac_status" >&5
20316 echo "$as_me: failed program was:" >&5
20317 sed 's/^/| /' conftest.$ac_ext >&5
20318
20319 ( exit $ac_status )
20320 if test "$ac_cv_type_void_p" = yes; then
20321      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
20322 See \`config.log' for more details." >&5
20323 echo "$as_me: error: cannot compute sizeof (void *)
20324 See \`config.log' for more details." >&2;}
20325    { (exit 77); exit 77; }; }
20326    else
20327      ac_cv_sizeof_void_p=0
20328    fi
20329 fi
20330 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20331 fi
20332 rm -f conftest.val
20333 fi
20334 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
20335 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
20336
20337
20338
20339 cat >>confdefs.h <<_ACEOF
20340 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
20341 _ACEOF
20342
20343
20344 { echo "$as_me:$LINENO: checking for int" >&5
20345 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
20346 if test "${ac_cv_type_int+set}" = set; then
20347   echo $ECHO_N "(cached) $ECHO_C" >&6
20348 else
20349   cat >conftest.$ac_ext <<_ACEOF
20350 /* confdefs.h.  */
20351 _ACEOF
20352 cat confdefs.h >>conftest.$ac_ext
20353 cat >>conftest.$ac_ext <<_ACEOF
20354 /* end confdefs.h.  */
20355 $ac_includes_default
20356 typedef int ac__type_new_;
20357 int
20358 main ()
20359 {
20360 if ((ac__type_new_ *) 0)
20361   return 0;
20362 if (sizeof (ac__type_new_))
20363   return 0;
20364   ;
20365   return 0;
20366 }
20367 _ACEOF
20368 rm -f conftest.$ac_objext
20369 if { (ac_try="$ac_compile"
20370 case "(($ac_try" in
20371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20372   *) ac_try_echo=$ac_try;;
20373 esac
20374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20375   (eval "$ac_compile") 2>conftest.er1
20376   ac_status=$?
20377   grep -v '^ *+' conftest.er1 >conftest.err
20378   rm -f conftest.er1
20379   cat conftest.err >&5
20380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381   (exit $ac_status); } && {
20382          test -z "$ac_c_werror_flag" ||
20383          test ! -s conftest.err
20384        } && test -s conftest.$ac_objext; then
20385   ac_cv_type_int=yes
20386 else
20387   echo "$as_me: failed program was:" >&5
20388 sed 's/^/| /' conftest.$ac_ext >&5
20389
20390         ac_cv_type_int=no
20391 fi
20392
20393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20394 fi
20395 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
20396 echo "${ECHO_T}$ac_cv_type_int" >&6; }
20397
20398 # The cast to long int works around a bug in the HP C Compiler
20399 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20400 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20401 # This bug is HP SR number 8606223364.
20402 { echo "$as_me:$LINENO: checking size of int" >&5
20403 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
20404 if test "${ac_cv_sizeof_int+set}" = set; then
20405   echo $ECHO_N "(cached) $ECHO_C" >&6
20406 else
20407   if test "$cross_compiling" = yes; then
20408   # Depending upon the size, compute the lo and hi bounds.
20409 cat >conftest.$ac_ext <<_ACEOF
20410 /* confdefs.h.  */
20411 _ACEOF
20412 cat confdefs.h >>conftest.$ac_ext
20413 cat >>conftest.$ac_ext <<_ACEOF
20414 /* end confdefs.h.  */
20415 $ac_includes_default
20416    typedef int ac__type_sizeof_;
20417 int
20418 main ()
20419 {
20420 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20421 test_array [0] = 0
20422
20423   ;
20424   return 0;
20425 }
20426 _ACEOF
20427 rm -f conftest.$ac_objext
20428 if { (ac_try="$ac_compile"
20429 case "(($ac_try" in
20430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20431   *) ac_try_echo=$ac_try;;
20432 esac
20433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20434   (eval "$ac_compile") 2>conftest.er1
20435   ac_status=$?
20436   grep -v '^ *+' conftest.er1 >conftest.err
20437   rm -f conftest.er1
20438   cat conftest.err >&5
20439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440   (exit $ac_status); } && {
20441          test -z "$ac_c_werror_flag" ||
20442          test ! -s conftest.err
20443        } && test -s conftest.$ac_objext; then
20444   ac_lo=0 ac_mid=0
20445   while :; do
20446     cat >conftest.$ac_ext <<_ACEOF
20447 /* confdefs.h.  */
20448 _ACEOF
20449 cat confdefs.h >>conftest.$ac_ext
20450 cat >>conftest.$ac_ext <<_ACEOF
20451 /* end confdefs.h.  */
20452 $ac_includes_default
20453    typedef int ac__type_sizeof_;
20454 int
20455 main ()
20456 {
20457 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20458 test_array [0] = 0
20459
20460   ;
20461   return 0;
20462 }
20463 _ACEOF
20464 rm -f conftest.$ac_objext
20465 if { (ac_try="$ac_compile"
20466 case "(($ac_try" in
20467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20468   *) ac_try_echo=$ac_try;;
20469 esac
20470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20471   (eval "$ac_compile") 2>conftest.er1
20472   ac_status=$?
20473   grep -v '^ *+' conftest.er1 >conftest.err
20474   rm -f conftest.er1
20475   cat conftest.err >&5
20476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477   (exit $ac_status); } && {
20478          test -z "$ac_c_werror_flag" ||
20479          test ! -s conftest.err
20480        } && test -s conftest.$ac_objext; then
20481   ac_hi=$ac_mid; break
20482 else
20483   echo "$as_me: failed program was:" >&5
20484 sed 's/^/| /' conftest.$ac_ext >&5
20485
20486         ac_lo=`expr $ac_mid + 1`
20487                         if test $ac_lo -le $ac_mid; then
20488                           ac_lo= ac_hi=
20489                           break
20490                         fi
20491                         ac_mid=`expr 2 '*' $ac_mid + 1`
20492 fi
20493
20494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20495   done
20496 else
20497   echo "$as_me: failed program was:" >&5
20498 sed 's/^/| /' conftest.$ac_ext >&5
20499
20500         cat >conftest.$ac_ext <<_ACEOF
20501 /* confdefs.h.  */
20502 _ACEOF
20503 cat confdefs.h >>conftest.$ac_ext
20504 cat >>conftest.$ac_ext <<_ACEOF
20505 /* end confdefs.h.  */
20506 $ac_includes_default
20507    typedef int ac__type_sizeof_;
20508 int
20509 main ()
20510 {
20511 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20512 test_array [0] = 0
20513
20514   ;
20515   return 0;
20516 }
20517 _ACEOF
20518 rm -f conftest.$ac_objext
20519 if { (ac_try="$ac_compile"
20520 case "(($ac_try" in
20521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20522   *) ac_try_echo=$ac_try;;
20523 esac
20524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20525   (eval "$ac_compile") 2>conftest.er1
20526   ac_status=$?
20527   grep -v '^ *+' conftest.er1 >conftest.err
20528   rm -f conftest.er1
20529   cat conftest.err >&5
20530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20531   (exit $ac_status); } && {
20532          test -z "$ac_c_werror_flag" ||
20533          test ! -s conftest.err
20534        } && test -s conftest.$ac_objext; then
20535   ac_hi=-1 ac_mid=-1
20536   while :; do
20537     cat >conftest.$ac_ext <<_ACEOF
20538 /* confdefs.h.  */
20539 _ACEOF
20540 cat confdefs.h >>conftest.$ac_ext
20541 cat >>conftest.$ac_ext <<_ACEOF
20542 /* end confdefs.h.  */
20543 $ac_includes_default
20544    typedef int ac__type_sizeof_;
20545 int
20546 main ()
20547 {
20548 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20549 test_array [0] = 0
20550
20551   ;
20552   return 0;
20553 }
20554 _ACEOF
20555 rm -f conftest.$ac_objext
20556 if { (ac_try="$ac_compile"
20557 case "(($ac_try" in
20558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20559   *) ac_try_echo=$ac_try;;
20560 esac
20561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20562   (eval "$ac_compile") 2>conftest.er1
20563   ac_status=$?
20564   grep -v '^ *+' conftest.er1 >conftest.err
20565   rm -f conftest.er1
20566   cat conftest.err >&5
20567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20568   (exit $ac_status); } && {
20569          test -z "$ac_c_werror_flag" ||
20570          test ! -s conftest.err
20571        } && test -s conftest.$ac_objext; then
20572   ac_lo=$ac_mid; break
20573 else
20574   echo "$as_me: failed program was:" >&5
20575 sed 's/^/| /' conftest.$ac_ext >&5
20576
20577         ac_hi=`expr '(' $ac_mid ')' - 1`
20578                         if test $ac_mid -le $ac_hi; then
20579                           ac_lo= ac_hi=
20580                           break
20581                         fi
20582                         ac_mid=`expr 2 '*' $ac_mid`
20583 fi
20584
20585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20586   done
20587 else
20588   echo "$as_me: failed program was:" >&5
20589 sed 's/^/| /' conftest.$ac_ext >&5
20590
20591         ac_lo= ac_hi=
20592 fi
20593
20594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20595 fi
20596
20597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20598 # Binary search between lo and hi bounds.
20599 while test "x$ac_lo" != "x$ac_hi"; do
20600   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20601   cat >conftest.$ac_ext <<_ACEOF
20602 /* confdefs.h.  */
20603 _ACEOF
20604 cat confdefs.h >>conftest.$ac_ext
20605 cat >>conftest.$ac_ext <<_ACEOF
20606 /* end confdefs.h.  */
20607 $ac_includes_default
20608    typedef int ac__type_sizeof_;
20609 int
20610 main ()
20611 {
20612 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20613 test_array [0] = 0
20614
20615   ;
20616   return 0;
20617 }
20618 _ACEOF
20619 rm -f conftest.$ac_objext
20620 if { (ac_try="$ac_compile"
20621 case "(($ac_try" in
20622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20623   *) ac_try_echo=$ac_try;;
20624 esac
20625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20626   (eval "$ac_compile") 2>conftest.er1
20627   ac_status=$?
20628   grep -v '^ *+' conftest.er1 >conftest.err
20629   rm -f conftest.er1
20630   cat conftest.err >&5
20631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632   (exit $ac_status); } && {
20633          test -z "$ac_c_werror_flag" ||
20634          test ! -s conftest.err
20635        } && test -s conftest.$ac_objext; then
20636   ac_hi=$ac_mid
20637 else
20638   echo "$as_me: failed program was:" >&5
20639 sed 's/^/| /' conftest.$ac_ext >&5
20640
20641         ac_lo=`expr '(' $ac_mid ')' + 1`
20642 fi
20643
20644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20645 done
20646 case $ac_lo in
20647 ?*) ac_cv_sizeof_int=$ac_lo;;
20648 '') if test "$ac_cv_type_int" = yes; then
20649      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
20650 See \`config.log' for more details." >&5
20651 echo "$as_me: error: cannot compute sizeof (int)
20652 See \`config.log' for more details." >&2;}
20653    { (exit 77); exit 77; }; }
20654    else
20655      ac_cv_sizeof_int=0
20656    fi ;;
20657 esac
20658 else
20659   cat >conftest.$ac_ext <<_ACEOF
20660 /* confdefs.h.  */
20661 _ACEOF
20662 cat confdefs.h >>conftest.$ac_ext
20663 cat >>conftest.$ac_ext <<_ACEOF
20664 /* end confdefs.h.  */
20665 $ac_includes_default
20666    typedef int ac__type_sizeof_;
20667 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20668 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20669 #include <stdio.h>
20670 #include <stdlib.h>
20671 int
20672 main ()
20673 {
20674
20675   FILE *f = fopen ("conftest.val", "w");
20676   if (! f)
20677     return 1;
20678   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20679     {
20680       long int i = longval ();
20681       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20682         return 1;
20683       fprintf (f, "%ld\n", i);
20684     }
20685   else
20686     {
20687       unsigned long int i = ulongval ();
20688       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20689         return 1;
20690       fprintf (f, "%lu\n", i);
20691     }
20692   return ferror (f) || fclose (f) != 0;
20693
20694   ;
20695   return 0;
20696 }
20697 _ACEOF
20698 rm -f conftest$ac_exeext
20699 if { (ac_try="$ac_link"
20700 case "(($ac_try" in
20701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20702   *) ac_try_echo=$ac_try;;
20703 esac
20704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20705   (eval "$ac_link") 2>&5
20706   ac_status=$?
20707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20708   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20709   { (case "(($ac_try" in
20710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20711   *) ac_try_echo=$ac_try;;
20712 esac
20713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20714   (eval "$ac_try") 2>&5
20715   ac_status=$?
20716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20717   (exit $ac_status); }; }; then
20718   ac_cv_sizeof_int=`cat conftest.val`
20719 else
20720   echo "$as_me: program exited with status $ac_status" >&5
20721 echo "$as_me: failed program was:" >&5
20722 sed 's/^/| /' conftest.$ac_ext >&5
20723
20724 ( exit $ac_status )
20725 if test "$ac_cv_type_int" = yes; then
20726      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
20727 See \`config.log' for more details." >&5
20728 echo "$as_me: error: cannot compute sizeof (int)
20729 See \`config.log' for more details." >&2;}
20730    { (exit 77); exit 77; }; }
20731    else
20732      ac_cv_sizeof_int=0
20733    fi
20734 fi
20735 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20736 fi
20737 rm -f conftest.val
20738 fi
20739 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
20740 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
20741
20742
20743
20744 cat >>confdefs.h <<_ACEOF
20745 #define SIZEOF_INT $ac_cv_sizeof_int
20746 _ACEOF
20747
20748
20749 { echo "$as_me:$LINENO: checking for long" >&5
20750 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
20751 if test "${ac_cv_type_long+set}" = set; then
20752   echo $ECHO_N "(cached) $ECHO_C" >&6
20753 else
20754   cat >conftest.$ac_ext <<_ACEOF
20755 /* confdefs.h.  */
20756 _ACEOF
20757 cat confdefs.h >>conftest.$ac_ext
20758 cat >>conftest.$ac_ext <<_ACEOF
20759 /* end confdefs.h.  */
20760 $ac_includes_default
20761 typedef long ac__type_new_;
20762 int
20763 main ()
20764 {
20765 if ((ac__type_new_ *) 0)
20766   return 0;
20767 if (sizeof (ac__type_new_))
20768   return 0;
20769   ;
20770   return 0;
20771 }
20772 _ACEOF
20773 rm -f conftest.$ac_objext
20774 if { (ac_try="$ac_compile"
20775 case "(($ac_try" in
20776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20777   *) ac_try_echo=$ac_try;;
20778 esac
20779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20780   (eval "$ac_compile") 2>conftest.er1
20781   ac_status=$?
20782   grep -v '^ *+' conftest.er1 >conftest.err
20783   rm -f conftest.er1
20784   cat conftest.err >&5
20785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20786   (exit $ac_status); } && {
20787          test -z "$ac_c_werror_flag" ||
20788          test ! -s conftest.err
20789        } && test -s conftest.$ac_objext; then
20790   ac_cv_type_long=yes
20791 else
20792   echo "$as_me: failed program was:" >&5
20793 sed 's/^/| /' conftest.$ac_ext >&5
20794
20795         ac_cv_type_long=no
20796 fi
20797
20798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20799 fi
20800 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
20801 echo "${ECHO_T}$ac_cv_type_long" >&6; }
20802
20803 # The cast to long int works around a bug in the HP C Compiler
20804 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20805 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20806 # This bug is HP SR number 8606223364.
20807 { echo "$as_me:$LINENO: checking size of long" >&5
20808 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
20809 if test "${ac_cv_sizeof_long+set}" = set; then
20810   echo $ECHO_N "(cached) $ECHO_C" >&6
20811 else
20812   if test "$cross_compiling" = yes; then
20813   # Depending upon the size, compute the lo and hi bounds.
20814 cat >conftest.$ac_ext <<_ACEOF
20815 /* confdefs.h.  */
20816 _ACEOF
20817 cat confdefs.h >>conftest.$ac_ext
20818 cat >>conftest.$ac_ext <<_ACEOF
20819 /* end confdefs.h.  */
20820 $ac_includes_default
20821    typedef long ac__type_sizeof_;
20822 int
20823 main ()
20824 {
20825 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20826 test_array [0] = 0
20827
20828   ;
20829   return 0;
20830 }
20831 _ACEOF
20832 rm -f conftest.$ac_objext
20833 if { (ac_try="$ac_compile"
20834 case "(($ac_try" in
20835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20836   *) ac_try_echo=$ac_try;;
20837 esac
20838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20839   (eval "$ac_compile") 2>conftest.er1
20840   ac_status=$?
20841   grep -v '^ *+' conftest.er1 >conftest.err
20842   rm -f conftest.er1
20843   cat conftest.err >&5
20844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20845   (exit $ac_status); } && {
20846          test -z "$ac_c_werror_flag" ||
20847          test ! -s conftest.err
20848        } && test -s conftest.$ac_objext; then
20849   ac_lo=0 ac_mid=0
20850   while :; do
20851     cat >conftest.$ac_ext <<_ACEOF
20852 /* confdefs.h.  */
20853 _ACEOF
20854 cat confdefs.h >>conftest.$ac_ext
20855 cat >>conftest.$ac_ext <<_ACEOF
20856 /* end confdefs.h.  */
20857 $ac_includes_default
20858    typedef long ac__type_sizeof_;
20859 int
20860 main ()
20861 {
20862 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20863 test_array [0] = 0
20864
20865   ;
20866   return 0;
20867 }
20868 _ACEOF
20869 rm -f conftest.$ac_objext
20870 if { (ac_try="$ac_compile"
20871 case "(($ac_try" in
20872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20873   *) ac_try_echo=$ac_try;;
20874 esac
20875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20876   (eval "$ac_compile") 2>conftest.er1
20877   ac_status=$?
20878   grep -v '^ *+' conftest.er1 >conftest.err
20879   rm -f conftest.er1
20880   cat conftest.err >&5
20881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20882   (exit $ac_status); } && {
20883          test -z "$ac_c_werror_flag" ||
20884          test ! -s conftest.err
20885        } && test -s conftest.$ac_objext; then
20886   ac_hi=$ac_mid; break
20887 else
20888   echo "$as_me: failed program was:" >&5
20889 sed 's/^/| /' conftest.$ac_ext >&5
20890
20891         ac_lo=`expr $ac_mid + 1`
20892                         if test $ac_lo -le $ac_mid; then
20893                           ac_lo= ac_hi=
20894                           break
20895                         fi
20896                         ac_mid=`expr 2 '*' $ac_mid + 1`
20897 fi
20898
20899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20900   done
20901 else
20902   echo "$as_me: failed program was:" >&5
20903 sed 's/^/| /' conftest.$ac_ext >&5
20904
20905         cat >conftest.$ac_ext <<_ACEOF
20906 /* confdefs.h.  */
20907 _ACEOF
20908 cat confdefs.h >>conftest.$ac_ext
20909 cat >>conftest.$ac_ext <<_ACEOF
20910 /* end confdefs.h.  */
20911 $ac_includes_default
20912    typedef long ac__type_sizeof_;
20913 int
20914 main ()
20915 {
20916 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20917 test_array [0] = 0
20918
20919   ;
20920   return 0;
20921 }
20922 _ACEOF
20923 rm -f conftest.$ac_objext
20924 if { (ac_try="$ac_compile"
20925 case "(($ac_try" in
20926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20927   *) ac_try_echo=$ac_try;;
20928 esac
20929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20930   (eval "$ac_compile") 2>conftest.er1
20931   ac_status=$?
20932   grep -v '^ *+' conftest.er1 >conftest.err
20933   rm -f conftest.er1
20934   cat conftest.err >&5
20935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936   (exit $ac_status); } && {
20937          test -z "$ac_c_werror_flag" ||
20938          test ! -s conftest.err
20939        } && test -s conftest.$ac_objext; then
20940   ac_hi=-1 ac_mid=-1
20941   while :; do
20942     cat >conftest.$ac_ext <<_ACEOF
20943 /* confdefs.h.  */
20944 _ACEOF
20945 cat confdefs.h >>conftest.$ac_ext
20946 cat >>conftest.$ac_ext <<_ACEOF
20947 /* end confdefs.h.  */
20948 $ac_includes_default
20949    typedef long ac__type_sizeof_;
20950 int
20951 main ()
20952 {
20953 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20954 test_array [0] = 0
20955
20956   ;
20957   return 0;
20958 }
20959 _ACEOF
20960 rm -f conftest.$ac_objext
20961 if { (ac_try="$ac_compile"
20962 case "(($ac_try" in
20963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20964   *) ac_try_echo=$ac_try;;
20965 esac
20966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20967   (eval "$ac_compile") 2>conftest.er1
20968   ac_status=$?
20969   grep -v '^ *+' conftest.er1 >conftest.err
20970   rm -f conftest.er1
20971   cat conftest.err >&5
20972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20973   (exit $ac_status); } && {
20974          test -z "$ac_c_werror_flag" ||
20975          test ! -s conftest.err
20976        } && test -s conftest.$ac_objext; then
20977   ac_lo=$ac_mid; break
20978 else
20979   echo "$as_me: failed program was:" >&5
20980 sed 's/^/| /' conftest.$ac_ext >&5
20981
20982         ac_hi=`expr '(' $ac_mid ')' - 1`
20983                         if test $ac_mid -le $ac_hi; then
20984                           ac_lo= ac_hi=
20985                           break
20986                         fi
20987                         ac_mid=`expr 2 '*' $ac_mid`
20988 fi
20989
20990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20991   done
20992 else
20993   echo "$as_me: failed program was:" >&5
20994 sed 's/^/| /' conftest.$ac_ext >&5
20995
20996         ac_lo= ac_hi=
20997 fi
20998
20999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21000 fi
21001
21002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21003 # Binary search between lo and hi bounds.
21004 while test "x$ac_lo" != "x$ac_hi"; do
21005   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21006   cat >conftest.$ac_ext <<_ACEOF
21007 /* confdefs.h.  */
21008 _ACEOF
21009 cat confdefs.h >>conftest.$ac_ext
21010 cat >>conftest.$ac_ext <<_ACEOF
21011 /* end confdefs.h.  */
21012 $ac_includes_default
21013    typedef long ac__type_sizeof_;
21014 int
21015 main ()
21016 {
21017 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21018 test_array [0] = 0
21019
21020   ;
21021   return 0;
21022 }
21023 _ACEOF
21024 rm -f conftest.$ac_objext
21025 if { (ac_try="$ac_compile"
21026 case "(($ac_try" in
21027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21028   *) ac_try_echo=$ac_try;;
21029 esac
21030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21031   (eval "$ac_compile") 2>conftest.er1
21032   ac_status=$?
21033   grep -v '^ *+' conftest.er1 >conftest.err
21034   rm -f conftest.er1
21035   cat conftest.err >&5
21036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21037   (exit $ac_status); } && {
21038          test -z "$ac_c_werror_flag" ||
21039          test ! -s conftest.err
21040        } && test -s conftest.$ac_objext; then
21041   ac_hi=$ac_mid
21042 else
21043   echo "$as_me: failed program was:" >&5
21044 sed 's/^/| /' conftest.$ac_ext >&5
21045
21046         ac_lo=`expr '(' $ac_mid ')' + 1`
21047 fi
21048
21049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21050 done
21051 case $ac_lo in
21052 ?*) ac_cv_sizeof_long=$ac_lo;;
21053 '') if test "$ac_cv_type_long" = yes; then
21054      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
21055 See \`config.log' for more details." >&5
21056 echo "$as_me: error: cannot compute sizeof (long)
21057 See \`config.log' for more details." >&2;}
21058    { (exit 77); exit 77; }; }
21059    else
21060      ac_cv_sizeof_long=0
21061    fi ;;
21062 esac
21063 else
21064   cat >conftest.$ac_ext <<_ACEOF
21065 /* confdefs.h.  */
21066 _ACEOF
21067 cat confdefs.h >>conftest.$ac_ext
21068 cat >>conftest.$ac_ext <<_ACEOF
21069 /* end confdefs.h.  */
21070 $ac_includes_default
21071    typedef long ac__type_sizeof_;
21072 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21073 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21074 #include <stdio.h>
21075 #include <stdlib.h>
21076 int
21077 main ()
21078 {
21079
21080   FILE *f = fopen ("conftest.val", "w");
21081   if (! f)
21082     return 1;
21083   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21084     {
21085       long int i = longval ();
21086       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21087         return 1;
21088       fprintf (f, "%ld\n", i);
21089     }
21090   else
21091     {
21092       unsigned long int i = ulongval ();
21093       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21094         return 1;
21095       fprintf (f, "%lu\n", i);
21096     }
21097   return ferror (f) || fclose (f) != 0;
21098
21099   ;
21100   return 0;
21101 }
21102 _ACEOF
21103 rm -f conftest$ac_exeext
21104 if { (ac_try="$ac_link"
21105 case "(($ac_try" in
21106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21107   *) ac_try_echo=$ac_try;;
21108 esac
21109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21110   (eval "$ac_link") 2>&5
21111   ac_status=$?
21112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21113   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21114   { (case "(($ac_try" in
21115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21116   *) ac_try_echo=$ac_try;;
21117 esac
21118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21119   (eval "$ac_try") 2>&5
21120   ac_status=$?
21121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122   (exit $ac_status); }; }; then
21123   ac_cv_sizeof_long=`cat conftest.val`
21124 else
21125   echo "$as_me: program exited with status $ac_status" >&5
21126 echo "$as_me: failed program was:" >&5
21127 sed 's/^/| /' conftest.$ac_ext >&5
21128
21129 ( exit $ac_status )
21130 if test "$ac_cv_type_long" = yes; then
21131      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
21132 See \`config.log' for more details." >&5
21133 echo "$as_me: error: cannot compute sizeof (long)
21134 See \`config.log' for more details." >&2;}
21135    { (exit 77); exit 77; }; }
21136    else
21137      ac_cv_sizeof_long=0
21138    fi
21139 fi
21140 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21141 fi
21142 rm -f conftest.val
21143 fi
21144 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
21145 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
21146
21147
21148
21149 cat >>confdefs.h <<_ACEOF
21150 #define SIZEOF_LONG $ac_cv_sizeof_long
21151 _ACEOF
21152
21153
21154 { echo "$as_me:$LINENO: checking for size_t" >&5
21155 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21156 if test "${ac_cv_type_size_t+set}" = set; then
21157   echo $ECHO_N "(cached) $ECHO_C" >&6
21158 else
21159   cat >conftest.$ac_ext <<_ACEOF
21160 /* confdefs.h.  */
21161 _ACEOF
21162 cat confdefs.h >>conftest.$ac_ext
21163 cat >>conftest.$ac_ext <<_ACEOF
21164 /* end confdefs.h.  */
21165 $ac_includes_default
21166 typedef size_t ac__type_new_;
21167 int
21168 main ()
21169 {
21170 if ((ac__type_new_ *) 0)
21171   return 0;
21172 if (sizeof (ac__type_new_))
21173   return 0;
21174   ;
21175   return 0;
21176 }
21177 _ACEOF
21178 rm -f conftest.$ac_objext
21179 if { (ac_try="$ac_compile"
21180 case "(($ac_try" in
21181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21182   *) ac_try_echo=$ac_try;;
21183 esac
21184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21185   (eval "$ac_compile") 2>conftest.er1
21186   ac_status=$?
21187   grep -v '^ *+' conftest.er1 >conftest.err
21188   rm -f conftest.er1
21189   cat conftest.err >&5
21190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21191   (exit $ac_status); } && {
21192          test -z "$ac_c_werror_flag" ||
21193          test ! -s conftest.err
21194        } && test -s conftest.$ac_objext; then
21195   ac_cv_type_size_t=yes
21196 else
21197   echo "$as_me: failed program was:" >&5
21198 sed 's/^/| /' conftest.$ac_ext >&5
21199
21200         ac_cv_type_size_t=no
21201 fi
21202
21203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21204 fi
21205 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21206 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21207
21208 # The cast to long int works around a bug in the HP C Compiler
21209 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21210 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21211 # This bug is HP SR number 8606223364.
21212 { echo "$as_me:$LINENO: checking size of size_t" >&5
21213 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
21214 if test "${ac_cv_sizeof_size_t+set}" = set; then
21215   echo $ECHO_N "(cached) $ECHO_C" >&6
21216 else
21217   if test "$cross_compiling" = yes; then
21218   # Depending upon the size, compute the lo and hi bounds.
21219 cat >conftest.$ac_ext <<_ACEOF
21220 /* confdefs.h.  */
21221 _ACEOF
21222 cat confdefs.h >>conftest.$ac_ext
21223 cat >>conftest.$ac_ext <<_ACEOF
21224 /* end confdefs.h.  */
21225 $ac_includes_default
21226    typedef size_t ac__type_sizeof_;
21227 int
21228 main ()
21229 {
21230 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21231 test_array [0] = 0
21232
21233   ;
21234   return 0;
21235 }
21236 _ACEOF
21237 rm -f conftest.$ac_objext
21238 if { (ac_try="$ac_compile"
21239 case "(($ac_try" in
21240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21241   *) ac_try_echo=$ac_try;;
21242 esac
21243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21244   (eval "$ac_compile") 2>conftest.er1
21245   ac_status=$?
21246   grep -v '^ *+' conftest.er1 >conftest.err
21247   rm -f conftest.er1
21248   cat conftest.err >&5
21249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250   (exit $ac_status); } && {
21251          test -z "$ac_c_werror_flag" ||
21252          test ! -s conftest.err
21253        } && test -s conftest.$ac_objext; then
21254   ac_lo=0 ac_mid=0
21255   while :; do
21256     cat >conftest.$ac_ext <<_ACEOF
21257 /* confdefs.h.  */
21258 _ACEOF
21259 cat confdefs.h >>conftest.$ac_ext
21260 cat >>conftest.$ac_ext <<_ACEOF
21261 /* end confdefs.h.  */
21262 $ac_includes_default
21263    typedef size_t ac__type_sizeof_;
21264 int
21265 main ()
21266 {
21267 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21268 test_array [0] = 0
21269
21270   ;
21271   return 0;
21272 }
21273 _ACEOF
21274 rm -f conftest.$ac_objext
21275 if { (ac_try="$ac_compile"
21276 case "(($ac_try" in
21277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21278   *) ac_try_echo=$ac_try;;
21279 esac
21280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21281   (eval "$ac_compile") 2>conftest.er1
21282   ac_status=$?
21283   grep -v '^ *+' conftest.er1 >conftest.err
21284   rm -f conftest.er1
21285   cat conftest.err >&5
21286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21287   (exit $ac_status); } && {
21288          test -z "$ac_c_werror_flag" ||
21289          test ! -s conftest.err
21290        } && test -s conftest.$ac_objext; then
21291   ac_hi=$ac_mid; break
21292 else
21293   echo "$as_me: failed program was:" >&5
21294 sed 's/^/| /' conftest.$ac_ext >&5
21295
21296         ac_lo=`expr $ac_mid + 1`
21297                         if test $ac_lo -le $ac_mid; then
21298                           ac_lo= ac_hi=
21299                           break
21300                         fi
21301                         ac_mid=`expr 2 '*' $ac_mid + 1`
21302 fi
21303
21304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21305   done
21306 else
21307   echo "$as_me: failed program was:" >&5
21308 sed 's/^/| /' conftest.$ac_ext >&5
21309
21310         cat >conftest.$ac_ext <<_ACEOF
21311 /* confdefs.h.  */
21312 _ACEOF
21313 cat confdefs.h >>conftest.$ac_ext
21314 cat >>conftest.$ac_ext <<_ACEOF
21315 /* end confdefs.h.  */
21316 $ac_includes_default
21317    typedef size_t ac__type_sizeof_;
21318 int
21319 main ()
21320 {
21321 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21322 test_array [0] = 0
21323
21324   ;
21325   return 0;
21326 }
21327 _ACEOF
21328 rm -f conftest.$ac_objext
21329 if { (ac_try="$ac_compile"
21330 case "(($ac_try" in
21331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21332   *) ac_try_echo=$ac_try;;
21333 esac
21334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21335   (eval "$ac_compile") 2>conftest.er1
21336   ac_status=$?
21337   grep -v '^ *+' conftest.er1 >conftest.err
21338   rm -f conftest.er1
21339   cat conftest.err >&5
21340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21341   (exit $ac_status); } && {
21342          test -z "$ac_c_werror_flag" ||
21343          test ! -s conftest.err
21344        } && test -s conftest.$ac_objext; then
21345   ac_hi=-1 ac_mid=-1
21346   while :; do
21347     cat >conftest.$ac_ext <<_ACEOF
21348 /* confdefs.h.  */
21349 _ACEOF
21350 cat confdefs.h >>conftest.$ac_ext
21351 cat >>conftest.$ac_ext <<_ACEOF
21352 /* end confdefs.h.  */
21353 $ac_includes_default
21354    typedef size_t ac__type_sizeof_;
21355 int
21356 main ()
21357 {
21358 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21359 test_array [0] = 0
21360
21361   ;
21362   return 0;
21363 }
21364 _ACEOF
21365 rm -f conftest.$ac_objext
21366 if { (ac_try="$ac_compile"
21367 case "(($ac_try" in
21368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21369   *) ac_try_echo=$ac_try;;
21370 esac
21371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21372   (eval "$ac_compile") 2>conftest.er1
21373   ac_status=$?
21374   grep -v '^ *+' conftest.er1 >conftest.err
21375   rm -f conftest.er1
21376   cat conftest.err >&5
21377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21378   (exit $ac_status); } && {
21379          test -z "$ac_c_werror_flag" ||
21380          test ! -s conftest.err
21381        } && test -s conftest.$ac_objext; then
21382   ac_lo=$ac_mid; break
21383 else
21384   echo "$as_me: failed program was:" >&5
21385 sed 's/^/| /' conftest.$ac_ext >&5
21386
21387         ac_hi=`expr '(' $ac_mid ')' - 1`
21388                         if test $ac_mid -le $ac_hi; then
21389                           ac_lo= ac_hi=
21390                           break
21391                         fi
21392                         ac_mid=`expr 2 '*' $ac_mid`
21393 fi
21394
21395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21396   done
21397 else
21398   echo "$as_me: failed program was:" >&5
21399 sed 's/^/| /' conftest.$ac_ext >&5
21400
21401         ac_lo= ac_hi=
21402 fi
21403
21404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21405 fi
21406
21407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21408 # Binary search between lo and hi bounds.
21409 while test "x$ac_lo" != "x$ac_hi"; do
21410   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21411   cat >conftest.$ac_ext <<_ACEOF
21412 /* confdefs.h.  */
21413 _ACEOF
21414 cat confdefs.h >>conftest.$ac_ext
21415 cat >>conftest.$ac_ext <<_ACEOF
21416 /* end confdefs.h.  */
21417 $ac_includes_default
21418    typedef size_t ac__type_sizeof_;
21419 int
21420 main ()
21421 {
21422 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21423 test_array [0] = 0
21424
21425   ;
21426   return 0;
21427 }
21428 _ACEOF
21429 rm -f conftest.$ac_objext
21430 if { (ac_try="$ac_compile"
21431 case "(($ac_try" in
21432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21433   *) ac_try_echo=$ac_try;;
21434 esac
21435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21436   (eval "$ac_compile") 2>conftest.er1
21437   ac_status=$?
21438   grep -v '^ *+' conftest.er1 >conftest.err
21439   rm -f conftest.er1
21440   cat conftest.err >&5
21441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21442   (exit $ac_status); } && {
21443          test -z "$ac_c_werror_flag" ||
21444          test ! -s conftest.err
21445        } && test -s conftest.$ac_objext; then
21446   ac_hi=$ac_mid
21447 else
21448   echo "$as_me: failed program was:" >&5
21449 sed 's/^/| /' conftest.$ac_ext >&5
21450
21451         ac_lo=`expr '(' $ac_mid ')' + 1`
21452 fi
21453
21454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21455 done
21456 case $ac_lo in
21457 ?*) ac_cv_sizeof_size_t=$ac_lo;;
21458 '') if test "$ac_cv_type_size_t" = yes; then
21459      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
21460 See \`config.log' for more details." >&5
21461 echo "$as_me: error: cannot compute sizeof (size_t)
21462 See \`config.log' for more details." >&2;}
21463    { (exit 77); exit 77; }; }
21464    else
21465      ac_cv_sizeof_size_t=0
21466    fi ;;
21467 esac
21468 else
21469   cat >conftest.$ac_ext <<_ACEOF
21470 /* confdefs.h.  */
21471 _ACEOF
21472 cat confdefs.h >>conftest.$ac_ext
21473 cat >>conftest.$ac_ext <<_ACEOF
21474 /* end confdefs.h.  */
21475 $ac_includes_default
21476    typedef size_t ac__type_sizeof_;
21477 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21478 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21479 #include <stdio.h>
21480 #include <stdlib.h>
21481 int
21482 main ()
21483 {
21484
21485   FILE *f = fopen ("conftest.val", "w");
21486   if (! f)
21487     return 1;
21488   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21489     {
21490       long int i = longval ();
21491       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21492         return 1;
21493       fprintf (f, "%ld\n", i);
21494     }
21495   else
21496     {
21497       unsigned long int i = ulongval ();
21498       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21499         return 1;
21500       fprintf (f, "%lu\n", i);
21501     }
21502   return ferror (f) || fclose (f) != 0;
21503
21504   ;
21505   return 0;
21506 }
21507 _ACEOF
21508 rm -f conftest$ac_exeext
21509 if { (ac_try="$ac_link"
21510 case "(($ac_try" in
21511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21512   *) ac_try_echo=$ac_try;;
21513 esac
21514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21515   (eval "$ac_link") 2>&5
21516   ac_status=$?
21517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21518   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21519   { (case "(($ac_try" in
21520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21521   *) ac_try_echo=$ac_try;;
21522 esac
21523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21524   (eval "$ac_try") 2>&5
21525   ac_status=$?
21526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21527   (exit $ac_status); }; }; then
21528   ac_cv_sizeof_size_t=`cat conftest.val`
21529 else
21530   echo "$as_me: program exited with status $ac_status" >&5
21531 echo "$as_me: failed program was:" >&5
21532 sed 's/^/| /' conftest.$ac_ext >&5
21533
21534 ( exit $ac_status )
21535 if test "$ac_cv_type_size_t" = yes; then
21536      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
21537 See \`config.log' for more details." >&5
21538 echo "$as_me: error: cannot compute sizeof (size_t)
21539 See \`config.log' for more details." >&2;}
21540    { (exit 77); exit 77; }; }
21541    else
21542      ac_cv_sizeof_size_t=0
21543    fi
21544 fi
21545 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21546 fi
21547 rm -f conftest.val
21548 fi
21549 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
21550 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
21551
21552
21553
21554 cat >>confdefs.h <<_ACEOF
21555 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21556 _ACEOF
21557
21558
21559
21560 case "${host}" in
21561     arm-*-linux* )
21562         { echo "$as_me:$LINENO: checking for long long" >&5
21563 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
21564 if test "${ac_cv_type_long_long+set}" = set; then
21565   echo $ECHO_N "(cached) $ECHO_C" >&6
21566 else
21567   cat >conftest.$ac_ext <<_ACEOF
21568 /* confdefs.h.  */
21569 _ACEOF
21570 cat confdefs.h >>conftest.$ac_ext
21571 cat >>conftest.$ac_ext <<_ACEOF
21572 /* end confdefs.h.  */
21573 $ac_includes_default
21574 typedef long long ac__type_new_;
21575 int
21576 main ()
21577 {
21578 if ((ac__type_new_ *) 0)
21579   return 0;
21580 if (sizeof (ac__type_new_))
21581   return 0;
21582   ;
21583   return 0;
21584 }
21585 _ACEOF
21586 rm -f conftest.$ac_objext
21587 if { (ac_try="$ac_compile"
21588 case "(($ac_try" in
21589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21590   *) ac_try_echo=$ac_try;;
21591 esac
21592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21593   (eval "$ac_compile") 2>conftest.er1
21594   ac_status=$?
21595   grep -v '^ *+' conftest.er1 >conftest.err
21596   rm -f conftest.er1
21597   cat conftest.err >&5
21598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21599   (exit $ac_status); } && {
21600          test -z "$ac_c_werror_flag" ||
21601          test ! -s conftest.err
21602        } && test -s conftest.$ac_objext; then
21603   ac_cv_type_long_long=yes
21604 else
21605   echo "$as_me: failed program was:" >&5
21606 sed 's/^/| /' conftest.$ac_ext >&5
21607
21608         ac_cv_type_long_long=no
21609 fi
21610
21611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21612 fi
21613 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21614 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
21615
21616 # The cast to long int works around a bug in the HP C Compiler
21617 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21618 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21619 # This bug is HP SR number 8606223364.
21620 { echo "$as_me:$LINENO: checking size of long long" >&5
21621 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
21622 if test "${ac_cv_sizeof_long_long+set}" = set; then
21623   echo $ECHO_N "(cached) $ECHO_C" >&6
21624 else
21625   if test "$cross_compiling" = yes; then
21626   # Depending upon the size, compute the lo and hi bounds.
21627 cat >conftest.$ac_ext <<_ACEOF
21628 /* confdefs.h.  */
21629 _ACEOF
21630 cat confdefs.h >>conftest.$ac_ext
21631 cat >>conftest.$ac_ext <<_ACEOF
21632 /* end confdefs.h.  */
21633 $ac_includes_default
21634    typedef long long ac__type_sizeof_;
21635 int
21636 main ()
21637 {
21638 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21639 test_array [0] = 0
21640
21641   ;
21642   return 0;
21643 }
21644 _ACEOF
21645 rm -f conftest.$ac_objext
21646 if { (ac_try="$ac_compile"
21647 case "(($ac_try" in
21648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21649   *) ac_try_echo=$ac_try;;
21650 esac
21651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21652   (eval "$ac_compile") 2>conftest.er1
21653   ac_status=$?
21654   grep -v '^ *+' conftest.er1 >conftest.err
21655   rm -f conftest.er1
21656   cat conftest.err >&5
21657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21658   (exit $ac_status); } && {
21659          test -z "$ac_c_werror_flag" ||
21660          test ! -s conftest.err
21661        } && test -s conftest.$ac_objext; then
21662   ac_lo=0 ac_mid=0
21663   while :; do
21664     cat >conftest.$ac_ext <<_ACEOF
21665 /* confdefs.h.  */
21666 _ACEOF
21667 cat confdefs.h >>conftest.$ac_ext
21668 cat >>conftest.$ac_ext <<_ACEOF
21669 /* end confdefs.h.  */
21670 $ac_includes_default
21671    typedef long long ac__type_sizeof_;
21672 int
21673 main ()
21674 {
21675 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21676 test_array [0] = 0
21677
21678   ;
21679   return 0;
21680 }
21681 _ACEOF
21682 rm -f conftest.$ac_objext
21683 if { (ac_try="$ac_compile"
21684 case "(($ac_try" in
21685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21686   *) ac_try_echo=$ac_try;;
21687 esac
21688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21689   (eval "$ac_compile") 2>conftest.er1
21690   ac_status=$?
21691   grep -v '^ *+' conftest.er1 >conftest.err
21692   rm -f conftest.er1
21693   cat conftest.err >&5
21694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21695   (exit $ac_status); } && {
21696          test -z "$ac_c_werror_flag" ||
21697          test ! -s conftest.err
21698        } && test -s conftest.$ac_objext; then
21699   ac_hi=$ac_mid; break
21700 else
21701   echo "$as_me: failed program was:" >&5
21702 sed 's/^/| /' conftest.$ac_ext >&5
21703
21704         ac_lo=`expr $ac_mid + 1`
21705                         if test $ac_lo -le $ac_mid; then
21706                           ac_lo= ac_hi=
21707                           break
21708                         fi
21709                         ac_mid=`expr 2 '*' $ac_mid + 1`
21710 fi
21711
21712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21713   done
21714 else
21715   echo "$as_me: failed program was:" >&5
21716 sed 's/^/| /' conftest.$ac_ext >&5
21717
21718         cat >conftest.$ac_ext <<_ACEOF
21719 /* confdefs.h.  */
21720 _ACEOF
21721 cat confdefs.h >>conftest.$ac_ext
21722 cat >>conftest.$ac_ext <<_ACEOF
21723 /* end confdefs.h.  */
21724 $ac_includes_default
21725    typedef long long ac__type_sizeof_;
21726 int
21727 main ()
21728 {
21729 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21730 test_array [0] = 0
21731
21732   ;
21733   return 0;
21734 }
21735 _ACEOF
21736 rm -f conftest.$ac_objext
21737 if { (ac_try="$ac_compile"
21738 case "(($ac_try" in
21739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21740   *) ac_try_echo=$ac_try;;
21741 esac
21742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21743   (eval "$ac_compile") 2>conftest.er1
21744   ac_status=$?
21745   grep -v '^ *+' conftest.er1 >conftest.err
21746   rm -f conftest.er1
21747   cat conftest.err >&5
21748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21749   (exit $ac_status); } && {
21750          test -z "$ac_c_werror_flag" ||
21751          test ! -s conftest.err
21752        } && test -s conftest.$ac_objext; then
21753   ac_hi=-1 ac_mid=-1
21754   while :; do
21755     cat >conftest.$ac_ext <<_ACEOF
21756 /* confdefs.h.  */
21757 _ACEOF
21758 cat confdefs.h >>conftest.$ac_ext
21759 cat >>conftest.$ac_ext <<_ACEOF
21760 /* end confdefs.h.  */
21761 $ac_includes_default
21762    typedef long long ac__type_sizeof_;
21763 int
21764 main ()
21765 {
21766 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21767 test_array [0] = 0
21768
21769   ;
21770   return 0;
21771 }
21772 _ACEOF
21773 rm -f conftest.$ac_objext
21774 if { (ac_try="$ac_compile"
21775 case "(($ac_try" in
21776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21777   *) ac_try_echo=$ac_try;;
21778 esac
21779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21780   (eval "$ac_compile") 2>conftest.er1
21781   ac_status=$?
21782   grep -v '^ *+' conftest.er1 >conftest.err
21783   rm -f conftest.er1
21784   cat conftest.err >&5
21785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21786   (exit $ac_status); } && {
21787          test -z "$ac_c_werror_flag" ||
21788          test ! -s conftest.err
21789        } && test -s conftest.$ac_objext; then
21790   ac_lo=$ac_mid; break
21791 else
21792   echo "$as_me: failed program was:" >&5
21793 sed 's/^/| /' conftest.$ac_ext >&5
21794
21795         ac_hi=`expr '(' $ac_mid ')' - 1`
21796                         if test $ac_mid -le $ac_hi; then
21797                           ac_lo= ac_hi=
21798                           break
21799                         fi
21800                         ac_mid=`expr 2 '*' $ac_mid`
21801 fi
21802
21803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21804   done
21805 else
21806   echo "$as_me: failed program was:" >&5
21807 sed 's/^/| /' conftest.$ac_ext >&5
21808
21809         ac_lo= ac_hi=
21810 fi
21811
21812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21813 fi
21814
21815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21816 # Binary search between lo and hi bounds.
21817 while test "x$ac_lo" != "x$ac_hi"; do
21818   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21819   cat >conftest.$ac_ext <<_ACEOF
21820 /* confdefs.h.  */
21821 _ACEOF
21822 cat confdefs.h >>conftest.$ac_ext
21823 cat >>conftest.$ac_ext <<_ACEOF
21824 /* end confdefs.h.  */
21825 $ac_includes_default
21826    typedef long long ac__type_sizeof_;
21827 int
21828 main ()
21829 {
21830 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21831 test_array [0] = 0
21832
21833   ;
21834   return 0;
21835 }
21836 _ACEOF
21837 rm -f conftest.$ac_objext
21838 if { (ac_try="$ac_compile"
21839 case "(($ac_try" in
21840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21841   *) ac_try_echo=$ac_try;;
21842 esac
21843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21844   (eval "$ac_compile") 2>conftest.er1
21845   ac_status=$?
21846   grep -v '^ *+' conftest.er1 >conftest.err
21847   rm -f conftest.er1
21848   cat conftest.err >&5
21849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21850   (exit $ac_status); } && {
21851          test -z "$ac_c_werror_flag" ||
21852          test ! -s conftest.err
21853        } && test -s conftest.$ac_objext; then
21854   ac_hi=$ac_mid
21855 else
21856   echo "$as_me: failed program was:" >&5
21857 sed 's/^/| /' conftest.$ac_ext >&5
21858
21859         ac_lo=`expr '(' $ac_mid ')' + 1`
21860 fi
21861
21862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21863 done
21864 case $ac_lo in
21865 ?*) ac_cv_sizeof_long_long=$ac_lo;;
21866 '') if test "$ac_cv_type_long_long" = yes; then
21867      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
21868 See \`config.log' for more details." >&5
21869 echo "$as_me: error: cannot compute sizeof (long long)
21870 See \`config.log' for more details." >&2;}
21871    { (exit 77); exit 77; }; }
21872    else
21873      ac_cv_sizeof_long_long=0
21874    fi ;;
21875 esac
21876 else
21877   cat >conftest.$ac_ext <<_ACEOF
21878 /* confdefs.h.  */
21879 _ACEOF
21880 cat confdefs.h >>conftest.$ac_ext
21881 cat >>conftest.$ac_ext <<_ACEOF
21882 /* end confdefs.h.  */
21883 $ac_includes_default
21884    typedef long long ac__type_sizeof_;
21885 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21886 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21887 #include <stdio.h>
21888 #include <stdlib.h>
21889 int
21890 main ()
21891 {
21892
21893   FILE *f = fopen ("conftest.val", "w");
21894   if (! f)
21895     return 1;
21896   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21897     {
21898       long int i = longval ();
21899       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21900         return 1;
21901       fprintf (f, "%ld\n", i);
21902     }
21903   else
21904     {
21905       unsigned long int i = ulongval ();
21906       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21907         return 1;
21908       fprintf (f, "%lu\n", i);
21909     }
21910   return ferror (f) || fclose (f) != 0;
21911
21912   ;
21913   return 0;
21914 }
21915 _ACEOF
21916 rm -f conftest$ac_exeext
21917 if { (ac_try="$ac_link"
21918 case "(($ac_try" in
21919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21920   *) ac_try_echo=$ac_try;;
21921 esac
21922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21923   (eval "$ac_link") 2>&5
21924   ac_status=$?
21925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21926   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21927   { (case "(($ac_try" in
21928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21929   *) ac_try_echo=$ac_try;;
21930 esac
21931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21932   (eval "$ac_try") 2>&5
21933   ac_status=$?
21934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21935   (exit $ac_status); }; }; then
21936   ac_cv_sizeof_long_long=`cat conftest.val`
21937 else
21938   echo "$as_me: program exited with status $ac_status" >&5
21939 echo "$as_me: failed program was:" >&5
21940 sed 's/^/| /' conftest.$ac_ext >&5
21941
21942 ( exit $ac_status )
21943 if test "$ac_cv_type_long_long" = yes; then
21944      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
21945 See \`config.log' for more details." >&5
21946 echo "$as_me: error: cannot compute sizeof (long long)
21947 See \`config.log' for more details." >&2;}
21948    { (exit 77); exit 77; }; }
21949    else
21950      ac_cv_sizeof_long_long=0
21951    fi
21952 fi
21953 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21954 fi
21955 rm -f conftest.val
21956 fi
21957 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21958 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
21959
21960
21961
21962 cat >>confdefs.h <<_ACEOF
21963 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21964 _ACEOF
21965
21966
21967     ;;
21968     *-hp-hpux* )
21969         { echo "$as_me:$LINENO: checking for long long" >&5
21970 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
21971 if test "${ac_cv_type_long_long+set}" = set; then
21972   echo $ECHO_N "(cached) $ECHO_C" >&6
21973 else
21974   cat >conftest.$ac_ext <<_ACEOF
21975 /* confdefs.h.  */
21976 _ACEOF
21977 cat confdefs.h >>conftest.$ac_ext
21978 cat >>conftest.$ac_ext <<_ACEOF
21979 /* end confdefs.h.  */
21980 $ac_includes_default
21981 typedef long long ac__type_new_;
21982 int
21983 main ()
21984 {
21985 if ((ac__type_new_ *) 0)
21986   return 0;
21987 if (sizeof (ac__type_new_))
21988   return 0;
21989   ;
21990   return 0;
21991 }
21992 _ACEOF
21993 rm -f conftest.$ac_objext
21994 if { (ac_try="$ac_compile"
21995 case "(($ac_try" in
21996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21997   *) ac_try_echo=$ac_try;;
21998 esac
21999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22000   (eval "$ac_compile") 2>conftest.er1
22001   ac_status=$?
22002   grep -v '^ *+' conftest.er1 >conftest.err
22003   rm -f conftest.er1
22004   cat conftest.err >&5
22005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22006   (exit $ac_status); } && {
22007          test -z "$ac_c_werror_flag" ||
22008          test ! -s conftest.err
22009        } && test -s conftest.$ac_objext; then
22010   ac_cv_type_long_long=yes
22011 else
22012   echo "$as_me: failed program was:" >&5
22013 sed 's/^/| /' conftest.$ac_ext >&5
22014
22015         ac_cv_type_long_long=no
22016 fi
22017
22018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22019 fi
22020 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
22021 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
22022
22023 # The cast to long int works around a bug in the HP C Compiler
22024 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22025 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22026 # This bug is HP SR number 8606223364.
22027 { echo "$as_me:$LINENO: checking size of long long" >&5
22028 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
22029 if test "${ac_cv_sizeof_long_long+set}" = set; then
22030   echo $ECHO_N "(cached) $ECHO_C" >&6
22031 else
22032   if test "$cross_compiling" = yes; then
22033   # Depending upon the size, compute the lo and hi bounds.
22034 cat >conftest.$ac_ext <<_ACEOF
22035 /* confdefs.h.  */
22036 _ACEOF
22037 cat confdefs.h >>conftest.$ac_ext
22038 cat >>conftest.$ac_ext <<_ACEOF
22039 /* end confdefs.h.  */
22040 $ac_includes_default
22041    typedef long long ac__type_sizeof_;
22042 int
22043 main ()
22044 {
22045 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22046 test_array [0] = 0
22047
22048   ;
22049   return 0;
22050 }
22051 _ACEOF
22052 rm -f conftest.$ac_objext
22053 if { (ac_try="$ac_compile"
22054 case "(($ac_try" in
22055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22056   *) ac_try_echo=$ac_try;;
22057 esac
22058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22059   (eval "$ac_compile") 2>conftest.er1
22060   ac_status=$?
22061   grep -v '^ *+' conftest.er1 >conftest.err
22062   rm -f conftest.er1
22063   cat conftest.err >&5
22064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22065   (exit $ac_status); } && {
22066          test -z "$ac_c_werror_flag" ||
22067          test ! -s conftest.err
22068        } && test -s conftest.$ac_objext; then
22069   ac_lo=0 ac_mid=0
22070   while :; do
22071     cat >conftest.$ac_ext <<_ACEOF
22072 /* confdefs.h.  */
22073 _ACEOF
22074 cat confdefs.h >>conftest.$ac_ext
22075 cat >>conftest.$ac_ext <<_ACEOF
22076 /* end confdefs.h.  */
22077 $ac_includes_default
22078    typedef long long ac__type_sizeof_;
22079 int
22080 main ()
22081 {
22082 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22083 test_array [0] = 0
22084
22085   ;
22086   return 0;
22087 }
22088 _ACEOF
22089 rm -f conftest.$ac_objext
22090 if { (ac_try="$ac_compile"
22091 case "(($ac_try" in
22092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22093   *) ac_try_echo=$ac_try;;
22094 esac
22095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22096   (eval "$ac_compile") 2>conftest.er1
22097   ac_status=$?
22098   grep -v '^ *+' conftest.er1 >conftest.err
22099   rm -f conftest.er1
22100   cat conftest.err >&5
22101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22102   (exit $ac_status); } && {
22103          test -z "$ac_c_werror_flag" ||
22104          test ! -s conftest.err
22105        } && test -s conftest.$ac_objext; then
22106   ac_hi=$ac_mid; break
22107 else
22108   echo "$as_me: failed program was:" >&5
22109 sed 's/^/| /' conftest.$ac_ext >&5
22110
22111         ac_lo=`expr $ac_mid + 1`
22112                         if test $ac_lo -le $ac_mid; then
22113                           ac_lo= ac_hi=
22114                           break
22115                         fi
22116                         ac_mid=`expr 2 '*' $ac_mid + 1`
22117 fi
22118
22119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22120   done
22121 else
22122   echo "$as_me: failed program was:" >&5
22123 sed 's/^/| /' conftest.$ac_ext >&5
22124
22125         cat >conftest.$ac_ext <<_ACEOF
22126 /* confdefs.h.  */
22127 _ACEOF
22128 cat confdefs.h >>conftest.$ac_ext
22129 cat >>conftest.$ac_ext <<_ACEOF
22130 /* end confdefs.h.  */
22131 $ac_includes_default
22132    typedef long long ac__type_sizeof_;
22133 int
22134 main ()
22135 {
22136 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22137 test_array [0] = 0
22138
22139   ;
22140   return 0;
22141 }
22142 _ACEOF
22143 rm -f conftest.$ac_objext
22144 if { (ac_try="$ac_compile"
22145 case "(($ac_try" in
22146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22147   *) ac_try_echo=$ac_try;;
22148 esac
22149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22150   (eval "$ac_compile") 2>conftest.er1
22151   ac_status=$?
22152   grep -v '^ *+' conftest.er1 >conftest.err
22153   rm -f conftest.er1
22154   cat conftest.err >&5
22155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22156   (exit $ac_status); } && {
22157          test -z "$ac_c_werror_flag" ||
22158          test ! -s conftest.err
22159        } && test -s conftest.$ac_objext; then
22160   ac_hi=-1 ac_mid=-1
22161   while :; do
22162     cat >conftest.$ac_ext <<_ACEOF
22163 /* confdefs.h.  */
22164 _ACEOF
22165 cat confdefs.h >>conftest.$ac_ext
22166 cat >>conftest.$ac_ext <<_ACEOF
22167 /* end confdefs.h.  */
22168 $ac_includes_default
22169    typedef long long ac__type_sizeof_;
22170 int
22171 main ()
22172 {
22173 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22174 test_array [0] = 0
22175
22176   ;
22177   return 0;
22178 }
22179 _ACEOF
22180 rm -f conftest.$ac_objext
22181 if { (ac_try="$ac_compile"
22182 case "(($ac_try" in
22183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22184   *) ac_try_echo=$ac_try;;
22185 esac
22186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22187   (eval "$ac_compile") 2>conftest.er1
22188   ac_status=$?
22189   grep -v '^ *+' conftest.er1 >conftest.err
22190   rm -f conftest.er1
22191   cat conftest.err >&5
22192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22193   (exit $ac_status); } && {
22194          test -z "$ac_c_werror_flag" ||
22195          test ! -s conftest.err
22196        } && test -s conftest.$ac_objext; then
22197   ac_lo=$ac_mid; break
22198 else
22199   echo "$as_me: failed program was:" >&5
22200 sed 's/^/| /' conftest.$ac_ext >&5
22201
22202         ac_hi=`expr '(' $ac_mid ')' - 1`
22203                         if test $ac_mid -le $ac_hi; then
22204                           ac_lo= ac_hi=
22205                           break
22206                         fi
22207                         ac_mid=`expr 2 '*' $ac_mid`
22208 fi
22209
22210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22211   done
22212 else
22213   echo "$as_me: failed program was:" >&5
22214 sed 's/^/| /' conftest.$ac_ext >&5
22215
22216         ac_lo= ac_hi=
22217 fi
22218
22219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22220 fi
22221
22222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22223 # Binary search between lo and hi bounds.
22224 while test "x$ac_lo" != "x$ac_hi"; do
22225   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22226   cat >conftest.$ac_ext <<_ACEOF
22227 /* confdefs.h.  */
22228 _ACEOF
22229 cat confdefs.h >>conftest.$ac_ext
22230 cat >>conftest.$ac_ext <<_ACEOF
22231 /* end confdefs.h.  */
22232 $ac_includes_default
22233    typedef long long ac__type_sizeof_;
22234 int
22235 main ()
22236 {
22237 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22238 test_array [0] = 0
22239
22240   ;
22241   return 0;
22242 }
22243 _ACEOF
22244 rm -f conftest.$ac_objext
22245 if { (ac_try="$ac_compile"
22246 case "(($ac_try" in
22247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22248   *) ac_try_echo=$ac_try;;
22249 esac
22250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22251   (eval "$ac_compile") 2>conftest.er1
22252   ac_status=$?
22253   grep -v '^ *+' conftest.er1 >conftest.err
22254   rm -f conftest.er1
22255   cat conftest.err >&5
22256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22257   (exit $ac_status); } && {
22258          test -z "$ac_c_werror_flag" ||
22259          test ! -s conftest.err
22260        } && test -s conftest.$ac_objext; then
22261   ac_hi=$ac_mid
22262 else
22263   echo "$as_me: failed program was:" >&5
22264 sed 's/^/| /' conftest.$ac_ext >&5
22265
22266         ac_lo=`expr '(' $ac_mid ')' + 1`
22267 fi
22268
22269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22270 done
22271 case $ac_lo in
22272 ?*) ac_cv_sizeof_long_long=$ac_lo;;
22273 '') if test "$ac_cv_type_long_long" = yes; then
22274      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22275 See \`config.log' for more details." >&5
22276 echo "$as_me: error: cannot compute sizeof (long long)
22277 See \`config.log' for more details." >&2;}
22278    { (exit 77); exit 77; }; }
22279    else
22280      ac_cv_sizeof_long_long=0
22281    fi ;;
22282 esac
22283 else
22284   cat >conftest.$ac_ext <<_ACEOF
22285 /* confdefs.h.  */
22286 _ACEOF
22287 cat confdefs.h >>conftest.$ac_ext
22288 cat >>conftest.$ac_ext <<_ACEOF
22289 /* end confdefs.h.  */
22290 $ac_includes_default
22291    typedef long long ac__type_sizeof_;
22292 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22293 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22294 #include <stdio.h>
22295 #include <stdlib.h>
22296 int
22297 main ()
22298 {
22299
22300   FILE *f = fopen ("conftest.val", "w");
22301   if (! f)
22302     return 1;
22303   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22304     {
22305       long int i = longval ();
22306       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22307         return 1;
22308       fprintf (f, "%ld\n", i);
22309     }
22310   else
22311     {
22312       unsigned long int i = ulongval ();
22313       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22314         return 1;
22315       fprintf (f, "%lu\n", i);
22316     }
22317   return ferror (f) || fclose (f) != 0;
22318
22319   ;
22320   return 0;
22321 }
22322 _ACEOF
22323 rm -f conftest$ac_exeext
22324 if { (ac_try="$ac_link"
22325 case "(($ac_try" in
22326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22327   *) ac_try_echo=$ac_try;;
22328 esac
22329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22330   (eval "$ac_link") 2>&5
22331   ac_status=$?
22332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22333   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22334   { (case "(($ac_try" in
22335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22336   *) ac_try_echo=$ac_try;;
22337 esac
22338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22339   (eval "$ac_try") 2>&5
22340   ac_status=$?
22341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22342   (exit $ac_status); }; }; then
22343   ac_cv_sizeof_long_long=`cat conftest.val`
22344 else
22345   echo "$as_me: program exited with status $ac_status" >&5
22346 echo "$as_me: failed program was:" >&5
22347 sed 's/^/| /' conftest.$ac_ext >&5
22348
22349 ( exit $ac_status )
22350 if test "$ac_cv_type_long_long" = yes; then
22351      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22352 See \`config.log' for more details." >&5
22353 echo "$as_me: error: cannot compute sizeof (long long)
22354 See \`config.log' for more details." >&2;}
22355    { (exit 77); exit 77; }; }
22356    else
22357      ac_cv_sizeof_long_long=0
22358    fi
22359 fi
22360 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22361 fi
22362 rm -f conftest.val
22363 fi
22364 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
22365 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
22366
22367
22368
22369 cat >>confdefs.h <<_ACEOF
22370 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22371 _ACEOF
22372
22373
22374         if test "$ac_cv_sizeof_long_long" != 0; then
22375                         CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
22376         fi
22377     ;;
22378     * )
22379         { echo "$as_me:$LINENO: checking for long long" >&5
22380 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
22381 if test "${ac_cv_type_long_long+set}" = set; then
22382   echo $ECHO_N "(cached) $ECHO_C" >&6
22383 else
22384   cat >conftest.$ac_ext <<_ACEOF
22385 /* confdefs.h.  */
22386 _ACEOF
22387 cat confdefs.h >>conftest.$ac_ext
22388 cat >>conftest.$ac_ext <<_ACEOF
22389 /* end confdefs.h.  */
22390 $ac_includes_default
22391 typedef long long ac__type_new_;
22392 int
22393 main ()
22394 {
22395 if ((ac__type_new_ *) 0)
22396   return 0;
22397 if (sizeof (ac__type_new_))
22398   return 0;
22399   ;
22400   return 0;
22401 }
22402 _ACEOF
22403 rm -f conftest.$ac_objext
22404 if { (ac_try="$ac_compile"
22405 case "(($ac_try" in
22406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22407   *) ac_try_echo=$ac_try;;
22408 esac
22409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22410   (eval "$ac_compile") 2>conftest.er1
22411   ac_status=$?
22412   grep -v '^ *+' conftest.er1 >conftest.err
22413   rm -f conftest.er1
22414   cat conftest.err >&5
22415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22416   (exit $ac_status); } && {
22417          test -z "$ac_c_werror_flag" ||
22418          test ! -s conftest.err
22419        } && test -s conftest.$ac_objext; then
22420   ac_cv_type_long_long=yes
22421 else
22422   echo "$as_me: failed program was:" >&5
22423 sed 's/^/| /' conftest.$ac_ext >&5
22424
22425         ac_cv_type_long_long=no
22426 fi
22427
22428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22429 fi
22430 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
22431 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
22432
22433 # The cast to long int works around a bug in the HP C Compiler
22434 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22435 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22436 # This bug is HP SR number 8606223364.
22437 { echo "$as_me:$LINENO: checking size of long long" >&5
22438 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
22439 if test "${ac_cv_sizeof_long_long+set}" = set; then
22440   echo $ECHO_N "(cached) $ECHO_C" >&6
22441 else
22442   if test "$cross_compiling" = yes; then
22443   # Depending upon the size, compute the lo and hi bounds.
22444 cat >conftest.$ac_ext <<_ACEOF
22445 /* confdefs.h.  */
22446 _ACEOF
22447 cat confdefs.h >>conftest.$ac_ext
22448 cat >>conftest.$ac_ext <<_ACEOF
22449 /* end confdefs.h.  */
22450 $ac_includes_default
22451    typedef long long ac__type_sizeof_;
22452 int
22453 main ()
22454 {
22455 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22456 test_array [0] = 0
22457
22458   ;
22459   return 0;
22460 }
22461 _ACEOF
22462 rm -f conftest.$ac_objext
22463 if { (ac_try="$ac_compile"
22464 case "(($ac_try" in
22465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22466   *) ac_try_echo=$ac_try;;
22467 esac
22468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22469   (eval "$ac_compile") 2>conftest.er1
22470   ac_status=$?
22471   grep -v '^ *+' conftest.er1 >conftest.err
22472   rm -f conftest.er1
22473   cat conftest.err >&5
22474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22475   (exit $ac_status); } && {
22476          test -z "$ac_c_werror_flag" ||
22477          test ! -s conftest.err
22478        } && test -s conftest.$ac_objext; then
22479   ac_lo=0 ac_mid=0
22480   while :; do
22481     cat >conftest.$ac_ext <<_ACEOF
22482 /* confdefs.h.  */
22483 _ACEOF
22484 cat confdefs.h >>conftest.$ac_ext
22485 cat >>conftest.$ac_ext <<_ACEOF
22486 /* end confdefs.h.  */
22487 $ac_includes_default
22488    typedef long long ac__type_sizeof_;
22489 int
22490 main ()
22491 {
22492 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22493 test_array [0] = 0
22494
22495   ;
22496   return 0;
22497 }
22498 _ACEOF
22499 rm -f conftest.$ac_objext
22500 if { (ac_try="$ac_compile"
22501 case "(($ac_try" in
22502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22503   *) ac_try_echo=$ac_try;;
22504 esac
22505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22506   (eval "$ac_compile") 2>conftest.er1
22507   ac_status=$?
22508   grep -v '^ *+' conftest.er1 >conftest.err
22509   rm -f conftest.er1
22510   cat conftest.err >&5
22511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22512   (exit $ac_status); } && {
22513          test -z "$ac_c_werror_flag" ||
22514          test ! -s conftest.err
22515        } && test -s conftest.$ac_objext; then
22516   ac_hi=$ac_mid; break
22517 else
22518   echo "$as_me: failed program was:" >&5
22519 sed 's/^/| /' conftest.$ac_ext >&5
22520
22521         ac_lo=`expr $ac_mid + 1`
22522                         if test $ac_lo -le $ac_mid; then
22523                           ac_lo= ac_hi=
22524                           break
22525                         fi
22526                         ac_mid=`expr 2 '*' $ac_mid + 1`
22527 fi
22528
22529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22530   done
22531 else
22532   echo "$as_me: failed program was:" >&5
22533 sed 's/^/| /' conftest.$ac_ext >&5
22534
22535         cat >conftest.$ac_ext <<_ACEOF
22536 /* confdefs.h.  */
22537 _ACEOF
22538 cat confdefs.h >>conftest.$ac_ext
22539 cat >>conftest.$ac_ext <<_ACEOF
22540 /* end confdefs.h.  */
22541 $ac_includes_default
22542    typedef long long ac__type_sizeof_;
22543 int
22544 main ()
22545 {
22546 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22547 test_array [0] = 0
22548
22549   ;
22550   return 0;
22551 }
22552 _ACEOF
22553 rm -f conftest.$ac_objext
22554 if { (ac_try="$ac_compile"
22555 case "(($ac_try" in
22556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22557   *) ac_try_echo=$ac_try;;
22558 esac
22559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22560   (eval "$ac_compile") 2>conftest.er1
22561   ac_status=$?
22562   grep -v '^ *+' conftest.er1 >conftest.err
22563   rm -f conftest.er1
22564   cat conftest.err >&5
22565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22566   (exit $ac_status); } && {
22567          test -z "$ac_c_werror_flag" ||
22568          test ! -s conftest.err
22569        } && test -s conftest.$ac_objext; then
22570   ac_hi=-1 ac_mid=-1
22571   while :; do
22572     cat >conftest.$ac_ext <<_ACEOF
22573 /* confdefs.h.  */
22574 _ACEOF
22575 cat confdefs.h >>conftest.$ac_ext
22576 cat >>conftest.$ac_ext <<_ACEOF
22577 /* end confdefs.h.  */
22578 $ac_includes_default
22579    typedef long long ac__type_sizeof_;
22580 int
22581 main ()
22582 {
22583 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22584 test_array [0] = 0
22585
22586   ;
22587   return 0;
22588 }
22589 _ACEOF
22590 rm -f conftest.$ac_objext
22591 if { (ac_try="$ac_compile"
22592 case "(($ac_try" in
22593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22594   *) ac_try_echo=$ac_try;;
22595 esac
22596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22597   (eval "$ac_compile") 2>conftest.er1
22598   ac_status=$?
22599   grep -v '^ *+' conftest.er1 >conftest.err
22600   rm -f conftest.er1
22601   cat conftest.err >&5
22602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22603   (exit $ac_status); } && {
22604          test -z "$ac_c_werror_flag" ||
22605          test ! -s conftest.err
22606        } && test -s conftest.$ac_objext; then
22607   ac_lo=$ac_mid; break
22608 else
22609   echo "$as_me: failed program was:" >&5
22610 sed 's/^/| /' conftest.$ac_ext >&5
22611
22612         ac_hi=`expr '(' $ac_mid ')' - 1`
22613                         if test $ac_mid -le $ac_hi; then
22614                           ac_lo= ac_hi=
22615                           break
22616                         fi
22617                         ac_mid=`expr 2 '*' $ac_mid`
22618 fi
22619
22620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22621   done
22622 else
22623   echo "$as_me: failed program was:" >&5
22624 sed 's/^/| /' conftest.$ac_ext >&5
22625
22626         ac_lo= ac_hi=
22627 fi
22628
22629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22630 fi
22631
22632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22633 # Binary search between lo and hi bounds.
22634 while test "x$ac_lo" != "x$ac_hi"; do
22635   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22636   cat >conftest.$ac_ext <<_ACEOF
22637 /* confdefs.h.  */
22638 _ACEOF
22639 cat confdefs.h >>conftest.$ac_ext
22640 cat >>conftest.$ac_ext <<_ACEOF
22641 /* end confdefs.h.  */
22642 $ac_includes_default
22643    typedef long long ac__type_sizeof_;
22644 int
22645 main ()
22646 {
22647 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22648 test_array [0] = 0
22649
22650   ;
22651   return 0;
22652 }
22653 _ACEOF
22654 rm -f conftest.$ac_objext
22655 if { (ac_try="$ac_compile"
22656 case "(($ac_try" in
22657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22658   *) ac_try_echo=$ac_try;;
22659 esac
22660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22661   (eval "$ac_compile") 2>conftest.er1
22662   ac_status=$?
22663   grep -v '^ *+' conftest.er1 >conftest.err
22664   rm -f conftest.er1
22665   cat conftest.err >&5
22666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22667   (exit $ac_status); } && {
22668          test -z "$ac_c_werror_flag" ||
22669          test ! -s conftest.err
22670        } && test -s conftest.$ac_objext; then
22671   ac_hi=$ac_mid
22672 else
22673   echo "$as_me: failed program was:" >&5
22674 sed 's/^/| /' conftest.$ac_ext >&5
22675
22676         ac_lo=`expr '(' $ac_mid ')' + 1`
22677 fi
22678
22679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22680 done
22681 case $ac_lo in
22682 ?*) ac_cv_sizeof_long_long=$ac_lo;;
22683 '') if test "$ac_cv_type_long_long" = yes; then
22684      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22685 See \`config.log' for more details." >&5
22686 echo "$as_me: error: cannot compute sizeof (long long)
22687 See \`config.log' for more details." >&2;}
22688    { (exit 77); exit 77; }; }
22689    else
22690      ac_cv_sizeof_long_long=0
22691    fi ;;
22692 esac
22693 else
22694   cat >conftest.$ac_ext <<_ACEOF
22695 /* confdefs.h.  */
22696 _ACEOF
22697 cat confdefs.h >>conftest.$ac_ext
22698 cat >>conftest.$ac_ext <<_ACEOF
22699 /* end confdefs.h.  */
22700 $ac_includes_default
22701    typedef long long ac__type_sizeof_;
22702 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22703 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22704 #include <stdio.h>
22705 #include <stdlib.h>
22706 int
22707 main ()
22708 {
22709
22710   FILE *f = fopen ("conftest.val", "w");
22711   if (! f)
22712     return 1;
22713   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22714     {
22715       long int i = longval ();
22716       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22717         return 1;
22718       fprintf (f, "%ld\n", i);
22719     }
22720   else
22721     {
22722       unsigned long int i = ulongval ();
22723       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22724         return 1;
22725       fprintf (f, "%lu\n", i);
22726     }
22727   return ferror (f) || fclose (f) != 0;
22728
22729   ;
22730   return 0;
22731 }
22732 _ACEOF
22733 rm -f conftest$ac_exeext
22734 if { (ac_try="$ac_link"
22735 case "(($ac_try" in
22736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22737   *) ac_try_echo=$ac_try;;
22738 esac
22739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22740   (eval "$ac_link") 2>&5
22741   ac_status=$?
22742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22743   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22744   { (case "(($ac_try" in
22745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22746   *) ac_try_echo=$ac_try;;
22747 esac
22748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22749   (eval "$ac_try") 2>&5
22750   ac_status=$?
22751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22752   (exit $ac_status); }; }; then
22753   ac_cv_sizeof_long_long=`cat conftest.val`
22754 else
22755   echo "$as_me: program exited with status $ac_status" >&5
22756 echo "$as_me: failed program was:" >&5
22757 sed 's/^/| /' conftest.$ac_ext >&5
22758
22759 ( exit $ac_status )
22760 if test "$ac_cv_type_long_long" = yes; then
22761      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22762 See \`config.log' for more details." >&5
22763 echo "$as_me: error: cannot compute sizeof (long long)
22764 See \`config.log' for more details." >&2;}
22765    { (exit 77); exit 77; }; }
22766    else
22767      ac_cv_sizeof_long_long=0
22768    fi
22769 fi
22770 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22771 fi
22772 rm -f conftest.val
22773 fi
22774 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
22775 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
22776
22777
22778
22779 cat >>confdefs.h <<_ACEOF
22780 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22781 _ACEOF
22782
22783
22784 esac
22785
22786 { echo "$as_me:$LINENO: checking for wchar_t" >&5
22787 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
22788 if test "${ac_cv_type_wchar_t+set}" = set; then
22789   echo $ECHO_N "(cached) $ECHO_C" >&6
22790 else
22791   cat >conftest.$ac_ext <<_ACEOF
22792 /* confdefs.h.  */
22793 _ACEOF
22794 cat confdefs.h >>conftest.$ac_ext
22795 cat >>conftest.$ac_ext <<_ACEOF
22796 /* end confdefs.h.  */
22797
22798         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22799         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22800         #  error "fake wchar_t"
22801         #endif
22802         #ifdef HAVE_WCHAR_H
22803         #  ifdef __CYGWIN__
22804         #    include <stddef.h>
22805         #  endif
22806         #  include <wchar.h>
22807         #endif
22808         #ifdef HAVE_STDLIB_H
22809         #  include <stdlib.h>
22810         #endif
22811         #include <stdio.h>
22812
22813
22814
22815 typedef wchar_t ac__type_new_;
22816 int
22817 main ()
22818 {
22819 if ((ac__type_new_ *) 0)
22820   return 0;
22821 if (sizeof (ac__type_new_))
22822   return 0;
22823   ;
22824   return 0;
22825 }
22826 _ACEOF
22827 rm -f conftest.$ac_objext
22828 if { (ac_try="$ac_compile"
22829 case "(($ac_try" in
22830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22831   *) ac_try_echo=$ac_try;;
22832 esac
22833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22834   (eval "$ac_compile") 2>conftest.er1
22835   ac_status=$?
22836   grep -v '^ *+' conftest.er1 >conftest.err
22837   rm -f conftest.er1
22838   cat conftest.err >&5
22839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22840   (exit $ac_status); } && {
22841          test -z "$ac_c_werror_flag" ||
22842          test ! -s conftest.err
22843        } && test -s conftest.$ac_objext; then
22844   ac_cv_type_wchar_t=yes
22845 else
22846   echo "$as_me: failed program was:" >&5
22847 sed 's/^/| /' conftest.$ac_ext >&5
22848
22849         ac_cv_type_wchar_t=no
22850 fi
22851
22852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22853 fi
22854 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
22855 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
22856
22857 # The cast to long int works around a bug in the HP C Compiler
22858 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22859 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22860 # This bug is HP SR number 8606223364.
22861 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
22862 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
22863 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
22864   echo $ECHO_N "(cached) $ECHO_C" >&6
22865 else
22866   if test "$cross_compiling" = yes; then
22867   # Depending upon the size, compute the lo and hi bounds.
22868 cat >conftest.$ac_ext <<_ACEOF
22869 /* confdefs.h.  */
22870 _ACEOF
22871 cat confdefs.h >>conftest.$ac_ext
22872 cat >>conftest.$ac_ext <<_ACEOF
22873 /* end confdefs.h.  */
22874
22875         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22876         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22877         #  error "fake wchar_t"
22878         #endif
22879         #ifdef HAVE_WCHAR_H
22880         #  ifdef __CYGWIN__
22881         #    include <stddef.h>
22882         #  endif
22883         #  include <wchar.h>
22884         #endif
22885         #ifdef HAVE_STDLIB_H
22886         #  include <stdlib.h>
22887         #endif
22888         #include <stdio.h>
22889
22890
22891
22892    typedef wchar_t ac__type_sizeof_;
22893 int
22894 main ()
22895 {
22896 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22897 test_array [0] = 0
22898
22899   ;
22900   return 0;
22901 }
22902 _ACEOF
22903 rm -f conftest.$ac_objext
22904 if { (ac_try="$ac_compile"
22905 case "(($ac_try" in
22906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22907   *) ac_try_echo=$ac_try;;
22908 esac
22909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22910   (eval "$ac_compile") 2>conftest.er1
22911   ac_status=$?
22912   grep -v '^ *+' conftest.er1 >conftest.err
22913   rm -f conftest.er1
22914   cat conftest.err >&5
22915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22916   (exit $ac_status); } && {
22917          test -z "$ac_c_werror_flag" ||
22918          test ! -s conftest.err
22919        } && test -s conftest.$ac_objext; then
22920   ac_lo=0 ac_mid=0
22921   while :; do
22922     cat >conftest.$ac_ext <<_ACEOF
22923 /* confdefs.h.  */
22924 _ACEOF
22925 cat confdefs.h >>conftest.$ac_ext
22926 cat >>conftest.$ac_ext <<_ACEOF
22927 /* end confdefs.h.  */
22928
22929         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22930         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22931         #  error "fake wchar_t"
22932         #endif
22933         #ifdef HAVE_WCHAR_H
22934         #  ifdef __CYGWIN__
22935         #    include <stddef.h>
22936         #  endif
22937         #  include <wchar.h>
22938         #endif
22939         #ifdef HAVE_STDLIB_H
22940         #  include <stdlib.h>
22941         #endif
22942         #include <stdio.h>
22943
22944
22945
22946    typedef wchar_t ac__type_sizeof_;
22947 int
22948 main ()
22949 {
22950 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22951 test_array [0] = 0
22952
22953   ;
22954   return 0;
22955 }
22956 _ACEOF
22957 rm -f conftest.$ac_objext
22958 if { (ac_try="$ac_compile"
22959 case "(($ac_try" in
22960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22961   *) ac_try_echo=$ac_try;;
22962 esac
22963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22964   (eval "$ac_compile") 2>conftest.er1
22965   ac_status=$?
22966   grep -v '^ *+' conftest.er1 >conftest.err
22967   rm -f conftest.er1
22968   cat conftest.err >&5
22969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22970   (exit $ac_status); } && {
22971          test -z "$ac_c_werror_flag" ||
22972          test ! -s conftest.err
22973        } && test -s conftest.$ac_objext; then
22974   ac_hi=$ac_mid; break
22975 else
22976   echo "$as_me: failed program was:" >&5
22977 sed 's/^/| /' conftest.$ac_ext >&5
22978
22979         ac_lo=`expr $ac_mid + 1`
22980                         if test $ac_lo -le $ac_mid; then
22981                           ac_lo= ac_hi=
22982                           break
22983                         fi
22984                         ac_mid=`expr 2 '*' $ac_mid + 1`
22985 fi
22986
22987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22988   done
22989 else
22990   echo "$as_me: failed program was:" >&5
22991 sed 's/^/| /' conftest.$ac_ext >&5
22992
22993         cat >conftest.$ac_ext <<_ACEOF
22994 /* confdefs.h.  */
22995 _ACEOF
22996 cat confdefs.h >>conftest.$ac_ext
22997 cat >>conftest.$ac_ext <<_ACEOF
22998 /* end confdefs.h.  */
22999
23000         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23001         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23002         #  error "fake wchar_t"
23003         #endif
23004         #ifdef HAVE_WCHAR_H
23005         #  ifdef __CYGWIN__
23006         #    include <stddef.h>
23007         #  endif
23008         #  include <wchar.h>
23009         #endif
23010         #ifdef HAVE_STDLIB_H
23011         #  include <stdlib.h>
23012         #endif
23013         #include <stdio.h>
23014
23015
23016
23017    typedef wchar_t ac__type_sizeof_;
23018 int
23019 main ()
23020 {
23021 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23022 test_array [0] = 0
23023
23024   ;
23025   return 0;
23026 }
23027 _ACEOF
23028 rm -f conftest.$ac_objext
23029 if { (ac_try="$ac_compile"
23030 case "(($ac_try" in
23031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23032   *) ac_try_echo=$ac_try;;
23033 esac
23034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23035   (eval "$ac_compile") 2>conftest.er1
23036   ac_status=$?
23037   grep -v '^ *+' conftest.er1 >conftest.err
23038   rm -f conftest.er1
23039   cat conftest.err >&5
23040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23041   (exit $ac_status); } && {
23042          test -z "$ac_c_werror_flag" ||
23043          test ! -s conftest.err
23044        } && test -s conftest.$ac_objext; then
23045   ac_hi=-1 ac_mid=-1
23046   while :; do
23047     cat >conftest.$ac_ext <<_ACEOF
23048 /* confdefs.h.  */
23049 _ACEOF
23050 cat confdefs.h >>conftest.$ac_ext
23051 cat >>conftest.$ac_ext <<_ACEOF
23052 /* end confdefs.h.  */
23053
23054         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23055         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23056         #  error "fake wchar_t"
23057         #endif
23058         #ifdef HAVE_WCHAR_H
23059         #  ifdef __CYGWIN__
23060         #    include <stddef.h>
23061         #  endif
23062         #  include <wchar.h>
23063         #endif
23064         #ifdef HAVE_STDLIB_H
23065         #  include <stdlib.h>
23066         #endif
23067         #include <stdio.h>
23068
23069
23070
23071    typedef wchar_t ac__type_sizeof_;
23072 int
23073 main ()
23074 {
23075 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23076 test_array [0] = 0
23077
23078   ;
23079   return 0;
23080 }
23081 _ACEOF
23082 rm -f conftest.$ac_objext
23083 if { (ac_try="$ac_compile"
23084 case "(($ac_try" in
23085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23086   *) ac_try_echo=$ac_try;;
23087 esac
23088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23089   (eval "$ac_compile") 2>conftest.er1
23090   ac_status=$?
23091   grep -v '^ *+' conftest.er1 >conftest.err
23092   rm -f conftest.er1
23093   cat conftest.err >&5
23094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23095   (exit $ac_status); } && {
23096          test -z "$ac_c_werror_flag" ||
23097          test ! -s conftest.err
23098        } && test -s conftest.$ac_objext; then
23099   ac_lo=$ac_mid; break
23100 else
23101   echo "$as_me: failed program was:" >&5
23102 sed 's/^/| /' conftest.$ac_ext >&5
23103
23104         ac_hi=`expr '(' $ac_mid ')' - 1`
23105                         if test $ac_mid -le $ac_hi; then
23106                           ac_lo= ac_hi=
23107                           break
23108                         fi
23109                         ac_mid=`expr 2 '*' $ac_mid`
23110 fi
23111
23112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23113   done
23114 else
23115   echo "$as_me: failed program was:" >&5
23116 sed 's/^/| /' conftest.$ac_ext >&5
23117
23118         ac_lo= ac_hi=
23119 fi
23120
23121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23122 fi
23123
23124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23125 # Binary search between lo and hi bounds.
23126 while test "x$ac_lo" != "x$ac_hi"; do
23127   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23128   cat >conftest.$ac_ext <<_ACEOF
23129 /* confdefs.h.  */
23130 _ACEOF
23131 cat confdefs.h >>conftest.$ac_ext
23132 cat >>conftest.$ac_ext <<_ACEOF
23133 /* end confdefs.h.  */
23134
23135         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23136         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23137         #  error "fake wchar_t"
23138         #endif
23139         #ifdef HAVE_WCHAR_H
23140         #  ifdef __CYGWIN__
23141         #    include <stddef.h>
23142         #  endif
23143         #  include <wchar.h>
23144         #endif
23145         #ifdef HAVE_STDLIB_H
23146         #  include <stdlib.h>
23147         #endif
23148         #include <stdio.h>
23149
23150
23151
23152    typedef wchar_t ac__type_sizeof_;
23153 int
23154 main ()
23155 {
23156 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23157 test_array [0] = 0
23158
23159   ;
23160   return 0;
23161 }
23162 _ACEOF
23163 rm -f conftest.$ac_objext
23164 if { (ac_try="$ac_compile"
23165 case "(($ac_try" in
23166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23167   *) ac_try_echo=$ac_try;;
23168 esac
23169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23170   (eval "$ac_compile") 2>conftest.er1
23171   ac_status=$?
23172   grep -v '^ *+' conftest.er1 >conftest.err
23173   rm -f conftest.er1
23174   cat conftest.err >&5
23175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23176   (exit $ac_status); } && {
23177          test -z "$ac_c_werror_flag" ||
23178          test ! -s conftest.err
23179        } && test -s conftest.$ac_objext; then
23180   ac_hi=$ac_mid
23181 else
23182   echo "$as_me: failed program was:" >&5
23183 sed 's/^/| /' conftest.$ac_ext >&5
23184
23185         ac_lo=`expr '(' $ac_mid ')' + 1`
23186 fi
23187
23188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23189 done
23190 case $ac_lo in
23191 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
23192 '') if test "$ac_cv_type_wchar_t" = yes; then
23193      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
23194 See \`config.log' for more details." >&5
23195 echo "$as_me: error: cannot compute sizeof (wchar_t)
23196 See \`config.log' for more details." >&2;}
23197    { (exit 77); exit 77; }; }
23198    else
23199      ac_cv_sizeof_wchar_t=0
23200    fi ;;
23201 esac
23202 else
23203   cat >conftest.$ac_ext <<_ACEOF
23204 /* confdefs.h.  */
23205 _ACEOF
23206 cat confdefs.h >>conftest.$ac_ext
23207 cat >>conftest.$ac_ext <<_ACEOF
23208 /* end confdefs.h.  */
23209
23210         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23211         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23212         #  error "fake wchar_t"
23213         #endif
23214         #ifdef HAVE_WCHAR_H
23215         #  ifdef __CYGWIN__
23216         #    include <stddef.h>
23217         #  endif
23218         #  include <wchar.h>
23219         #endif
23220         #ifdef HAVE_STDLIB_H
23221         #  include <stdlib.h>
23222         #endif
23223         #include <stdio.h>
23224
23225
23226
23227    typedef wchar_t ac__type_sizeof_;
23228 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23229 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23230 #include <stdio.h>
23231 #include <stdlib.h>
23232 int
23233 main ()
23234 {
23235
23236   FILE *f = fopen ("conftest.val", "w");
23237   if (! f)
23238     return 1;
23239   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23240     {
23241       long int i = longval ();
23242       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23243         return 1;
23244       fprintf (f, "%ld\n", i);
23245     }
23246   else
23247     {
23248       unsigned long int i = ulongval ();
23249       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23250         return 1;
23251       fprintf (f, "%lu\n", i);
23252     }
23253   return ferror (f) || fclose (f) != 0;
23254
23255   ;
23256   return 0;
23257 }
23258 _ACEOF
23259 rm -f conftest$ac_exeext
23260 if { (ac_try="$ac_link"
23261 case "(($ac_try" in
23262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23263   *) ac_try_echo=$ac_try;;
23264 esac
23265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23266   (eval "$ac_link") 2>&5
23267   ac_status=$?
23268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23269   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23270   { (case "(($ac_try" in
23271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23272   *) ac_try_echo=$ac_try;;
23273 esac
23274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23275   (eval "$ac_try") 2>&5
23276   ac_status=$?
23277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23278   (exit $ac_status); }; }; then
23279   ac_cv_sizeof_wchar_t=`cat conftest.val`
23280 else
23281   echo "$as_me: program exited with status $ac_status" >&5
23282 echo "$as_me: failed program was:" >&5
23283 sed 's/^/| /' conftest.$ac_ext >&5
23284
23285 ( exit $ac_status )
23286 if test "$ac_cv_type_wchar_t" = yes; then
23287      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
23288 See \`config.log' for more details." >&5
23289 echo "$as_me: error: cannot compute sizeof (wchar_t)
23290 See \`config.log' for more details." >&2;}
23291    { (exit 77); exit 77; }; }
23292    else
23293      ac_cv_sizeof_wchar_t=0
23294    fi
23295 fi
23296 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23297 fi
23298 rm -f conftest.val
23299 fi
23300 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
23301 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
23302
23303
23304
23305 cat >>confdefs.h <<_ACEOF
23306 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
23307 _ACEOF
23308
23309
23310 if test "$ac_cv_sizeof_wchar_t" != 0; then
23311     wxUSE_WCHAR_T=yes
23312 else
23313     wxUSE_WCHAR_T=no
23314 fi
23315
23316 { echo "$as_me:$LINENO: checking for va_copy" >&5
23317 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
23318 if test "${wx_cv_func_va_copy+set}" = set; then
23319   echo $ECHO_N "(cached) $ECHO_C" >&6
23320 else
23321
23322         ac_ext=cpp
23323 ac_cpp='$CXXCPP $CPPFLAGS'
23324 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23325 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23326 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23327
23328         cat >conftest.$ac_ext <<_ACEOF
23329
23330             #include <stdarg.h>
23331             void foo(char *f, ...)
23332             {
23333                 va_list ap1, ap2;
23334                 va_start(ap1, f);
23335                 va_copy(ap2, ap1);
23336                 va_end(ap2);
23337                 va_end(ap1);
23338             }
23339             int main()
23340             {
23341                 foo("hi", 17);
23342                 return 0;
23343             }
23344 _ACEOF
23345 rm -f conftest.$ac_objext conftest$ac_exeext
23346 if { (ac_try="$ac_link"
23347 case "(($ac_try" in
23348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23349   *) ac_try_echo=$ac_try;;
23350 esac
23351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23352   (eval "$ac_link") 2>conftest.er1
23353   ac_status=$?
23354   grep -v '^ *+' conftest.er1 >conftest.err
23355   rm -f conftest.er1
23356   cat conftest.err >&5
23357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23358   (exit $ac_status); } && {
23359          test -z "$ac_cxx_werror_flag" ||
23360          test ! -s conftest.err
23361        } && test -s conftest$ac_exeext &&
23362        $as_test_x conftest$ac_exeext; then
23363   wx_cv_func_va_copy=yes
23364 else
23365   echo "$as_me: failed program was:" >&5
23366 sed 's/^/| /' conftest.$ac_ext >&5
23367
23368         wx_cv_func_va_copy=no
23369
23370 fi
23371
23372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23373       conftest$ac_exeext conftest.$ac_ext
23374         ac_ext=c
23375 ac_cpp='$CPP $CPPFLAGS'
23376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23379
23380
23381
23382 fi
23383 { echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
23384 echo "${ECHO_T}$wx_cv_func_va_copy" >&6; }
23385
23386 if test $wx_cv_func_va_copy = "yes"; then
23387     cat >>confdefs.h <<\_ACEOF
23388 #define HAVE_VA_COPY 1
23389 _ACEOF
23390
23391 else
23392         { echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
23393 echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6; }
23394 if test "${wx_cv_type_va_list_lvalue+set}" = set; then
23395   echo $ECHO_N "(cached) $ECHO_C" >&6
23396 else
23397
23398             if test "$cross_compiling" = yes; then
23399                   wx_cv_type_va_list_lvalue=yes
23400
23401 else
23402   cat >conftest.$ac_ext <<_ACEOF
23403
23404                 #include <stdarg.h>
23405                 int foo(char *f, ...)
23406                 {
23407                     va_list ap1, ap2;
23408                     va_start(ap1, f);
23409                     ap2 = ap1;
23410                     if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
23411                         return 1;
23412                     va_end(ap2);
23413                     va_end(ap1);
23414                     return 0;
23415                 }
23416                 int main()
23417                 {
23418                     return foo("hi", 17);
23419                 }
23420 _ACEOF
23421 rm -f conftest$ac_exeext
23422 if { (ac_try="$ac_link"
23423 case "(($ac_try" in
23424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23425   *) ac_try_echo=$ac_try;;
23426 esac
23427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23428   (eval "$ac_link") 2>&5
23429   ac_status=$?
23430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23431   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23432   { (case "(($ac_try" in
23433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23434   *) ac_try_echo=$ac_try;;
23435 esac
23436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23437   (eval "$ac_try") 2>&5
23438   ac_status=$?
23439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23440   (exit $ac_status); }; }; then
23441   wx_cv_type_va_list_lvalue=yes
23442 else
23443   echo "$as_me: program exited with status $ac_status" >&5
23444 echo "$as_me: failed program was:" >&5
23445 sed 's/^/| /' conftest.$ac_ext >&5
23446
23447 ( exit $ac_status )
23448 wx_cv_type_va_list_lvalue=no
23449 fi
23450 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23451 fi
23452
23453
23454
23455
23456 fi
23457 { echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
23458 echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6; }
23459
23460     if test $wx_cv_type_va_list_lvalue != "yes"; then
23461                         cat >>confdefs.h <<\_ACEOF
23462 #define VA_LIST_IS_ARRAY 1
23463 _ACEOF
23464
23465     fi
23466 fi
23467
23468 if test "$wxUSE_VARARG_MACROS" = "yes"; then
23469
23470 { echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
23471 echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6; }
23472 if test "${wx_cv_have_variadic_macros+set}" = set; then
23473   echo $ECHO_N "(cached) $ECHO_C" >&6
23474 else
23475
23476                         ac_ext=cpp
23477 ac_cpp='$CXXCPP $CPPFLAGS'
23478 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23479 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23480 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23481
23482         cat >conftest.$ac_ext <<_ACEOF
23483 /* confdefs.h.  */
23484 _ACEOF
23485 cat confdefs.h >>conftest.$ac_ext
23486 cat >>conftest.$ac_ext <<_ACEOF
23487 /* end confdefs.h.  */
23488
23489                     #include <stdio.h>
23490                     #define test(fmt, ...) printf(fmt, __VA_ARGS__)
23491
23492 int
23493 main ()
23494 {
23495
23496                     test("%s %d %p", "test", 1, 0);
23497
23498
23499   ;
23500   return 0;
23501 }
23502 _ACEOF
23503 rm -f conftest.$ac_objext
23504 if { (ac_try="$ac_compile"
23505 case "(($ac_try" in
23506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23507   *) ac_try_echo=$ac_try;;
23508 esac
23509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23510   (eval "$ac_compile") 2>conftest.er1
23511   ac_status=$?
23512   grep -v '^ *+' conftest.er1 >conftest.err
23513   rm -f conftest.er1
23514   cat conftest.err >&5
23515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23516   (exit $ac_status); } && {
23517          test -z "$ac_cxx_werror_flag" ||
23518          test ! -s conftest.err
23519        } && test -s conftest.$ac_objext; then
23520   wx_cv_have_variadic_macros=yes
23521 else
23522   echo "$as_me: failed program was:" >&5
23523 sed 's/^/| /' conftest.$ac_ext >&5
23524
23525         wx_cv_have_variadic_macros=no
23526
23527 fi
23528
23529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23530         ac_ext=c
23531 ac_cpp='$CPP $CPPFLAGS'
23532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23535
23536
23537
23538 fi
23539 { echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
23540 echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6; }
23541
23542 if test $wx_cv_have_variadic_macros = "yes"; then
23543     cat >>confdefs.h <<\_ACEOF
23544 #define HAVE_VARIADIC_MACROS 1
23545 _ACEOF
23546
23547 fi
23548
23549 fi
23550
23551 LARGEFILE_CPPFLAGS=
23552 # Check whether --enable-largefile was given.
23553 if test "${enable_largefile+set}" = set; then
23554   enableval=$enable_largefile;
23555 fi
23556
23557 if test "$enable_largefile" != no; then
23558             wx_largefile=no
23559
23560     { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
23561 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
23562 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
23563   echo $ECHO_N "(cached) $ECHO_C" >&6
23564 else
23565
23566           cat >conftest.$ac_ext <<_ACEOF
23567 /* confdefs.h.  */
23568 _ACEOF
23569 cat confdefs.h >>conftest.$ac_ext
23570 cat >>conftest.$ac_ext <<_ACEOF
23571 /* end confdefs.h.  */
23572 #define _FILE_OFFSET_BITS 64
23573                           #include <sys/types.h>
23574 int
23575 main ()
23576 {
23577 typedef struct {
23578     unsigned int field: sizeof(off_t) == 8;
23579 } wxlf;
23580
23581   ;
23582   return 0;
23583 }
23584 _ACEOF
23585 rm -f conftest.$ac_objext
23586 if { (ac_try="$ac_compile"
23587 case "(($ac_try" in
23588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23589   *) ac_try_echo=$ac_try;;
23590 esac
23591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23592   (eval "$ac_compile") 2>conftest.er1
23593   ac_status=$?
23594   grep -v '^ *+' conftest.er1 >conftest.err
23595   rm -f conftest.er1
23596   cat conftest.err >&5
23597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23598   (exit $ac_status); } && {
23599          test -z "$ac_c_werror_flag" ||
23600          test ! -s conftest.err
23601        } && test -s conftest.$ac_objext; then
23602   ac_cv_sys_file_offset_bits=64
23603 else
23604   echo "$as_me: failed program was:" >&5
23605 sed 's/^/| /' conftest.$ac_ext >&5
23606
23607         ac_cv_sys_file_offset_bits=no
23608 fi
23609
23610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23611
23612
23613 fi
23614 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
23615 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
23616
23617     if test "$ac_cv_sys_file_offset_bits" != no; then
23618         wx_largefile=yes
23619         cat >>confdefs.h <<_ACEOF
23620 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
23621 _ACEOF
23622
23623     fi
23624
23625     if test "x$wx_largefile" != "xyes"; then
23626
23627     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
23628 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
23629 if test "${ac_cv_sys_large_files+set}" = set; then
23630   echo $ECHO_N "(cached) $ECHO_C" >&6
23631 else
23632
23633           cat >conftest.$ac_ext <<_ACEOF
23634 /* confdefs.h.  */
23635 _ACEOF
23636 cat confdefs.h >>conftest.$ac_ext
23637 cat >>conftest.$ac_ext <<_ACEOF
23638 /* end confdefs.h.  */
23639 #define _LARGE_FILES 1
23640                           #include <sys/types.h>
23641 int
23642 main ()
23643 {
23644 typedef struct {
23645     unsigned int field: sizeof(off_t) == 8;
23646 } wxlf;
23647
23648   ;
23649   return 0;
23650 }
23651 _ACEOF
23652 rm -f conftest.$ac_objext
23653 if { (ac_try="$ac_compile"
23654 case "(($ac_try" in
23655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23656   *) ac_try_echo=$ac_try;;
23657 esac
23658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23659   (eval "$ac_compile") 2>conftest.er1
23660   ac_status=$?
23661   grep -v '^ *+' conftest.er1 >conftest.err
23662   rm -f conftest.er1
23663   cat conftest.err >&5
23664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23665   (exit $ac_status); } && {
23666          test -z "$ac_c_werror_flag" ||
23667          test ! -s conftest.err
23668        } && test -s conftest.$ac_objext; then
23669   ac_cv_sys_large_files=1
23670 else
23671   echo "$as_me: failed program was:" >&5
23672 sed 's/^/| /' conftest.$ac_ext >&5
23673
23674         ac_cv_sys_large_files=no
23675 fi
23676
23677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23678
23679
23680 fi
23681 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
23682 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
23683
23684     if test "$ac_cv_sys_large_files" != no; then
23685         wx_largefile=yes
23686         cat >>confdefs.h <<_ACEOF
23687 #define _LARGE_FILES $ac_cv_sys_large_files
23688 _ACEOF
23689
23690     fi
23691
23692     fi
23693
23694     { echo "$as_me:$LINENO: checking if large file support is available" >&5
23695 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6; }
23696     if test "x$wx_largefile" = "xyes"; then
23697         cat >>confdefs.h <<\_ACEOF
23698 #define HAVE_LARGEFILE_SUPPORT 1
23699 _ACEOF
23700
23701     fi
23702     { echo "$as_me:$LINENO: result: $wx_largefile" >&5
23703 echo "${ECHO_T}$wx_largefile" >&6; }
23704 fi
23705
23706 if test "$ac_cv_sys_file_offset_bits" = "64"; then
23707     LARGEFILE_CPPFLAGS="-D_FILE_OFFSET_BITS=64"
23708 elif test "$ac_cv_sys_large_files" = 1; then
23709     LARGEFILE_CPPFLAGS="-D_LARGE_FILES"
23710 fi
23711
23712 if test -n "$LARGEFILE_CPPFLAGS"; then
23713     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $LARGEFILE_CPPFLAGS"
23714
23715                             if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
23716         { echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
23717 echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6; }
23718 if test "${wx_cv_STDC_EXT_required+set}" = set; then
23719   echo $ECHO_N "(cached) $ECHO_C" >&6
23720 else
23721
23722                 ac_ext=cpp
23723 ac_cpp='$CXXCPP $CPPFLAGS'
23724 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23725 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23726 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23727
23728                 cat >conftest.$ac_ext <<_ACEOF
23729 /* confdefs.h.  */
23730 _ACEOF
23731 cat confdefs.h >>conftest.$ac_ext
23732 cat >>conftest.$ac_ext <<_ACEOF
23733 /* end confdefs.h.  */
23734
23735 int
23736 main ()
23737 {
23738
23739                         #ifndef __STDC_EXT__
23740                             choke me
23741                         #endif
23742
23743   ;
23744   return 0;
23745 }
23746 _ACEOF
23747 rm -f conftest.$ac_objext
23748 if { (ac_try="$ac_compile"
23749 case "(($ac_try" in
23750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23751   *) ac_try_echo=$ac_try;;
23752 esac
23753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23754   (eval "$ac_compile") 2>conftest.er1
23755   ac_status=$?
23756   grep -v '^ *+' conftest.er1 >conftest.err
23757   rm -f conftest.er1
23758   cat conftest.err >&5
23759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23760   (exit $ac_status); } && {
23761          test -z "$ac_cxx_werror_flag" ||
23762          test ! -s conftest.err
23763        } && test -s conftest.$ac_objext; then
23764   wx_cv_STDC_EXT_required=no
23765 else
23766   echo "$as_me: failed program was:" >&5
23767 sed 's/^/| /' conftest.$ac_ext >&5
23768
23769         wx_cv_STDC_EXT_required=yes
23770
23771 fi
23772
23773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23774                 ac_ext=c
23775 ac_cpp='$CPP $CPPFLAGS'
23776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23779
23780
23781
23782 fi
23783 { echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
23784 echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6; }
23785         if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
23786             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
23787         fi
23788     fi
23789 fi
23790
23791 ac_ext=cpp
23792 ac_cpp='$CXXCPP $CPPFLAGS'
23793 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23794 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23795 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23796
23797 old_CPPFLAGS="$CPPFLAGS"
23798 CPPFLAGS="$CPPFLAGS $LARGEFILE_CPPFLAGS"
23799 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
23800 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
23801 if test "${ac_cv_sys_largefile_source+set}" = set; then
23802   echo $ECHO_N "(cached) $ECHO_C" >&6
23803 else
23804   while :; do
23805   cat >conftest.$ac_ext <<_ACEOF
23806 /* confdefs.h.  */
23807 _ACEOF
23808 cat confdefs.h >>conftest.$ac_ext
23809 cat >>conftest.$ac_ext <<_ACEOF
23810 /* end confdefs.h.  */
23811 #include <sys/types.h> /* for off_t */
23812      #include <stdio.h>
23813 int
23814 main ()
23815 {
23816 int (*fp) (FILE *, off_t, int) = fseeko;
23817      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
23818   ;
23819   return 0;
23820 }
23821 _ACEOF
23822 rm -f conftest.$ac_objext conftest$ac_exeext
23823 if { (ac_try="$ac_link"
23824 case "(($ac_try" in
23825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23826   *) ac_try_echo=$ac_try;;
23827 esac
23828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23829   (eval "$ac_link") 2>conftest.er1
23830   ac_status=$?
23831   grep -v '^ *+' conftest.er1 >conftest.err
23832   rm -f conftest.er1
23833   cat conftest.err >&5
23834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23835   (exit $ac_status); } && {
23836          test -z "$ac_cxx_werror_flag" ||
23837          test ! -s conftest.err
23838        } && test -s conftest$ac_exeext &&
23839        $as_test_x conftest$ac_exeext; then
23840   ac_cv_sys_largefile_source=no; break
23841 else
23842   echo "$as_me: failed program was:" >&5
23843 sed 's/^/| /' conftest.$ac_ext >&5
23844
23845
23846 fi
23847
23848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23849       conftest$ac_exeext conftest.$ac_ext
23850   cat >conftest.$ac_ext <<_ACEOF
23851 /* confdefs.h.  */
23852 _ACEOF
23853 cat confdefs.h >>conftest.$ac_ext
23854 cat >>conftest.$ac_ext <<_ACEOF
23855 /* end confdefs.h.  */
23856 #define _LARGEFILE_SOURCE 1
23857 #include <sys/types.h> /* for off_t */
23858      #include <stdio.h>
23859 int
23860 main ()
23861 {
23862 int (*fp) (FILE *, off_t, int) = fseeko;
23863      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
23864   ;
23865   return 0;
23866 }
23867 _ACEOF
23868 rm -f conftest.$ac_objext conftest$ac_exeext
23869 if { (ac_try="$ac_link"
23870 case "(($ac_try" in
23871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23872   *) ac_try_echo=$ac_try;;
23873 esac
23874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23875   (eval "$ac_link") 2>conftest.er1
23876   ac_status=$?
23877   grep -v '^ *+' conftest.er1 >conftest.err
23878   rm -f conftest.er1
23879   cat conftest.err >&5
23880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23881   (exit $ac_status); } && {
23882          test -z "$ac_cxx_werror_flag" ||
23883          test ! -s conftest.err
23884        } && test -s conftest$ac_exeext &&
23885        $as_test_x conftest$ac_exeext; then
23886   ac_cv_sys_largefile_source=1; break
23887 else
23888   echo "$as_me: failed program was:" >&5
23889 sed 's/^/| /' conftest.$ac_ext >&5
23890
23891
23892 fi
23893
23894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23895       conftest$ac_exeext conftest.$ac_ext
23896   ac_cv_sys_largefile_source=unknown
23897   break
23898 done
23899 fi
23900 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
23901 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
23902 case $ac_cv_sys_largefile_source in #(
23903   no | unknown) ;;
23904   *)
23905 cat >>confdefs.h <<_ACEOF
23906 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
23907 _ACEOF
23908 ;;
23909 esac
23910 rm -f conftest*
23911
23912 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
23913 # in glibc 2.1.3, but that breaks too many other things.
23914 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
23915 if test $ac_cv_sys_largefile_source != unknown; then
23916
23917 cat >>confdefs.h <<\_ACEOF
23918 #define HAVE_FSEEKO 1
23919 _ACEOF
23920
23921 fi
23922
23923 CPPFLAGS="$old_CPPFLAGS"
23924 ac_ext=c
23925 ac_cpp='$CPP $CPPFLAGS'
23926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23929
23930 if test "$ac_cv_sys_largefile_source" != no; then
23931     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
23932 fi
23933
23934 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
23935 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
23936 if test "${ac_cv_c_bigendian+set}" = set; then
23937   echo $ECHO_N "(cached) $ECHO_C" >&6
23938 else
23939   ac_cv_c_bigendian=unknown
23940 # See if sys/param.h defines the BYTE_ORDER macro.
23941 cat >conftest.$ac_ext <<_ACEOF
23942 /* confdefs.h.  */
23943 _ACEOF
23944 cat confdefs.h >>conftest.$ac_ext
23945 cat >>conftest.$ac_ext <<_ACEOF
23946 /* end confdefs.h.  */
23947 #include <sys/types.h>
23948 #include <sys/param.h>
23949 int
23950 main ()
23951 {
23952
23953 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
23954  bogus endian macros
23955 #endif
23956   ;
23957   return 0;
23958 }
23959 _ACEOF
23960 rm -f conftest.$ac_objext
23961 if { (ac_try="$ac_compile"
23962 case "(($ac_try" in
23963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23964   *) ac_try_echo=$ac_try;;
23965 esac
23966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23967   (eval "$ac_compile") 2>conftest.er1
23968   ac_status=$?
23969   grep -v '^ *+' conftest.er1 >conftest.err
23970   rm -f conftest.er1
23971   cat conftest.err >&5
23972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23973   (exit $ac_status); } && {
23974          test -z "$ac_c_werror_flag" ||
23975          test ! -s conftest.err
23976        } && test -s conftest.$ac_objext; then
23977   # It does; now see whether it defined to BIG_ENDIAN or not.
23978 cat >conftest.$ac_ext <<_ACEOF
23979 /* confdefs.h.  */
23980 _ACEOF
23981 cat confdefs.h >>conftest.$ac_ext
23982 cat >>conftest.$ac_ext <<_ACEOF
23983 /* end confdefs.h.  */
23984 #include <sys/types.h>
23985 #include <sys/param.h>
23986 int
23987 main ()
23988 {
23989
23990 #if BYTE_ORDER != BIG_ENDIAN
23991  not big endian
23992 #endif
23993   ;
23994   return 0;
23995 }
23996 _ACEOF
23997 rm -f conftest.$ac_objext
23998 if { (ac_try="$ac_compile"
23999 case "(($ac_try" in
24000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24001   *) ac_try_echo=$ac_try;;
24002 esac
24003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24004   (eval "$ac_compile") 2>conftest.er1
24005   ac_status=$?
24006   grep -v '^ *+' conftest.er1 >conftest.err
24007   rm -f conftest.er1
24008   cat conftest.err >&5
24009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24010   (exit $ac_status); } && {
24011          test -z "$ac_c_werror_flag" ||
24012          test ! -s conftest.err
24013        } && test -s conftest.$ac_objext; then
24014   ac_cv_c_bigendian=yes
24015 else
24016   echo "$as_me: failed program was:" >&5
24017 sed 's/^/| /' conftest.$ac_ext >&5
24018
24019         ac_cv_c_bigendian=no
24020 fi
24021
24022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24023 else
24024   echo "$as_me: failed program was:" >&5
24025 sed 's/^/| /' conftest.$ac_ext >&5
24026
24027
24028 fi
24029
24030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24031 if test $ac_cv_c_bigendian = unknown; then
24032 if test "$cross_compiling" = yes; then
24033   ac_cv_c_bigendian=unknown
24034 else
24035   cat >conftest.$ac_ext <<_ACEOF
24036 /* confdefs.h.  */
24037 _ACEOF
24038 cat confdefs.h >>conftest.$ac_ext
24039 cat >>conftest.$ac_ext <<_ACEOF
24040 /* end confdefs.h.  */
24041 main () {
24042   /* Are we little or big endian?  From Harbison&Steele.  */
24043   union
24044   {
24045     long l;
24046     char c[sizeof (long)];
24047   } u;
24048   u.l = 1;
24049   exit (u.c[sizeof (long) - 1] == 1);
24050 }
24051 _ACEOF
24052 rm -f conftest$ac_exeext
24053 if { (ac_try="$ac_link"
24054 case "(($ac_try" in
24055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24056   *) ac_try_echo=$ac_try;;
24057 esac
24058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24059   (eval "$ac_link") 2>&5
24060   ac_status=$?
24061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24062   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24063   { (case "(($ac_try" in
24064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24065   *) ac_try_echo=$ac_try;;
24066 esac
24067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24068   (eval "$ac_try") 2>&5
24069   ac_status=$?
24070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24071   (exit $ac_status); }; }; then
24072   ac_cv_c_bigendian=no
24073 else
24074   echo "$as_me: program exited with status $ac_status" >&5
24075 echo "$as_me: failed program was:" >&5
24076 sed 's/^/| /' conftest.$ac_ext >&5
24077
24078 ( exit $ac_status )
24079 ac_cv_c_bigendian=yes
24080 fi
24081 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24082 fi
24083
24084
24085 fi
24086 fi
24087 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
24088 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
24089 if test $ac_cv_c_bigendian = unknown; then
24090   { 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
24091 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;}
24092 fi
24093 if test $ac_cv_c_bigendian = yes; then
24094   cat >>confdefs.h <<\_ACEOF
24095 #define WORDS_BIGENDIAN 1
24096 _ACEOF
24097
24098 fi
24099
24100
24101
24102
24103     ac_ext=cpp
24104 ac_cpp='$CXXCPP $CPPFLAGS'
24105 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24106 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24107 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24108
24109
24110
24111 for ac_header in iostream
24112 do
24113 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24114 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24116 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24117   echo $ECHO_N "(cached) $ECHO_C" >&6
24118 else
24119   cat >conftest.$ac_ext <<_ACEOF
24120 /* confdefs.h.  */
24121 _ACEOF
24122 cat confdefs.h >>conftest.$ac_ext
24123 cat >>conftest.$ac_ext <<_ACEOF
24124 /* end confdefs.h.  */
24125
24126
24127 #include <$ac_header>
24128 _ACEOF
24129 rm -f conftest.$ac_objext
24130 if { (ac_try="$ac_compile"
24131 case "(($ac_try" in
24132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24133   *) ac_try_echo=$ac_try;;
24134 esac
24135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24136   (eval "$ac_compile") 2>conftest.er1
24137   ac_status=$?
24138   grep -v '^ *+' conftest.er1 >conftest.err
24139   rm -f conftest.er1
24140   cat conftest.err >&5
24141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24142   (exit $ac_status); } && {
24143          test -z "$ac_cxx_werror_flag" ||
24144          test ! -s conftest.err
24145        } && test -s conftest.$ac_objext; then
24146   eval "$as_ac_Header=yes"
24147 else
24148   echo "$as_me: failed program was:" >&5
24149 sed 's/^/| /' conftest.$ac_ext >&5
24150
24151         eval "$as_ac_Header=no"
24152 fi
24153
24154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24155 fi
24156 ac_res=`eval echo '${'$as_ac_Header'}'`
24157                { echo "$as_me:$LINENO: result: $ac_res" >&5
24158 echo "${ECHO_T}$ac_res" >&6; }
24159 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24160   cat >>confdefs.h <<_ACEOF
24161 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24162 _ACEOF
24163
24164 fi
24165
24166 done
24167
24168
24169     if test "$ac_cv_header_iostream" = "yes" ; then
24170       :
24171     else
24172       cat >>confdefs.h <<\_ACEOF
24173 #define wxUSE_IOSTREAMH 1
24174 _ACEOF
24175
24176     fi
24177
24178     ac_ext=c
24179 ac_cpp='$CPP $CPPFLAGS'
24180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24183
24184
24185
24186
24187   { echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
24188 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6; }
24189 if test "${wx_cv_explicit+set}" = set; then
24190   echo $ECHO_N "(cached) $ECHO_C" >&6
24191 else
24192
24193
24194     ac_ext=cpp
24195 ac_cpp='$CXXCPP $CPPFLAGS'
24196 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24197 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24198 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24199
24200
24201             cat >conftest.$ac_ext <<_ACEOF
24202 /* confdefs.h.  */
24203 _ACEOF
24204 cat confdefs.h >>conftest.$ac_ext
24205 cat >>conftest.$ac_ext <<_ACEOF
24206 /* end confdefs.h.  */
24207
24208         class Foo { public: explicit Foo(int) {} };
24209
24210 int
24211 main ()
24212 {
24213
24214         return 0;
24215
24216   ;
24217   return 0;
24218 }
24219 _ACEOF
24220 rm -f conftest.$ac_objext
24221 if { (ac_try="$ac_compile"
24222 case "(($ac_try" in
24223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24224   *) ac_try_echo=$ac_try;;
24225 esac
24226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24227   (eval "$ac_compile") 2>conftest.er1
24228   ac_status=$?
24229   grep -v '^ *+' conftest.er1 >conftest.err
24230   rm -f conftest.er1
24231   cat conftest.err >&5
24232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24233   (exit $ac_status); } && {
24234          test -z "$ac_cxx_werror_flag" ||
24235          test ! -s conftest.err
24236        } && test -s conftest.$ac_objext; then
24237
24238         cat >conftest.$ac_ext <<_ACEOF
24239 /* confdefs.h.  */
24240 _ACEOF
24241 cat confdefs.h >>conftest.$ac_ext
24242 cat >>conftest.$ac_ext <<_ACEOF
24243 /* end confdefs.h.  */
24244
24245                 class Foo { public: explicit Foo(int) {} };
24246                 static void TakeFoo(const Foo& foo) { }
24247
24248 int
24249 main ()
24250 {
24251
24252                 TakeFoo(17);
24253                 return 0;
24254
24255   ;
24256   return 0;
24257 }
24258 _ACEOF
24259 rm -f conftest.$ac_objext
24260 if { (ac_try="$ac_compile"
24261 case "(($ac_try" in
24262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24263   *) ac_try_echo=$ac_try;;
24264 esac
24265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24266   (eval "$ac_compile") 2>conftest.er1
24267   ac_status=$?
24268   grep -v '^ *+' conftest.er1 >conftest.err
24269   rm -f conftest.er1
24270   cat conftest.err >&5
24271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24272   (exit $ac_status); } && {
24273          test -z "$ac_cxx_werror_flag" ||
24274          test ! -s conftest.err
24275        } && test -s conftest.$ac_objext; then
24276   wx_cv_explicit=no
24277 else
24278   echo "$as_me: failed program was:" >&5
24279 sed 's/^/| /' conftest.$ac_ext >&5
24280
24281         wx_cv_explicit=yes
24282
24283 fi
24284
24285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24286
24287 else
24288   echo "$as_me: failed program was:" >&5
24289 sed 's/^/| /' conftest.$ac_ext >&5
24290
24291         wx_cv_explicit=no
24292
24293 fi
24294
24295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24296
24297     ac_ext=c
24298 ac_cpp='$CPP $CPPFLAGS'
24299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24302
24303
24304 fi
24305 { echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
24306 echo "${ECHO_T}$wx_cv_explicit" >&6; }
24307
24308   if test "$wx_cv_explicit" = "yes"; then
24309     cat >>confdefs.h <<\_ACEOF
24310 #define HAVE_EXPLICIT 1
24311 _ACEOF
24312
24313   fi
24314
24315
24316 if test "x$SUNCXX" = xyes; then
24317     CXXFLAGS="-features=tmplife $CXXFLAGS"
24318 fi
24319
24320 if test "x$SUNCC" = xyes; then
24321     CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
24322 fi
24323
24324 if test "x$SGICC" = "xyes"; then
24325     CFLAGS="-woff 3970 $CFLAGS"
24326 fi
24327 if test "x$SGICXX" = "xyes"; then
24328     CXXFLAGS="-woff 3970 $CXXFLAGS"
24329 fi
24330
24331 if test "x$HPCC" = "xyes"; then
24332                     CFLAGS="+W 2011,2450 $CFLAGS"
24333 fi
24334 if test "x$HPCXX" = "xyes"; then
24335                             CXXFLAGS="+W 2340,4232 $CXXFLAGS"
24336 fi
24337
24338 if test "x$COMPAQCXX" = "xyes"; then
24339                                 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
24340 fi
24341
24342 ac_ext=cpp
24343 ac_cpp='$CXXCPP $CPPFLAGS'
24344 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24345 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24346 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24347
24348
24349 if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
24350     if test "$wxUSE_UNICODE" = "yes"; then
24351         std_string="std::wstring"
24352         char_type="wchar_t"
24353     else
24354         std_string="std::string"
24355         char_type="char"
24356     fi
24357
24358         { echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
24359 echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6; }
24360 if test "${wx_cv_class_stdstring+set}" = set; then
24361   echo $ECHO_N "(cached) $ECHO_C" >&6
24362 else
24363
24364             cat >conftest.$ac_ext <<_ACEOF
24365 /* confdefs.h.  */
24366 _ACEOF
24367 cat confdefs.h >>conftest.$ac_ext
24368 cat >>conftest.$ac_ext <<_ACEOF
24369 /* end confdefs.h.  */
24370 #include <string>
24371 int
24372 main ()
24373 {
24374 $std_string foo;
24375   ;
24376   return 0;
24377 }
24378 _ACEOF
24379 rm -f conftest.$ac_objext
24380 if { (ac_try="$ac_compile"
24381 case "(($ac_try" in
24382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24383   *) ac_try_echo=$ac_try;;
24384 esac
24385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24386   (eval "$ac_compile") 2>conftest.er1
24387   ac_status=$?
24388   grep -v '^ *+' conftest.er1 >conftest.err
24389   rm -f conftest.er1
24390   cat conftest.err >&5
24391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24392   (exit $ac_status); } && {
24393          test -z "$ac_cxx_werror_flag" ||
24394          test ! -s conftest.err
24395        } && test -s conftest.$ac_objext; then
24396   wx_cv_class_stdstring=yes
24397 else
24398   echo "$as_me: failed program was:" >&5
24399 sed 's/^/| /' conftest.$ac_ext >&5
24400
24401         wx_cv_class_stdstring=no
24402
24403 fi
24404
24405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24406
24407
24408 fi
24409 { echo "$as_me:$LINENO: result: $wx_cv_class_stdstring" >&5
24410 echo "${ECHO_T}$wx_cv_class_stdstring" >&6; }
24411
24412     if test "$wx_cv_class_stdstring" = yes; then
24413         if test "$wxUSE_UNICODE" = "yes"; then
24414             cat >>confdefs.h <<\_ACEOF
24415 #define HAVE_STD_WSTRING 1
24416 _ACEOF
24417
24418         fi
24419                     else
24420         { echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
24421 echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6; }
24422 if test "${wx_cv_class_stdbasicstring+set}" = set; then
24423   echo $ECHO_N "(cached) $ECHO_C" >&6
24424 else
24425
24426                 cat >conftest.$ac_ext <<_ACEOF
24427 /* confdefs.h.  */
24428 _ACEOF
24429 cat confdefs.h >>conftest.$ac_ext
24430 cat >>conftest.$ac_ext <<_ACEOF
24431 /* end confdefs.h.  */
24432
24433                     #ifdef HAVE_WCHAR_H
24434                     #  ifdef __CYGWIN__
24435                     #    include <stddef.h>
24436                     #  endif
24437                     #  include <wchar.h>
24438                     #endif
24439                     #ifdef HAVE_STDLIB_H
24440                     #  include <stdlib.h>
24441                     #endif
24442                     #include <stdio.h>
24443                     #include <string>
24444
24445 int
24446 main ()
24447 {
24448 std::basic_string<$char_type> foo;
24449                      const $char_type* dummy = foo.c_str();
24450   ;
24451   return 0;
24452 }
24453 _ACEOF
24454 rm -f conftest.$ac_objext
24455 if { (ac_try="$ac_compile"
24456 case "(($ac_try" in
24457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24458   *) ac_try_echo=$ac_try;;
24459 esac
24460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24461   (eval "$ac_compile") 2>conftest.er1
24462   ac_status=$?
24463   grep -v '^ *+' conftest.er1 >conftest.err
24464   rm -f conftest.er1
24465   cat conftest.err >&5
24466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24467   (exit $ac_status); } && {
24468          test -z "$ac_cxx_werror_flag" ||
24469          test ! -s conftest.err
24470        } && test -s conftest.$ac_objext; then
24471   wx_cv_class_stdbasicstring=yes
24472 else
24473   echo "$as_me: failed program was:" >&5
24474 sed 's/^/| /' conftest.$ac_ext >&5
24475
24476         wx_cv_class_stdbasicstring=no
24477
24478 fi
24479
24480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24481
24482
24483 fi
24484 { echo "$as_me:$LINENO: result: $wx_cv_class_stdbasicstring" >&5
24485 echo "${ECHO_T}$wx_cv_class_stdbasicstring" >&6; }
24486
24487         if test "$wx_cv_class_stdbasicstring" != yes; then
24488             if test "$wxUSE_STL" = "yes"; then
24489                 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
24490 echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
24491    { (exit 1); exit 1; }; }
24492             elif test "$wxUSE_STD_STRING" = "yes"; then
24493                 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
24494 echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
24495    { (exit 1); exit 1; }; }
24496             else
24497                 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
24498 echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
24499                 wxUSE_STD_STRING=no
24500             fi
24501         fi
24502     fi
24503 fi
24504
24505 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
24506     { echo "$as_me:$LINENO: checking for std::istream" >&5
24507 echo $ECHO_N "checking for std::istream... $ECHO_C" >&6; }
24508 if test "${ac_cv_type_std__istream+set}" = set; then
24509   echo $ECHO_N "(cached) $ECHO_C" >&6
24510 else
24511   cat >conftest.$ac_ext <<_ACEOF
24512 /* confdefs.h.  */
24513 _ACEOF
24514 cat confdefs.h >>conftest.$ac_ext
24515 cat >>conftest.$ac_ext <<_ACEOF
24516 /* end confdefs.h.  */
24517 #include <iostream>
24518
24519 typedef std::istream ac__type_new_;
24520 int
24521 main ()
24522 {
24523 if ((ac__type_new_ *) 0)
24524   return 0;
24525 if (sizeof (ac__type_new_))
24526   return 0;
24527   ;
24528   return 0;
24529 }
24530 _ACEOF
24531 rm -f conftest.$ac_objext
24532 if { (ac_try="$ac_compile"
24533 case "(($ac_try" in
24534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24535   *) ac_try_echo=$ac_try;;
24536 esac
24537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24538   (eval "$ac_compile") 2>conftest.er1
24539   ac_status=$?
24540   grep -v '^ *+' conftest.er1 >conftest.err
24541   rm -f conftest.er1
24542   cat conftest.err >&5
24543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24544   (exit $ac_status); } && {
24545          test -z "$ac_cxx_werror_flag" ||
24546          test ! -s conftest.err
24547        } && test -s conftest.$ac_objext; then
24548   ac_cv_type_std__istream=yes
24549 else
24550   echo "$as_me: failed program was:" >&5
24551 sed 's/^/| /' conftest.$ac_ext >&5
24552
24553         ac_cv_type_std__istream=no
24554 fi
24555
24556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24557 fi
24558 { echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
24559 echo "${ECHO_T}$ac_cv_type_std__istream" >&6; }
24560 if test $ac_cv_type_std__istream = yes; then
24561
24562 cat >>confdefs.h <<_ACEOF
24563 #define HAVE_STD__ISTREAM 1
24564 _ACEOF
24565
24566
24567 else
24568   wxUSE_STD_IOSTREAM=no
24569 fi
24570 { echo "$as_me:$LINENO: checking for std::ostream" >&5
24571 echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6; }
24572 if test "${ac_cv_type_std__ostream+set}" = set; then
24573   echo $ECHO_N "(cached) $ECHO_C" >&6
24574 else
24575   cat >conftest.$ac_ext <<_ACEOF
24576 /* confdefs.h.  */
24577 _ACEOF
24578 cat confdefs.h >>conftest.$ac_ext
24579 cat >>conftest.$ac_ext <<_ACEOF
24580 /* end confdefs.h.  */
24581 #include <iostream>
24582
24583 typedef std::ostream ac__type_new_;
24584 int
24585 main ()
24586 {
24587 if ((ac__type_new_ *) 0)
24588   return 0;
24589 if (sizeof (ac__type_new_))
24590   return 0;
24591   ;
24592   return 0;
24593 }
24594 _ACEOF
24595 rm -f conftest.$ac_objext
24596 if { (ac_try="$ac_compile"
24597 case "(($ac_try" in
24598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24599   *) ac_try_echo=$ac_try;;
24600 esac
24601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24602   (eval "$ac_compile") 2>conftest.er1
24603   ac_status=$?
24604   grep -v '^ *+' conftest.er1 >conftest.err
24605   rm -f conftest.er1
24606   cat conftest.err >&5
24607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24608   (exit $ac_status); } && {
24609          test -z "$ac_cxx_werror_flag" ||
24610          test ! -s conftest.err
24611        } && test -s conftest.$ac_objext; then
24612   ac_cv_type_std__ostream=yes
24613 else
24614   echo "$as_me: failed program was:" >&5
24615 sed 's/^/| /' conftest.$ac_ext >&5
24616
24617         ac_cv_type_std__ostream=no
24618 fi
24619
24620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24621 fi
24622 { echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
24623 echo "${ECHO_T}$ac_cv_type_std__ostream" >&6; }
24624 if test $ac_cv_type_std__ostream = yes; then
24625
24626 cat >>confdefs.h <<_ACEOF
24627 #define HAVE_STD__OSTREAM 1
24628 _ACEOF
24629
24630
24631 else
24632   wxUSE_STD_IOSTREAM=no
24633 fi
24634
24635
24636     if test "$wxUSE_STD_IOSTREAM" != "yes"; then
24637         if test "$wxUSE_STD_IOSTREAM" = "yes"; then
24638             { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
24639 echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
24640    { (exit 1); exit 1; }; }
24641         else
24642             { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
24643 echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
24644         fi
24645     fi
24646 fi
24647
24648 if test "$wxUSE_STL" = "yes"; then
24649         { echo "$as_me:$LINENO: checking for basic STL functionality" >&5
24650 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6; }
24651 if test "${wx_cv_lib_stl+set}" = set; then
24652   echo $ECHO_N "(cached) $ECHO_C" >&6
24653 else
24654   cat >conftest.$ac_ext <<_ACEOF
24655 /* confdefs.h.  */
24656 _ACEOF
24657 cat confdefs.h >>conftest.$ac_ext
24658 cat >>conftest.$ac_ext <<_ACEOF
24659 /* end confdefs.h.  */
24660 #include <string>
24661             #include <functional>
24662             #include <algorithm>
24663             #include <vector>
24664             #include <list>
24665 int
24666 main ()
24667 {
24668 std::vector<int> moo;
24669              std::list<int> foo;
24670              std::vector<int>::iterator it =
24671                  std::find_if(moo.begin(), moo.end(),
24672                               std::bind2nd(std::less<int>(), 3));
24673   ;
24674   return 0;
24675 }
24676 _ACEOF
24677 rm -f conftest.$ac_objext
24678 if { (ac_try="$ac_compile"
24679 case "(($ac_try" in
24680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24681   *) ac_try_echo=$ac_try;;
24682 esac
24683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24684   (eval "$ac_compile") 2>conftest.er1
24685   ac_status=$?
24686   grep -v '^ *+' conftest.er1 >conftest.err
24687   rm -f conftest.er1
24688   cat conftest.err >&5
24689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24690   (exit $ac_status); } && {
24691          test -z "$ac_cxx_werror_flag" ||
24692          test ! -s conftest.err
24693        } && test -s conftest.$ac_objext; then
24694   wx_cv_lib_stl=yes
24695 else
24696   echo "$as_me: failed program was:" >&5
24697 sed 's/^/| /' conftest.$ac_ext >&5
24698
24699         wx_cv_lib_stl=no
24700
24701 fi
24702
24703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24704
24705 fi
24706 { echo "$as_me:$LINENO: result: $wx_cv_lib_stl" >&5
24707 echo "${ECHO_T}$wx_cv_lib_stl" >&6; }
24708
24709     if test "$wx_cv_lib_stl" != yes; then
24710          { { echo "$as_me:$LINENO: error: Can't use --enable-stl as basic STL functionality is missing" >&5
24711 echo "$as_me: error: Can't use --enable-stl as basic STL functionality is missing" >&2;}
24712    { (exit 1); exit 1; }; }
24713     fi
24714
24715         { echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
24716 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6; }
24717 if test "${wx_cv_func_stdstring_compare+set}" = set; then
24718   echo $ECHO_N "(cached) $ECHO_C" >&6
24719 else
24720   cat >conftest.$ac_ext <<_ACEOF
24721 /* confdefs.h.  */
24722 _ACEOF
24723 cat confdefs.h >>conftest.$ac_ext
24724 cat >>conftest.$ac_ext <<_ACEOF
24725 /* end confdefs.h.  */
24726 #include <string>
24727 int
24728 main ()
24729 {
24730 std::string foo, bar;
24731             foo.compare(bar);
24732             foo.compare(1, 1, bar);
24733             foo.compare(1, 1, bar, 1, 1);
24734             foo.compare("");
24735             foo.compare(1, 1, "");
24736             foo.compare(1, 1, "", 2);
24737   ;
24738   return 0;
24739 }
24740 _ACEOF
24741 rm -f conftest.$ac_objext
24742 if { (ac_try="$ac_compile"
24743 case "(($ac_try" in
24744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24745   *) ac_try_echo=$ac_try;;
24746 esac
24747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24748   (eval "$ac_compile") 2>conftest.er1
24749   ac_status=$?
24750   grep -v '^ *+' conftest.er1 >conftest.err
24751   rm -f conftest.er1
24752   cat conftest.err >&5
24753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24754   (exit $ac_status); } && {
24755          test -z "$ac_cxx_werror_flag" ||
24756          test ! -s conftest.err
24757        } && test -s conftest.$ac_objext; then
24758   wx_cv_func_stdstring_compare=yes
24759 else
24760   echo "$as_me: failed program was:" >&5
24761 sed 's/^/| /' conftest.$ac_ext >&5
24762
24763         wx_cv_func_stdstring_compare=no
24764
24765 fi
24766
24767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24768
24769 fi
24770 { echo "$as_me:$LINENO: result: $wx_cv_func_stdstring_compare" >&5
24771 echo "${ECHO_T}$wx_cv_func_stdstring_compare" >&6; }
24772
24773     if test "$wx_cv_func_stdstring_compare" = yes; then
24774         cat >>confdefs.h <<\_ACEOF
24775 #define HAVE_STD_STRING_COMPARE 1
24776 _ACEOF
24777
24778     fi
24779
24780     if test "$wx_cv_class_gnuhashmapset" = yes; then
24781          cat >>confdefs.h <<\_ACEOF
24782 #define HAVE_EXT_HASH_MAP 1
24783 _ACEOF
24784
24785          cat >>confdefs.h <<\_ACEOF
24786 #define HAVE_GNU_CXX_HASH_MAP 1
24787 _ACEOF
24788
24789     fi
24790
24791     { echo "$as_me:$LINENO: checking for unordered_map" >&5
24792 echo $ECHO_N "checking for unordered_map... $ECHO_C" >&6; }
24793 if test "${ac_cv_header_unordered_map+set}" = set; then
24794   echo $ECHO_N "(cached) $ECHO_C" >&6
24795 else
24796   cat >conftest.$ac_ext <<_ACEOF
24797 /* confdefs.h.  */
24798 _ACEOF
24799 cat confdefs.h >>conftest.$ac_ext
24800 cat >>conftest.$ac_ext <<_ACEOF
24801 /* end confdefs.h.  */
24802
24803
24804
24805 #include <unordered_map>
24806 _ACEOF
24807 rm -f conftest.$ac_objext
24808 if { (ac_try="$ac_compile"
24809 case "(($ac_try" in
24810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24811   *) ac_try_echo=$ac_try;;
24812 esac
24813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24814   (eval "$ac_compile") 2>conftest.er1
24815   ac_status=$?
24816   grep -v '^ *+' conftest.er1 >conftest.err
24817   rm -f conftest.er1
24818   cat conftest.err >&5
24819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24820   (exit $ac_status); } && {
24821          test -z "$ac_cxx_werror_flag" ||
24822          test ! -s conftest.err
24823        } && test -s conftest.$ac_objext; then
24824   ac_cv_header_unordered_map=yes
24825 else
24826   echo "$as_me: failed program was:" >&5
24827 sed 's/^/| /' conftest.$ac_ext >&5
24828
24829         ac_cv_header_unordered_map=no
24830 fi
24831
24832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24833 fi
24834 { echo "$as_me:$LINENO: result: $ac_cv_header_unordered_map" >&5
24835 echo "${ECHO_T}$ac_cv_header_unordered_map" >&6; }
24836 if test $ac_cv_header_unordered_map = yes; then
24837   { echo "$as_me:$LINENO: checking for unordered_map and unordered_set in std" >&5
24838 echo $ECHO_N "checking for unordered_map and unordered_set in std... $ECHO_C" >&6; }
24839 if test "${wx_cv_class_stdunorderedmapset+set}" = set; then
24840   echo $ECHO_N "(cached) $ECHO_C" >&6
24841 else
24842   cat >conftest.$ac_ext <<_ACEOF
24843 /* confdefs.h.  */
24844 _ACEOF
24845 cat confdefs.h >>conftest.$ac_ext
24846 cat >>conftest.$ac_ext <<_ACEOF
24847 /* end confdefs.h.  */
24848 #include <unordered_map>
24849                 #include <unordered_set>
24850 int
24851 main ()
24852 {
24853 std::unordered_map<double*, char*> test1;
24854                  std::unordered_set<char*> test2;
24855   ;
24856   return 0;
24857 }
24858 _ACEOF
24859 rm -f conftest.$ac_objext
24860 if { (ac_try="$ac_compile"
24861 case "(($ac_try" in
24862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24863   *) ac_try_echo=$ac_try;;
24864 esac
24865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24866   (eval "$ac_compile") 2>conftest.er1
24867   ac_status=$?
24868   grep -v '^ *+' conftest.er1 >conftest.err
24869   rm -f conftest.er1
24870   cat conftest.err >&5
24871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24872   (exit $ac_status); } && {
24873          test -z "$ac_cxx_werror_flag" ||
24874          test ! -s conftest.err
24875        } && test -s conftest.$ac_objext; then
24876   wx_cv_class_stdunorderedmapset=yes
24877 else
24878   echo "$as_me: failed program was:" >&5
24879 sed 's/^/| /' conftest.$ac_ext >&5
24880
24881         wx_cv_class_stdunorderedmapset=no
24882 fi
24883
24884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24885
24886
24887 fi
24888 { echo "$as_me:$LINENO: result: $wx_cv_class_stdunorderedmapset" >&5
24889 echo "${ECHO_T}$wx_cv_class_stdunorderedmapset" >&6; }
24890 fi
24891
24892
24893
24894     if test "$wx_cv_class_stdunorderedmapset" = yes; then
24895          cat >>confdefs.h <<\_ACEOF
24896 #define HAVE_STD_UNORDERED_MAP 1
24897 _ACEOF
24898
24899          cat >>confdefs.h <<\_ACEOF
24900 #define HAVE_STD_UNORDERED_SET 1
24901 _ACEOF
24902
24903     else
24904         { echo "$as_me:$LINENO: checking for tr1/unordered_map" >&5
24905 echo $ECHO_N "checking for tr1/unordered_map... $ECHO_C" >&6; }
24906 if test "${ac_cv_header_tr1_unordered_map+set}" = set; then
24907   echo $ECHO_N "(cached) $ECHO_C" >&6
24908 else
24909   cat >conftest.$ac_ext <<_ACEOF
24910 /* confdefs.h.  */
24911 _ACEOF
24912 cat confdefs.h >>conftest.$ac_ext
24913 cat >>conftest.$ac_ext <<_ACEOF
24914 /* end confdefs.h.  */
24915
24916
24917
24918 #include <tr1/unordered_map>
24919 _ACEOF
24920 rm -f conftest.$ac_objext
24921 if { (ac_try="$ac_compile"
24922 case "(($ac_try" in
24923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24924   *) ac_try_echo=$ac_try;;
24925 esac
24926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24927   (eval "$ac_compile") 2>conftest.er1
24928   ac_status=$?
24929   grep -v '^ *+' conftest.er1 >conftest.err
24930   rm -f conftest.er1
24931   cat conftest.err >&5
24932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24933   (exit $ac_status); } && {
24934          test -z "$ac_cxx_werror_flag" ||
24935          test ! -s conftest.err
24936        } && test -s conftest.$ac_objext; then
24937   ac_cv_header_tr1_unordered_map=yes
24938 else
24939   echo "$as_me: failed program was:" >&5
24940 sed 's/^/| /' conftest.$ac_ext >&5
24941
24942         ac_cv_header_tr1_unordered_map=no
24943 fi
24944
24945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24946 fi
24947 { echo "$as_me:$LINENO: result: $ac_cv_header_tr1_unordered_map" >&5
24948 echo "${ECHO_T}$ac_cv_header_tr1_unordered_map" >&6; }
24949 if test $ac_cv_header_tr1_unordered_map = yes; then
24950   { echo "$as_me:$LINENO: checking for unordered_map and unordered_set in std::tr1" >&5
24951 echo $ECHO_N "checking for unordered_map and unordered_set in std::tr1... $ECHO_C" >&6; }
24952 if test "${wx_cv_class_tr1unorderedmapset+set}" = set; then
24953   echo $ECHO_N "(cached) $ECHO_C" >&6
24954 else
24955   cat >conftest.$ac_ext <<_ACEOF
24956 /* confdefs.h.  */
24957 _ACEOF
24958 cat confdefs.h >>conftest.$ac_ext
24959 cat >>conftest.$ac_ext <<_ACEOF
24960 /* end confdefs.h.  */
24961 #include <tr1/unordered_map>
24962                     #include <tr1/unordered_set>
24963 int
24964 main ()
24965 {
24966 std::tr1::unordered_map<double*, char*> test1;
24967                      std::tr1::unordered_set<char*> test2;
24968             #if defined(__GNUC__) && (__GNUC__==4) && (__GNUC_MINOR__<2)
24969             #error can't use unordered_{map,set} with gcc-4.[01]: http://gcc.gnu.org/PR24389
24970             #endif
24971   ;
24972   return 0;
24973 }
24974 _ACEOF
24975 rm -f conftest.$ac_objext
24976 if { (ac_try="$ac_compile"
24977 case "(($ac_try" in
24978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24979   *) ac_try_echo=$ac_try;;
24980 esac
24981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24982   (eval "$ac_compile") 2>conftest.er1
24983   ac_status=$?
24984   grep -v '^ *+' conftest.er1 >conftest.err
24985   rm -f conftest.er1
24986   cat conftest.err >&5
24987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24988   (exit $ac_status); } && {
24989          test -z "$ac_cxx_werror_flag" ||
24990          test ! -s conftest.err
24991        } && test -s conftest.$ac_objext; then
24992   wx_cv_class_tr1unorderedmapset=yes
24993 else
24994   echo "$as_me: failed program was:" >&5
24995 sed 's/^/| /' conftest.$ac_ext >&5
24996
24997         wx_cv_class_tr1unorderedmapset=no
24998 fi
24999
25000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25001
25002
25003 fi
25004 { echo "$as_me:$LINENO: result: $wx_cv_class_tr1unorderedmapset" >&5
25005 echo "${ECHO_T}$wx_cv_class_tr1unorderedmapset" >&6; }
25006 fi
25007
25008
25009
25010         if test "$wx_cv_class_tr1unorderedmapset" = yes; then
25011             cat >>confdefs.h <<\_ACEOF
25012 #define HAVE_TR1_UNORDERED_MAP 1
25013 _ACEOF
25014
25015             cat >>confdefs.h <<\_ACEOF
25016 #define HAVE_TR1_UNORDERED_SET 1
25017 _ACEOF
25018
25019         else
25020                         { echo "$as_me:$LINENO: checking for hash_map" >&5
25021 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6; }
25022 if test "${ac_cv_header_hash_map+set}" = set; then
25023   echo $ECHO_N "(cached) $ECHO_C" >&6
25024 else
25025   cat >conftest.$ac_ext <<_ACEOF
25026 /* confdefs.h.  */
25027 _ACEOF
25028 cat confdefs.h >>conftest.$ac_ext
25029 cat >>conftest.$ac_ext <<_ACEOF
25030 /* end confdefs.h.  */
25031
25032
25033
25034 #include <hash_map>
25035 _ACEOF
25036 rm -f conftest.$ac_objext
25037 if { (ac_try="$ac_compile"
25038 case "(($ac_try" in
25039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25040   *) ac_try_echo=$ac_try;;
25041 esac
25042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25043   (eval "$ac_compile") 2>conftest.er1
25044   ac_status=$?
25045   grep -v '^ *+' conftest.er1 >conftest.err
25046   rm -f conftest.er1
25047   cat conftest.err >&5
25048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25049   (exit $ac_status); } && {
25050          test -z "$ac_cxx_werror_flag" ||
25051          test ! -s conftest.err
25052        } && test -s conftest.$ac_objext; then
25053   ac_cv_header_hash_map=yes
25054 else
25055   echo "$as_me: failed program was:" >&5
25056 sed 's/^/| /' conftest.$ac_ext >&5
25057
25058         ac_cv_header_hash_map=no
25059 fi
25060
25061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25062 fi
25063 { echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
25064 echo "${ECHO_T}$ac_cv_header_hash_map" >&6; }
25065 if test $ac_cv_header_hash_map = yes; then
25066   { echo "$as_me:$LINENO: checking for std::hash_map and hash_set" >&5
25067 echo $ECHO_N "checking for std::hash_map and hash_set... $ECHO_C" >&6; }
25068 if test "${wx_cv_class_stdhashmapset+set}" = set; then
25069   echo $ECHO_N "(cached) $ECHO_C" >&6
25070 else
25071   cat >conftest.$ac_ext <<_ACEOF
25072 /* confdefs.h.  */
25073 _ACEOF
25074 cat confdefs.h >>conftest.$ac_ext
25075 cat >>conftest.$ac_ext <<_ACEOF
25076 /* end confdefs.h.  */
25077 #include <hash_map>
25078                         #include <hash_set>
25079 int
25080 main ()
25081 {
25082 std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
25083                          std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
25084   ;
25085   return 0;
25086 }
25087 _ACEOF
25088 rm -f conftest.$ac_objext
25089 if { (ac_try="$ac_compile"
25090 case "(($ac_try" in
25091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25092   *) ac_try_echo=$ac_try;;
25093 esac
25094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25095   (eval "$ac_compile") 2>conftest.er1
25096   ac_status=$?
25097   grep -v '^ *+' conftest.er1 >conftest.err
25098   rm -f conftest.er1
25099   cat conftest.err >&5
25100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25101   (exit $ac_status); } && {
25102          test -z "$ac_cxx_werror_flag" ||
25103          test ! -s conftest.err
25104        } && test -s conftest.$ac_objext; then
25105   wx_cv_class_stdhashmapset=yes
25106 else
25107   echo "$as_me: failed program was:" >&5
25108 sed 's/^/| /' conftest.$ac_ext >&5
25109
25110         wx_cv_class_stdhashmapset=no
25111 fi
25112
25113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25114
25115
25116 fi
25117 { echo "$as_me:$LINENO: result: $wx_cv_class_stdhashmapset" >&5
25118 echo "${ECHO_T}$wx_cv_class_stdhashmapset" >&6; }
25119 fi
25120
25121
25122
25123             if test "$wx_cv_class_stdhashmapset" = yes; then
25124                 cat >>confdefs.h <<\_ACEOF
25125 #define HAVE_HASH_MAP 1
25126 _ACEOF
25127
25128                 cat >>confdefs.h <<\_ACEOF
25129 #define HAVE_STD_HASH_MAP 1
25130 _ACEOF
25131
25132             fi
25133
25134             { echo "$as_me:$LINENO: checking for ext/hash_map" >&5
25135 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6; }
25136 if test "${ac_cv_header_ext_hash_map+set}" = set; then
25137   echo $ECHO_N "(cached) $ECHO_C" >&6
25138 else
25139   cat >conftest.$ac_ext <<_ACEOF
25140 /* confdefs.h.  */
25141 _ACEOF
25142 cat confdefs.h >>conftest.$ac_ext
25143 cat >>conftest.$ac_ext <<_ACEOF
25144 /* end confdefs.h.  */
25145
25146
25147
25148 #include <ext/hash_map>
25149 _ACEOF
25150 rm -f conftest.$ac_objext
25151 if { (ac_try="$ac_compile"
25152 case "(($ac_try" in
25153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25154   *) ac_try_echo=$ac_try;;
25155 esac
25156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25157   (eval "$ac_compile") 2>conftest.er1
25158   ac_status=$?
25159   grep -v '^ *+' conftest.er1 >conftest.err
25160   rm -f conftest.er1
25161   cat conftest.err >&5
25162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25163   (exit $ac_status); } && {
25164          test -z "$ac_cxx_werror_flag" ||
25165          test ! -s conftest.err
25166        } && test -s conftest.$ac_objext; then
25167   ac_cv_header_ext_hash_map=yes
25168 else
25169   echo "$as_me: failed program was:" >&5
25170 sed 's/^/| /' conftest.$ac_ext >&5
25171
25172         ac_cv_header_ext_hash_map=no
25173 fi
25174
25175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25176 fi
25177 { echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
25178 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6; }
25179 if test $ac_cv_header_ext_hash_map = yes; then
25180   { echo "$as_me:$LINENO: checking for GNU hash_map and hash_set" >&5
25181 echo $ECHO_N "checking for GNU hash_map and hash_set... $ECHO_C" >&6; }
25182 if test "${wx_cv_class_gnuhashmapset+set}" = set; then
25183   echo $ECHO_N "(cached) $ECHO_C" >&6
25184 else
25185   cat >conftest.$ac_ext <<_ACEOF
25186 /* confdefs.h.  */
25187 _ACEOF
25188 cat confdefs.h >>conftest.$ac_ext
25189 cat >>conftest.$ac_ext <<_ACEOF
25190 /* end confdefs.h.  */
25191 #include <ext/hash_map>
25192                         #include <ext/hash_set>
25193 int
25194 main ()
25195 {
25196 __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
25197                          __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
25198   ;
25199   return 0;
25200 }
25201 _ACEOF
25202 rm -f conftest.$ac_objext
25203 if { (ac_try="$ac_compile"
25204 case "(($ac_try" in
25205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25206   *) ac_try_echo=$ac_try;;
25207 esac
25208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25209   (eval "$ac_compile") 2>conftest.er1
25210   ac_status=$?
25211   grep -v '^ *+' conftest.er1 >conftest.err
25212   rm -f conftest.er1
25213   cat conftest.err >&5
25214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25215   (exit $ac_status); } && {
25216          test -z "$ac_cxx_werror_flag" ||
25217          test ! -s conftest.err
25218        } && test -s conftest.$ac_objext; then
25219   wx_cv_class_gnuhashmapset=yes
25220 else
25221   echo "$as_me: failed program was:" >&5
25222 sed 's/^/| /' conftest.$ac_ext >&5
25223
25224         wx_cv_class_gnuhashmapset=no
25225 fi
25226
25227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25228
25229
25230 fi
25231 { echo "$as_me:$LINENO: result: $wx_cv_class_gnuhashmapset" >&5
25232 echo "${ECHO_T}$wx_cv_class_gnuhashmapset" >&6; }
25233 fi
25234
25235
25236
25237         fi
25238     fi
25239 fi
25240
25241
25242
25243   if test -n "$GCC"; then
25244     { echo "$as_me:$LINENO: checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins" >&5
25245 echo $ECHO_N "checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins... $ECHO_C" >&6; }
25246     if test "${wx_cv_cc_gcc_atomic_builtins+set}" = set; then
25247   echo $ECHO_N "(cached) $ECHO_C" >&6
25248 else
25249
25250       cat >conftest.$ac_ext <<_ACEOF
25251 /* confdefs.h.  */
25252 _ACEOF
25253 cat confdefs.h >>conftest.$ac_ext
25254 cat >>conftest.$ac_ext <<_ACEOF
25255 /* end confdefs.h.  */
25256
25257 int
25258 main ()
25259 {
25260
25261           unsigned int value=0;
25262           /* wxAtomicInc doesn't use return value here */
25263           __sync_fetch_and_add(&value, 2);
25264           __sync_sub_and_fetch(&value, 1);
25265           /* but wxAtomicDec does, so mimic that: */
25266           unsigned int r2 = __sync_sub_and_fetch(&value, 1);
25267
25268   ;
25269   return 0;
25270 }
25271 _ACEOF
25272 rm -f conftest.$ac_objext conftest$ac_exeext
25273 if { (ac_try="$ac_link"
25274 case "(($ac_try" in
25275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25276   *) ac_try_echo=$ac_try;;
25277 esac
25278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25279   (eval "$ac_link") 2>conftest.er1
25280   ac_status=$?
25281   grep -v '^ *+' conftest.er1 >conftest.err
25282   rm -f conftest.er1
25283   cat conftest.err >&5
25284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25285   (exit $ac_status); } && {
25286          test -z "$ac_cxx_werror_flag" ||
25287          test ! -s conftest.err
25288        } && test -s conftest$ac_exeext &&
25289        $as_test_x conftest$ac_exeext; then
25290   wx_cv_cc_gcc_atomic_builtins=yes
25291 else
25292   echo "$as_me: failed program was:" >&5
25293 sed 's/^/| /' conftest.$ac_ext >&5
25294
25295         wx_cv_cc_gcc_atomic_builtins=no
25296 fi
25297
25298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25299       conftest$ac_exeext conftest.$ac_ext
25300
25301 fi
25302
25303     { echo "$as_me:$LINENO: result: $wx_cv_cc_gcc_atomic_builtins" >&5
25304 echo "${ECHO_T}$wx_cv_cc_gcc_atomic_builtins" >&6; }
25305     if test $wx_cv_cc_gcc_atomic_builtins = yes; then
25306       cat >>confdefs.h <<\_ACEOF
25307 #define HAVE_GCC_ATOMIC_BUILTINS 1
25308 _ACEOF
25309
25310     fi
25311   fi
25312
25313
25314 ac_ext=c
25315 ac_cpp='$CPP $CPPFLAGS'
25316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25319
25320
25321
25322 SEARCH_INCLUDE="\
25323     /usr/local/include        \
25324     /usr/local/X11/include    \
25325     /usr/local/include/X11    \
25326     /usr/local/X11R6/include  \
25327     /usr/local/include/X11R6  \
25328                               \
25329     /usr/Motif-2.1/include    \
25330     /usr/Motif-1.2/include    \
25331     /usr/include/Motif1.2     \
25332                               \
25333     /usr/dt/include           \
25334     /usr/openwin/include      \
25335                               \
25336     /usr/include/Xm           \
25337                               \
25338     /usr/X11R6/include        \
25339     /usr/X11R6.4/include      \
25340                               \
25341     /usr/include/X11R6        \
25342                               \
25343     /usr/X11/include          \
25344     /usr/include/X11          \
25345                               \
25346     /usr/XFree86/include/X11  \
25347     /usr/pkg/include          \
25348                               \
25349     /usr/local/X1R5/include  \
25350     /usr/local/include/X11R5  \
25351     /usr/X11R5/include        \
25352     /usr/include/X11R5        \
25353                               \
25354     /usr/local/X11R4/include  \
25355     /usr/local/include/X11R4  \
25356     /usr/X11R4/include        \
25357     /usr/include/X11R4        \
25358                               \
25359     /usr/openwin/share/include"
25360
25361 { echo "$as_me:$LINENO: checking for libraries directory" >&5
25362 echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6; }
25363
25364 case "${host}" in
25365     *-*-irix6* )
25366         if test "${wx_cv_std_libpath+set}" = set; then
25367   echo $ECHO_N "(cached) $ECHO_C" >&6
25368 else
25369
25370                 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
25371                     for e in a so sl dylib dll.a; do
25372                         libc="$d/libc.$e"
25373                         if test -f $libc; then
25374                             save_LIBS="$LIBS"
25375                             LIBS="$libc"
25376                             cat >conftest.$ac_ext <<_ACEOF
25377 int main() { return 0; }
25378 _ACEOF
25379 rm -f conftest.$ac_objext conftest$ac_exeext
25380 if { (ac_try="$ac_link"
25381 case "(($ac_try" in
25382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25383   *) ac_try_echo=$ac_try;;
25384 esac
25385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25386   (eval "$ac_link") 2>conftest.er1
25387   ac_status=$?
25388   grep -v '^ *+' conftest.er1 >conftest.err
25389   rm -f conftest.er1
25390   cat conftest.err >&5
25391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25392   (exit $ac_status); } && {
25393          test -z "$ac_c_werror_flag" ||
25394          test ! -s conftest.err
25395        } && test -s conftest$ac_exeext &&
25396        $as_test_x conftest$ac_exeext; then
25397   wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
25398 else
25399   echo "$as_me: failed program was:" >&5
25400 sed 's/^/| /' conftest.$ac_ext >&5
25401
25402
25403 fi
25404
25405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25406       conftest$ac_exeext conftest.$ac_ext
25407                             LIBS="$save_LIBS"
25408                             if test "x$wx_cv_std_libpath" != "x"; then
25409                                 break 2
25410                             fi
25411                         fi
25412                     done
25413                 done
25414                 if test "x$wx_cv_std_libpath" = "x"; then
25415                     wx_cv_std_libpath="lib"
25416                 fi
25417
25418
25419 fi
25420
25421         ;;
25422
25423     *-*-solaris2* )
25424                 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
25425             wx_cv_std_libpath="lib/64"
25426         else
25427             wx_cv_std_libpath="lib"
25428         fi
25429         ;;
25430
25431     *-*-linux* )
25432                 if test "$ac_cv_sizeof_void_p" = 8 -a \
25433                 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
25434             wx_cv_std_libpath="lib64"
25435         else
25436             wx_cv_std_libpath="lib"
25437         fi
25438         ;;
25439
25440     *)
25441         wx_cv_std_libpath="lib";
25442         ;;
25443 esac
25444
25445 { echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
25446 echo "${ECHO_T}$wx_cv_std_libpath" >&6; }
25447
25448 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
25449
25450 if test "$build" != "$host" -a "$GCC" = yes; then
25451                     if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
25452         cross_root=`dirname $cross_root`
25453         cross_root=`dirname $cross_root`
25454
25455                         SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
25456         SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
25457         SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
25458
25459                 if test -z "$PKG_CONFIG_PATH"; then
25460             PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
25461             export PKG_CONFIG_PATH
25462         fi
25463
25464                                 if test -z "$x_includes" -o "$x_includes" = NONE; then
25465
25466 ac_find_includes=
25467 for ac_dir in $SEARCH_INCLUDE /usr/include;
25468   do
25469     if test -f "$ac_dir/X11/Intrinsic.h"; then
25470       ac_find_includes=$ac_dir
25471       break
25472     fi
25473   done
25474
25475             x_includes=$ac_find_includes
25476         fi
25477         if test -z "$x_libraries" -o "$x_libraries" = NONE; then
25478
25479   ac_find_libraries=
25480   for ac_dir in $SEARCH_LIB;
25481   do
25482     for ac_extension in a so sl dylib dll.a; do
25483       if test -f "$ac_dir/libXt.$ac_extension"; then
25484         ac_find_libraries=$ac_dir
25485         break 2
25486       fi
25487     done
25488   done
25489
25490             x_libraries=$ac_find_libraries
25491         fi
25492     fi
25493 fi
25494
25495
25496 cat >confcache <<\_ACEOF
25497 # This file is a shell script that caches the results of configure
25498 # tests run on this system so they can be shared between configure
25499 # scripts and configure runs, see configure's option --config-cache.
25500 # It is not useful on other systems.  If it contains results you don't
25501 # want to keep, you may remove or edit it.
25502 #
25503 # config.status only pays attention to the cache file if you give it
25504 # the --recheck option to rerun configure.
25505 #
25506 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25507 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25508 # following values.
25509
25510 _ACEOF
25511
25512 # The following way of writing the cache mishandles newlines in values,
25513 # but we know of no workaround that is simple, portable, and efficient.
25514 # So, we kill variables containing newlines.
25515 # Ultrix sh set writes to stderr and can't be redirected directly,
25516 # and sets the high bit in the cache file unless we assign to the vars.
25517 (
25518   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25519     eval ac_val=\$$ac_var
25520     case $ac_val in #(
25521     *${as_nl}*)
25522       case $ac_var in #(
25523       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25524 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25525       esac
25526       case $ac_var in #(
25527       _ | IFS | as_nl) ;; #(
25528       *) $as_unset $ac_var ;;
25529       esac ;;
25530     esac
25531   done
25532
25533   (set) 2>&1 |
25534     case $as_nl`(ac_space=' '; set) 2>&1` in #(
25535     *${as_nl}ac_space=\ *)
25536       # `set' does not quote correctly, so add quotes (double-quote
25537       # substitution turns \\\\ into \\, and sed turns \\ into \).
25538       sed -n \
25539         "s/'/'\\\\''/g;
25540           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25541       ;; #(
25542     *)
25543       # `set' quotes correctly as required by POSIX, so do not add quotes.
25544       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25545       ;;
25546     esac |
25547     sort
25548 ) |
25549   sed '
25550      /^ac_cv_env_/b end
25551      t clear
25552      :clear
25553      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25554      t end
25555      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25556      :end' >>confcache
25557 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25558   if test -w "$cache_file"; then
25559     test "x$cache_file" != "x/dev/null" &&
25560       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25561 echo "$as_me: updating cache $cache_file" >&6;}
25562     cat confcache >$cache_file
25563   else
25564     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25565 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25566   fi
25567 fi
25568 rm -f confcache
25569
25570 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
25571     { echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
25572 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6; }
25573 if test "${wx_cv_lib_glibc21+set}" = set; then
25574   echo $ECHO_N "(cached) $ECHO_C" >&6
25575 else
25576
25577         cat >conftest.$ac_ext <<_ACEOF
25578 /* confdefs.h.  */
25579 _ACEOF
25580 cat confdefs.h >>conftest.$ac_ext
25581 cat >>conftest.$ac_ext <<_ACEOF
25582 /* end confdefs.h.  */
25583 #include <features.h>
25584 int
25585 main ()
25586 {
25587
25588                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
25589                 not glibc 2.1
25590                 #endif
25591
25592   ;
25593   return 0;
25594 }
25595 _ACEOF
25596 rm -f conftest.$ac_objext
25597 if { (ac_try="$ac_compile"
25598 case "(($ac_try" in
25599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25600   *) ac_try_echo=$ac_try;;
25601 esac
25602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25603   (eval "$ac_compile") 2>conftest.er1
25604   ac_status=$?
25605   grep -v '^ *+' conftest.er1 >conftest.err
25606   rm -f conftest.er1
25607   cat conftest.err >&5
25608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25609   (exit $ac_status); } && {
25610          test -z "$ac_c_werror_flag" ||
25611          test ! -s conftest.err
25612        } && test -s conftest.$ac_objext; then
25613
25614                 wx_cv_lib_glibc21=yes
25615
25616 else
25617   echo "$as_me: failed program was:" >&5
25618 sed 's/^/| /' conftest.$ac_ext >&5
25619
25620
25621                 wx_cv_lib_glibc21=no
25622
25623
25624 fi
25625
25626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25627
25628 fi
25629 { echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
25630 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6; }
25631     if test "$wx_cv_lib_glibc21" = "yes"; then
25632         cat >>confdefs.h <<\_ACEOF
25633 #define wxHAVE_GLIBC2 1
25634 _ACEOF
25635
25636     fi
25637 fi
25638
25639 if test "x$wx_cv_lib_glibc21" = "xyes"; then
25640     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
25641         cat >>confdefs.h <<\_ACEOF
25642 #define _GNU_SOURCE 1
25643 _ACEOF
25644
25645     fi
25646 fi
25647
25648 have_cos=0
25649 have_floor=0
25650
25651 for ac_func in cos
25652 do
25653 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25654 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25655 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25656 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25657   echo $ECHO_N "(cached) $ECHO_C" >&6
25658 else
25659   cat >conftest.$ac_ext <<_ACEOF
25660 /* confdefs.h.  */
25661 _ACEOF
25662 cat confdefs.h >>conftest.$ac_ext
25663 cat >>conftest.$ac_ext <<_ACEOF
25664 /* end confdefs.h.  */
25665 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25666    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25667 #define $ac_func innocuous_$ac_func
25668
25669 /* System header to define __stub macros and hopefully few prototypes,
25670     which can conflict with char $ac_func (); below.
25671     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25672     <limits.h> exists even on freestanding compilers.  */
25673
25674 #ifdef __STDC__
25675 # include <limits.h>
25676 #else
25677 # include <assert.h>
25678 #endif
25679
25680 #undef $ac_func
25681
25682 /* Override any GCC internal prototype to avoid an error.
25683    Use char because int might match the return type of a GCC
25684    builtin and then its argument prototype would still apply.  */
25685 #ifdef __cplusplus
25686 extern "C"
25687 #endif
25688 char $ac_func ();
25689 /* The GNU C library defines this for functions which it implements
25690     to always fail with ENOSYS.  Some functions are actually named
25691     something starting with __ and the normal name is an alias.  */
25692 #if defined __stub_$ac_func || defined __stub___$ac_func
25693 choke me
25694 #endif
25695
25696 int
25697 main ()
25698 {
25699 return $ac_func ();
25700   ;
25701   return 0;
25702 }
25703 _ACEOF
25704 rm -f conftest.$ac_objext conftest$ac_exeext
25705 if { (ac_try="$ac_link"
25706 case "(($ac_try" in
25707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25708   *) ac_try_echo=$ac_try;;
25709 esac
25710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25711   (eval "$ac_link") 2>conftest.er1
25712   ac_status=$?
25713   grep -v '^ *+' conftest.er1 >conftest.err
25714   rm -f conftest.er1
25715   cat conftest.err >&5
25716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25717   (exit $ac_status); } && {
25718          test -z "$ac_c_werror_flag" ||
25719          test ! -s conftest.err
25720        } && test -s conftest$ac_exeext &&
25721        $as_test_x conftest$ac_exeext; then
25722   eval "$as_ac_var=yes"
25723 else
25724   echo "$as_me: failed program was:" >&5
25725 sed 's/^/| /' conftest.$ac_ext >&5
25726
25727         eval "$as_ac_var=no"
25728 fi
25729
25730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25731       conftest$ac_exeext conftest.$ac_ext
25732 fi
25733 ac_res=`eval echo '${'$as_ac_var'}'`
25734                { echo "$as_me:$LINENO: result: $ac_res" >&5
25735 echo "${ECHO_T}$ac_res" >&6; }
25736 if test `eval echo '${'$as_ac_var'}'` = yes; then
25737   cat >>confdefs.h <<_ACEOF
25738 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25739 _ACEOF
25740  have_cos=1
25741 fi
25742 done
25743
25744
25745 for ac_func in floor
25746 do
25747 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25748 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25749 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25750 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25751   echo $ECHO_N "(cached) $ECHO_C" >&6
25752 else
25753   cat >conftest.$ac_ext <<_ACEOF
25754 /* confdefs.h.  */
25755 _ACEOF
25756 cat confdefs.h >>conftest.$ac_ext
25757 cat >>conftest.$ac_ext <<_ACEOF
25758 /* end confdefs.h.  */
25759 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25760    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25761 #define $ac_func innocuous_$ac_func
25762
25763 /* System header to define __stub macros and hopefully few prototypes,
25764     which can conflict with char $ac_func (); below.
25765     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25766     <limits.h> exists even on freestanding compilers.  */
25767
25768 #ifdef __STDC__
25769 # include <limits.h>
25770 #else
25771 # include <assert.h>
25772 #endif
25773
25774 #undef $ac_func
25775
25776 /* Override any GCC internal prototype to avoid an error.
25777    Use char because int might match the return type of a GCC
25778    builtin and then its argument prototype would still apply.  */
25779 #ifdef __cplusplus
25780 extern "C"
25781 #endif
25782 char $ac_func ();
25783 /* The GNU C library defines this for functions which it implements
25784     to always fail with ENOSYS.  Some functions are actually named
25785     something starting with __ and the normal name is an alias.  */
25786 #if defined __stub_$ac_func || defined __stub___$ac_func
25787 choke me
25788 #endif
25789
25790 int
25791 main ()
25792 {
25793 return $ac_func ();
25794   ;
25795   return 0;
25796 }
25797 _ACEOF
25798 rm -f conftest.$ac_objext conftest$ac_exeext
25799 if { (ac_try="$ac_link"
25800 case "(($ac_try" in
25801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25802   *) ac_try_echo=$ac_try;;
25803 esac
25804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25805   (eval "$ac_link") 2>conftest.er1
25806   ac_status=$?
25807   grep -v '^ *+' conftest.er1 >conftest.err
25808   rm -f conftest.er1
25809   cat conftest.err >&5
25810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25811   (exit $ac_status); } && {
25812          test -z "$ac_c_werror_flag" ||
25813          test ! -s conftest.err
25814        } && test -s conftest$ac_exeext &&
25815        $as_test_x conftest$ac_exeext; then
25816   eval "$as_ac_var=yes"
25817 else
25818   echo "$as_me: failed program was:" >&5
25819 sed 's/^/| /' conftest.$ac_ext >&5
25820
25821         eval "$as_ac_var=no"
25822 fi
25823
25824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25825       conftest$ac_exeext conftest.$ac_ext
25826 fi
25827 ac_res=`eval echo '${'$as_ac_var'}'`
25828                { echo "$as_me:$LINENO: result: $ac_res" >&5
25829 echo "${ECHO_T}$ac_res" >&6; }
25830 if test `eval echo '${'$as_ac_var'}'` = yes; then
25831   cat >>confdefs.h <<_ACEOF
25832 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25833 _ACEOF
25834  have_floor=1
25835 fi
25836 done
25837
25838 { echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
25839 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6; }
25840 if test "$have_cos" = 1 -a "$have_floor" = 1; then
25841     { echo "$as_me:$LINENO: result: yes" >&5
25842 echo "${ECHO_T}yes" >&6; }
25843 else
25844     { echo "$as_me:$LINENO: result: no" >&5
25845 echo "${ECHO_T}no" >&6; }
25846     LIBS="$LIBS -lm"
25847     # use different functions to avoid configure caching
25848     have_sin=0
25849     have_ceil=0
25850
25851 for ac_func in sin
25852 do
25853 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25854 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25855 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25856 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25857   echo $ECHO_N "(cached) $ECHO_C" >&6
25858 else
25859   cat >conftest.$ac_ext <<_ACEOF
25860 /* confdefs.h.  */
25861 _ACEOF
25862 cat confdefs.h >>conftest.$ac_ext
25863 cat >>conftest.$ac_ext <<_ACEOF
25864 /* end confdefs.h.  */
25865 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25866    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25867 #define $ac_func innocuous_$ac_func
25868
25869 /* System header to define __stub macros and hopefully few prototypes,
25870     which can conflict with char $ac_func (); below.
25871     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25872     <limits.h> exists even on freestanding compilers.  */
25873
25874 #ifdef __STDC__
25875 # include <limits.h>
25876 #else
25877 # include <assert.h>
25878 #endif
25879
25880 #undef $ac_func
25881
25882 /* Override any GCC internal prototype to avoid an error.
25883    Use char because int might match the return type of a GCC
25884    builtin and then its argument prototype would still apply.  */
25885 #ifdef __cplusplus
25886 extern "C"
25887 #endif
25888 char $ac_func ();
25889 /* The GNU C library defines this for functions which it implements
25890     to always fail with ENOSYS.  Some functions are actually named
25891     something starting with __ and the normal name is an alias.  */
25892 #if defined __stub_$ac_func || defined __stub___$ac_func
25893 choke me
25894 #endif
25895
25896 int
25897 main ()
25898 {
25899 return $ac_func ();
25900   ;
25901   return 0;
25902 }
25903 _ACEOF
25904 rm -f conftest.$ac_objext conftest$ac_exeext
25905 if { (ac_try="$ac_link"
25906 case "(($ac_try" in
25907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25908   *) ac_try_echo=$ac_try;;
25909 esac
25910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25911   (eval "$ac_link") 2>conftest.er1
25912   ac_status=$?
25913   grep -v '^ *+' conftest.er1 >conftest.err
25914   rm -f conftest.er1
25915   cat conftest.err >&5
25916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25917   (exit $ac_status); } && {
25918          test -z "$ac_c_werror_flag" ||
25919          test ! -s conftest.err
25920        } && test -s conftest$ac_exeext &&
25921        $as_test_x conftest$ac_exeext; then
25922   eval "$as_ac_var=yes"
25923 else
25924   echo "$as_me: failed program was:" >&5
25925 sed 's/^/| /' conftest.$ac_ext >&5
25926
25927         eval "$as_ac_var=no"
25928 fi
25929
25930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25931       conftest$ac_exeext conftest.$ac_ext
25932 fi
25933 ac_res=`eval echo '${'$as_ac_var'}'`
25934                { echo "$as_me:$LINENO: result: $ac_res" >&5
25935 echo "${ECHO_T}$ac_res" >&6; }
25936 if test `eval echo '${'$as_ac_var'}'` = yes; then
25937   cat >>confdefs.h <<_ACEOF
25938 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25939 _ACEOF
25940  have_sin=1
25941 fi
25942 done
25943
25944
25945 for ac_func in ceil
25946 do
25947 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25948 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25949 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25950 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25951   echo $ECHO_N "(cached) $ECHO_C" >&6
25952 else
25953   cat >conftest.$ac_ext <<_ACEOF
25954 /* confdefs.h.  */
25955 _ACEOF
25956 cat confdefs.h >>conftest.$ac_ext
25957 cat >>conftest.$ac_ext <<_ACEOF
25958 /* end confdefs.h.  */
25959 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25960    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25961 #define $ac_func innocuous_$ac_func
25962
25963 /* System header to define __stub macros and hopefully few prototypes,
25964     which can conflict with char $ac_func (); below.
25965     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25966     <limits.h> exists even on freestanding compilers.  */
25967
25968 #ifdef __STDC__
25969 # include <limits.h>
25970 #else
25971 # include <assert.h>
25972 #endif
25973
25974 #undef $ac_func
25975
25976 /* Override any GCC internal prototype to avoid an error.
25977    Use char because int might match the return type of a GCC
25978    builtin and then its argument prototype would still apply.  */
25979 #ifdef __cplusplus
25980 extern "C"
25981 #endif
25982 char $ac_func ();
25983 /* The GNU C library defines this for functions which it implements
25984     to always fail with ENOSYS.  Some functions are actually named
25985     something starting with __ and the normal name is an alias.  */
25986 #if defined __stub_$ac_func || defined __stub___$ac_func
25987 choke me
25988 #endif
25989
25990 int
25991 main ()
25992 {
25993 return $ac_func ();
25994   ;
25995   return 0;
25996 }
25997 _ACEOF
25998 rm -f conftest.$ac_objext conftest$ac_exeext
25999 if { (ac_try="$ac_link"
26000 case "(($ac_try" in
26001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26002   *) ac_try_echo=$ac_try;;
26003 esac
26004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26005   (eval "$ac_link") 2>conftest.er1
26006   ac_status=$?
26007   grep -v '^ *+' conftest.er1 >conftest.err
26008   rm -f conftest.er1
26009   cat conftest.err >&5
26010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26011   (exit $ac_status); } && {
26012          test -z "$ac_c_werror_flag" ||
26013          test ! -s conftest.err
26014        } && test -s conftest$ac_exeext &&
26015        $as_test_x conftest$ac_exeext; then
26016   eval "$as_ac_var=yes"
26017 else
26018   echo "$as_me: failed program was:" >&5
26019 sed 's/^/| /' conftest.$ac_ext >&5
26020
26021         eval "$as_ac_var=no"
26022 fi
26023
26024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26025       conftest$ac_exeext conftest.$ac_ext
26026 fi
26027 ac_res=`eval echo '${'$as_ac_var'}'`
26028                { echo "$as_me:$LINENO: result: $ac_res" >&5
26029 echo "${ECHO_T}$ac_res" >&6; }
26030 if test `eval echo '${'$as_ac_var'}'` = yes; then
26031   cat >>confdefs.h <<_ACEOF
26032 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26033 _ACEOF
26034  have_ceil=1
26035 fi
26036 done
26037
26038     { echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
26039 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6; }
26040     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
26041         { echo "$as_me:$LINENO: result: yes" >&5
26042 echo "${ECHO_T}yes" >&6; }
26043     else
26044         { echo "$as_me:$LINENO: result: no" >&5
26045 echo "${ECHO_T}no" >&6; }
26046         # not sure we should warn the user, crash, etc.
26047     fi
26048 fi
26049
26050 ac_ext=cpp
26051 ac_cpp='$CXXCPP $CPPFLAGS'
26052 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26053 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26054 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26055
26056 if test "wxUSE_UNICODE" = "yes"; then
26057
26058   for wx_func in wcstoull
26059   do
26060     { echo "$as_me:$LINENO: checking for $wx_func" >&5
26061 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
26062 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
26063   echo $ECHO_N "(cached) $ECHO_C" >&6
26064 else
26065
26066         cat >conftest.$ac_ext <<_ACEOF
26067
26068             /* confdefs.h.  */
26069 _ACEOF
26070 cat confdefs.h >>conftest.$ac_ext
26071 cat >>conftest.$ac_ext <<_ACEOF
26072 /* end confdefs.h.  */
26073
26074
26075                 $ac_includes_default
26076
26077 int
26078 main ()
26079 {
26080
26081                 #ifndef $wx_func
26082                   &$wx_func;
26083                 #endif
26084
26085
26086   ;
26087   return 0;
26088 }
26089
26090 _ACEOF
26091 rm -f conftest.$ac_objext conftest$ac_exeext
26092 if { (ac_try="$ac_link"
26093 case "(($ac_try" in
26094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26095   *) ac_try_echo=$ac_try;;
26096 esac
26097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26098   (eval "$ac_link") 2>conftest.er1
26099   ac_status=$?
26100   grep -v '^ *+' conftest.er1 >conftest.err
26101   rm -f conftest.er1
26102   cat conftest.err >&5
26103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26104   (exit $ac_status); } && {
26105          test -z "$ac_cxx_werror_flag" ||
26106          test ! -s conftest.err
26107        } && test -s conftest$ac_exeext &&
26108        $as_test_x conftest$ac_exeext; then
26109   eval wx_cv_func_$wx_func=yes
26110 else
26111   echo "$as_me: failed program was:" >&5
26112 sed 's/^/| /' conftest.$ac_ext >&5
26113
26114         eval wx_cv_func_$wx_func=no
26115 fi
26116
26117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26118       conftest$ac_exeext conftest.$ac_ext
26119
26120 fi
26121 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
26122                { echo "$as_me:$LINENO: result: $ac_res" >&5
26123 echo "${ECHO_T}$ac_res" >&6; }
26124
26125     if eval test \$wx_cv_func_$wx_func = yes
26126     then
26127       cat >>confdefs.h <<_ACEOF
26128 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
26129 _ACEOF
26130
26131
26132     else
26133       :
26134
26135     fi
26136   done
26137
26138 else
26139
26140   for wx_func in strtoull
26141   do
26142     { echo "$as_me:$LINENO: checking for $wx_func" >&5
26143 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
26144 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
26145   echo $ECHO_N "(cached) $ECHO_C" >&6
26146 else
26147
26148         cat >conftest.$ac_ext <<_ACEOF
26149
26150             /* confdefs.h.  */
26151 _ACEOF
26152 cat confdefs.h >>conftest.$ac_ext
26153 cat >>conftest.$ac_ext <<_ACEOF
26154 /* end confdefs.h.  */
26155
26156
26157                 $ac_includes_default
26158
26159 int
26160 main ()
26161 {
26162
26163                 #ifndef $wx_func
26164                   &$wx_func;
26165                 #endif
26166
26167
26168   ;
26169   return 0;
26170 }
26171
26172 _ACEOF
26173 rm -f conftest.$ac_objext conftest$ac_exeext
26174 if { (ac_try="$ac_link"
26175 case "(($ac_try" in
26176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26177   *) ac_try_echo=$ac_try;;
26178 esac
26179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26180   (eval "$ac_link") 2>conftest.er1
26181   ac_status=$?
26182   grep -v '^ *+' conftest.er1 >conftest.err
26183   rm -f conftest.er1
26184   cat conftest.err >&5
26185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26186   (exit $ac_status); } && {
26187          test -z "$ac_cxx_werror_flag" ||
26188          test ! -s conftest.err
26189        } && test -s conftest$ac_exeext &&
26190        $as_test_x conftest$ac_exeext; then
26191   eval wx_cv_func_$wx_func=yes
26192 else
26193   echo "$as_me: failed program was:" >&5
26194 sed 's/^/| /' conftest.$ac_ext >&5
26195
26196         eval wx_cv_func_$wx_func=no
26197 fi
26198
26199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26200       conftest$ac_exeext conftest.$ac_ext
26201
26202 fi
26203 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
26204                { echo "$as_me:$LINENO: result: $ac_res" >&5
26205 echo "${ECHO_T}$ac_res" >&6; }
26206
26207     if eval test \$wx_cv_func_$wx_func = yes
26208     then
26209       cat >>confdefs.h <<_ACEOF
26210 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
26211 _ACEOF
26212
26213
26214     else
26215       :
26216
26217     fi
26218   done
26219
26220 fi
26221 ac_ext=c
26222 ac_cpp='$CPP $CPPFLAGS'
26223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26226
26227
26228
26229
26230 if test "$wxUSE_REGEX" != "no"; then
26231     cat >>confdefs.h <<\_ACEOF
26232 #define wxUSE_REGEX 1
26233 _ACEOF
26234
26235
26236     if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
26237         { echo "$as_me:$LINENO: WARNING: Defaulting to the builtin regex library for Unicode build." >&5
26238 echo "$as_me: WARNING: Defaulting to the builtin regex library for Unicode build." >&2;}
26239         wxUSE_REGEX=builtin
26240     fi
26241
26242     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
26243                         { echo "$as_me:$LINENO: checking for regex.h" >&5
26244 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
26245 if test "${ac_cv_header_regex_h+set}" = set; then
26246   echo $ECHO_N "(cached) $ECHO_C" >&6
26247 else
26248   cat >conftest.$ac_ext <<_ACEOF
26249 /* confdefs.h.  */
26250 _ACEOF
26251 cat confdefs.h >>conftest.$ac_ext
26252 cat >>conftest.$ac_ext <<_ACEOF
26253 /* end confdefs.h.  */
26254
26255
26256 #include <regex.h>
26257 _ACEOF
26258 rm -f conftest.$ac_objext
26259 if { (ac_try="$ac_compile"
26260 case "(($ac_try" in
26261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26262   *) ac_try_echo=$ac_try;;
26263 esac
26264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26265   (eval "$ac_compile") 2>conftest.er1
26266   ac_status=$?
26267   grep -v '^ *+' conftest.er1 >conftest.err
26268   rm -f conftest.er1
26269   cat conftest.err >&5
26270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26271   (exit $ac_status); } && {
26272          test -z "$ac_c_werror_flag" ||
26273          test ! -s conftest.err
26274        } && test -s conftest.$ac_objext; then
26275   ac_cv_header_regex_h=yes
26276 else
26277   echo "$as_me: failed program was:" >&5
26278 sed 's/^/| /' conftest.$ac_ext >&5
26279
26280         ac_cv_header_regex_h=no
26281 fi
26282
26283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26284 fi
26285 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
26286 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
26287 if test $ac_cv_header_regex_h = yes; then
26288
26289
26290 for ac_func in regcomp re_search
26291 do
26292 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26293 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26294 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26295 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26296   echo $ECHO_N "(cached) $ECHO_C" >&6
26297 else
26298   cat >conftest.$ac_ext <<_ACEOF
26299 /* confdefs.h.  */
26300 _ACEOF
26301 cat confdefs.h >>conftest.$ac_ext
26302 cat >>conftest.$ac_ext <<_ACEOF
26303 /* end confdefs.h.  */
26304 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26305    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26306 #define $ac_func innocuous_$ac_func
26307
26308 /* System header to define __stub macros and hopefully few prototypes,
26309     which can conflict with char $ac_func (); below.
26310     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26311     <limits.h> exists even on freestanding compilers.  */
26312
26313 #ifdef __STDC__
26314 # include <limits.h>
26315 #else
26316 # include <assert.h>
26317 #endif
26318
26319 #undef $ac_func
26320
26321 /* Override any GCC internal prototype to avoid an error.
26322    Use char because int might match the return type of a GCC
26323    builtin and then its argument prototype would still apply.  */
26324 #ifdef __cplusplus
26325 extern "C"
26326 #endif
26327 char $ac_func ();
26328 /* The GNU C library defines this for functions which it implements
26329     to always fail with ENOSYS.  Some functions are actually named
26330     something starting with __ and the normal name is an alias.  */
26331 #if defined __stub_$ac_func || defined __stub___$ac_func
26332 choke me
26333 #endif
26334
26335 int
26336 main ()
26337 {
26338 return $ac_func ();
26339   ;
26340   return 0;
26341 }
26342 _ACEOF
26343 rm -f conftest.$ac_objext conftest$ac_exeext
26344 if { (ac_try="$ac_link"
26345 case "(($ac_try" in
26346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26347   *) ac_try_echo=$ac_try;;
26348 esac
26349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26350   (eval "$ac_link") 2>conftest.er1
26351   ac_status=$?
26352   grep -v '^ *+' conftest.er1 >conftest.err
26353   rm -f conftest.er1
26354   cat conftest.err >&5
26355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26356   (exit $ac_status); } && {
26357          test -z "$ac_c_werror_flag" ||
26358          test ! -s conftest.err
26359        } && test -s conftest$ac_exeext &&
26360        $as_test_x conftest$ac_exeext; then
26361   eval "$as_ac_var=yes"
26362 else
26363   echo "$as_me: failed program was:" >&5
26364 sed 's/^/| /' conftest.$ac_ext >&5
26365
26366         eval "$as_ac_var=no"
26367 fi
26368
26369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26370       conftest$ac_exeext conftest.$ac_ext
26371 fi
26372 ac_res=`eval echo '${'$as_ac_var'}'`
26373                { echo "$as_me:$LINENO: result: $ac_res" >&5
26374 echo "${ECHO_T}$ac_res" >&6; }
26375 if test `eval echo '${'$as_ac_var'}'` = yes; then
26376   cat >>confdefs.h <<_ACEOF
26377 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26378 _ACEOF
26379
26380 fi
26381 done
26382
26383 fi
26384
26385
26386
26387         if test "x$ac_cv_func_regcomp" != "xyes"; then
26388             if test "$wxUSE_REGEX" = "sys" ; then
26389                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
26390 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
26391    { (exit 1); exit 1; }; }
26392             else
26393                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
26394 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
26395                 wxUSE_REGEX=builtin
26396             fi
26397         else
26398                         wxUSE_REGEX=sys
26399                         cat >>confdefs.h <<\_ACEOF
26400 #define WX_NO_REGEX_ADVANCED 1
26401 _ACEOF
26402
26403         fi
26404     fi
26405 fi
26406
26407
26408 ZLIB_LINK=
26409 if test "$wxUSE_ZLIB" != "no" ; then
26410     cat >>confdefs.h <<\_ACEOF
26411 #define wxUSE_ZLIB 1
26412 _ACEOF
26413
26414
26415     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
26416                                                 if test "$USE_DARWIN" = 1; then
26417             system_zlib_h_ok="yes"
26418         else
26419                                                                                     { echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
26420 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6; }
26421 if test "${ac_cv_header_zlib_h+set}" = set; then
26422   echo $ECHO_N "(cached) $ECHO_C" >&6
26423 else
26424   if test "$cross_compiling" = yes; then
26425                       unset ac_cv_header_zlib_h
26426
26427 else
26428   cat >conftest.$ac_ext <<_ACEOF
26429 /* confdefs.h.  */
26430 _ACEOF
26431 cat confdefs.h >>conftest.$ac_ext
26432 cat >>conftest.$ac_ext <<_ACEOF
26433 /* end confdefs.h.  */
26434
26435                         #include <zlib.h>
26436                         #include <stdio.h>
26437
26438                         int main()
26439                         {
26440                             FILE *f=fopen("conftestval", "w");
26441                             if (!f) exit(1);
26442                             fprintf(f, "%s",
26443                                     ZLIB_VERSION[0] == '1' &&
26444                                     (ZLIB_VERSION[2] > '1' ||
26445                                     (ZLIB_VERSION[2] == '1' &&
26446                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
26447                             exit(0);
26448                         }
26449
26450 _ACEOF
26451 rm -f conftest$ac_exeext
26452 if { (ac_try="$ac_link"
26453 case "(($ac_try" in
26454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26455   *) ac_try_echo=$ac_try;;
26456 esac
26457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26458   (eval "$ac_link") 2>&5
26459   ac_status=$?
26460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26461   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26462   { (case "(($ac_try" in
26463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26464   *) ac_try_echo=$ac_try;;
26465 esac
26466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26467   (eval "$ac_try") 2>&5
26468   ac_status=$?
26469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26470   (exit $ac_status); }; }; then
26471   ac_cv_header_zlib_h=`cat conftestval`
26472 else
26473   echo "$as_me: program exited with status $ac_status" >&5
26474 echo "$as_me: failed program was:" >&5
26475 sed 's/^/| /' conftest.$ac_ext >&5
26476
26477 ( exit $ac_status )
26478 ac_cv_header_zlib_h=no
26479 fi
26480 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26481 fi
26482
26483
26484
26485 fi
26486 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
26487 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
26488                                     { echo "$as_me:$LINENO: checking for zlib.h" >&5
26489 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
26490 if test "${ac_cv_header_zlib_h+set}" = set; then
26491   echo $ECHO_N "(cached) $ECHO_C" >&6
26492 else
26493   cat >conftest.$ac_ext <<_ACEOF
26494 /* confdefs.h.  */
26495 _ACEOF
26496 cat confdefs.h >>conftest.$ac_ext
26497 cat >>conftest.$ac_ext <<_ACEOF
26498 /* end confdefs.h.  */
26499
26500
26501 #include <zlib.h>
26502 _ACEOF
26503 rm -f conftest.$ac_objext
26504 if { (ac_try="$ac_compile"
26505 case "(($ac_try" in
26506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26507   *) ac_try_echo=$ac_try;;
26508 esac
26509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26510   (eval "$ac_compile") 2>conftest.er1
26511   ac_status=$?
26512   grep -v '^ *+' conftest.er1 >conftest.err
26513   rm -f conftest.er1
26514   cat conftest.err >&5
26515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26516   (exit $ac_status); } && {
26517          test -z "$ac_c_werror_flag" ||
26518          test ! -s conftest.err
26519        } && test -s conftest.$ac_objext; then
26520   ac_cv_header_zlib_h=yes
26521 else
26522   echo "$as_me: failed program was:" >&5
26523 sed 's/^/| /' conftest.$ac_ext >&5
26524
26525         ac_cv_header_zlib_h=no
26526 fi
26527
26528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26529 fi
26530 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
26531 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
26532
26533
26534
26535             system_zlib_h_ok=$ac_cv_header_zlib_h
26536         fi
26537
26538         if test "$system_zlib_h_ok" = "yes"; then
26539             { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
26540 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
26541 if test "${ac_cv_lib_z_deflate+set}" = set; then
26542   echo $ECHO_N "(cached) $ECHO_C" >&6
26543 else
26544   ac_check_lib_save_LIBS=$LIBS
26545 LIBS="-lz  $LIBS"
26546 cat >conftest.$ac_ext <<_ACEOF
26547 /* confdefs.h.  */
26548 _ACEOF
26549 cat confdefs.h >>conftest.$ac_ext
26550 cat >>conftest.$ac_ext <<_ACEOF
26551 /* end confdefs.h.  */
26552
26553 /* Override any GCC internal prototype to avoid an error.
26554    Use char because int might match the return type of a GCC
26555    builtin and then its argument prototype would still apply.  */
26556 #ifdef __cplusplus
26557 extern "C"
26558 #endif
26559 char deflate ();
26560 int
26561 main ()
26562 {
26563 return deflate ();
26564   ;
26565   return 0;
26566 }
26567 _ACEOF
26568 rm -f conftest.$ac_objext conftest$ac_exeext
26569 if { (ac_try="$ac_link"
26570 case "(($ac_try" in
26571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26572   *) ac_try_echo=$ac_try;;
26573 esac
26574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26575   (eval "$ac_link") 2>conftest.er1
26576   ac_status=$?
26577   grep -v '^ *+' conftest.er1 >conftest.err
26578   rm -f conftest.er1
26579   cat conftest.err >&5
26580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26581   (exit $ac_status); } && {
26582          test -z "$ac_c_werror_flag" ||
26583          test ! -s conftest.err
26584        } && test -s conftest$ac_exeext &&
26585        $as_test_x conftest$ac_exeext; then
26586   ac_cv_lib_z_deflate=yes
26587 else
26588   echo "$as_me: failed program was:" >&5
26589 sed 's/^/| /' conftest.$ac_ext >&5
26590
26591         ac_cv_lib_z_deflate=no
26592 fi
26593
26594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26595       conftest$ac_exeext conftest.$ac_ext
26596 LIBS=$ac_check_lib_save_LIBS
26597 fi
26598 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
26599 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
26600 if test $ac_cv_lib_z_deflate = yes; then
26601   ZLIB_LINK=" -lz"
26602 fi
26603
26604         fi
26605
26606         if test "x$ZLIB_LINK" = "x" ; then
26607             if test "$wxUSE_ZLIB" = "sys" ; then
26608                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
26609 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
26610    { (exit 1); exit 1; }; }
26611             else
26612                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
26613 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
26614                 wxUSE_ZLIB=builtin
26615             fi
26616         else
26617                         wxUSE_ZLIB=sys
26618         fi
26619     fi
26620 fi
26621
26622
26623 PNG_LINK=
26624 if test "$wxUSE_LIBPNG" != "no" ; then
26625     cat >>confdefs.h <<\_ACEOF
26626 #define wxUSE_LIBPNG 1
26627 _ACEOF
26628
26629
26630     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
26631         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
26632 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
26633         wxUSE_LIBPNG=sys
26634     fi
26635
26636                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
26637         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
26638 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
26639         wxUSE_LIBPNG=builtin
26640     fi
26641
26642     if test "$wxUSE_MGL" != 1 ; then
26643                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
26644                                     { echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
26645 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6; }
26646 if test "${ac_cv_header_png_h+set}" = set; then
26647   echo $ECHO_N "(cached) $ECHO_C" >&6
26648 else
26649   if test "$cross_compiling" = yes; then
26650                       unset ac_cv_header_png_h
26651
26652 else
26653   cat >conftest.$ac_ext <<_ACEOF
26654 /* confdefs.h.  */
26655 _ACEOF
26656 cat confdefs.h >>conftest.$ac_ext
26657 cat >>conftest.$ac_ext <<_ACEOF
26658 /* end confdefs.h.  */
26659
26660                         #include <png.h>
26661                         #include <stdio.h>
26662
26663                         int main()
26664                         {
26665                             FILE *f=fopen("conftestval", "w");
26666                             if (!f) exit(1);
26667                             fprintf(f, "%s",
26668                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
26669                             exit(0);
26670                         }
26671
26672 _ACEOF
26673 rm -f conftest$ac_exeext
26674 if { (ac_try="$ac_link"
26675 case "(($ac_try" in
26676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26677   *) ac_try_echo=$ac_try;;
26678 esac
26679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26680   (eval "$ac_link") 2>&5
26681   ac_status=$?
26682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26683   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26684   { (case "(($ac_try" in
26685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26686   *) ac_try_echo=$ac_try;;
26687 esac
26688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26689   (eval "$ac_try") 2>&5
26690   ac_status=$?
26691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26692   (exit $ac_status); }; }; then
26693   ac_cv_header_png_h=`cat conftestval`
26694 else
26695   echo "$as_me: program exited with status $ac_status" >&5
26696 echo "$as_me: failed program was:" >&5
26697 sed 's/^/| /' conftest.$ac_ext >&5
26698
26699 ( exit $ac_status )
26700 ac_cv_header_png_h=no
26701 fi
26702 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26703 fi
26704
26705
26706
26707 fi
26708 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
26709 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
26710             { echo "$as_me:$LINENO: checking for png.h" >&5
26711 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
26712 if test "${ac_cv_header_png_h+set}" = set; then
26713   echo $ECHO_N "(cached) $ECHO_C" >&6
26714 else
26715   cat >conftest.$ac_ext <<_ACEOF
26716 /* confdefs.h.  */
26717 _ACEOF
26718 cat confdefs.h >>conftest.$ac_ext
26719 cat >>conftest.$ac_ext <<_ACEOF
26720 /* end confdefs.h.  */
26721
26722
26723 #include <png.h>
26724 _ACEOF
26725 rm -f conftest.$ac_objext
26726 if { (ac_try="$ac_compile"
26727 case "(($ac_try" in
26728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26729   *) ac_try_echo=$ac_try;;
26730 esac
26731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26732   (eval "$ac_compile") 2>conftest.er1
26733   ac_status=$?
26734   grep -v '^ *+' conftest.er1 >conftest.err
26735   rm -f conftest.er1
26736   cat conftest.err >&5
26737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26738   (exit $ac_status); } && {
26739          test -z "$ac_c_werror_flag" ||
26740          test ! -s conftest.err
26741        } && test -s conftest.$ac_objext; then
26742   ac_cv_header_png_h=yes
26743 else
26744   echo "$as_me: failed program was:" >&5
26745 sed 's/^/| /' conftest.$ac_ext >&5
26746
26747         ac_cv_header_png_h=no
26748 fi
26749
26750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26751 fi
26752 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
26753 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
26754
26755
26756
26757             if test "$ac_cv_header_png_h" = "yes"; then
26758                 { echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
26759 echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6; }
26760 if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
26761   echo $ECHO_N "(cached) $ECHO_C" >&6
26762 else
26763   ac_check_lib_save_LIBS=$LIBS
26764 LIBS="-lpng -lz -lm $LIBS"
26765 cat >conftest.$ac_ext <<_ACEOF
26766 /* confdefs.h.  */
26767 _ACEOF
26768 cat confdefs.h >>conftest.$ac_ext
26769 cat >>conftest.$ac_ext <<_ACEOF
26770 /* end confdefs.h.  */
26771
26772 /* Override any GCC internal prototype to avoid an error.
26773    Use char because int might match the return type of a GCC
26774    builtin and then its argument prototype would still apply.  */
26775 #ifdef __cplusplus
26776 extern "C"
26777 #endif
26778 char png_check_sig ();
26779 int
26780 main ()
26781 {
26782 return png_check_sig ();
26783   ;
26784   return 0;
26785 }
26786 _ACEOF
26787 rm -f conftest.$ac_objext conftest$ac_exeext
26788 if { (ac_try="$ac_link"
26789 case "(($ac_try" in
26790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26791   *) ac_try_echo=$ac_try;;
26792 esac
26793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26794   (eval "$ac_link") 2>conftest.er1
26795   ac_status=$?
26796   grep -v '^ *+' conftest.er1 >conftest.err
26797   rm -f conftest.er1
26798   cat conftest.err >&5
26799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26800   (exit $ac_status); } && {
26801          test -z "$ac_c_werror_flag" ||
26802          test ! -s conftest.err
26803        } && test -s conftest$ac_exeext &&
26804        $as_test_x conftest$ac_exeext; then
26805   ac_cv_lib_png_png_check_sig=yes
26806 else
26807   echo "$as_me: failed program was:" >&5
26808 sed 's/^/| /' conftest.$ac_ext >&5
26809
26810         ac_cv_lib_png_png_check_sig=no
26811 fi
26812
26813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26814       conftest$ac_exeext conftest.$ac_ext
26815 LIBS=$ac_check_lib_save_LIBS
26816 fi
26817 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
26818 echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6; }
26819 if test $ac_cv_lib_png_png_check_sig = yes; then
26820   PNG_LINK=" -lpng -lz"
26821 fi
26822
26823             fi
26824
26825             if test "x$PNG_LINK" = "x" ; then
26826                 if test "$wxUSE_LIBPNG" = "sys" ; then
26827                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
26828 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
26829    { (exit 1); exit 1; }; }
26830                 else
26831                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
26832 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
26833                     wxUSE_LIBPNG=builtin
26834                 fi
26835             else
26836                                 wxUSE_LIBPNG=sys
26837             fi
26838         fi
26839     fi
26840 fi
26841
26842
26843 JPEG_LINK=
26844 if test "$wxUSE_LIBJPEG" != "no" ; then
26845     cat >>confdefs.h <<\_ACEOF
26846 #define wxUSE_LIBJPEG 1
26847 _ACEOF
26848
26849
26850     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
26851         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
26852 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
26853         wxUSE_LIBJPEG=sys
26854     fi
26855
26856     if test "$wxUSE_MGL" != 1 ; then
26857                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
26858                                                 { echo "$as_me:$LINENO: checking for jpeglib.h" >&5
26859 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
26860             if test "${ac_cv_header_jpeglib_h+set}" = set; then
26861   echo $ECHO_N "(cached) $ECHO_C" >&6
26862 else
26863   cat >conftest.$ac_ext <<_ACEOF
26864 /* confdefs.h.  */
26865 _ACEOF
26866 cat confdefs.h >>conftest.$ac_ext
26867 cat >>conftest.$ac_ext <<_ACEOF
26868 /* end confdefs.h.  */
26869
26870                         #undef HAVE_STDLIB_H
26871                         #include <stdio.h>
26872                         #include <jpeglib.h>
26873
26874 int
26875 main ()
26876 {
26877
26878
26879   ;
26880   return 0;
26881 }
26882 _ACEOF
26883 rm -f conftest.$ac_objext
26884 if { (ac_try="$ac_compile"
26885 case "(($ac_try" in
26886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26887   *) ac_try_echo=$ac_try;;
26888 esac
26889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26890   (eval "$ac_compile") 2>conftest.er1
26891   ac_status=$?
26892   grep -v '^ *+' conftest.er1 >conftest.err
26893   rm -f conftest.er1
26894   cat conftest.err >&5
26895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26896   (exit $ac_status); } && {
26897          test -z "$ac_c_werror_flag" ||
26898          test ! -s conftest.err
26899        } && test -s conftest.$ac_objext; then
26900   ac_cv_header_jpeglib_h=yes
26901 else
26902   echo "$as_me: failed program was:" >&5
26903 sed 's/^/| /' conftest.$ac_ext >&5
26904
26905         ac_cv_header_jpeglib_h=no
26906
26907 fi
26908
26909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26910
26911 fi
26912
26913             { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
26914 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
26915
26916             if test "$ac_cv_header_jpeglib_h" = "yes"; then
26917                 { echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
26918 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6; }
26919 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
26920   echo $ECHO_N "(cached) $ECHO_C" >&6
26921 else
26922   ac_check_lib_save_LIBS=$LIBS
26923 LIBS="-ljpeg  $LIBS"
26924 cat >conftest.$ac_ext <<_ACEOF
26925 /* confdefs.h.  */
26926 _ACEOF
26927 cat confdefs.h >>conftest.$ac_ext
26928 cat >>conftest.$ac_ext <<_ACEOF
26929 /* end confdefs.h.  */
26930
26931 /* Override any GCC internal prototype to avoid an error.
26932    Use char because int might match the return type of a GCC
26933    builtin and then its argument prototype would still apply.  */
26934 #ifdef __cplusplus
26935 extern "C"
26936 #endif
26937 char jpeg_read_header ();
26938 int
26939 main ()
26940 {
26941 return jpeg_read_header ();
26942   ;
26943   return 0;
26944 }
26945 _ACEOF
26946 rm -f conftest.$ac_objext conftest$ac_exeext
26947 if { (ac_try="$ac_link"
26948 case "(($ac_try" in
26949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26950   *) ac_try_echo=$ac_try;;
26951 esac
26952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26953   (eval "$ac_link") 2>conftest.er1
26954   ac_status=$?
26955   grep -v '^ *+' conftest.er1 >conftest.err
26956   rm -f conftest.er1
26957   cat conftest.err >&5
26958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26959   (exit $ac_status); } && {
26960          test -z "$ac_c_werror_flag" ||
26961          test ! -s conftest.err
26962        } && test -s conftest$ac_exeext &&
26963        $as_test_x conftest$ac_exeext; then
26964   ac_cv_lib_jpeg_jpeg_read_header=yes
26965 else
26966   echo "$as_me: failed program was:" >&5
26967 sed 's/^/| /' conftest.$ac_ext >&5
26968
26969         ac_cv_lib_jpeg_jpeg_read_header=no
26970 fi
26971
26972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26973       conftest$ac_exeext conftest.$ac_ext
26974 LIBS=$ac_check_lib_save_LIBS
26975 fi
26976 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
26977 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
26978 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
26979   JPEG_LINK=" -ljpeg"
26980 fi
26981
26982             fi
26983
26984             if test "x$JPEG_LINK" = "x" ; then
26985                 if test "$wxUSE_LIBJPEG" = "sys" ; then
26986                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
26987 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
26988    { (exit 1); exit 1; }; }
26989                 else
26990                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
26991 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
26992                     wxUSE_LIBJPEG=builtin
26993                 fi
26994             else
26995                                 wxUSE_LIBJPEG=sys
26996
26997                 if test "$wxUSE_MSW" = 1; then
26998                                                                                                     { echo "$as_me:$LINENO: checking for boolean" >&5
26999 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
27000 if test "${ac_cv_type_boolean+set}" = set; then
27001   echo $ECHO_N "(cached) $ECHO_C" >&6
27002 else
27003   cat >conftest.$ac_ext <<_ACEOF
27004 /* confdefs.h.  */
27005 _ACEOF
27006 cat confdefs.h >>conftest.$ac_ext
27007 cat >>conftest.$ac_ext <<_ACEOF
27008 /* end confdefs.h.  */
27009 #include <windows.h>
27010
27011 typedef boolean ac__type_new_;
27012 int
27013 main ()
27014 {
27015 if ((ac__type_new_ *) 0)
27016   return 0;
27017 if (sizeof (ac__type_new_))
27018   return 0;
27019   ;
27020   return 0;
27021 }
27022 _ACEOF
27023 rm -f conftest.$ac_objext
27024 if { (ac_try="$ac_compile"
27025 case "(($ac_try" in
27026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27027   *) ac_try_echo=$ac_try;;
27028 esac
27029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27030   (eval "$ac_compile") 2>conftest.er1
27031   ac_status=$?
27032   grep -v '^ *+' conftest.er1 >conftest.err
27033   rm -f conftest.er1
27034   cat conftest.err >&5
27035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27036   (exit $ac_status); } && {
27037          test -z "$ac_c_werror_flag" ||
27038          test ! -s conftest.err
27039        } && test -s conftest.$ac_objext; then
27040   ac_cv_type_boolean=yes
27041 else
27042   echo "$as_me: failed program was:" >&5
27043 sed 's/^/| /' conftest.$ac_ext >&5
27044
27045         ac_cv_type_boolean=no
27046 fi
27047
27048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27049 fi
27050 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
27051 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
27052 if test $ac_cv_type_boolean = yes; then
27053
27054 cat >>confdefs.h <<_ACEOF
27055 #define HAVE_BOOLEAN 1
27056 _ACEOF
27057
27058
27059                             { echo "$as_me:$LINENO: checking for boolean" >&5
27060 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
27061 if test "${ac_cv_type_boolean+set}" = set; then
27062   echo $ECHO_N "(cached) $ECHO_C" >&6
27063 else
27064   cat >conftest.$ac_ext <<_ACEOF
27065 /* confdefs.h.  */
27066 _ACEOF
27067 cat confdefs.h >>conftest.$ac_ext
27068 cat >>conftest.$ac_ext <<_ACEOF
27069 /* end confdefs.h.  */
27070
27071                                     #undef HAVE_BOOLEAN
27072                                     #include <stdio.h>
27073                                     #include <jpeglib.h>
27074
27075
27076 typedef boolean ac__type_new_;
27077 int
27078 main ()
27079 {
27080 if ((ac__type_new_ *) 0)
27081   return 0;
27082 if (sizeof (ac__type_new_))
27083   return 0;
27084   ;
27085   return 0;
27086 }
27087 _ACEOF
27088 rm -f conftest.$ac_objext
27089 if { (ac_try="$ac_compile"
27090 case "(($ac_try" in
27091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27092   *) ac_try_echo=$ac_try;;
27093 esac
27094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27095   (eval "$ac_compile") 2>conftest.er1
27096   ac_status=$?
27097   grep -v '^ *+' conftest.er1 >conftest.err
27098   rm -f conftest.er1
27099   cat conftest.err >&5
27100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27101   (exit $ac_status); } && {
27102          test -z "$ac_c_werror_flag" ||
27103          test ! -s conftest.err
27104        } && test -s conftest.$ac_objext; then
27105   ac_cv_type_boolean=yes
27106 else
27107   echo "$as_me: failed program was:" >&5
27108 sed 's/^/| /' conftest.$ac_ext >&5
27109
27110         ac_cv_type_boolean=no
27111 fi
27112
27113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27114 fi
27115 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
27116 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
27117
27118 # The cast to long int works around a bug in the HP C Compiler
27119 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27120 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27121 # This bug is HP SR number 8606223364.
27122 { echo "$as_me:$LINENO: checking size of boolean" >&5
27123 echo $ECHO_N "checking size of boolean... $ECHO_C" >&6; }
27124 if test "${ac_cv_sizeof_boolean+set}" = set; then
27125   echo $ECHO_N "(cached) $ECHO_C" >&6
27126 else
27127   if test "$cross_compiling" = yes; then
27128   # Depending upon the size, compute the lo and hi bounds.
27129 cat >conftest.$ac_ext <<_ACEOF
27130 /* confdefs.h.  */
27131 _ACEOF
27132 cat confdefs.h >>conftest.$ac_ext
27133 cat >>conftest.$ac_ext <<_ACEOF
27134 /* end confdefs.h.  */
27135
27136                                     #undef HAVE_BOOLEAN
27137                                     #include <stdio.h>
27138                                     #include <jpeglib.h>
27139
27140
27141    typedef boolean ac__type_sizeof_;
27142 int
27143 main ()
27144 {
27145 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27146 test_array [0] = 0
27147
27148   ;
27149   return 0;
27150 }
27151 _ACEOF
27152 rm -f conftest.$ac_objext
27153 if { (ac_try="$ac_compile"
27154 case "(($ac_try" in
27155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27156   *) ac_try_echo=$ac_try;;
27157 esac
27158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27159   (eval "$ac_compile") 2>conftest.er1
27160   ac_status=$?
27161   grep -v '^ *+' conftest.er1 >conftest.err
27162   rm -f conftest.er1
27163   cat conftest.err >&5
27164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27165   (exit $ac_status); } && {
27166          test -z "$ac_c_werror_flag" ||
27167          test ! -s conftest.err
27168        } && test -s conftest.$ac_objext; then
27169   ac_lo=0 ac_mid=0
27170   while :; do
27171     cat >conftest.$ac_ext <<_ACEOF
27172 /* confdefs.h.  */
27173 _ACEOF
27174 cat confdefs.h >>conftest.$ac_ext
27175 cat >>conftest.$ac_ext <<_ACEOF
27176 /* end confdefs.h.  */
27177
27178                                     #undef HAVE_BOOLEAN
27179                                     #include <stdio.h>
27180                                     #include <jpeglib.h>
27181
27182
27183    typedef boolean ac__type_sizeof_;
27184 int
27185 main ()
27186 {
27187 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27188 test_array [0] = 0
27189
27190   ;
27191   return 0;
27192 }
27193 _ACEOF
27194 rm -f conftest.$ac_objext
27195 if { (ac_try="$ac_compile"
27196 case "(($ac_try" in
27197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27198   *) ac_try_echo=$ac_try;;
27199 esac
27200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27201   (eval "$ac_compile") 2>conftest.er1
27202   ac_status=$?
27203   grep -v '^ *+' conftest.er1 >conftest.err
27204   rm -f conftest.er1
27205   cat conftest.err >&5
27206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27207   (exit $ac_status); } && {
27208          test -z "$ac_c_werror_flag" ||
27209          test ! -s conftest.err
27210        } && test -s conftest.$ac_objext; then
27211   ac_hi=$ac_mid; break
27212 else
27213   echo "$as_me: failed program was:" >&5
27214 sed 's/^/| /' conftest.$ac_ext >&5
27215
27216         ac_lo=`expr $ac_mid + 1`
27217                         if test $ac_lo -le $ac_mid; then
27218                           ac_lo= ac_hi=
27219                           break
27220                         fi
27221                         ac_mid=`expr 2 '*' $ac_mid + 1`
27222 fi
27223
27224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27225   done
27226 else
27227   echo "$as_me: failed program was:" >&5
27228 sed 's/^/| /' conftest.$ac_ext >&5
27229
27230         cat >conftest.$ac_ext <<_ACEOF
27231 /* confdefs.h.  */
27232 _ACEOF
27233 cat confdefs.h >>conftest.$ac_ext
27234 cat >>conftest.$ac_ext <<_ACEOF
27235 /* end confdefs.h.  */
27236
27237                                     #undef HAVE_BOOLEAN
27238                                     #include <stdio.h>
27239                                     #include <jpeglib.h>
27240
27241
27242    typedef boolean ac__type_sizeof_;
27243 int
27244 main ()
27245 {
27246 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27247 test_array [0] = 0
27248
27249   ;
27250   return 0;
27251 }
27252 _ACEOF
27253 rm -f conftest.$ac_objext
27254 if { (ac_try="$ac_compile"
27255 case "(($ac_try" in
27256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27257   *) ac_try_echo=$ac_try;;
27258 esac
27259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27260   (eval "$ac_compile") 2>conftest.er1
27261   ac_status=$?
27262   grep -v '^ *+' conftest.er1 >conftest.err
27263   rm -f conftest.er1
27264   cat conftest.err >&5
27265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27266   (exit $ac_status); } && {
27267          test -z "$ac_c_werror_flag" ||
27268          test ! -s conftest.err
27269        } && test -s conftest.$ac_objext; then
27270   ac_hi=-1 ac_mid=-1
27271   while :; do
27272     cat >conftest.$ac_ext <<_ACEOF
27273 /* confdefs.h.  */
27274 _ACEOF
27275 cat confdefs.h >>conftest.$ac_ext
27276 cat >>conftest.$ac_ext <<_ACEOF
27277 /* end confdefs.h.  */
27278
27279                                     #undef HAVE_BOOLEAN
27280                                     #include <stdio.h>
27281                                     #include <jpeglib.h>
27282
27283
27284    typedef boolean ac__type_sizeof_;
27285 int
27286 main ()
27287 {
27288 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27289 test_array [0] = 0
27290
27291   ;
27292   return 0;
27293 }
27294 _ACEOF
27295 rm -f conftest.$ac_objext
27296 if { (ac_try="$ac_compile"
27297 case "(($ac_try" in
27298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27299   *) ac_try_echo=$ac_try;;
27300 esac
27301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27302   (eval "$ac_compile") 2>conftest.er1
27303   ac_status=$?
27304   grep -v '^ *+' conftest.er1 >conftest.err
27305   rm -f conftest.er1
27306   cat conftest.err >&5
27307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27308   (exit $ac_status); } && {
27309          test -z "$ac_c_werror_flag" ||
27310          test ! -s conftest.err
27311        } && test -s conftest.$ac_objext; then
27312   ac_lo=$ac_mid; break
27313 else
27314   echo "$as_me: failed program was:" >&5
27315 sed 's/^/| /' conftest.$ac_ext >&5
27316
27317         ac_hi=`expr '(' $ac_mid ')' - 1`
27318                         if test $ac_mid -le $ac_hi; then
27319                           ac_lo= ac_hi=
27320                           break
27321                         fi
27322                         ac_mid=`expr 2 '*' $ac_mid`
27323 fi
27324
27325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27326   done
27327 else
27328   echo "$as_me: failed program was:" >&5
27329 sed 's/^/| /' conftest.$ac_ext >&5
27330
27331         ac_lo= ac_hi=
27332 fi
27333
27334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27335 fi
27336
27337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27338 # Binary search between lo and hi bounds.
27339 while test "x$ac_lo" != "x$ac_hi"; do
27340   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27341   cat >conftest.$ac_ext <<_ACEOF
27342 /* confdefs.h.  */
27343 _ACEOF
27344 cat confdefs.h >>conftest.$ac_ext
27345 cat >>conftest.$ac_ext <<_ACEOF
27346 /* end confdefs.h.  */
27347
27348                                     #undef HAVE_BOOLEAN
27349                                     #include <stdio.h>
27350                                     #include <jpeglib.h>
27351
27352
27353    typedef boolean ac__type_sizeof_;
27354 int
27355 main ()
27356 {
27357 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27358 test_array [0] = 0
27359
27360   ;
27361   return 0;
27362 }
27363 _ACEOF
27364 rm -f conftest.$ac_objext
27365 if { (ac_try="$ac_compile"
27366 case "(($ac_try" in
27367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27368   *) ac_try_echo=$ac_try;;
27369 esac
27370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27371   (eval "$ac_compile") 2>conftest.er1
27372   ac_status=$?
27373   grep -v '^ *+' conftest.er1 >conftest.err
27374   rm -f conftest.er1
27375   cat conftest.err >&5
27376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27377   (exit $ac_status); } && {
27378          test -z "$ac_c_werror_flag" ||
27379          test ! -s conftest.err
27380        } && test -s conftest.$ac_objext; then
27381   ac_hi=$ac_mid
27382 else
27383   echo "$as_me: failed program was:" >&5
27384 sed 's/^/| /' conftest.$ac_ext >&5
27385
27386         ac_lo=`expr '(' $ac_mid ')' + 1`
27387 fi
27388
27389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27390 done
27391 case $ac_lo in
27392 ?*) ac_cv_sizeof_boolean=$ac_lo;;
27393 '') if test "$ac_cv_type_boolean" = yes; then
27394      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
27395 See \`config.log' for more details." >&5
27396 echo "$as_me: error: cannot compute sizeof (boolean)
27397 See \`config.log' for more details." >&2;}
27398    { (exit 77); exit 77; }; }
27399    else
27400      ac_cv_sizeof_boolean=0
27401    fi ;;
27402 esac
27403 else
27404   cat >conftest.$ac_ext <<_ACEOF
27405 /* confdefs.h.  */
27406 _ACEOF
27407 cat confdefs.h >>conftest.$ac_ext
27408 cat >>conftest.$ac_ext <<_ACEOF
27409 /* end confdefs.h.  */
27410
27411                                     #undef HAVE_BOOLEAN
27412                                     #include <stdio.h>
27413                                     #include <jpeglib.h>
27414
27415
27416    typedef boolean ac__type_sizeof_;
27417 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27418 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27419 #include <stdio.h>
27420 #include <stdlib.h>
27421 int
27422 main ()
27423 {
27424
27425   FILE *f = fopen ("conftest.val", "w");
27426   if (! f)
27427     return 1;
27428   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27429     {
27430       long int i = longval ();
27431       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27432         return 1;
27433       fprintf (f, "%ld\n", i);
27434     }
27435   else
27436     {
27437       unsigned long int i = ulongval ();
27438       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27439         return 1;
27440       fprintf (f, "%lu\n", i);
27441     }
27442   return ferror (f) || fclose (f) != 0;
27443
27444   ;
27445   return 0;
27446 }
27447 _ACEOF
27448 rm -f conftest$ac_exeext
27449 if { (ac_try="$ac_link"
27450 case "(($ac_try" in
27451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27452   *) ac_try_echo=$ac_try;;
27453 esac
27454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27455   (eval "$ac_link") 2>&5
27456   ac_status=$?
27457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27458   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27459   { (case "(($ac_try" in
27460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27461   *) ac_try_echo=$ac_try;;
27462 esac
27463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27464   (eval "$ac_try") 2>&5
27465   ac_status=$?
27466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27467   (exit $ac_status); }; }; then
27468   ac_cv_sizeof_boolean=`cat conftest.val`
27469 else
27470   echo "$as_me: program exited with status $ac_status" >&5
27471 echo "$as_me: failed program was:" >&5
27472 sed 's/^/| /' conftest.$ac_ext >&5
27473
27474 ( exit $ac_status )
27475 if test "$ac_cv_type_boolean" = yes; then
27476      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
27477 See \`config.log' for more details." >&5
27478 echo "$as_me: error: cannot compute sizeof (boolean)
27479 See \`config.log' for more details." >&2;}
27480    { (exit 77); exit 77; }; }
27481    else
27482      ac_cv_sizeof_boolean=0
27483    fi
27484 fi
27485 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27486 fi
27487 rm -f conftest.val
27488 fi
27489 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_boolean" >&5
27490 echo "${ECHO_T}$ac_cv_sizeof_boolean" >&6; }
27491
27492
27493
27494 cat >>confdefs.h <<_ACEOF
27495 #define SIZEOF_BOOLEAN $ac_cv_sizeof_boolean
27496 _ACEOF
27497
27498
27499                             cat >>confdefs.h <<_ACEOF
27500 #define wxHACK_BOOLEAN wxInt`expr 8 \* $ac_cv_sizeof_boolean`
27501 _ACEOF
27502
27503
27504 fi
27505
27506                 fi
27507             fi
27508         fi
27509     fi
27510 fi
27511
27512
27513 TIFF_LINK=
27514 TIFF_PREREQ_LINKS=-lm
27515 if test "$wxUSE_LIBTIFF" != "no" ; then
27516     cat >>confdefs.h <<\_ACEOF
27517 #define wxUSE_LIBTIFF 1
27518 _ACEOF
27519
27520
27521     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
27522                         if test "$wxUSE_LIBJPEG" = "sys"; then
27523             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
27524         fi
27525         if test "$wxUSE_ZLIB" = "sys"; then
27526             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
27527         fi
27528         { echo "$as_me:$LINENO: checking for tiffio.h" >&5
27529 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
27530 if test "${ac_cv_header_tiffio_h+set}" = set; then
27531   echo $ECHO_N "(cached) $ECHO_C" >&6
27532 else
27533   cat >conftest.$ac_ext <<_ACEOF
27534 /* confdefs.h.  */
27535 _ACEOF
27536 cat confdefs.h >>conftest.$ac_ext
27537 cat >>conftest.$ac_ext <<_ACEOF
27538 /* end confdefs.h.  */
27539
27540
27541
27542 #include <tiffio.h>
27543 _ACEOF
27544 rm -f conftest.$ac_objext
27545 if { (ac_try="$ac_compile"
27546 case "(($ac_try" in
27547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27548   *) ac_try_echo=$ac_try;;
27549 esac
27550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27551   (eval "$ac_compile") 2>conftest.er1
27552   ac_status=$?
27553   grep -v '^ *+' conftest.er1 >conftest.err
27554   rm -f conftest.er1
27555   cat conftest.err >&5
27556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27557   (exit $ac_status); } && {
27558          test -z "$ac_c_werror_flag" ||
27559          test ! -s conftest.err
27560        } && test -s conftest.$ac_objext; then
27561   ac_cv_header_tiffio_h=yes
27562 else
27563   echo "$as_me: failed program was:" >&5
27564 sed 's/^/| /' conftest.$ac_ext >&5
27565
27566         ac_cv_header_tiffio_h=no
27567 fi
27568
27569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27570 fi
27571 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
27572 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
27573 if test $ac_cv_header_tiffio_h = yes; then
27574
27575                             { echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
27576 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6; }
27577 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
27578   echo $ECHO_N "(cached) $ECHO_C" >&6
27579 else
27580   ac_check_lib_save_LIBS=$LIBS
27581 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
27582 cat >conftest.$ac_ext <<_ACEOF
27583 /* confdefs.h.  */
27584 _ACEOF
27585 cat confdefs.h >>conftest.$ac_ext
27586 cat >>conftest.$ac_ext <<_ACEOF
27587 /* end confdefs.h.  */
27588
27589 /* Override any GCC internal prototype to avoid an error.
27590    Use char because int might match the return type of a GCC
27591    builtin and then its argument prototype would still apply.  */
27592 #ifdef __cplusplus
27593 extern "C"
27594 #endif
27595 char TIFFError ();
27596 int
27597 main ()
27598 {
27599 return TIFFError ();
27600   ;
27601   return 0;
27602 }
27603 _ACEOF
27604 rm -f conftest.$ac_objext conftest$ac_exeext
27605 if { (ac_try="$ac_link"
27606 case "(($ac_try" in
27607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27608   *) ac_try_echo=$ac_try;;
27609 esac
27610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27611   (eval "$ac_link") 2>conftest.er1
27612   ac_status=$?
27613   grep -v '^ *+' conftest.er1 >conftest.err
27614   rm -f conftest.er1
27615   cat conftest.err >&5
27616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27617   (exit $ac_status); } && {
27618          test -z "$ac_c_werror_flag" ||
27619          test ! -s conftest.err
27620        } && test -s conftest$ac_exeext &&
27621        $as_test_x conftest$ac_exeext; then
27622   ac_cv_lib_tiff_TIFFError=yes
27623 else
27624   echo "$as_me: failed program was:" >&5
27625 sed 's/^/| /' conftest.$ac_ext >&5
27626
27627         ac_cv_lib_tiff_TIFFError=no
27628 fi
27629
27630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27631       conftest$ac_exeext conftest.$ac_ext
27632 LIBS=$ac_check_lib_save_LIBS
27633 fi
27634 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
27635 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6; }
27636 if test $ac_cv_lib_tiff_TIFFError = yes; then
27637   TIFF_LINK=" -ltiff"
27638 fi
27639
27640
27641 fi
27642
27643
27644
27645         if test "x$TIFF_LINK" = "x" ; then
27646             if test "$wxUSE_LIBTIFF" = "sys" ; then
27647                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
27648 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
27649    { (exit 1); exit 1; }; }
27650             else
27651                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
27652 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
27653                 wxUSE_LIBTIFF=builtin
27654             fi
27655         else
27656                         wxUSE_LIBTIFF=sys
27657         fi
27658     fi
27659     if test "$wxUSE_LIBTIFF" = "builtin" ; then
27660         if test "$wxUSE_LIBJPEG" = "no"; then
27661                                                                                     ac_configure_args="$ac_configure_args --disable-jpeg"
27662         fi
27663         subdirs="$subdirs src/tiff"
27664
27665     fi
27666 fi
27667
27668
27669 if test "$wxUSE_WCHAR_T" != "yes"; then
27670     if test "$wxUSE_EXPAT" != "no"; then
27671         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
27672 echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
27673         wxUSE_EXPAT=no
27674     fi
27675     if test "$wxUSE_XML" != "no"; then
27676         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
27677 echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
27678         wxUSE_XML=no
27679     fi
27680 fi
27681
27682 if test "$wxUSE_EXPAT" != "no"; then
27683     wxUSE_XML=yes
27684     cat >>confdefs.h <<\_ACEOF
27685 #define wxUSE_EXPAT 1
27686 _ACEOF
27687
27688     cat >>confdefs.h <<\_ACEOF
27689 #define wxUSE_XML 1
27690 _ACEOF
27691
27692
27693     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
27694         { echo "$as_me:$LINENO: checking for expat.h" >&5
27695 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; }
27696 if test "${ac_cv_header_expat_h+set}" = set; then
27697   echo $ECHO_N "(cached) $ECHO_C" >&6
27698 else
27699   cat >conftest.$ac_ext <<_ACEOF
27700 /* confdefs.h.  */
27701 _ACEOF
27702 cat confdefs.h >>conftest.$ac_ext
27703 cat >>conftest.$ac_ext <<_ACEOF
27704 /* end confdefs.h.  */
27705
27706
27707 #include <expat.h>
27708 _ACEOF
27709 rm -f conftest.$ac_objext
27710 if { (ac_try="$ac_compile"
27711 case "(($ac_try" in
27712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27713   *) ac_try_echo=$ac_try;;
27714 esac
27715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27716   (eval "$ac_compile") 2>conftest.er1
27717   ac_status=$?
27718   grep -v '^ *+' conftest.er1 >conftest.err
27719   rm -f conftest.er1
27720   cat conftest.err >&5
27721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27722   (exit $ac_status); } && {
27723          test -z "$ac_c_werror_flag" ||
27724          test ! -s conftest.err
27725        } && test -s conftest.$ac_objext; then
27726   ac_cv_header_expat_h=yes
27727 else
27728   echo "$as_me: failed program was:" >&5
27729 sed 's/^/| /' conftest.$ac_ext >&5
27730
27731         ac_cv_header_expat_h=no
27732 fi
27733
27734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27735 fi
27736 { echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
27737 echo "${ECHO_T}$ac_cv_header_expat_h" >&6; }
27738 if test $ac_cv_header_expat_h = yes; then
27739   found_expat_h=1
27740 fi
27741
27742
27743         if test "x$found_expat_h" = "x1"; then
27744                         { echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
27745 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6; }
27746 if test "${wx_cv_expat_is_not_broken+set}" = set; then
27747   echo $ECHO_N "(cached) $ECHO_C" >&6
27748 else
27749
27750                 ac_ext=cpp
27751 ac_cpp='$CXXCPP $CPPFLAGS'
27752 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27753 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27754 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27755
27756                 cat >conftest.$ac_ext <<_ACEOF
27757 /* confdefs.h.  */
27758 _ACEOF
27759 cat confdefs.h >>conftest.$ac_ext
27760 cat >>conftest.$ac_ext <<_ACEOF
27761 /* end confdefs.h.  */
27762 #include <expat.h>
27763 int
27764 main ()
27765 {
27766
27767   ;
27768   return 0;
27769 }
27770 _ACEOF
27771 rm -f conftest.$ac_objext
27772 if { (ac_try="$ac_compile"
27773 case "(($ac_try" in
27774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27775   *) ac_try_echo=$ac_try;;
27776 esac
27777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27778   (eval "$ac_compile") 2>conftest.er1
27779   ac_status=$?
27780   grep -v '^ *+' conftest.er1 >conftest.err
27781   rm -f conftest.er1
27782   cat conftest.err >&5
27783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27784   (exit $ac_status); } && {
27785          test -z "$ac_cxx_werror_flag" ||
27786          test ! -s conftest.err
27787        } && test -s conftest.$ac_objext; then
27788   wx_cv_expat_is_not_broken=yes
27789 else
27790   echo "$as_me: failed program was:" >&5
27791 sed 's/^/| /' conftest.$ac_ext >&5
27792
27793         wx_cv_expat_is_not_broken=no
27794
27795 fi
27796
27797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27798                 ac_ext=c
27799 ac_cpp='$CPP $CPPFLAGS'
27800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27803
27804
27805
27806 fi
27807 { echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
27808 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6; }
27809             if test "$wx_cv_expat_is_not_broken" = "yes" ; then
27810                 { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
27811 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
27812 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
27813   echo $ECHO_N "(cached) $ECHO_C" >&6
27814 else
27815   ac_check_lib_save_LIBS=$LIBS
27816 LIBS="-lexpat  $LIBS"
27817 cat >conftest.$ac_ext <<_ACEOF
27818 /* confdefs.h.  */
27819 _ACEOF
27820 cat confdefs.h >>conftest.$ac_ext
27821 cat >>conftest.$ac_ext <<_ACEOF
27822 /* end confdefs.h.  */
27823
27824 /* Override any GCC internal prototype to avoid an error.
27825    Use char because int might match the return type of a GCC
27826    builtin and then its argument prototype would still apply.  */
27827 #ifdef __cplusplus
27828 extern "C"
27829 #endif
27830 char XML_ParserCreate ();
27831 int
27832 main ()
27833 {
27834 return XML_ParserCreate ();
27835   ;
27836   return 0;
27837 }
27838 _ACEOF
27839 rm -f conftest.$ac_objext conftest$ac_exeext
27840 if { (ac_try="$ac_link"
27841 case "(($ac_try" in
27842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27843   *) ac_try_echo=$ac_try;;
27844 esac
27845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27846   (eval "$ac_link") 2>conftest.er1
27847   ac_status=$?
27848   grep -v '^ *+' conftest.er1 >conftest.err
27849   rm -f conftest.er1
27850   cat conftest.err >&5
27851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27852   (exit $ac_status); } && {
27853          test -z "$ac_c_werror_flag" ||
27854          test ! -s conftest.err
27855        } && test -s conftest$ac_exeext &&
27856        $as_test_x conftest$ac_exeext; then
27857   ac_cv_lib_expat_XML_ParserCreate=yes
27858 else
27859   echo "$as_me: failed program was:" >&5
27860 sed 's/^/| /' conftest.$ac_ext >&5
27861
27862         ac_cv_lib_expat_XML_ParserCreate=no
27863 fi
27864
27865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27866       conftest$ac_exeext conftest.$ac_ext
27867 LIBS=$ac_check_lib_save_LIBS
27868 fi
27869 { echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
27870 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
27871 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
27872   EXPAT_LINK=" -lexpat"
27873 fi
27874
27875             fi
27876         fi
27877         if test "x$EXPAT_LINK" = "x" ; then
27878             if test "$wxUSE_EXPAT" = "sys" ; then
27879                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
27880 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
27881    { (exit 1); exit 1; }; }
27882             else
27883                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
27884 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
27885                 wxUSE_EXPAT=builtin
27886             fi
27887         else
27888                         wxUSE_EXPAT=sys
27889         fi
27890     fi
27891     if test "$wxUSE_EXPAT" = "builtin" ; then
27892                 subdirs="$subdirs src/expat"
27893
27894     fi
27895 fi
27896
27897
27898
27899 if test "$wxUSE_LIBMSPACK" != "no"; then
27900     { echo "$as_me:$LINENO: checking for mspack.h" >&5
27901 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6; }
27902 if test "${ac_cv_header_mspack_h+set}" = set; then
27903   echo $ECHO_N "(cached) $ECHO_C" >&6
27904 else
27905   cat >conftest.$ac_ext <<_ACEOF
27906 /* confdefs.h.  */
27907 _ACEOF
27908 cat confdefs.h >>conftest.$ac_ext
27909 cat >>conftest.$ac_ext <<_ACEOF
27910 /* end confdefs.h.  */
27911
27912
27913 #include <mspack.h>
27914 _ACEOF
27915 rm -f conftest.$ac_objext
27916 if { (ac_try="$ac_compile"
27917 case "(($ac_try" in
27918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27919   *) ac_try_echo=$ac_try;;
27920 esac
27921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27922   (eval "$ac_compile") 2>conftest.er1
27923   ac_status=$?
27924   grep -v '^ *+' conftest.er1 >conftest.err
27925   rm -f conftest.er1
27926   cat conftest.err >&5
27927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27928   (exit $ac_status); } && {
27929          test -z "$ac_c_werror_flag" ||
27930          test ! -s conftest.err
27931        } && test -s conftest.$ac_objext; then
27932   ac_cv_header_mspack_h=yes
27933 else
27934   echo "$as_me: failed program was:" >&5
27935 sed 's/^/| /' conftest.$ac_ext >&5
27936
27937         ac_cv_header_mspack_h=no
27938 fi
27939
27940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27941 fi
27942 { echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
27943 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6; }
27944 if test $ac_cv_header_mspack_h = yes; then
27945   found_mspack_h=1
27946 fi
27947
27948
27949     if test "x$found_mspack_h" = "x1"; then
27950         { echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
27951 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6; }
27952 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
27953   echo $ECHO_N "(cached) $ECHO_C" >&6
27954 else
27955   ac_check_lib_save_LIBS=$LIBS
27956 LIBS="-lmspack  $LIBS"
27957 cat >conftest.$ac_ext <<_ACEOF
27958 /* confdefs.h.  */
27959 _ACEOF
27960 cat confdefs.h >>conftest.$ac_ext
27961 cat >>conftest.$ac_ext <<_ACEOF
27962 /* end confdefs.h.  */
27963
27964 /* Override any GCC internal prototype to avoid an error.
27965    Use char because int might match the return type of a GCC
27966    builtin and then its argument prototype would still apply.  */
27967 #ifdef __cplusplus
27968 extern "C"
27969 #endif
27970 char mspack_create_chm_decompressor ();
27971 int
27972 main ()
27973 {
27974 return mspack_create_chm_decompressor ();
27975   ;
27976   return 0;
27977 }
27978 _ACEOF
27979 rm -f conftest.$ac_objext conftest$ac_exeext
27980 if { (ac_try="$ac_link"
27981 case "(($ac_try" in
27982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27983   *) ac_try_echo=$ac_try;;
27984 esac
27985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27986   (eval "$ac_link") 2>conftest.er1
27987   ac_status=$?
27988   grep -v '^ *+' conftest.er1 >conftest.err
27989   rm -f conftest.er1
27990   cat conftest.err >&5
27991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27992   (exit $ac_status); } && {
27993          test -z "$ac_c_werror_flag" ||
27994          test ! -s conftest.err
27995        } && test -s conftest$ac_exeext &&
27996        $as_test_x conftest$ac_exeext; then
27997   ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
27998 else
27999   echo "$as_me: failed program was:" >&5
28000 sed 's/^/| /' conftest.$ac_ext >&5
28001
28002         ac_cv_lib_mspack_mspack_create_chm_decompressor=no
28003 fi
28004
28005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28006       conftest$ac_exeext conftest.$ac_ext
28007 LIBS=$ac_check_lib_save_LIBS
28008 fi
28009 { echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
28010 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6; }
28011 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
28012   MSPACK_LINK=" -lmspack"
28013 fi
28014
28015     fi
28016     if test "x$MSPACK_LINK" = "x" ; then
28017         wxUSE_LIBMSPACK=no
28018     fi
28019 fi
28020
28021 if test "$wxUSE_LIBMSPACK" != "no"; then
28022     cat >>confdefs.h <<\_ACEOF
28023 #define wxUSE_LIBMSPACK 1
28024 _ACEOF
28025
28026 fi
28027
28028
28029
28030 AFMINSTALL=
28031 WIN32INSTALL=
28032
28033 TOOLKIT=
28034 TOOLKIT_INCLUDE=
28035 WIDGET_SET=
28036
28037 if test "$USE_WIN32" = 1 ; then
28038
28039 for ac_header in w32api.h
28040 do
28041 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28042 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28045   echo $ECHO_N "(cached) $ECHO_C" >&6
28046 else
28047   cat >conftest.$ac_ext <<_ACEOF
28048 /* confdefs.h.  */
28049 _ACEOF
28050 cat confdefs.h >>conftest.$ac_ext
28051 cat >>conftest.$ac_ext <<_ACEOF
28052 /* end confdefs.h.  */
28053
28054
28055 #include <$ac_header>
28056 _ACEOF
28057 rm -f conftest.$ac_objext
28058 if { (ac_try="$ac_compile"
28059 case "(($ac_try" in
28060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28061   *) ac_try_echo=$ac_try;;
28062 esac
28063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28064   (eval "$ac_compile") 2>conftest.er1
28065   ac_status=$?
28066   grep -v '^ *+' conftest.er1 >conftest.err
28067   rm -f conftest.er1
28068   cat conftest.err >&5
28069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28070   (exit $ac_status); } && {
28071          test -z "$ac_c_werror_flag" ||
28072          test ! -s conftest.err
28073        } && test -s conftest.$ac_objext; then
28074   eval "$as_ac_Header=yes"
28075 else
28076   echo "$as_me: failed program was:" >&5
28077 sed 's/^/| /' conftest.$ac_ext >&5
28078
28079         eval "$as_ac_Header=no"
28080 fi
28081
28082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28083 fi
28084 ac_res=`eval echo '${'$as_ac_Header'}'`
28085                { echo "$as_me:$LINENO: result: $ac_res" >&5
28086 echo "${ECHO_T}$ac_res" >&6; }
28087 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28088   cat >>confdefs.h <<_ACEOF
28089 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28090 _ACEOF
28091
28092 fi
28093
28094 done
28095
28096     { echo "$as_me:$LINENO: checking for windows.h" >&5
28097 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
28098 if test "${ac_cv_header_windows_h+set}" = set; then
28099   echo $ECHO_N "(cached) $ECHO_C" >&6
28100 else
28101   cat >conftest.$ac_ext <<_ACEOF
28102 /* confdefs.h.  */
28103 _ACEOF
28104 cat confdefs.h >>conftest.$ac_ext
28105 cat >>conftest.$ac_ext <<_ACEOF
28106 /* end confdefs.h.  */
28107
28108
28109 #include <windows.h>
28110 _ACEOF
28111 rm -f conftest.$ac_objext
28112 if { (ac_try="$ac_compile"
28113 case "(($ac_try" in
28114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28115   *) ac_try_echo=$ac_try;;
28116 esac
28117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28118   (eval "$ac_compile") 2>conftest.er1
28119   ac_status=$?
28120   grep -v '^ *+' conftest.er1 >conftest.err
28121   rm -f conftest.er1
28122   cat conftest.err >&5
28123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28124   (exit $ac_status); } && {
28125          test -z "$ac_c_werror_flag" ||
28126          test ! -s conftest.err
28127        } && test -s conftest.$ac_objext; then
28128   ac_cv_header_windows_h=yes
28129 else
28130   echo "$as_me: failed program was:" >&5
28131 sed 's/^/| /' conftest.$ac_ext >&5
28132
28133         ac_cv_header_windows_h=no
28134 fi
28135
28136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28137 fi
28138 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
28139 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
28140 if test $ac_cv_header_windows_h = yes; then
28141   :
28142 else
28143
28144         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
28145 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
28146    { (exit 1); exit 1; }; }
28147
28148 fi
28149
28150
28151
28152             case "${host}" in
28153         x86_64-*-mingw32* )
28154                         LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lwctl3d32 -ladvapi32 -lwsock32 -lgdi32"
28155         ;;
28156         * )
28157             LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
28158         ;;
28159     esac
28160     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
28161         LIBS="$LIBS -loleacc"
28162     fi
28163
28164     case "${host}" in
28165         *-*-cygwin* )
28166                         LIBS="$LIBS -lkernel32 -luser32"
28167     esac
28168
28169         RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
28170     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
28171
28172                 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
28173
28174         WIN32INSTALL=win32install
28175
28176         { echo "$as_me:$LINENO: checking for pbt.h" >&5
28177 echo $ECHO_N "checking for pbt.h... $ECHO_C" >&6; }
28178 if test "${ac_cv_header_pbt_h+set}" = set; then
28179   echo $ECHO_N "(cached) $ECHO_C" >&6
28180 else
28181   cat >conftest.$ac_ext <<_ACEOF
28182 /* confdefs.h.  */
28183 _ACEOF
28184 cat confdefs.h >>conftest.$ac_ext
28185 cat >>conftest.$ac_ext <<_ACEOF
28186 /* end confdefs.h.  */
28187
28188
28189 #include <pbt.h>
28190 _ACEOF
28191 rm -f conftest.$ac_objext
28192 if { (ac_try="$ac_compile"
28193 case "(($ac_try" in
28194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28195   *) ac_try_echo=$ac_try;;
28196 esac
28197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28198   (eval "$ac_compile") 2>conftest.er1
28199   ac_status=$?
28200   grep -v '^ *+' conftest.er1 >conftest.err
28201   rm -f conftest.er1
28202   cat conftest.err >&5
28203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28204   (exit $ac_status); } && {
28205          test -z "$ac_c_werror_flag" ||
28206          test ! -s conftest.err
28207        } && test -s conftest.$ac_objext; then
28208   ac_cv_header_pbt_h=yes
28209 else
28210   echo "$as_me: failed program was:" >&5
28211 sed 's/^/| /' conftest.$ac_ext >&5
28212
28213         ac_cv_header_pbt_h=no
28214 fi
28215
28216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28217 fi
28218 { echo "$as_me:$LINENO: result: $ac_cv_header_pbt_h" >&5
28219 echo "${ECHO_T}$ac_cv_header_pbt_h" >&6; }
28220 if test $ac_cv_header_pbt_h = yes; then
28221   :
28222 else
28223   cat >>confdefs.h <<\_ACEOF
28224 #define NEED_PBT_H 1
28225 _ACEOF
28226
28227 fi
28228
28229
28230 fi
28231
28232 if test "$wxUSE_GUI" = "yes"; then
28233     USE_GUI=1
28234
28235     GUI_TK_LIBRARY=
28236
28237     WXGTK12=
28238     WXGTK127=
28239     WXGTK2=
28240     WXGPE=
28241
28242     if test "$wxUSE_COCOA" = 1 ; then
28243         if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
28244             { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
28245 echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
28246             wxUSE_PRINTING_ARCHITECTURE=no
28247         fi
28248         if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
28249             { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
28250 echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
28251             wxUSE_DRAG_AND_DROP=no
28252         fi
28253         if test "$wxUSE_DRAGIMAGE" = "yes"; then
28254             { echo "$as_me:$LINENO: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&5
28255 echo "$as_me: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&2;}
28256             wxUSE_DRAGIMAGE=no
28257         fi
28258     fi
28259
28260     if test "$wxUSE_MSW" = 1 ; then
28261         TOOLKIT=MSW
28262         GUIDIST=MSW_DIST
28263
28264                 case "${host}" in
28265             *-*-mingw32* )
28266                 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
28267         esac
28268     fi
28269
28270     if test "$wxUSE_GTK" = 1; then
28271                 { echo "$as_me:$LINENO: checking for GTK+ version" >&5
28272 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6; }
28273
28274         gtk_version_cached=1
28275         if test "${wx_cv_lib_gtk+set}" = set; then
28276   echo $ECHO_N "(cached) $ECHO_C" >&6
28277 else
28278
28279                                                 gtk_version_cached=0
28280                 { echo "$as_me:$LINENO: result: " >&5
28281 echo "${ECHO_T}" >&6; }
28282
28283                                                 GTK_MODULES=
28284                 if test "$wxUSE_THREADS" = "yes"; then
28285                     GTK_MODULES=gthread
28286                 fi
28287
28288                                 wx_cv_lib_gtk=
28289                 if test "x$wxGTK_VERSION" != "x1"
28290                 then
28291                                                                                 case "${host}" in
28292                         *-*-solaris2* )
28293                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
28294                                 enable_gtktest=no
28295                             fi
28296                     esac
28297
28298                     # Check whether --enable-gtktest was given.
28299 if test "${enable_gtktest+set}" = set; then
28300   enableval=$enable_gtktest;
28301 else
28302   enable_gtktest=yes
28303 fi
28304
28305
28306   pkg_config_args=gtk+-2.0
28307   for module in . $GTK_MODULES
28308   do
28309       case "$module" in
28310          gthread)
28311              pkg_config_args="$pkg_config_args gthread-2.0"
28312          ;;
28313       esac
28314   done
28315
28316   no_gtk=""
28317
28318   # Extract the first word of "pkg-config", so it can be a program name with args.
28319 set dummy pkg-config; ac_word=$2
28320 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28322 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28323   echo $ECHO_N "(cached) $ECHO_C" >&6
28324 else
28325   case $PKG_CONFIG in
28326   [\\/]* | ?:[\\/]*)
28327   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28328   ;;
28329   *)
28330   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28331 for as_dir in $PATH
28332 do
28333   IFS=$as_save_IFS
28334   test -z "$as_dir" && as_dir=.
28335   for ac_exec_ext in '' $ac_executable_extensions; do
28336   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28337     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28338     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28339     break 2
28340   fi
28341 done
28342 done
28343 IFS=$as_save_IFS
28344
28345   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28346   ;;
28347 esac
28348 fi
28349 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28350 if test -n "$PKG_CONFIG"; then
28351   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28352 echo "${ECHO_T}$PKG_CONFIG" >&6; }
28353 else
28354   { echo "$as_me:$LINENO: result: no" >&5
28355 echo "${ECHO_T}no" >&6; }
28356 fi
28357
28358
28359
28360   if test x$PKG_CONFIG != xno ; then
28361     if pkg-config --atleast-pkgconfig-version 0.7 ; then
28362       :
28363     else
28364       echo "*** pkg-config too old; version 0.7 or better required."
28365       no_gtk=yes
28366       PKG_CONFIG=no
28367     fi
28368   else
28369     no_gtk=yes
28370   fi
28371
28372   min_gtk_version=2.4.0
28373   { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
28374 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; }
28375
28376   if test x$PKG_CONFIG != xno ; then
28377     ## don't try to run the test against uninstalled libtool libs
28378     if $PKG_CONFIG --uninstalled $pkg_config_args; then
28379           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
28380           enable_gtktest=no
28381     fi
28382
28383     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
28384           :
28385     else
28386           no_gtk=yes
28387     fi
28388   fi
28389
28390   if test x"$no_gtk" = x ; then
28391     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
28392     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
28393     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
28394            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28395     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
28396            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28397     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
28398            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28399     if test "x$enable_gtktest" = "xyes" ; then
28400       ac_save_CFLAGS="$CFLAGS"
28401       ac_save_LIBS="$LIBS"
28402       CFLAGS="$CFLAGS $GTK_CFLAGS"
28403       LIBS="$GTK_LIBS $LIBS"
28404       rm -f conf.gtktest
28405       if test "$cross_compiling" = yes; then
28406   echo $ac_n "cross compiling; assumed OK... $ac_c"
28407 else
28408   cat >conftest.$ac_ext <<_ACEOF
28409 /* confdefs.h.  */
28410 _ACEOF
28411 cat confdefs.h >>conftest.$ac_ext
28412 cat >>conftest.$ac_ext <<_ACEOF
28413 /* end confdefs.h.  */
28414
28415 #include <gtk/gtk.h>
28416 #include <stdio.h>
28417 #include <stdlib.h>
28418
28419 int
28420 main ()
28421 {
28422   int major, minor, micro;
28423   char *tmp_version;
28424
28425   system ("touch conf.gtktest");
28426
28427   /* HP/UX 9 (%@#!) writes to sscanf strings */
28428   tmp_version = g_strdup("$min_gtk_version");
28429   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28430      printf("%s, bad version string\n", "$min_gtk_version");
28431      exit(1);
28432    }
28433
28434   if ((gtk_major_version != $gtk_config_major_version) ||
28435       (gtk_minor_version != $gtk_config_minor_version) ||
28436       (gtk_micro_version != $gtk_config_micro_version))
28437     {
28438       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28439              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28440              gtk_major_version, gtk_minor_version, gtk_micro_version);
28441       printf ("*** was found! If pkg-config was correct, then it is best\n");
28442       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28443       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28444       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28445       printf("*** required on your system.\n");
28446       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
28447       printf("*** to point to the correct configuration files\n");
28448     }
28449   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28450            (gtk_minor_version != GTK_MINOR_VERSION) ||
28451            (gtk_micro_version != GTK_MICRO_VERSION))
28452     {
28453       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28454              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28455       printf("*** library (version %d.%d.%d)\n",
28456              gtk_major_version, gtk_minor_version, gtk_micro_version);
28457     }
28458   else
28459     {
28460       if ((gtk_major_version > major) ||
28461         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28462         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28463       {
28464         return 0;
28465        }
28466      else
28467       {
28468         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28469                gtk_major_version, gtk_minor_version, gtk_micro_version);
28470         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28471                major, minor, micro);
28472         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28473         printf("***\n");
28474         printf("*** If you have already installed a sufficiently new version, this error\n");
28475         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
28476         printf("*** being found. The easiest way to fix this is to remove the old version\n");
28477         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
28478         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
28479         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28480         printf("*** so that the correct libraries are found at run-time))\n");
28481       }
28482     }
28483   return 1;
28484 }
28485
28486 _ACEOF
28487 rm -f conftest$ac_exeext
28488 if { (ac_try="$ac_link"
28489 case "(($ac_try" in
28490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28491   *) ac_try_echo=$ac_try;;
28492 esac
28493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28494   (eval "$ac_link") 2>&5
28495   ac_status=$?
28496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28497   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28498   { (case "(($ac_try" in
28499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28500   *) ac_try_echo=$ac_try;;
28501 esac
28502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28503   (eval "$ac_try") 2>&5
28504   ac_status=$?
28505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28506   (exit $ac_status); }; }; then
28507   :
28508 else
28509   echo "$as_me: program exited with status $ac_status" >&5
28510 echo "$as_me: failed program was:" >&5
28511 sed 's/^/| /' conftest.$ac_ext >&5
28512
28513 ( exit $ac_status )
28514 no_gtk=yes
28515 fi
28516 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28517 fi
28518
28519
28520        CFLAGS="$ac_save_CFLAGS"
28521        LIBS="$ac_save_LIBS"
28522      fi
28523   fi
28524   if test "x$no_gtk" = x ; then
28525      { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
28526 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
28527      wx_cv_lib_gtk=2.0
28528   else
28529      { echo "$as_me:$LINENO: result: no" >&5
28530 echo "${ECHO_T}no" >&6; }
28531      if test "$PKG_CONFIG" = "no" ; then
28532        echo "*** A new enough version of pkg-config was not found."
28533        echo "*** See http://pkgconfig.sourceforge.net"
28534      else
28535        if test -f conf.gtktest ; then
28536         :
28537        else
28538           echo "*** Could not run GTK+ test program, checking why..."
28539           ac_save_CFLAGS="$CFLAGS"
28540           ac_save_LIBS="$LIBS"
28541           CFLAGS="$CFLAGS $GTK_CFLAGS"
28542           LIBS="$LIBS $GTK_LIBS"
28543           cat >conftest.$ac_ext <<_ACEOF
28544 /* confdefs.h.  */
28545 _ACEOF
28546 cat confdefs.h >>conftest.$ac_ext
28547 cat >>conftest.$ac_ext <<_ACEOF
28548 /* end confdefs.h.  */
28549
28550 #include <gtk/gtk.h>
28551 #include <stdio.h>
28552
28553 int
28554 main ()
28555 {
28556  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28557   ;
28558   return 0;
28559 }
28560 _ACEOF
28561 rm -f conftest.$ac_objext conftest$ac_exeext
28562 if { (ac_try="$ac_link"
28563 case "(($ac_try" in
28564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28565   *) ac_try_echo=$ac_try;;
28566 esac
28567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28568   (eval "$ac_link") 2>conftest.er1
28569   ac_status=$?
28570   grep -v '^ *+' conftest.er1 >conftest.err
28571   rm -f conftest.er1
28572   cat conftest.err >&5
28573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28574   (exit $ac_status); } && {
28575          test -z "$ac_c_werror_flag" ||
28576          test ! -s conftest.err
28577        } && test -s conftest$ac_exeext &&
28578        $as_test_x conftest$ac_exeext; then
28579    echo "*** The test program compiled, but did not run. This usually means"
28580           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
28581           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
28582           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28583           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
28584           echo "*** is required on your system"
28585           echo "***"
28586           echo "*** If you have an old version installed, it is best to remove it, although"
28587           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28588 else
28589   echo "$as_me: failed program was:" >&5
28590 sed 's/^/| /' conftest.$ac_ext >&5
28591
28592          echo "*** The test program failed to compile or link. See the file config.log for the"
28593           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
28594 fi
28595
28596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28597       conftest$ac_exeext conftest.$ac_ext
28598           CFLAGS="$ac_save_CFLAGS"
28599           LIBS="$ac_save_LIBS"
28600        fi
28601      fi
28602      GTK_CFLAGS=""
28603      GTK_LIBS=""
28604      :
28605   fi
28606
28607
28608   rm -f conf.gtktest
28609
28610
28611                                         case "${host}" in
28612                         *-*-solaris2* )
28613                             if test "$wxUSE_SHARED" != "yes"; then
28614                                 GTK_LIBS="$GTK_LIBS -lX11"
28615                             fi
28616                     esac
28617                 fi
28618
28619                                 if test -z "$wx_cv_lib_gtk"; then
28620                     if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
28621
28622 # Check whether --with-gtk-prefix was given.
28623 if test "${with_gtk_prefix+set}" = set; then
28624   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
28625 else
28626   gtk_config_prefix=""
28627 fi
28628
28629
28630 # Check whether --with-gtk-exec-prefix was given.
28631 if test "${with_gtk_exec_prefix+set}" = set; then
28632   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
28633 else
28634   gtk_config_exec_prefix=""
28635 fi
28636
28637 # Check whether --enable-gtktest was given.
28638 if test "${enable_gtktest+set}" = set; then
28639   enableval=$enable_gtktest;
28640 else
28641   enable_gtktest=yes
28642 fi
28643
28644
28645   for module in . $GTK_MODULES
28646   do
28647       case "$module" in
28648          gthread)
28649              gtk_config_args="$gtk_config_args gthread"
28650          ;;
28651       esac
28652   done
28653
28654   if test x$gtk_config_exec_prefix != x ; then
28655      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
28656      if test x${GTK_CONFIG+set} != xset ; then
28657         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
28658      fi
28659   fi
28660   if test x$gtk_config_prefix != x ; then
28661      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
28662      if test x${GTK_CONFIG+set} != xset ; then
28663         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
28664      fi
28665   fi
28666
28667   # Extract the first word of "gtk-config", so it can be a program name with args.
28668 set dummy gtk-config; ac_word=$2
28669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28671 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
28672   echo $ECHO_N "(cached) $ECHO_C" >&6
28673 else
28674   case $GTK_CONFIG in
28675   [\\/]* | ?:[\\/]*)
28676   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
28677   ;;
28678   *)
28679   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28680 for as_dir in $PATH
28681 do
28682   IFS=$as_save_IFS
28683   test -z "$as_dir" && as_dir=.
28684   for ac_exec_ext in '' $ac_executable_extensions; do
28685   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28686     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28687     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28688     break 2
28689   fi
28690 done
28691 done
28692 IFS=$as_save_IFS
28693
28694   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
28695   ;;
28696 esac
28697 fi
28698 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
28699 if test -n "$GTK_CONFIG"; then
28700   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
28701 echo "${ECHO_T}$GTK_CONFIG" >&6; }
28702 else
28703   { echo "$as_me:$LINENO: result: no" >&5
28704 echo "${ECHO_T}no" >&6; }
28705 fi
28706
28707
28708   min_gtk_version=1.2.7
28709   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
28710 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
28711   no_gtk=""
28712   if test "$GTK_CONFIG" = "no" ; then
28713     no_gtk=yes
28714   else
28715     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
28716     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
28717     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
28718            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28719     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
28720            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28721     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
28722            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28723     if test "x$enable_gtktest" = "xyes" ; then
28724       ac_save_CFLAGS="$CFLAGS"
28725       ac_save_LIBS="$LIBS"
28726       CFLAGS="$CFLAGS $GTK_CFLAGS"
28727       LIBS="$GTK_LIBS $LIBS"
28728       rm -f conf.gtktest
28729       if test "$cross_compiling" = yes; then
28730   echo $ac_n "cross compiling; assumed OK... $ac_c"
28731 else
28732   cat >conftest.$ac_ext <<_ACEOF
28733 /* confdefs.h.  */
28734 _ACEOF
28735 cat confdefs.h >>conftest.$ac_ext
28736 cat >>conftest.$ac_ext <<_ACEOF
28737 /* end confdefs.h.  */
28738
28739 #include <gtk/gtk.h>
28740 #include <stdio.h>
28741 #include <stdlib.h>
28742
28743 int
28744 main ()
28745 {
28746   int major, minor, micro;
28747   char *tmp_version;
28748
28749   system ("touch conf.gtktest");
28750
28751   /* HP/UX 9 (%@#!) writes to sscanf strings */
28752   tmp_version = g_strdup("$min_gtk_version");
28753   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28754      printf("%s, bad version string\n", "$min_gtk_version");
28755      exit(1);
28756    }
28757
28758   if ((gtk_major_version != $gtk_config_major_version) ||
28759       (gtk_minor_version != $gtk_config_minor_version) ||
28760       (gtk_micro_version != $gtk_config_micro_version))
28761     {
28762       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28763              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28764              gtk_major_version, gtk_minor_version, gtk_micro_version);
28765       printf ("*** was found! If gtk-config was correct, then it is best\n");
28766       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28767       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28768       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28769       printf("*** required on your system.\n");
28770       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
28771       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
28772       printf("*** before re-running configure\n");
28773     }
28774 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
28775   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28776            (gtk_minor_version != GTK_MINOR_VERSION) ||
28777            (gtk_micro_version != GTK_MICRO_VERSION))
28778     {
28779       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28780              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28781       printf("*** library (version %d.%d.%d)\n",
28782              gtk_major_version, gtk_minor_version, gtk_micro_version);
28783     }
28784 #endif /* defined (GTK_MAJOR_VERSION) ... */
28785   else
28786     {
28787       if ((gtk_major_version > major) ||
28788         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28789         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28790       {
28791         return 0;
28792        }
28793      else
28794       {
28795         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28796                gtk_major_version, gtk_minor_version, gtk_micro_version);
28797         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28798                major, minor, micro);
28799         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28800         printf("***\n");
28801         printf("*** If you have already installed a sufficiently new version, this error\n");
28802         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
28803         printf("*** being found. The easiest way to fix this is to remove the old version\n");
28804         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
28805         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
28806         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28807         printf("*** so that the correct libraries are found at run-time))\n");
28808       }
28809     }
28810   return 1;
28811 }
28812
28813 _ACEOF
28814 rm -f conftest$ac_exeext
28815 if { (ac_try="$ac_link"
28816 case "(($ac_try" in
28817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28818   *) ac_try_echo=$ac_try;;
28819 esac
28820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28821   (eval "$ac_link") 2>&5
28822   ac_status=$?
28823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28824   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28825   { (case "(($ac_try" in
28826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28827   *) ac_try_echo=$ac_try;;
28828 esac
28829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28830   (eval "$ac_try") 2>&5
28831   ac_status=$?
28832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28833   (exit $ac_status); }; }; then
28834   :
28835 else
28836   echo "$as_me: program exited with status $ac_status" >&5
28837 echo "$as_me: failed program was:" >&5
28838 sed 's/^/| /' conftest.$ac_ext >&5
28839
28840 ( exit $ac_status )
28841 no_gtk=yes
28842 fi
28843 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28844 fi
28845
28846
28847        CFLAGS="$ac_save_CFLAGS"
28848        LIBS="$ac_save_LIBS"
28849      fi
28850   fi
28851   if test "x$no_gtk" = x ; then
28852      { echo "$as_me:$LINENO: result: yes" >&5
28853 echo "${ECHO_T}yes" >&6; }
28854      wx_cv_lib_gtk=1.2.7
28855   else
28856      { echo "$as_me:$LINENO: result: no" >&5
28857 echo "${ECHO_T}no" >&6; }
28858      if test "$GTK_CONFIG" = "no" ; then
28859        echo "*** The gtk-config script installed by GTK could not be found"
28860        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
28861        echo "*** your path, or set the GTK_CONFIG environment variable to the"
28862        echo "*** full path to gtk-config."
28863      else
28864        if test -f conf.gtktest ; then
28865         :
28866        else
28867           echo "*** Could not run GTK test program, checking why..."
28868           CFLAGS="$CFLAGS $GTK_CFLAGS"
28869           LIBS="$LIBS $GTK_LIBS"
28870           cat >conftest.$ac_ext <<_ACEOF
28871 /* confdefs.h.  */
28872 _ACEOF
28873 cat confdefs.h >>conftest.$ac_ext
28874 cat >>conftest.$ac_ext <<_ACEOF
28875 /* end confdefs.h.  */
28876
28877 #include <gtk/gtk.h>
28878 #include <stdio.h>
28879
28880 int
28881 main ()
28882 {
28883  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28884   ;
28885   return 0;
28886 }
28887 _ACEOF
28888 rm -f conftest.$ac_objext conftest$ac_exeext
28889 if { (ac_try="$ac_link"
28890 case "(($ac_try" in
28891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28892   *) ac_try_echo=$ac_try;;
28893 esac
28894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28895   (eval "$ac_link") 2>conftest.er1
28896   ac_status=$?
28897   grep -v '^ *+' conftest.er1 >conftest.err
28898   rm -f conftest.er1
28899   cat conftest.err >&5
28900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28901   (exit $ac_status); } && {
28902          test -z "$ac_c_werror_flag" ||
28903          test ! -s conftest.err
28904        } && test -s conftest$ac_exeext &&
28905        $as_test_x conftest$ac_exeext; then
28906    echo "*** The test program compiled, but did not run. This usually means"
28907           echo "*** that the run-time linker is not finding GTK or finding the wrong"
28908           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
28909           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28910           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
28911           echo "*** is required on your system"
28912           echo "***"
28913           echo "*** If you have an old version installed, it is best to remove it, although"
28914           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28915           echo "***"
28916           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
28917           echo "*** came with the system with the command"
28918           echo "***"
28919           echo "***    rpm --erase --nodeps gtk gtk-devel"
28920 else
28921   echo "$as_me: failed program was:" >&5
28922 sed 's/^/| /' conftest.$ac_ext >&5
28923
28924          echo "*** The test program failed to compile or link. See the file config.log for the"
28925           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
28926           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
28927           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
28928 fi
28929
28930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28931       conftest$ac_exeext conftest.$ac_ext
28932           CFLAGS="$ac_save_CFLAGS"
28933           LIBS="$ac_save_LIBS"
28934        fi
28935      fi
28936      GTK_CFLAGS=""
28937      GTK_LIBS=""
28938      :
28939   fi
28940
28941
28942   rm -f conf.gtktest
28943
28944
28945                         if test -z "$wx_cv_lib_gtk"; then
28946
28947 # Check whether --with-gtk-prefix was given.
28948 if test "${with_gtk_prefix+set}" = set; then
28949   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
28950 else
28951   gtk_config_prefix=""
28952 fi
28953
28954
28955 # Check whether --with-gtk-exec-prefix was given.
28956 if test "${with_gtk_exec_prefix+set}" = set; then
28957   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
28958 else
28959   gtk_config_exec_prefix=""
28960 fi
28961
28962 # Check whether --enable-gtktest was given.
28963 if test "${enable_gtktest+set}" = set; then
28964   enableval=$enable_gtktest;
28965 else
28966   enable_gtktest=yes
28967 fi
28968
28969
28970   for module in . $GTK_MODULES
28971   do
28972       case "$module" in
28973          gthread)
28974              gtk_config_args="$gtk_config_args gthread"
28975          ;;
28976       esac
28977   done
28978
28979   if test x$gtk_config_exec_prefix != x ; then
28980      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
28981      if test x${GTK_CONFIG+set} != xset ; then
28982         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
28983      fi
28984   fi
28985   if test x$gtk_config_prefix != x ; then
28986      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
28987      if test x${GTK_CONFIG+set} != xset ; then
28988         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
28989      fi
28990   fi
28991
28992   # Extract the first word of "gtk-config", so it can be a program name with args.
28993 set dummy gtk-config; ac_word=$2
28994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28996 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
28997   echo $ECHO_N "(cached) $ECHO_C" >&6
28998 else
28999   case $GTK_CONFIG in
29000   [\\/]* | ?:[\\/]*)
29001   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
29002   ;;
29003   *)
29004   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29005 for as_dir in $PATH
29006 do
29007   IFS=$as_save_IFS
29008   test -z "$as_dir" && as_dir=.
29009   for ac_exec_ext in '' $ac_executable_extensions; do
29010   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29011     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29012     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29013     break 2
29014   fi
29015 done
29016 done
29017 IFS=$as_save_IFS
29018
29019   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
29020   ;;
29021 esac
29022 fi
29023 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
29024 if test -n "$GTK_CONFIG"; then
29025   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
29026 echo "${ECHO_T}$GTK_CONFIG" >&6; }
29027 else
29028   { echo "$as_me:$LINENO: result: no" >&5
29029 echo "${ECHO_T}no" >&6; }
29030 fi
29031
29032
29033   min_gtk_version=1.2.3
29034   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
29035 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
29036   no_gtk=""
29037   if test "$GTK_CONFIG" = "no" ; then
29038     no_gtk=yes
29039   else
29040     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
29041     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
29042     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
29043            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
29044     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
29045            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
29046     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
29047            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
29048     if test "x$enable_gtktest" = "xyes" ; then
29049       ac_save_CFLAGS="$CFLAGS"
29050       ac_save_LIBS="$LIBS"
29051       CFLAGS="$CFLAGS $GTK_CFLAGS"
29052       LIBS="$GTK_LIBS $LIBS"
29053       rm -f conf.gtktest
29054       if test "$cross_compiling" = yes; then
29055   echo $ac_n "cross compiling; assumed OK... $ac_c"
29056 else
29057   cat >conftest.$ac_ext <<_ACEOF
29058 /* confdefs.h.  */
29059 _ACEOF
29060 cat confdefs.h >>conftest.$ac_ext
29061 cat >>conftest.$ac_ext <<_ACEOF
29062 /* end confdefs.h.  */
29063
29064 #include <gtk/gtk.h>
29065 #include <stdio.h>
29066 #include <stdlib.h>
29067
29068 int
29069 main ()
29070 {
29071   int major, minor, micro;
29072   char *tmp_version;
29073
29074   system ("touch conf.gtktest");
29075
29076   /* HP/UX 9 (%@#!) writes to sscanf strings */
29077   tmp_version = g_strdup("$min_gtk_version");
29078   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
29079      printf("%s, bad version string\n", "$min_gtk_version");
29080      exit(1);
29081    }
29082
29083   if ((gtk_major_version != $gtk_config_major_version) ||
29084       (gtk_minor_version != $gtk_config_minor_version) ||
29085       (gtk_micro_version != $gtk_config_micro_version))
29086     {
29087       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
29088              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
29089              gtk_major_version, gtk_minor_version, gtk_micro_version);
29090       printf ("*** was found! If gtk-config was correct, then it is best\n");
29091       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
29092       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
29093       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
29094       printf("*** required on your system.\n");
29095       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
29096       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
29097       printf("*** before re-running configure\n");
29098     }
29099 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
29100   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
29101            (gtk_minor_version != GTK_MINOR_VERSION) ||
29102            (gtk_micro_version != GTK_MICRO_VERSION))
29103     {
29104       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
29105              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
29106       printf("*** library (version %d.%d.%d)\n",
29107              gtk_major_version, gtk_minor_version, gtk_micro_version);
29108     }
29109 #endif /* defined (GTK_MAJOR_VERSION) ... */
29110   else
29111     {
29112       if ((gtk_major_version > major) ||
29113         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
29114         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
29115       {
29116         return 0;
29117        }
29118      else
29119       {
29120         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
29121                gtk_major_version, gtk_minor_version, gtk_micro_version);
29122         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
29123                major, minor, micro);
29124         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
29125         printf("***\n");
29126         printf("*** If you have already installed a sufficiently new version, this error\n");
29127         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
29128         printf("*** being found. The easiest way to fix this is to remove the old version\n");
29129         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
29130         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
29131         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
29132         printf("*** so that the correct libraries are found at run-time))\n");
29133       }
29134     }
29135   return 1;
29136 }
29137
29138 _ACEOF
29139 rm -f conftest$ac_exeext
29140 if { (ac_try="$ac_link"
29141 case "(($ac_try" in
29142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29143   *) ac_try_echo=$ac_try;;
29144 esac
29145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29146   (eval "$ac_link") 2>&5
29147   ac_status=$?
29148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29149   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29150   { (case "(($ac_try" in
29151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29152   *) ac_try_echo=$ac_try;;
29153 esac
29154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29155   (eval "$ac_try") 2>&5
29156   ac_status=$?
29157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29158   (exit $ac_status); }; }; then
29159   :
29160 else
29161   echo "$as_me: program exited with status $ac_status" >&5
29162 echo "$as_me: failed program was:" >&5
29163 sed 's/^/| /' conftest.$ac_ext >&5
29164
29165 ( exit $ac_status )
29166 no_gtk=yes
29167 fi
29168 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29169 fi
29170
29171
29172        CFLAGS="$ac_save_CFLAGS"
29173        LIBS="$ac_save_LIBS"
29174      fi
29175   fi
29176   if test "x$no_gtk" = x ; then
29177      { echo "$as_me:$LINENO: result: yes" >&5
29178 echo "${ECHO_T}yes" >&6; }
29179      wx_cv_lib_gtk=1.2.3
29180   else
29181      { echo "$as_me:$LINENO: result: no" >&5
29182 echo "${ECHO_T}no" >&6; }
29183      if test "$GTK_CONFIG" = "no" ; then
29184        echo "*** The gtk-config script installed by GTK could not be found"
29185        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
29186        echo "*** your path, or set the GTK_CONFIG environment variable to the"
29187        echo "*** full path to gtk-config."
29188      else
29189        if test -f conf.gtktest ; then
29190         :
29191        else
29192           echo "*** Could not run GTK test program, checking why..."
29193           CFLAGS="$CFLAGS $GTK_CFLAGS"
29194           LIBS="$LIBS $GTK_LIBS"
29195           cat >conftest.$ac_ext <<_ACEOF
29196 /* confdefs.h.  */
29197 _ACEOF
29198 cat confdefs.h >>conftest.$ac_ext
29199 cat >>conftest.$ac_ext <<_ACEOF
29200 /* end confdefs.h.  */
29201
29202 #include <gtk/gtk.h>
29203 #include <stdio.h>
29204
29205 int
29206 main ()
29207 {
29208  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
29209   ;
29210   return 0;
29211 }
29212 _ACEOF
29213 rm -f conftest.$ac_objext conftest$ac_exeext
29214 if { (ac_try="$ac_link"
29215 case "(($ac_try" in
29216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29217   *) ac_try_echo=$ac_try;;
29218 esac
29219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29220   (eval "$ac_link") 2>conftest.er1
29221   ac_status=$?
29222   grep -v '^ *+' conftest.er1 >conftest.err
29223   rm -f conftest.er1
29224   cat conftest.err >&5
29225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29226   (exit $ac_status); } && {
29227          test -z "$ac_c_werror_flag" ||
29228          test ! -s conftest.err
29229        } && test -s conftest$ac_exeext &&
29230        $as_test_x conftest$ac_exeext; then
29231    echo "*** The test program compiled, but did not run. This usually means"
29232           echo "*** that the run-time linker is not finding GTK or finding the wrong"
29233           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
29234           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
29235           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
29236           echo "*** is required on your system"
29237           echo "***"
29238           echo "*** If you have an old version installed, it is best to remove it, although"
29239           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
29240           echo "***"
29241           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
29242           echo "*** came with the system with the command"
29243           echo "***"
29244           echo "***    rpm --erase --nodeps gtk gtk-devel"
29245 else
29246   echo "$as_me: failed program was:" >&5
29247 sed 's/^/| /' conftest.$ac_ext >&5
29248
29249          echo "*** The test program failed to compile or link. See the file config.log for the"
29250           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
29251           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
29252           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
29253 fi
29254
29255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29256       conftest$ac_exeext conftest.$ac_ext
29257           CFLAGS="$ac_save_CFLAGS"
29258           LIBS="$ac_save_LIBS"
29259        fi
29260      fi
29261      GTK_CFLAGS=""
29262      GTK_LIBS=""
29263      :
29264   fi
29265
29266
29267   rm -f conf.gtktest
29268
29269                         fi
29270                     fi
29271                 fi
29272
29273                 if test -z "$wx_cv_lib_gtk"; then
29274                                         wx_cv_lib_gtk=none
29275                 else
29276                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
29277                     wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
29278                 fi
29279
29280
29281 fi
29282
29283
29284                         if test "$gtk_version_cached" = 1; then
29285             { echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
29286 echo "${ECHO_T}$wx_cv_lib_gtk" >&6; }
29287         fi
29288
29289         case "$wx_cv_lib_gtk" in
29290             2.0)    WXGTK2=1
29291                     TOOLKIT_VERSION=2
29292                     ;;
29293             1.2.7)  WXGTK127=1
29294                     WXGTK12=1
29295                     ;;
29296             1.2.3)  WXGTK12=1
29297                     ;;
29298             *)      { { echo "$as_me:$LINENO: error:
29299 The development files for GTK+ were not found. For GTK+ 2, please
29300 ensure that pkg-config is in the path and that gtk+-2.0.pc is
29301 installed. For GTK+ 1.2 please check that gtk-config is in the path,
29302 and that the version is 1.2.3 or above. Also check that the
29303 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
29304 --libs' are in the LD_LIBRARY_PATH or equivalent.
29305                             " >&5
29306 echo "$as_me: error:
29307 The development files for GTK+ were not found. For GTK+ 2, please
29308 ensure that pkg-config is in the path and that gtk+-2.0.pc is
29309 installed. For GTK+ 1.2 please check that gtk-config is in the path,
29310 and that the version is 1.2.3 or above. Also check that the
29311 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
29312 --libs' are in the LD_LIBRARY_PATH or equivalent.
29313                             " >&2;}
29314    { (exit 1); exit 1; }; }
29315                     ;;
29316         esac
29317
29318         if test "$WXGTK2" = 1; then
29319             save_CFLAGS="$CFLAGS"
29320             save_LIBS="$LIBS"
29321             CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
29322             LIBS="$LIBS $wx_cv_libs_gtk"
29323
29324                         { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.10" >&5
29325 echo $ECHO_N "checking if GTK+ is version >= 2.10... $ECHO_C" >&6; }
29326             cat >conftest.$ac_ext <<_ACEOF
29327 /* confdefs.h.  */
29328 _ACEOF
29329 cat confdefs.h >>conftest.$ac_ext
29330 cat >>conftest.$ac_ext <<_ACEOF
29331 /* end confdefs.h.  */
29332
29333                             #include <gtk/gtk.h>
29334
29335 int
29336 main ()
29337 {
29338
29339                             #if !GTK_CHECK_VERSION(2,10,0)
29340                             Not GTK+ 2.10
29341                             #endif
29342
29343   ;
29344   return 0;
29345 }
29346 _ACEOF
29347 rm -f conftest.$ac_objext
29348 if { (ac_try="$ac_compile"
29349 case "(($ac_try" in
29350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29351   *) ac_try_echo=$ac_try;;
29352 esac
29353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29354   (eval "$ac_compile") 2>conftest.er1
29355   ac_status=$?
29356   grep -v '^ *+' conftest.er1 >conftest.err
29357   rm -f conftest.er1
29358   cat conftest.err >&5
29359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29360   (exit $ac_status); } && {
29361          test -z "$ac_c_werror_flag" ||
29362          test ! -s conftest.err
29363        } && test -s conftest.$ac_objext; then
29364
29365                             cat >>confdefs.h <<\_ACEOF
29366 #define __WXGTK210__ 1
29367 _ACEOF
29368
29369                             cat >>confdefs.h <<\_ACEOF
29370 #define __WXGTK26__ 1
29371 _ACEOF
29372
29373                             { echo "$as_me:$LINENO: result: yes" >&5
29374 echo "${ECHO_T}yes" >&6; }
29375                             ac_wxgtk210=1
29376
29377 else
29378   echo "$as_me: failed program was:" >&5
29379 sed 's/^/| /' conftest.$ac_ext >&5
29380
29381
29382                             { echo "$as_me:$LINENO: result: no" >&5
29383 echo "${ECHO_T}no" >&6; }
29384                             ac_wxgtk210=0
29385
29386 fi
29387
29388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29389
29390             if test "$ac_wxgtk210" = 0; then
29391                                 { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
29392 echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6; }
29393                 cat >conftest.$ac_ext <<_ACEOF
29394 /* confdefs.h.  */
29395 _ACEOF
29396 cat confdefs.h >>conftest.$ac_ext
29397 cat >>conftest.$ac_ext <<_ACEOF
29398 /* end confdefs.h.  */
29399
29400                                 #include <gtk/gtk.h>
29401
29402 int
29403 main ()
29404 {
29405
29406                                 #if !GTK_CHECK_VERSION(2,6,0)
29407                                 Not GTK+ 2.6
29408                                 #endif
29409
29410   ;
29411   return 0;
29412 }
29413 _ACEOF
29414 rm -f conftest.$ac_objext
29415 if { (ac_try="$ac_compile"
29416 case "(($ac_try" in
29417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29418   *) ac_try_echo=$ac_try;;
29419 esac
29420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29421   (eval "$ac_compile") 2>conftest.er1
29422   ac_status=$?
29423   grep -v '^ *+' conftest.er1 >conftest.err
29424   rm -f conftest.er1
29425   cat conftest.err >&5
29426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29427   (exit $ac_status); } && {
29428          test -z "$ac_c_werror_flag" ||
29429          test ! -s conftest.err
29430        } && test -s conftest.$ac_objext; then
29431
29432                                 cat >>confdefs.h <<\_ACEOF
29433 #define __WXGTK26__ 1
29434 _ACEOF
29435
29436                                 { echo "$as_me:$LINENO: result: yes" >&5
29437 echo "${ECHO_T}yes" >&6; }
29438                                 ac_wxgtk26=1
29439
29440 else
29441   echo "$as_me: failed program was:" >&5
29442 sed 's/^/| /' conftest.$ac_ext >&5
29443
29444
29445                                 { echo "$as_me:$LINENO: result: no" >&5
29446 echo "${ECHO_T}no" >&6; }
29447                                 ac_wxgtk26=0
29448
29449 fi
29450
29451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29452             fi
29453
29454             CFLAGS="$save_CFLAGS"
29455             LIBS="$save_LIBS"
29456         else
29457             if test "$wxUSE_UNICODE" = "yes"; then
29458                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
29459 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
29460                 wxUSE_UNICODE=no
29461             fi
29462
29463                         { echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
29464 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6; }
29465 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
29466   echo $ECHO_N "(cached) $ECHO_C" >&6
29467 else
29468   ac_check_lib_save_LIBS=$LIBS
29469 LIBS="-lgdk  $LIBS"
29470 cat >conftest.$ac_ext <<_ACEOF
29471 /* confdefs.h.  */
29472 _ACEOF
29473 cat confdefs.h >>conftest.$ac_ext
29474 cat >>conftest.$ac_ext <<_ACEOF
29475 /* end confdefs.h.  */
29476
29477 /* Override any GCC internal prototype to avoid an error.
29478    Use char because int might match the return type of a GCC
29479    builtin and then its argument prototype would still apply.  */
29480 #ifdef __cplusplus
29481 extern "C"
29482 #endif
29483 char gdk_im_open ();
29484 int
29485 main ()
29486 {
29487 return gdk_im_open ();
29488   ;
29489   return 0;
29490 }
29491 _ACEOF
29492 rm -f conftest.$ac_objext conftest$ac_exeext
29493 if { (ac_try="$ac_link"
29494 case "(($ac_try" in
29495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29496   *) ac_try_echo=$ac_try;;
29497 esac
29498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29499   (eval "$ac_link") 2>conftest.er1
29500   ac_status=$?
29501   grep -v '^ *+' conftest.er1 >conftest.err
29502   rm -f conftest.er1
29503   cat conftest.err >&5
29504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29505   (exit $ac_status); } && {
29506          test -z "$ac_c_werror_flag" ||
29507          test ! -s conftest.err
29508        } && test -s conftest$ac_exeext &&
29509        $as_test_x conftest$ac_exeext; then
29510   ac_cv_lib_gdk_gdk_im_open=yes
29511 else
29512   echo "$as_me: failed program was:" >&5
29513 sed 's/^/| /' conftest.$ac_ext >&5
29514
29515         ac_cv_lib_gdk_gdk_im_open=no
29516 fi
29517
29518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29519       conftest$ac_exeext conftest.$ac_ext
29520 LIBS=$ac_check_lib_save_LIBS
29521 fi
29522 { echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
29523 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6; }
29524 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
29525   cat >>confdefs.h <<\_ACEOF
29526 #define HAVE_XIM 1
29527 _ACEOF
29528
29529 fi
29530
29531
29532                                     if test "$USE_DARWIN" != 1; then
29533
29534 for ac_func in poll
29535 do
29536 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29537 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29538 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29539 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29540   echo $ECHO_N "(cached) $ECHO_C" >&6
29541 else
29542   cat >conftest.$ac_ext <<_ACEOF
29543 /* confdefs.h.  */
29544 _ACEOF
29545 cat confdefs.h >>conftest.$ac_ext
29546 cat >>conftest.$ac_ext <<_ACEOF
29547 /* end confdefs.h.  */
29548 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29549    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29550 #define $ac_func innocuous_$ac_func
29551
29552 /* System header to define __stub macros and hopefully few prototypes,
29553     which can conflict with char $ac_func (); below.
29554     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29555     <limits.h> exists even on freestanding compilers.  */
29556
29557 #ifdef __STDC__
29558 # include <limits.h>
29559 #else
29560 # include <assert.h>
29561 #endif
29562
29563 #undef $ac_func
29564
29565 /* Override any GCC internal prototype to avoid an error.
29566    Use char because int might match the return type of a GCC
29567    builtin and then its argument prototype would still apply.  */
29568 #ifdef __cplusplus
29569 extern "C"
29570 #endif
29571 char $ac_func ();
29572 /* The GNU C library defines this for functions which it implements
29573     to always fail with ENOSYS.  Some functions are actually named
29574     something starting with __ and the normal name is an alias.  */
29575 #if defined __stub_$ac_func || defined __stub___$ac_func
29576 choke me
29577 #endif
29578
29579 int
29580 main ()
29581 {
29582 return $ac_func ();
29583   ;
29584   return 0;
29585 }
29586 _ACEOF
29587 rm -f conftest.$ac_objext conftest$ac_exeext
29588 if { (ac_try="$ac_link"
29589 case "(($ac_try" in
29590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29591   *) ac_try_echo=$ac_try;;
29592 esac
29593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29594   (eval "$ac_link") 2>conftest.er1
29595   ac_status=$?
29596   grep -v '^ *+' conftest.er1 >conftest.err
29597   rm -f conftest.er1
29598   cat conftest.err >&5
29599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29600   (exit $ac_status); } && {
29601          test -z "$ac_c_werror_flag" ||
29602          test ! -s conftest.err
29603        } && test -s conftest$ac_exeext &&
29604        $as_test_x conftest$ac_exeext; then
29605   eval "$as_ac_var=yes"
29606 else
29607   echo "$as_me: failed program was:" >&5
29608 sed 's/^/| /' conftest.$ac_ext >&5
29609
29610         eval "$as_ac_var=no"
29611 fi
29612
29613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29614       conftest$ac_exeext conftest.$ac_ext
29615 fi
29616 ac_res=`eval echo '${'$as_ac_var'}'`
29617                { echo "$as_me:$LINENO: result: $ac_res" >&5
29618 echo "${ECHO_T}$ac_res" >&6; }
29619 if test `eval echo '${'$as_ac_var'}'` = yes; then
29620   cat >>confdefs.h <<_ACEOF
29621 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29622 _ACEOF
29623
29624 fi
29625 done
29626
29627             fi
29628         fi
29629
29630         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
29631         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
29632
29633         AFMINSTALL=afminstall
29634         TOOLKIT=GTK
29635         GUIDIST=GTK_DIST
29636
29637                 if test "$wxUSE_GPE" = "yes"; then
29638             { echo "$as_me:$LINENO: checking for gpewidget library" >&5
29639 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6; }
29640
29641   ac_find_libraries=
29642   for ac_dir in $SEARCH_LIB;
29643   do
29644     for ac_extension in a so sl dylib dll.a; do
29645       if test -f "$ac_dir/libgpewidget.$ac_extension"; then
29646         ac_find_libraries=$ac_dir
29647         break 2
29648       fi
29649     done
29650   done
29651
29652             if test "$ac_find_libraries" != "" ; then
29653
29654     if test "$ac_find_libraries" = "default location"; then
29655     ac_path_to_link=""
29656   else
29657     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29658     result=$?
29659     if test $result = 0; then
29660       ac_path_to_link=""
29661     else
29662       ac_path_to_link=" -L$ac_find_libraries"
29663     fi
29664   fi
29665
29666                                                 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
29667                 WXGPE=1
29668                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29669 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
29670             else
29671                 { echo "$as_me:$LINENO: result: not found" >&5
29672 echo "${ECHO_T}not found" >&6; }
29673             fi
29674
29675                                                                                                                     fi
29676     fi
29677
29678     if test "$wxUSE_MGL" = 1; then
29679        { echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
29680 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6; }
29681         if test "x$MGL_ROOT" = x ; then
29682             { echo "$as_me:$LINENO: result: not found" >&5
29683 echo "${ECHO_T}not found" >&6; }
29684             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
29685 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
29686    { (exit 1); exit 1; }; }
29687         else
29688             { echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
29689 echo "${ECHO_T}$MGL_ROOT" >&6; }
29690         fi
29691
29692         { echo "$as_me:$LINENO: checking for libmgl location" >&5
29693 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6; }
29694                                 case "${host}" in
29695             *-*-linux* )
29696                                           if test "x$wxUSE_SHARED" = xyes ; then
29697                   mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
29698               else
29699                   mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
29700               fi
29701               ;;
29702             *-pc-msdosdjgpp )
29703               mgl_os_candidates="dos32/dj2"
29704               ;;
29705             *)
29706               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
29707 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
29708    { (exit 1); exit 1; }; }
29709         esac
29710
29711         mgl_lib_type=""
29712         mgl_os=""
29713
29714         for mgl_os_i in $mgl_os_candidates ; do
29715             if test "x$mgl_os" = x ; then
29716                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
29717                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
29718                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
29719                         mgl_lib_type=debug
29720                         mgl_os=$mgl_os_i
29721                     fi
29722                 fi
29723                 if test "x$mgl_lib_type" = x ; then
29724                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
29725                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
29726                         mgl_lib_type=release
29727                         mgl_os=$mgl_os_i
29728                     fi
29729                 fi
29730             fi
29731         done
29732
29733         if test "x$mgl_os" = x ; then
29734             { echo "$as_me:$LINENO: result: not found" >&5
29735 echo "${ECHO_T}not found" >&6; }
29736             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
29737 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
29738    { (exit 1); exit 1; }; }
29739         fi
29740         { echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
29741 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6; }
29742
29743         wxUSE_UNIVERSAL="yes"
29744
29745         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
29746         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
29747
29748         AFMINSTALL=afminstall
29749         TOOLKIT=MGL
29750         GUIDIST=MGL_DIST
29751     fi
29752
29753     if test "$wxUSE_DFB" = 1; then
29754
29755
29756 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
29757         if test -n "$ac_tool_prefix"; then
29758   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29759 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29760 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29762 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29763   echo $ECHO_N "(cached) $ECHO_C" >&6
29764 else
29765   case $PKG_CONFIG in
29766   [\\/]* | ?:[\\/]*)
29767   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29768   ;;
29769   *)
29770   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29771 for as_dir in $PATH
29772 do
29773   IFS=$as_save_IFS
29774   test -z "$as_dir" && as_dir=.
29775   for ac_exec_ext in '' $ac_executable_extensions; do
29776   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29777     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29778     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29779     break 2
29780   fi
29781 done
29782 done
29783 IFS=$as_save_IFS
29784
29785   ;;
29786 esac
29787 fi
29788 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29789 if test -n "$PKG_CONFIG"; then
29790   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29791 echo "${ECHO_T}$PKG_CONFIG" >&6; }
29792 else
29793   { echo "$as_me:$LINENO: result: no" >&5
29794 echo "${ECHO_T}no" >&6; }
29795 fi
29796
29797
29798 fi
29799 if test -z "$ac_cv_path_PKG_CONFIG"; then
29800   ac_pt_PKG_CONFIG=$PKG_CONFIG
29801   # Extract the first word of "pkg-config", so it can be a program name with args.
29802 set dummy pkg-config; ac_word=$2
29803 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29805 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
29806   echo $ECHO_N "(cached) $ECHO_C" >&6
29807 else
29808   case $ac_pt_PKG_CONFIG in
29809   [\\/]* | ?:[\\/]*)
29810   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
29811   ;;
29812   *)
29813   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29814 for as_dir in $PATH
29815 do
29816   IFS=$as_save_IFS
29817   test -z "$as_dir" && as_dir=.
29818   for ac_exec_ext in '' $ac_executable_extensions; do
29819   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29820     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29821     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29822     break 2
29823   fi
29824 done
29825 done
29826 IFS=$as_save_IFS
29827
29828   ;;
29829 esac
29830 fi
29831 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
29832 if test -n "$ac_pt_PKG_CONFIG"; then
29833   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
29834 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
29835 else
29836   { echo "$as_me:$LINENO: result: no" >&5
29837 echo "${ECHO_T}no" >&6; }
29838 fi
29839
29840   if test "x$ac_pt_PKG_CONFIG" = x; then
29841     PKG_CONFIG=""
29842   else
29843     case $cross_compiling:$ac_tool_warned in
29844 yes:)
29845 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29846 whose name does not start with the host triplet.  If you think this
29847 configuration is useful to you, please write to autoconf@gnu.org." >&5
29848 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29849 whose name does not start with the host triplet.  If you think this
29850 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29851 ac_tool_warned=yes ;;
29852 esac
29853     PKG_CONFIG=$ac_pt_PKG_CONFIG
29854   fi
29855 else
29856   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
29857 fi
29858
29859 fi
29860 if test -n "$PKG_CONFIG"; then
29861         _pkg_min_version=0.9.0
29862         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
29863 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
29864         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
29865                 { echo "$as_me:$LINENO: result: yes" >&5
29866 echo "${ECHO_T}yes" >&6; }
29867         else
29868                 { echo "$as_me:$LINENO: result: no" >&5
29869 echo "${ECHO_T}no" >&6; }
29870                 PKG_CONFIG=""
29871         fi
29872
29873 fi
29874
29875
29876 pkg_failed=no
29877 { echo "$as_me:$LINENO: checking for DIRECTFB" >&5
29878 echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6; }
29879
29880 if test -n "$PKG_CONFIG"; then
29881     if test -n "$DIRECTFB_CFLAGS"; then
29882         pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
29883     else
29884         if test -n "$PKG_CONFIG" && \
29885     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
29886   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
29887   ac_status=$?
29888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29889   (exit $ac_status); }; then
29890   pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.23" 2>/dev/null`
29891 else
29892   pkg_failed=yes
29893 fi
29894     fi
29895 else
29896         pkg_failed=untried
29897 fi
29898 if test -n "$PKG_CONFIG"; then
29899     if test -n "$DIRECTFB_LIBS"; then
29900         pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
29901     else
29902         if test -n "$PKG_CONFIG" && \
29903     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
29904   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
29905   ac_status=$?
29906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29907   (exit $ac_status); }; then
29908   pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.23" 2>/dev/null`
29909 else
29910   pkg_failed=yes
29911 fi
29912     fi
29913 else
29914         pkg_failed=untried
29915 fi
29916
29917
29918
29919 if test $pkg_failed = yes; then
29920
29921 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29922         _pkg_short_errors_supported=yes
29923 else
29924         _pkg_short_errors_supported=no
29925 fi
29926         if test $_pkg_short_errors_supported = yes; then
29927                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.23"`
29928         else
29929                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.23"`
29930         fi
29931         # Put the nasty error message in config.log where it belongs
29932         echo "$DIRECTFB_PKG_ERRORS" >&5
29933
29934
29935                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29936 echo "$as_me: error: DirectFB not found." >&2;}
29937    { (exit 1); exit 1; }; }
29938
29939
29940 elif test $pkg_failed = untried; then
29941
29942                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29943 echo "$as_me: error: DirectFB not found." >&2;}
29944    { (exit 1); exit 1; }; }
29945
29946
29947 else
29948         DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
29949         DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
29950         { echo "$as_me:$LINENO: result: yes" >&5
29951 echo "${ECHO_T}yes" >&6; }
29952
29953                            wxUSE_UNIVERSAL="yes"
29954                            TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
29955                            GUI_TK_LIBRARY="$DIRECTFB_LIBS"
29956                            TOOLKIT=DFB
29957                            GUIDIST=DFB_DIST
29958
29959 fi
29960     fi
29961
29962     if test "$wxUSE_MICROWIN" = 1; then
29963         { echo "$as_me:$LINENO: checking for MicroWindows" >&5
29964 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6; }
29965         if test "x$MICROWINDOWS" = x ; then
29966             { echo "$as_me:$LINENO: result: not found" >&5
29967 echo "${ECHO_T}not found" >&6; }
29968             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
29969 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
29970    { (exit 1); exit 1; }; }
29971         else
29972             { echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
29973 echo "${ECHO_T}$MICROWINDOWS" >&6; }
29974         fi
29975
29976         if test -f $MICROWINDOWS/lib/libmwin.a; then
29977             { echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
29978 echo "${ECHO_T}MicroWindows' libraries found." >&6; }
29979         else
29980             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
29981 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
29982    { (exit 1); exit 1; }; }
29983         fi
29984
29985         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
29986         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
29987
29988         wxUSE_UNIVERSAL="yes"
29989
29990         AFMINSTALL=afminstall
29991         TOOLKIT=MICROWIN
29992         GUIDIST=MICROWIN_DIST
29993
29994         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
29995     fi
29996
29997         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
29998                                 { echo "$as_me:$LINENO: checking for X" >&5
29999 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
30000
30001
30002 # Check whether --with-x was given.
30003 if test "${with_x+set}" = set; then
30004   withval=$with_x;
30005 fi
30006
30007 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
30008 if test "x$with_x" = xno; then
30009   # The user explicitly disabled X.
30010   have_x=disabled
30011 else
30012   case $x_includes,$x_libraries in #(
30013     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
30014 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
30015    { (exit 1); exit 1; }; };; #(
30016     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
30017   echo $ECHO_N "(cached) $ECHO_C" >&6
30018 else
30019   # One or both of the vars are not set, and there is no cached value.
30020 ac_x_includes=no ac_x_libraries=no
30021 rm -f -r conftest.dir
30022 if mkdir conftest.dir; then
30023   cd conftest.dir
30024   cat >Imakefile <<'_ACEOF'
30025 incroot:
30026         @echo incroot='${INCROOT}'
30027 usrlibdir:
30028         @echo usrlibdir='${USRLIBDIR}'
30029 libdir:
30030         @echo libdir='${LIBDIR}'
30031 _ACEOF
30032   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
30033     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
30034     for ac_var in incroot usrlibdir libdir; do
30035       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
30036     done
30037     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
30038     for ac_extension in a so sl; do
30039       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
30040          test -f "$ac_im_libdir/libX11.$ac_extension"; then
30041         ac_im_usrlibdir=$ac_im_libdir; break
30042       fi
30043     done
30044     # Screen out bogus values from the imake configuration.  They are
30045     # bogus both because they are the default anyway, and because
30046     # using them would break gcc on systems where it needs fixed includes.
30047     case $ac_im_incroot in
30048         /usr/include) ac_x_includes= ;;
30049         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
30050     esac
30051     case $ac_im_usrlibdir in
30052         /usr/lib | /lib) ;;
30053         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
30054     esac
30055   fi
30056   cd ..
30057   rm -f -r conftest.dir
30058 fi
30059
30060 # Standard set of common directories for X headers.
30061 # Check X11 before X11Rn because it is often a symlink to the current release.
30062 ac_x_header_dirs='
30063 /usr/X11/include
30064 /usr/X11R6/include
30065 /usr/X11R5/include
30066 /usr/X11R4/include
30067
30068 /usr/include/X11
30069 /usr/include/X11R6
30070 /usr/include/X11R5
30071 /usr/include/X11R4
30072
30073 /usr/local/X11/include
30074 /usr/local/X11R6/include
30075 /usr/local/X11R5/include
30076 /usr/local/X11R4/include
30077
30078 /usr/local/include/X11
30079 /usr/local/include/X11R6
30080 /usr/local/include/X11R5
30081 /usr/local/include/X11R4
30082
30083 /usr/X386/include
30084 /usr/x386/include
30085 /usr/XFree86/include/X11
30086
30087 /usr/include
30088 /usr/local/include
30089 /usr/unsupported/include
30090 /usr/athena/include
30091 /usr/local/x11r5/include
30092 /usr/lpp/Xamples/include
30093
30094 /usr/openwin/include
30095 /usr/openwin/share/include'
30096
30097 if test "$ac_x_includes" = no; then
30098   # Guess where to find include files, by looking for Xlib.h.
30099   # First, try using that file with no special directory specified.
30100   cat >conftest.$ac_ext <<_ACEOF
30101 /* confdefs.h.  */
30102 _ACEOF
30103 cat confdefs.h >>conftest.$ac_ext
30104 cat >>conftest.$ac_ext <<_ACEOF
30105 /* end confdefs.h.  */
30106 #include <X11/Xlib.h>
30107 _ACEOF
30108 if { (ac_try="$ac_cpp conftest.$ac_ext"
30109 case "(($ac_try" in
30110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30111   *) ac_try_echo=$ac_try;;
30112 esac
30113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30114   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30115   ac_status=$?
30116   grep -v '^ *+' conftest.er1 >conftest.err
30117   rm -f conftest.er1
30118   cat conftest.err >&5
30119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30120   (exit $ac_status); } >/dev/null && {
30121          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30122          test ! -s conftest.err
30123        }; then
30124   # We can compile using X headers with no special include directory.
30125 ac_x_includes=
30126 else
30127   echo "$as_me: failed program was:" >&5
30128 sed 's/^/| /' conftest.$ac_ext >&5
30129
30130   for ac_dir in $ac_x_header_dirs; do
30131   if test -r "$ac_dir/X11/Xlib.h"; then
30132     ac_x_includes=$ac_dir
30133     break
30134   fi
30135 done
30136 fi
30137
30138 rm -f conftest.err conftest.$ac_ext
30139 fi # $ac_x_includes = no
30140
30141 if test "$ac_x_libraries" = no; then
30142   # Check for the libraries.
30143   # See if we find them without any special options.
30144   # Don't add to $LIBS permanently.
30145   ac_save_LIBS=$LIBS
30146   LIBS="-lX11 $LIBS"
30147   cat >conftest.$ac_ext <<_ACEOF
30148 /* confdefs.h.  */
30149 _ACEOF
30150 cat confdefs.h >>conftest.$ac_ext
30151 cat >>conftest.$ac_ext <<_ACEOF
30152 /* end confdefs.h.  */
30153 #include <X11/Xlib.h>
30154 int
30155 main ()
30156 {
30157 XrmInitialize ()
30158   ;
30159   return 0;
30160 }
30161 _ACEOF
30162 rm -f conftest.$ac_objext conftest$ac_exeext
30163 if { (ac_try="$ac_link"
30164 case "(($ac_try" in
30165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30166   *) ac_try_echo=$ac_try;;
30167 esac
30168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30169   (eval "$ac_link") 2>conftest.er1
30170   ac_status=$?
30171   grep -v '^ *+' conftest.er1 >conftest.err
30172   rm -f conftest.er1
30173   cat conftest.err >&5
30174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30175   (exit $ac_status); } && {
30176          test -z "$ac_c_werror_flag" ||
30177          test ! -s conftest.err
30178        } && test -s conftest$ac_exeext &&
30179        $as_test_x conftest$ac_exeext; then
30180   LIBS=$ac_save_LIBS
30181 # We can link X programs with no special library path.
30182 ac_x_libraries=
30183 else
30184   echo "$as_me: failed program was:" >&5
30185 sed 's/^/| /' conftest.$ac_ext >&5
30186
30187         LIBS=$ac_save_LIBS
30188 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
30189 do
30190   # Don't even attempt the hair of trying to link an X program!
30191   for ac_extension in a so sl; do
30192     if test -r "$ac_dir/libX11.$ac_extension"; then
30193       ac_x_libraries=$ac_dir
30194       break 2
30195     fi
30196   done
30197 done
30198 fi
30199
30200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30201       conftest$ac_exeext conftest.$ac_ext
30202 fi # $ac_x_libraries = no
30203
30204 case $ac_x_includes,$ac_x_libraries in #(
30205   no,* | *,no | *\'*)
30206     # Didn't find X, or a directory has "'" in its name.
30207     ac_cv_have_x="have_x=no";; #(
30208   *)
30209     # Record where we found X for the cache.
30210     ac_cv_have_x="have_x=yes\
30211         ac_x_includes='$ac_x_includes'\
30212         ac_x_libraries='$ac_x_libraries'"
30213 esac
30214 fi
30215 ;; #(
30216     *) have_x=yes;;
30217   esac
30218   eval "$ac_cv_have_x"
30219 fi # $with_x != no
30220
30221 if test "$have_x" != yes; then
30222   { echo "$as_me:$LINENO: result: $have_x" >&5
30223 echo "${ECHO_T}$have_x" >&6; }
30224   no_x=yes
30225 else
30226   # If each of the values was on the command line, it overrides each guess.
30227   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
30228   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
30229   # Update the cache value to reflect the command line values.
30230   ac_cv_have_x="have_x=yes\
30231         ac_x_includes='$x_includes'\
30232         ac_x_libraries='$x_libraries'"
30233   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
30234 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
30235 fi
30236
30237 if test "$no_x" = yes; then
30238   # Not all programs may use this symbol, but it does not hurt to define it.
30239
30240 cat >>confdefs.h <<\_ACEOF
30241 #define X_DISPLAY_MISSING 1
30242 _ACEOF
30243
30244   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
30245 else
30246   if test -n "$x_includes"; then
30247     X_CFLAGS="$X_CFLAGS -I$x_includes"
30248   fi
30249
30250   # It would also be nice to do this for all -L options, not just this one.
30251   if test -n "$x_libraries"; then
30252     X_LIBS="$X_LIBS -L$x_libraries"
30253     # For Solaris; some versions of Sun CC require a space after -R and
30254     # others require no space.  Words are not sufficient . . . .
30255     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
30256 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
30257     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
30258     ac_xsave_c_werror_flag=$ac_c_werror_flag
30259     ac_c_werror_flag=yes
30260     cat >conftest.$ac_ext <<_ACEOF
30261 /* confdefs.h.  */
30262 _ACEOF
30263 cat confdefs.h >>conftest.$ac_ext
30264 cat >>conftest.$ac_ext <<_ACEOF
30265 /* end confdefs.h.  */
30266
30267 int
30268 main ()
30269 {
30270
30271   ;
30272   return 0;
30273 }
30274 _ACEOF
30275 rm -f conftest.$ac_objext conftest$ac_exeext
30276 if { (ac_try="$ac_link"
30277 case "(($ac_try" in
30278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30279   *) ac_try_echo=$ac_try;;
30280 esac
30281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30282   (eval "$ac_link") 2>conftest.er1
30283   ac_status=$?
30284   grep -v '^ *+' conftest.er1 >conftest.err
30285   rm -f conftest.er1
30286   cat conftest.err >&5
30287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30288   (exit $ac_status); } && {
30289          test -z "$ac_c_werror_flag" ||
30290          test ! -s conftest.err
30291        } && test -s conftest$ac_exeext &&
30292        $as_test_x conftest$ac_exeext; then
30293   { echo "$as_me:$LINENO: result: no" >&5
30294 echo "${ECHO_T}no" >&6; }
30295        X_LIBS="$X_LIBS -R$x_libraries"
30296 else
30297   echo "$as_me: failed program was:" >&5
30298 sed 's/^/| /' conftest.$ac_ext >&5
30299
30300         LIBS="$ac_xsave_LIBS -R $x_libraries"
30301        cat >conftest.$ac_ext <<_ACEOF
30302 /* confdefs.h.  */
30303 _ACEOF
30304 cat confdefs.h >>conftest.$ac_ext
30305 cat >>conftest.$ac_ext <<_ACEOF
30306 /* end confdefs.h.  */
30307
30308 int
30309 main ()
30310 {
30311
30312   ;
30313   return 0;
30314 }
30315 _ACEOF
30316 rm -f conftest.$ac_objext conftest$ac_exeext
30317 if { (ac_try="$ac_link"
30318 case "(($ac_try" in
30319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30320   *) ac_try_echo=$ac_try;;
30321 esac
30322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30323   (eval "$ac_link") 2>conftest.er1
30324   ac_status=$?
30325   grep -v '^ *+' conftest.er1 >conftest.err
30326   rm -f conftest.er1
30327   cat conftest.err >&5
30328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30329   (exit $ac_status); } && {
30330          test -z "$ac_c_werror_flag" ||
30331          test ! -s conftest.err
30332        } && test -s conftest$ac_exeext &&
30333        $as_test_x conftest$ac_exeext; then
30334   { echo "$as_me:$LINENO: result: yes" >&5
30335 echo "${ECHO_T}yes" >&6; }
30336           X_LIBS="$X_LIBS -R $x_libraries"
30337 else
30338   echo "$as_me: failed program was:" >&5
30339 sed 's/^/| /' conftest.$ac_ext >&5
30340
30341         { echo "$as_me:$LINENO: result: neither works" >&5
30342 echo "${ECHO_T}neither works" >&6; }
30343 fi
30344
30345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30346       conftest$ac_exeext conftest.$ac_ext
30347 fi
30348
30349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30350       conftest$ac_exeext conftest.$ac_ext
30351     ac_c_werror_flag=$ac_xsave_c_werror_flag
30352     LIBS=$ac_xsave_LIBS
30353   fi
30354
30355   # Check for system-dependent libraries X programs must link with.
30356   # Do this before checking for the system-independent R6 libraries
30357   # (-lICE), since we may need -lsocket or whatever for X linking.
30358
30359   if test "$ISC" = yes; then
30360     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
30361   else
30362     # Martyn Johnson says this is needed for Ultrix, if the X
30363     # libraries were built with DECnet support.  And Karl Berry says
30364     # the Alpha needs dnet_stub (dnet does not exist).
30365     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
30366     cat >conftest.$ac_ext <<_ACEOF
30367 /* confdefs.h.  */
30368 _ACEOF
30369 cat confdefs.h >>conftest.$ac_ext
30370 cat >>conftest.$ac_ext <<_ACEOF
30371 /* end confdefs.h.  */
30372
30373 /* Override any GCC internal prototype to avoid an error.
30374    Use char because int might match the return type of a GCC
30375    builtin and then its argument prototype would still apply.  */
30376 #ifdef __cplusplus
30377 extern "C"
30378 #endif
30379 char XOpenDisplay ();
30380 int
30381 main ()
30382 {
30383 return XOpenDisplay ();
30384   ;
30385   return 0;
30386 }
30387 _ACEOF
30388 rm -f conftest.$ac_objext conftest$ac_exeext
30389 if { (ac_try="$ac_link"
30390 case "(($ac_try" in
30391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30392   *) ac_try_echo=$ac_try;;
30393 esac
30394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30395   (eval "$ac_link") 2>conftest.er1
30396   ac_status=$?
30397   grep -v '^ *+' conftest.er1 >conftest.err
30398   rm -f conftest.er1
30399   cat conftest.err >&5
30400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30401   (exit $ac_status); } && {
30402          test -z "$ac_c_werror_flag" ||
30403          test ! -s conftest.err
30404        } && test -s conftest$ac_exeext &&
30405        $as_test_x conftest$ac_exeext; then
30406   :
30407 else
30408   echo "$as_me: failed program was:" >&5
30409 sed 's/^/| /' conftest.$ac_ext >&5
30410
30411         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
30412 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
30413 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
30414   echo $ECHO_N "(cached) $ECHO_C" >&6
30415 else
30416   ac_check_lib_save_LIBS=$LIBS
30417 LIBS="-ldnet  $LIBS"
30418 cat >conftest.$ac_ext <<_ACEOF
30419 /* confdefs.h.  */
30420 _ACEOF
30421 cat confdefs.h >>conftest.$ac_ext
30422 cat >>conftest.$ac_ext <<_ACEOF
30423 /* end confdefs.h.  */
30424
30425 /* Override any GCC internal prototype to avoid an error.
30426    Use char because int might match the return type of a GCC
30427    builtin and then its argument prototype would still apply.  */
30428 #ifdef __cplusplus
30429 extern "C"
30430 #endif
30431 char dnet_ntoa ();
30432 int
30433 main ()
30434 {
30435 return dnet_ntoa ();
30436   ;
30437   return 0;
30438 }
30439 _ACEOF
30440 rm -f conftest.$ac_objext conftest$ac_exeext
30441 if { (ac_try="$ac_link"
30442 case "(($ac_try" in
30443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30444   *) ac_try_echo=$ac_try;;
30445 esac
30446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30447   (eval "$ac_link") 2>conftest.er1
30448   ac_status=$?
30449   grep -v '^ *+' conftest.er1 >conftest.err
30450   rm -f conftest.er1
30451   cat conftest.err >&5
30452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30453   (exit $ac_status); } && {
30454          test -z "$ac_c_werror_flag" ||
30455          test ! -s conftest.err
30456        } && test -s conftest$ac_exeext &&
30457        $as_test_x conftest$ac_exeext; then
30458   ac_cv_lib_dnet_dnet_ntoa=yes
30459 else
30460   echo "$as_me: failed program was:" >&5
30461 sed 's/^/| /' conftest.$ac_ext >&5
30462
30463         ac_cv_lib_dnet_dnet_ntoa=no
30464 fi
30465
30466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30467       conftest$ac_exeext conftest.$ac_ext
30468 LIBS=$ac_check_lib_save_LIBS
30469 fi
30470 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
30471 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
30472 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
30473   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
30474 fi
30475
30476     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
30477       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
30478 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
30479 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
30480   echo $ECHO_N "(cached) $ECHO_C" >&6
30481 else
30482   ac_check_lib_save_LIBS=$LIBS
30483 LIBS="-ldnet_stub  $LIBS"
30484 cat >conftest.$ac_ext <<_ACEOF
30485 /* confdefs.h.  */
30486 _ACEOF
30487 cat confdefs.h >>conftest.$ac_ext
30488 cat >>conftest.$ac_ext <<_ACEOF
30489 /* end confdefs.h.  */
30490
30491 /* Override any GCC internal prototype to avoid an error.
30492    Use char because int might match the return type of a GCC
30493    builtin and then its argument prototype would still apply.  */
30494 #ifdef __cplusplus
30495 extern "C"
30496 #endif
30497 char dnet_ntoa ();
30498 int
30499 main ()
30500 {
30501 return dnet_ntoa ();
30502   ;
30503   return 0;
30504 }
30505 _ACEOF
30506 rm -f conftest.$ac_objext conftest$ac_exeext
30507 if { (ac_try="$ac_link"
30508 case "(($ac_try" in
30509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30510   *) ac_try_echo=$ac_try;;
30511 esac
30512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30513   (eval "$ac_link") 2>conftest.er1
30514   ac_status=$?
30515   grep -v '^ *+' conftest.er1 >conftest.err
30516   rm -f conftest.er1
30517   cat conftest.err >&5
30518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30519   (exit $ac_status); } && {
30520          test -z "$ac_c_werror_flag" ||
30521          test ! -s conftest.err
30522        } && test -s conftest$ac_exeext &&
30523        $as_test_x conftest$ac_exeext; then
30524   ac_cv_lib_dnet_stub_dnet_ntoa=yes
30525 else
30526   echo "$as_me: failed program was:" >&5
30527 sed 's/^/| /' conftest.$ac_ext >&5
30528
30529         ac_cv_lib_dnet_stub_dnet_ntoa=no
30530 fi
30531
30532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30533       conftest$ac_exeext conftest.$ac_ext
30534 LIBS=$ac_check_lib_save_LIBS
30535 fi
30536 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
30537 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
30538 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
30539   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
30540 fi
30541
30542     fi
30543 fi
30544
30545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30546       conftest$ac_exeext conftest.$ac_ext
30547     LIBS="$ac_xsave_LIBS"
30548
30549     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
30550     # to get the SysV transport functions.
30551     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
30552     # needs -lnsl.
30553     # The nsl library prevents programs from opening the X display
30554     # on Irix 5.2, according to T.E. Dickey.
30555     # The functions gethostbyname, getservbyname, and inet_addr are
30556     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
30557     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
30558 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
30559 if test "${ac_cv_func_gethostbyname+set}" = set; then
30560   echo $ECHO_N "(cached) $ECHO_C" >&6
30561 else
30562   cat >conftest.$ac_ext <<_ACEOF
30563 /* confdefs.h.  */
30564 _ACEOF
30565 cat confdefs.h >>conftest.$ac_ext
30566 cat >>conftest.$ac_ext <<_ACEOF
30567 /* end confdefs.h.  */
30568 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
30569    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30570 #define gethostbyname innocuous_gethostbyname
30571
30572 /* System header to define __stub macros and hopefully few prototypes,
30573     which can conflict with char gethostbyname (); below.
30574     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30575     <limits.h> exists even on freestanding compilers.  */
30576
30577 #ifdef __STDC__
30578 # include <limits.h>
30579 #else
30580 # include <assert.h>
30581 #endif
30582
30583 #undef gethostbyname
30584
30585 /* Override any GCC internal prototype to avoid an error.
30586    Use char because int might match the return type of a GCC
30587    builtin and then its argument prototype would still apply.  */
30588 #ifdef __cplusplus
30589 extern "C"
30590 #endif
30591 char gethostbyname ();
30592 /* The GNU C library defines this for functions which it implements
30593     to always fail with ENOSYS.  Some functions are actually named
30594     something starting with __ and the normal name is an alias.  */
30595 #if defined __stub_gethostbyname || defined __stub___gethostbyname
30596 choke me
30597 #endif
30598
30599 int
30600 main ()
30601 {
30602 return gethostbyname ();
30603   ;
30604   return 0;
30605 }
30606 _ACEOF
30607 rm -f conftest.$ac_objext conftest$ac_exeext
30608 if { (ac_try="$ac_link"
30609 case "(($ac_try" in
30610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30611   *) ac_try_echo=$ac_try;;
30612 esac
30613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30614   (eval "$ac_link") 2>conftest.er1
30615   ac_status=$?
30616   grep -v '^ *+' conftest.er1 >conftest.err
30617   rm -f conftest.er1
30618   cat conftest.err >&5
30619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30620   (exit $ac_status); } && {
30621          test -z "$ac_c_werror_flag" ||
30622          test ! -s conftest.err
30623        } && test -s conftest$ac_exeext &&
30624        $as_test_x conftest$ac_exeext; then
30625   ac_cv_func_gethostbyname=yes
30626 else
30627   echo "$as_me: failed program was:" >&5
30628 sed 's/^/| /' conftest.$ac_ext >&5
30629
30630         ac_cv_func_gethostbyname=no
30631 fi
30632
30633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30634       conftest$ac_exeext conftest.$ac_ext
30635 fi
30636 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
30637 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
30638
30639     if test $ac_cv_func_gethostbyname = no; then
30640       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
30641 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
30642 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
30643   echo $ECHO_N "(cached) $ECHO_C" >&6
30644 else
30645   ac_check_lib_save_LIBS=$LIBS
30646 LIBS="-lnsl  $LIBS"
30647 cat >conftest.$ac_ext <<_ACEOF
30648 /* confdefs.h.  */
30649 _ACEOF
30650 cat confdefs.h >>conftest.$ac_ext
30651 cat >>conftest.$ac_ext <<_ACEOF
30652 /* end confdefs.h.  */
30653
30654 /* Override any GCC internal prototype to avoid an error.
30655    Use char because int might match the return type of a GCC
30656    builtin and then its argument prototype would still apply.  */
30657 #ifdef __cplusplus
30658 extern "C"
30659 #endif
30660 char gethostbyname ();
30661 int
30662 main ()
30663 {
30664 return gethostbyname ();
30665   ;
30666   return 0;
30667 }
30668 _ACEOF
30669 rm -f conftest.$ac_objext conftest$ac_exeext
30670 if { (ac_try="$ac_link"
30671 case "(($ac_try" in
30672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30673   *) ac_try_echo=$ac_try;;
30674 esac
30675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30676   (eval "$ac_link") 2>conftest.er1
30677   ac_status=$?
30678   grep -v '^ *+' conftest.er1 >conftest.err
30679   rm -f conftest.er1
30680   cat conftest.err >&5
30681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30682   (exit $ac_status); } && {
30683          test -z "$ac_c_werror_flag" ||
30684          test ! -s conftest.err
30685        } && test -s conftest$ac_exeext &&
30686        $as_test_x conftest$ac_exeext; then
30687   ac_cv_lib_nsl_gethostbyname=yes
30688 else
30689   echo "$as_me: failed program was:" >&5
30690 sed 's/^/| /' conftest.$ac_ext >&5
30691
30692         ac_cv_lib_nsl_gethostbyname=no
30693 fi
30694
30695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30696       conftest$ac_exeext conftest.$ac_ext
30697 LIBS=$ac_check_lib_save_LIBS
30698 fi
30699 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
30700 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
30701 if test $ac_cv_lib_nsl_gethostbyname = yes; then
30702   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30703 fi
30704
30705       if test $ac_cv_lib_nsl_gethostbyname = no; then
30706         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30707 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
30708 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30709   echo $ECHO_N "(cached) $ECHO_C" >&6
30710 else
30711   ac_check_lib_save_LIBS=$LIBS
30712 LIBS="-lbsd  $LIBS"
30713 cat >conftest.$ac_ext <<_ACEOF
30714 /* confdefs.h.  */
30715 _ACEOF
30716 cat confdefs.h >>conftest.$ac_ext
30717 cat >>conftest.$ac_ext <<_ACEOF
30718 /* end confdefs.h.  */
30719
30720 /* Override any GCC internal prototype to avoid an error.
30721    Use char because int might match the return type of a GCC
30722    builtin and then its argument prototype would still apply.  */
30723 #ifdef __cplusplus
30724 extern "C"
30725 #endif
30726 char gethostbyname ();
30727 int
30728 main ()
30729 {
30730 return gethostbyname ();
30731   ;
30732   return 0;
30733 }
30734 _ACEOF
30735 rm -f conftest.$ac_objext conftest$ac_exeext
30736 if { (ac_try="$ac_link"
30737 case "(($ac_try" in
30738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30739   *) ac_try_echo=$ac_try;;
30740 esac
30741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30742   (eval "$ac_link") 2>conftest.er1
30743   ac_status=$?
30744   grep -v '^ *+' conftest.er1 >conftest.err
30745   rm -f conftest.er1
30746   cat conftest.err >&5
30747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30748   (exit $ac_status); } && {
30749          test -z "$ac_c_werror_flag" ||
30750          test ! -s conftest.err
30751        } && test -s conftest$ac_exeext &&
30752        $as_test_x conftest$ac_exeext; then
30753   ac_cv_lib_bsd_gethostbyname=yes
30754 else
30755   echo "$as_me: failed program was:" >&5
30756 sed 's/^/| /' conftest.$ac_ext >&5
30757
30758         ac_cv_lib_bsd_gethostbyname=no
30759 fi
30760
30761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30762       conftest$ac_exeext conftest.$ac_ext
30763 LIBS=$ac_check_lib_save_LIBS
30764 fi
30765 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30766 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
30767 if test $ac_cv_lib_bsd_gethostbyname = yes; then
30768   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30769 fi
30770
30771       fi
30772     fi
30773
30774     # lieder@skyler.mavd.honeywell.com says without -lsocket,
30775     # socket/setsockopt and other routines are undefined under SCO ODT
30776     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
30777     # on later versions), says Simon Leinen: it contains gethostby*
30778     # variants that don't use the name server (or something).  -lsocket
30779     # must be given before -lnsl if both are needed.  We assume that
30780     # if connect needs -lnsl, so does gethostbyname.
30781     { echo "$as_me:$LINENO: checking for connect" >&5
30782 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
30783 if test "${ac_cv_func_connect+set}" = set; then
30784   echo $ECHO_N "(cached) $ECHO_C" >&6
30785 else
30786   cat >conftest.$ac_ext <<_ACEOF
30787 /* confdefs.h.  */
30788 _ACEOF
30789 cat confdefs.h >>conftest.$ac_ext
30790 cat >>conftest.$ac_ext <<_ACEOF
30791 /* end confdefs.h.  */
30792 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
30793    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30794 #define connect innocuous_connect
30795
30796 /* System header to define __stub macros and hopefully few prototypes,
30797     which can conflict with char connect (); below.
30798     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30799     <limits.h> exists even on freestanding compilers.  */
30800
30801 #ifdef __STDC__
30802 # include <limits.h>
30803 #else
30804 # include <assert.h>
30805 #endif
30806
30807 #undef connect
30808
30809 /* Override any GCC internal prototype to avoid an error.
30810    Use char because int might match the return type of a GCC
30811    builtin and then its argument prototype would still apply.  */
30812 #ifdef __cplusplus
30813 extern "C"
30814 #endif
30815 char connect ();
30816 /* The GNU C library defines this for functions which it implements
30817     to always fail with ENOSYS.  Some functions are actually named
30818     something starting with __ and the normal name is an alias.  */
30819 #if defined __stub_connect || defined __stub___connect
30820 choke me
30821 #endif
30822
30823 int
30824 main ()
30825 {
30826 return connect ();
30827   ;
30828   return 0;
30829 }
30830 _ACEOF
30831 rm -f conftest.$ac_objext conftest$ac_exeext
30832 if { (ac_try="$ac_link"
30833 case "(($ac_try" in
30834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30835   *) ac_try_echo=$ac_try;;
30836 esac
30837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30838   (eval "$ac_link") 2>conftest.er1
30839   ac_status=$?
30840   grep -v '^ *+' conftest.er1 >conftest.err
30841   rm -f conftest.er1
30842   cat conftest.err >&5
30843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30844   (exit $ac_status); } && {
30845          test -z "$ac_c_werror_flag" ||
30846          test ! -s conftest.err
30847        } && test -s conftest$ac_exeext &&
30848        $as_test_x conftest$ac_exeext; then
30849   ac_cv_func_connect=yes
30850 else
30851   echo "$as_me: failed program was:" >&5
30852 sed 's/^/| /' conftest.$ac_ext >&5
30853
30854         ac_cv_func_connect=no
30855 fi
30856
30857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30858       conftest$ac_exeext conftest.$ac_ext
30859 fi
30860 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30861 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
30862
30863     if test $ac_cv_func_connect = no; then
30864       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30865 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30866 if test "${ac_cv_lib_socket_connect+set}" = set; then
30867   echo $ECHO_N "(cached) $ECHO_C" >&6
30868 else
30869   ac_check_lib_save_LIBS=$LIBS
30870 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30871 cat >conftest.$ac_ext <<_ACEOF
30872 /* confdefs.h.  */
30873 _ACEOF
30874 cat confdefs.h >>conftest.$ac_ext
30875 cat >>conftest.$ac_ext <<_ACEOF
30876 /* end confdefs.h.  */
30877
30878 /* Override any GCC internal prototype to avoid an error.
30879    Use char because int might match the return type of a GCC
30880    builtin and then its argument prototype would still apply.  */
30881 #ifdef __cplusplus
30882 extern "C"
30883 #endif
30884 char connect ();
30885 int
30886 main ()
30887 {
30888 return connect ();
30889   ;
30890   return 0;
30891 }
30892 _ACEOF
30893 rm -f conftest.$ac_objext conftest$ac_exeext
30894 if { (ac_try="$ac_link"
30895 case "(($ac_try" in
30896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30897   *) ac_try_echo=$ac_try;;
30898 esac
30899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30900   (eval "$ac_link") 2>conftest.er1
30901   ac_status=$?
30902   grep -v '^ *+' conftest.er1 >conftest.err
30903   rm -f conftest.er1
30904   cat conftest.err >&5
30905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30906   (exit $ac_status); } && {
30907          test -z "$ac_c_werror_flag" ||
30908          test ! -s conftest.err
30909        } && test -s conftest$ac_exeext &&
30910        $as_test_x conftest$ac_exeext; then
30911   ac_cv_lib_socket_connect=yes
30912 else
30913   echo "$as_me: failed program was:" >&5
30914 sed 's/^/| /' conftest.$ac_ext >&5
30915
30916         ac_cv_lib_socket_connect=no
30917 fi
30918
30919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30920       conftest$ac_exeext conftest.$ac_ext
30921 LIBS=$ac_check_lib_save_LIBS
30922 fi
30923 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30924 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30925 if test $ac_cv_lib_socket_connect = yes; then
30926   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30927 fi
30928
30929     fi
30930
30931     # Guillermo Gomez says -lposix is necessary on A/UX.
30932     { echo "$as_me:$LINENO: checking for remove" >&5
30933 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30934 if test "${ac_cv_func_remove+set}" = set; then
30935   echo $ECHO_N "(cached) $ECHO_C" >&6
30936 else
30937   cat >conftest.$ac_ext <<_ACEOF
30938 /* confdefs.h.  */
30939 _ACEOF
30940 cat confdefs.h >>conftest.$ac_ext
30941 cat >>conftest.$ac_ext <<_ACEOF
30942 /* end confdefs.h.  */
30943 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30944    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30945 #define remove innocuous_remove
30946
30947 /* System header to define __stub macros and hopefully few prototypes,
30948     which can conflict with char remove (); below.
30949     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30950     <limits.h> exists even on freestanding compilers.  */
30951
30952 #ifdef __STDC__
30953 # include <limits.h>
30954 #else
30955 # include <assert.h>
30956 #endif
30957
30958 #undef remove
30959
30960 /* Override any GCC internal prototype to avoid an error.
30961    Use char because int might match the return type of a GCC
30962    builtin and then its argument prototype would still apply.  */
30963 #ifdef __cplusplus
30964 extern "C"
30965 #endif
30966 char remove ();
30967 /* The GNU C library defines this for functions which it implements
30968     to always fail with ENOSYS.  Some functions are actually named
30969     something starting with __ and the normal name is an alias.  */
30970 #if defined __stub_remove || defined __stub___remove
30971 choke me
30972 #endif
30973
30974 int
30975 main ()
30976 {
30977 return remove ();
30978   ;
30979   return 0;
30980 }
30981 _ACEOF
30982 rm -f conftest.$ac_objext conftest$ac_exeext
30983 if { (ac_try="$ac_link"
30984 case "(($ac_try" in
30985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30986   *) ac_try_echo=$ac_try;;
30987 esac
30988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30989   (eval "$ac_link") 2>conftest.er1
30990   ac_status=$?
30991   grep -v '^ *+' conftest.er1 >conftest.err
30992   rm -f conftest.er1
30993   cat conftest.err >&5
30994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30995   (exit $ac_status); } && {
30996          test -z "$ac_c_werror_flag" ||
30997          test ! -s conftest.err
30998        } && test -s conftest$ac_exeext &&
30999        $as_test_x conftest$ac_exeext; then
31000   ac_cv_func_remove=yes
31001 else
31002   echo "$as_me: failed program was:" >&5
31003 sed 's/^/| /' conftest.$ac_ext >&5
31004
31005         ac_cv_func_remove=no
31006 fi
31007
31008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31009       conftest$ac_exeext conftest.$ac_ext
31010 fi
31011 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
31012 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
31013
31014     if test $ac_cv_func_remove = no; then
31015       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
31016 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
31017 if test "${ac_cv_lib_posix_remove+set}" = set; then
31018   echo $ECHO_N "(cached) $ECHO_C" >&6
31019 else
31020   ac_check_lib_save_LIBS=$LIBS
31021 LIBS="-lposix  $LIBS"
31022 cat >conftest.$ac_ext <<_ACEOF
31023 /* confdefs.h.  */
31024 _ACEOF
31025 cat confdefs.h >>conftest.$ac_ext
31026 cat >>conftest.$ac_ext <<_ACEOF
31027 /* end confdefs.h.  */
31028
31029 /* Override any GCC internal prototype to avoid an error.
31030    Use char because int might match the return type of a GCC
31031    builtin and then its argument prototype would still apply.  */
31032 #ifdef __cplusplus
31033 extern "C"
31034 #endif
31035 char remove ();
31036 int
31037 main ()
31038 {
31039 return remove ();
31040   ;
31041   return 0;
31042 }
31043 _ACEOF
31044 rm -f conftest.$ac_objext conftest$ac_exeext
31045 if { (ac_try="$ac_link"
31046 case "(($ac_try" in
31047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31048   *) ac_try_echo=$ac_try;;
31049 esac
31050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31051   (eval "$ac_link") 2>conftest.er1
31052   ac_status=$?
31053   grep -v '^ *+' conftest.er1 >conftest.err
31054   rm -f conftest.er1
31055   cat conftest.err >&5
31056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31057   (exit $ac_status); } && {
31058          test -z "$ac_c_werror_flag" ||
31059          test ! -s conftest.err
31060        } && test -s conftest$ac_exeext &&
31061        $as_test_x conftest$ac_exeext; then
31062   ac_cv_lib_posix_remove=yes
31063 else
31064   echo "$as_me: failed program was:" >&5
31065 sed 's/^/| /' conftest.$ac_ext >&5
31066
31067         ac_cv_lib_posix_remove=no
31068 fi
31069
31070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31071       conftest$ac_exeext conftest.$ac_ext
31072 LIBS=$ac_check_lib_save_LIBS
31073 fi
31074 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
31075 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
31076 if test $ac_cv_lib_posix_remove = yes; then
31077   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
31078 fi
31079
31080     fi
31081
31082     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
31083     { echo "$as_me:$LINENO: checking for shmat" >&5
31084 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
31085 if test "${ac_cv_func_shmat+set}" = set; then
31086   echo $ECHO_N "(cached) $ECHO_C" >&6
31087 else
31088   cat >conftest.$ac_ext <<_ACEOF
31089 /* confdefs.h.  */
31090 _ACEOF
31091 cat confdefs.h >>conftest.$ac_ext
31092 cat >>conftest.$ac_ext <<_ACEOF
31093 /* end confdefs.h.  */
31094 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
31095    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31096 #define shmat innocuous_shmat
31097
31098 /* System header to define __stub macros and hopefully few prototypes,
31099     which can conflict with char shmat (); below.
31100     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31101     <limits.h> exists even on freestanding compilers.  */
31102
31103 #ifdef __STDC__
31104 # include <limits.h>
31105 #else
31106 # include <assert.h>
31107 #endif
31108
31109 #undef shmat
31110
31111 /* Override any GCC internal prototype to avoid an error.
31112    Use char because int might match the return type of a GCC
31113    builtin and then its argument prototype would still apply.  */
31114 #ifdef __cplusplus
31115 extern "C"
31116 #endif
31117 char shmat ();
31118 /* The GNU C library defines this for functions which it implements
31119     to always fail with ENOSYS.  Some functions are actually named
31120     something starting with __ and the normal name is an alias.  */
31121 #if defined __stub_shmat || defined __stub___shmat
31122 choke me
31123 #endif
31124
31125 int
31126 main ()
31127 {
31128 return shmat ();
31129   ;
31130   return 0;
31131 }
31132 _ACEOF
31133 rm -f conftest.$ac_objext conftest$ac_exeext
31134 if { (ac_try="$ac_link"
31135 case "(($ac_try" in
31136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31137   *) ac_try_echo=$ac_try;;
31138 esac
31139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31140   (eval "$ac_link") 2>conftest.er1
31141   ac_status=$?
31142   grep -v '^ *+' conftest.er1 >conftest.err
31143   rm -f conftest.er1
31144   cat conftest.err >&5
31145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31146   (exit $ac_status); } && {
31147          test -z "$ac_c_werror_flag" ||
31148          test ! -s conftest.err
31149        } && test -s conftest$ac_exeext &&
31150        $as_test_x conftest$ac_exeext; then
31151   ac_cv_func_shmat=yes
31152 else
31153   echo "$as_me: failed program was:" >&5
31154 sed 's/^/| /' conftest.$ac_ext >&5
31155
31156         ac_cv_func_shmat=no
31157 fi
31158
31159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31160       conftest$ac_exeext conftest.$ac_ext
31161 fi
31162 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
31163 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
31164
31165     if test $ac_cv_func_shmat = no; then
31166       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
31167 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
31168 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
31169   echo $ECHO_N "(cached) $ECHO_C" >&6
31170 else
31171   ac_check_lib_save_LIBS=$LIBS
31172 LIBS="-lipc  $LIBS"
31173 cat >conftest.$ac_ext <<_ACEOF
31174 /* confdefs.h.  */
31175 _ACEOF
31176 cat confdefs.h >>conftest.$ac_ext
31177 cat >>conftest.$ac_ext <<_ACEOF
31178 /* end confdefs.h.  */
31179
31180 /* Override any GCC internal prototype to avoid an error.
31181    Use char because int might match the return type of a GCC
31182    builtin and then its argument prototype would still apply.  */
31183 #ifdef __cplusplus
31184 extern "C"
31185 #endif
31186 char shmat ();
31187 int
31188 main ()
31189 {
31190 return shmat ();
31191   ;
31192   return 0;
31193 }
31194 _ACEOF
31195 rm -f conftest.$ac_objext conftest$ac_exeext
31196 if { (ac_try="$ac_link"
31197 case "(($ac_try" in
31198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31199   *) ac_try_echo=$ac_try;;
31200 esac
31201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31202   (eval "$ac_link") 2>conftest.er1
31203   ac_status=$?
31204   grep -v '^ *+' conftest.er1 >conftest.err
31205   rm -f conftest.er1
31206   cat conftest.err >&5
31207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31208   (exit $ac_status); } && {
31209          test -z "$ac_c_werror_flag" ||
31210          test ! -s conftest.err
31211        } && test -s conftest$ac_exeext &&
31212        $as_test_x conftest$ac_exeext; then
31213   ac_cv_lib_ipc_shmat=yes
31214 else
31215   echo "$as_me: failed program was:" >&5
31216 sed 's/^/| /' conftest.$ac_ext >&5
31217
31218         ac_cv_lib_ipc_shmat=no
31219 fi
31220
31221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31222       conftest$ac_exeext conftest.$ac_ext
31223 LIBS=$ac_check_lib_save_LIBS
31224 fi
31225 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
31226 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
31227 if test $ac_cv_lib_ipc_shmat = yes; then
31228   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
31229 fi
31230
31231     fi
31232   fi
31233
31234   # Check for libraries that X11R6 Xt/Xaw programs need.
31235   ac_save_LDFLAGS=$LDFLAGS
31236   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
31237   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
31238   # check for ICE first), but we must link in the order -lSM -lICE or
31239   # we get undefined symbols.  So assume we have SM if we have ICE.
31240   # These have to be linked with before -lX11, unlike the other
31241   # libraries we check for below, so use a different variable.
31242   # John Interrante, Karl Berry
31243   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
31244 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
31245 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
31246   echo $ECHO_N "(cached) $ECHO_C" >&6
31247 else
31248   ac_check_lib_save_LIBS=$LIBS
31249 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
31250 cat >conftest.$ac_ext <<_ACEOF
31251 /* confdefs.h.  */
31252 _ACEOF
31253 cat confdefs.h >>conftest.$ac_ext
31254 cat >>conftest.$ac_ext <<_ACEOF
31255 /* end confdefs.h.  */
31256
31257 /* Override any GCC internal prototype to avoid an error.
31258    Use char because int might match the return type of a GCC
31259    builtin and then its argument prototype would still apply.  */
31260 #ifdef __cplusplus
31261 extern "C"
31262 #endif
31263 char IceConnectionNumber ();
31264 int
31265 main ()
31266 {
31267 return IceConnectionNumber ();
31268   ;
31269   return 0;
31270 }
31271 _ACEOF
31272 rm -f conftest.$ac_objext conftest$ac_exeext
31273 if { (ac_try="$ac_link"
31274 case "(($ac_try" in
31275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31276   *) ac_try_echo=$ac_try;;
31277 esac
31278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31279   (eval "$ac_link") 2>conftest.er1
31280   ac_status=$?
31281   grep -v '^ *+' conftest.er1 >conftest.err
31282   rm -f conftest.er1
31283   cat conftest.err >&5
31284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31285   (exit $ac_status); } && {
31286          test -z "$ac_c_werror_flag" ||
31287          test ! -s conftest.err
31288        } && test -s conftest$ac_exeext &&
31289        $as_test_x conftest$ac_exeext; then
31290   ac_cv_lib_ICE_IceConnectionNumber=yes
31291 else
31292   echo "$as_me: failed program was:" >&5
31293 sed 's/^/| /' conftest.$ac_ext >&5
31294
31295         ac_cv_lib_ICE_IceConnectionNumber=no
31296 fi
31297
31298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31299       conftest$ac_exeext conftest.$ac_ext
31300 LIBS=$ac_check_lib_save_LIBS
31301 fi
31302 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
31303 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
31304 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
31305   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
31306 fi
31307
31308   LDFLAGS=$ac_save_LDFLAGS
31309
31310 fi
31311
31312
31313         if test "$no_x" = "yes"; then
31314           { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
31315 echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
31316    { (exit 1); exit 1; }; }
31317         fi
31318
31319                                 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
31320         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
31321         AFMINSTALL=afminstall
31322         COMPILED_X_PROGRAM=0
31323
31324     fi
31325
31326     if test "$wxUSE_X11" = 1; then
31327         if test "$wxUSE_NANOX" = "yes"; then
31328             { echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
31329 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6; }
31330             if test "x$MICROWIN" = x ; then
31331                 { echo "$as_me:$LINENO: result: not found" >&5
31332 echo "${ECHO_T}not found" >&6; }
31333                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
31334 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
31335    { (exit 1); exit 1; }; }
31336             else
31337                 { echo "$as_me:$LINENO: result: $MICROWIN" >&5
31338 echo "${ECHO_T}$MICROWIN" >&6; }
31339                 cat >>confdefs.h <<\_ACEOF
31340 #define wxUSE_NANOX 1
31341 _ACEOF
31342
31343             fi
31344         fi
31345
31346         if test "$wxUSE_UNICODE" = "yes"; then
31347
31348
31349 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
31350         if test -n "$ac_tool_prefix"; then
31351   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31352 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31353 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31355 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
31356   echo $ECHO_N "(cached) $ECHO_C" >&6
31357 else
31358   case $PKG_CONFIG in
31359   [\\/]* | ?:[\\/]*)
31360   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
31361   ;;
31362   *)
31363   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31364 for as_dir in $PATH
31365 do
31366   IFS=$as_save_IFS
31367   test -z "$as_dir" && as_dir=.
31368   for ac_exec_ext in '' $ac_executable_extensions; do
31369   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31370     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31371     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31372     break 2
31373   fi
31374 done
31375 done
31376 IFS=$as_save_IFS
31377
31378   ;;
31379 esac
31380 fi
31381 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
31382 if test -n "$PKG_CONFIG"; then
31383   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
31384 echo "${ECHO_T}$PKG_CONFIG" >&6; }
31385 else
31386   { echo "$as_me:$LINENO: result: no" >&5
31387 echo "${ECHO_T}no" >&6; }
31388 fi
31389
31390
31391 fi
31392 if test -z "$ac_cv_path_PKG_CONFIG"; then
31393   ac_pt_PKG_CONFIG=$PKG_CONFIG
31394   # Extract the first word of "pkg-config", so it can be a program name with args.
31395 set dummy pkg-config; ac_word=$2
31396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31398 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
31399   echo $ECHO_N "(cached) $ECHO_C" >&6
31400 else
31401   case $ac_pt_PKG_CONFIG in
31402   [\\/]* | ?:[\\/]*)
31403   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
31404   ;;
31405   *)
31406   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31407 for as_dir in $PATH
31408 do
31409   IFS=$as_save_IFS
31410   test -z "$as_dir" && as_dir=.
31411   for ac_exec_ext in '' $ac_executable_extensions; do
31412   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31413     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31414     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31415     break 2
31416   fi
31417 done
31418 done
31419 IFS=$as_save_IFS
31420
31421   ;;
31422 esac
31423 fi
31424 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
31425 if test -n "$ac_pt_PKG_CONFIG"; then
31426   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
31427 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
31428 else
31429   { echo "$as_me:$LINENO: result: no" >&5
31430 echo "${ECHO_T}no" >&6; }
31431 fi
31432
31433   if test "x$ac_pt_PKG_CONFIG" = x; then
31434     PKG_CONFIG=""
31435   else
31436     case $cross_compiling:$ac_tool_warned in
31437 yes:)
31438 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
31439 whose name does not start with the host triplet.  If you think this
31440 configuration is useful to you, please write to autoconf@gnu.org." >&5
31441 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
31442 whose name does not start with the host triplet.  If you think this
31443 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
31444 ac_tool_warned=yes ;;
31445 esac
31446     PKG_CONFIG=$ac_pt_PKG_CONFIG
31447   fi
31448 else
31449   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
31450 fi
31451
31452 fi
31453 if test -n "$PKG_CONFIG"; then
31454         _pkg_min_version=0.9.0
31455         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
31456 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
31457         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
31458                 { echo "$as_me:$LINENO: result: yes" >&5
31459 echo "${ECHO_T}yes" >&6; }
31460         else
31461                 { echo "$as_me:$LINENO: result: no" >&5
31462 echo "${ECHO_T}no" >&6; }
31463                 PKG_CONFIG=""
31464         fi
31465
31466 fi
31467
31468
31469 pkg_failed=no
31470 { echo "$as_me:$LINENO: checking for PANGOX" >&5
31471 echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6; }
31472
31473 if test -n "$PKG_CONFIG"; then
31474     if test -n "$PANGOX_CFLAGS"; then
31475         pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
31476     else
31477         if test -n "$PKG_CONFIG" && \
31478     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
31479   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
31480   ac_status=$?
31481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31482   (exit $ac_status); }; then
31483   pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
31484 else
31485   pkg_failed=yes
31486 fi
31487     fi
31488 else
31489         pkg_failed=untried
31490 fi
31491 if test -n "$PKG_CONFIG"; then
31492     if test -n "$PANGOX_LIBS"; then
31493         pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
31494     else
31495         if test -n "$PKG_CONFIG" && \
31496     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
31497   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
31498   ac_status=$?
31499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31500   (exit $ac_status); }; then
31501   pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
31502 else
31503   pkg_failed=yes
31504 fi
31505     fi
31506 else
31507         pkg_failed=untried
31508 fi
31509
31510
31511
31512 if test $pkg_failed = yes; then
31513
31514 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31515         _pkg_short_errors_supported=yes
31516 else
31517         _pkg_short_errors_supported=no
31518 fi
31519         if test $_pkg_short_errors_supported = yes; then
31520                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
31521         else
31522                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
31523         fi
31524         # Put the nasty error message in config.log where it belongs
31525         echo "$PANGOX_PKG_ERRORS" >&5
31526
31527
31528                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
31529 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
31530    { (exit 1); exit 1; }; }
31531
31532
31533 elif test $pkg_failed = untried; then
31534
31535                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
31536 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
31537    { (exit 1); exit 1; }; }
31538
31539
31540 else
31541         PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
31542         PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
31543         { echo "$as_me:$LINENO: result: yes" >&5
31544 echo "${ECHO_T}yes" >&6; }
31545
31546                     CFLAGS="$PANGOX_CFLAGS $CFLAGS"
31547                     CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
31548                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
31549
31550 fi
31551
31552 pkg_failed=no
31553 { echo "$as_me:$LINENO: checking for PANGOFT2" >&5
31554 echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6; }
31555
31556 if test -n "$PKG_CONFIG"; then
31557     if test -n "$PANGOFT2_CFLAGS"; then
31558         pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
31559     else
31560         if test -n "$PKG_CONFIG" && \
31561     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
31562   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
31563   ac_status=$?
31564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31565   (exit $ac_status); }; then
31566   pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
31567 else
31568   pkg_failed=yes
31569 fi
31570     fi
31571 else
31572         pkg_failed=untried
31573 fi
31574 if test -n "$PKG_CONFIG"; then
31575     if test -n "$PANGOFT2_LIBS"; then
31576         pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
31577     else
31578         if test -n "$PKG_CONFIG" && \
31579     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
31580   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
31581   ac_status=$?
31582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31583   (exit $ac_status); }; then
31584   pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
31585 else
31586   pkg_failed=yes
31587 fi
31588     fi
31589 else
31590         pkg_failed=untried
31591 fi
31592
31593
31594
31595 if test $pkg_failed = yes; then
31596
31597 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31598         _pkg_short_errors_supported=yes
31599 else
31600         _pkg_short_errors_supported=no
31601 fi
31602         if test $_pkg_short_errors_supported = yes; then
31603                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
31604         else
31605                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
31606         fi
31607         # Put the nasty error message in config.log where it belongs
31608         echo "$PANGOFT2_PKG_ERRORS" >&5
31609
31610
31611                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
31612 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
31613                     wxUSE_PRINTING_ARCHITECTURE="no"
31614
31615
31616 elif test $pkg_failed = untried; then
31617
31618                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
31619 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
31620                     wxUSE_PRINTING_ARCHITECTURE="no"
31621
31622
31623 else
31624         PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
31625         PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
31626         { echo "$as_me:$LINENO: result: yes" >&5
31627 echo "${ECHO_T}yes" >&6; }
31628
31629                     CFLAGS="$PANGOFT2_CFLAGS $CFLAGS"
31630                     CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
31631                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
31632
31633 fi
31634
31635 pkg_failed=no
31636 { echo "$as_me:$LINENO: checking for PANGOXFT" >&5
31637 echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6; }
31638
31639 if test -n "$PKG_CONFIG"; then
31640     if test -n "$PANGOXFT_CFLAGS"; then
31641         pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
31642     else
31643         if test -n "$PKG_CONFIG" && \
31644     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
31645   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
31646   ac_status=$?
31647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31648   (exit $ac_status); }; then
31649   pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
31650 else
31651   pkg_failed=yes
31652 fi
31653     fi
31654 else
31655         pkg_failed=untried
31656 fi
31657 if test -n "$PKG_CONFIG"; then
31658     if test -n "$PANGOXFT_LIBS"; then
31659         pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
31660     else
31661         if test -n "$PKG_CONFIG" && \
31662     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
31663   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
31664   ac_status=$?
31665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31666   (exit $ac_status); }; then
31667   pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
31668 else
31669   pkg_failed=yes
31670 fi
31671     fi
31672 else
31673         pkg_failed=untried
31674 fi
31675
31676
31677
31678 if test $pkg_failed = yes; then
31679
31680 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31681         _pkg_short_errors_supported=yes
31682 else
31683         _pkg_short_errors_supported=no
31684 fi
31685         if test $_pkg_short_errors_supported = yes; then
31686                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
31687         else
31688                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
31689         fi
31690         # Put the nasty error message in config.log where it belongs
31691         echo "$PANGOXFT_PKG_ERRORS" >&5
31692
31693
31694                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
31695 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
31696
31697
31698 elif test $pkg_failed = untried; then
31699
31700                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
31701 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
31702
31703
31704 else
31705         PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
31706         PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
31707         { echo "$as_me:$LINENO: result: yes" >&5
31708 echo "${ECHO_T}yes" >&6; }
31709
31710                     cat >>confdefs.h <<\_ACEOF
31711 #define HAVE_PANGO_XFT 1
31712 _ACEOF
31713
31714                     CFLAGS="$PANGOXFT_CFLAGS $CFLAGS"
31715                     CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
31716                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
31717
31718 fi
31719             save_LIBS="$LIBS"
31720             LIBS="$LIBS $PANGOX_LIBS"
31721
31722 for ac_func in pango_font_family_is_monospace
31723 do
31724 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31725 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31726 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31727 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31728   echo $ECHO_N "(cached) $ECHO_C" >&6
31729 else
31730   cat >conftest.$ac_ext <<_ACEOF
31731 /* confdefs.h.  */
31732 _ACEOF
31733 cat confdefs.h >>conftest.$ac_ext
31734 cat >>conftest.$ac_ext <<_ACEOF
31735 /* end confdefs.h.  */
31736 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31737    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31738 #define $ac_func innocuous_$ac_func
31739
31740 /* System header to define __stub macros and hopefully few prototypes,
31741     which can conflict with char $ac_func (); below.
31742     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31743     <limits.h> exists even on freestanding compilers.  */
31744
31745 #ifdef __STDC__
31746 # include <limits.h>
31747 #else
31748 # include <assert.h>
31749 #endif
31750
31751 #undef $ac_func
31752
31753 /* Override any GCC internal prototype to avoid an error.
31754    Use char because int might match the return type of a GCC
31755    builtin and then its argument prototype would still apply.  */
31756 #ifdef __cplusplus
31757 extern "C"
31758 #endif
31759 char $ac_func ();
31760 /* The GNU C library defines this for functions which it implements
31761     to always fail with ENOSYS.  Some functions are actually named
31762     something starting with __ and the normal name is an alias.  */
31763 #if defined __stub_$ac_func || defined __stub___$ac_func
31764 choke me
31765 #endif
31766
31767 int
31768 main ()
31769 {
31770 return $ac_func ();
31771   ;
31772   return 0;
31773 }
31774 _ACEOF
31775 rm -f conftest.$ac_objext conftest$ac_exeext
31776 if { (ac_try="$ac_link"
31777 case "(($ac_try" in
31778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31779   *) ac_try_echo=$ac_try;;
31780 esac
31781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31782   (eval "$ac_link") 2>conftest.er1
31783   ac_status=$?
31784   grep -v '^ *+' conftest.er1 >conftest.err
31785   rm -f conftest.er1
31786   cat conftest.err >&5
31787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31788   (exit $ac_status); } && {
31789          test -z "$ac_c_werror_flag" ||
31790          test ! -s conftest.err
31791        } && test -s conftest$ac_exeext &&
31792        $as_test_x conftest$ac_exeext; then
31793   eval "$as_ac_var=yes"
31794 else
31795   echo "$as_me: failed program was:" >&5
31796 sed 's/^/| /' conftest.$ac_ext >&5
31797
31798         eval "$as_ac_var=no"
31799 fi
31800
31801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31802       conftest$ac_exeext conftest.$ac_ext
31803 fi
31804 ac_res=`eval echo '${'$as_ac_var'}'`
31805                { echo "$as_me:$LINENO: result: $ac_res" >&5
31806 echo "${ECHO_T}$ac_res" >&6; }
31807 if test `eval echo '${'$as_ac_var'}'` = yes; then
31808   cat >>confdefs.h <<_ACEOF
31809 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31810 _ACEOF
31811
31812 fi
31813 done
31814
31815             LIBS="$save_LIBS"
31816         fi
31817
31818         wxUSE_UNIVERSAL="yes"
31819
31820         if test "$wxUSE_NANOX" = "yes"; then
31821             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
31822             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"
31823             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
31824         else
31825             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
31826         fi
31827
31828         TOOLKIT=X11
31829         GUIDIST=X11_DIST
31830     fi
31831
31832     if test "$wxUSE_MOTIF" = 1; then
31833         { echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
31834 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6; }
31835
31836 ac_find_includes=
31837 for ac_dir in $SEARCH_INCLUDE /usr/include;
31838   do
31839     if test -f "$ac_dir/Xm/Xm.h"; then
31840       ac_find_includes=$ac_dir
31841       break
31842     fi
31843   done
31844
31845         if test "$ac_find_includes" != "" ; then
31846             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
31847 echo "${ECHO_T}found in $ac_find_includes" >&6; }
31848
31849     if test "x$ac_find_includes" = "x/usr/include"; then
31850     ac_path_to_include=""
31851   else
31852     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
31853     result=$?
31854     if test $result = 0; then
31855       ac_path_to_include=""
31856     else
31857       ac_path_to_include=" -I$ac_find_includes"
31858     fi
31859   fi
31860
31861             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
31862         else
31863             save_CFLAGS=$CFLAGS
31864             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
31865
31866             cat >conftest.$ac_ext <<_ACEOF
31867 /* confdefs.h.  */
31868 _ACEOF
31869 cat confdefs.h >>conftest.$ac_ext
31870 cat >>conftest.$ac_ext <<_ACEOF
31871 /* end confdefs.h.  */
31872
31873                     #include <Xm/Xm.h>
31874
31875 int
31876 main ()
31877 {
31878
31879                     int version;
31880                     version = xmUseVersion;
31881
31882   ;
31883   return 0;
31884 }
31885 _ACEOF
31886 rm -f conftest.$ac_objext
31887 if { (ac_try="$ac_compile"
31888 case "(($ac_try" in
31889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31890   *) ac_try_echo=$ac_try;;
31891 esac
31892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31893   (eval "$ac_compile") 2>conftest.er1
31894   ac_status=$?
31895   grep -v '^ *+' conftest.er1 >conftest.err
31896   rm -f conftest.er1
31897   cat conftest.err >&5
31898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31899   (exit $ac_status); } && {
31900          test -z "$ac_c_werror_flag" ||
31901          test ! -s conftest.err
31902        } && test -s conftest.$ac_objext; then
31903
31904                     { echo "$as_me:$LINENO: result: found in default search path" >&5
31905 echo "${ECHO_T}found in default search path" >&6; }
31906                     COMPILED_X_PROGRAM=1
31907
31908 else
31909   echo "$as_me: failed program was:" >&5
31910 sed 's/^/| /' conftest.$ac_ext >&5
31911
31912
31913                     { echo "$as_me:$LINENO: result: no" >&5
31914 echo "${ECHO_T}no" >&6; }
31915                     { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
31916 echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
31917    { (exit 1); exit 1; }; }
31918
31919
31920 fi
31921
31922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31923
31924             CFLAGS=$save_CFLAGS
31925         fi
31926
31927
31928         { echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
31929 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6; }
31930
31931   ac_find_libraries=
31932   for ac_dir in $SEARCH_LIB;
31933   do
31934     for ac_extension in a so sl dylib dll.a; do
31935       if test -f "$ac_dir/libXm.$ac_extension"; then
31936         ac_find_libraries=$ac_dir
31937         break 2
31938       fi
31939     done
31940   done
31941
31942
31943         if test "x$ac_find_libraries" != "x" ; then
31944             { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31945 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
31946
31947
31948     if test "$ac_find_libraries" = "default location"; then
31949     ac_path_to_link=""
31950   else
31951     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31952     result=$?
31953     if test $result = 0; then
31954       ac_path_to_link=""
31955     else
31956       ac_path_to_link=" -L$ac_find_libraries"
31957     fi
31958   fi
31959
31960             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
31961         else
31962                                                 save_CFLAGS=$CFLAGS
31963             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
31964             save_LIBS="$LIBS"
31965             LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
31966
31967             cat >conftest.$ac_ext <<_ACEOF
31968 /* confdefs.h.  */
31969 _ACEOF
31970 cat confdefs.h >>conftest.$ac_ext
31971 cat >>conftest.$ac_ext <<_ACEOF
31972 /* end confdefs.h.  */
31973
31974                     #include <Xm/Xm.h>
31975
31976 int
31977 main ()
31978 {
31979
31980                     int version;
31981                     version = xmUseVersion;
31982
31983   ;
31984   return 0;
31985 }
31986 _ACEOF
31987 rm -f conftest.$ac_objext conftest$ac_exeext
31988 if { (ac_try="$ac_link"
31989 case "(($ac_try" in
31990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31991   *) ac_try_echo=$ac_try;;
31992 esac
31993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31994   (eval "$ac_link") 2>conftest.er1
31995   ac_status=$?
31996   grep -v '^ *+' conftest.er1 >conftest.err
31997   rm -f conftest.er1
31998   cat conftest.err >&5
31999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32000   (exit $ac_status); } && {
32001          test -z "$ac_c_werror_flag" ||
32002          test ! -s conftest.err
32003        } && test -s conftest$ac_exeext &&
32004        $as_test_x conftest$ac_exeext; then
32005
32006                     { echo "$as_me:$LINENO: result: found in default search path" >&5
32007 echo "${ECHO_T}found in default search path" >&6; }
32008                     COMPILED_X_PROGRAM=1
32009
32010 else
32011   echo "$as_me: failed program was:" >&5
32012 sed 's/^/| /' conftest.$ac_ext >&5
32013
32014
32015                     { echo "$as_me:$LINENO: result: no" >&5
32016 echo "${ECHO_T}no" >&6; }
32017                     { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
32018 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
32019    { (exit 1); exit 1; }; }
32020
32021
32022 fi
32023
32024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32025       conftest$ac_exeext conftest.$ac_ext
32026
32027             CFLAGS=$save_CFLAGS
32028             LIBS="$save_LIBS"
32029         fi
32030
32031         { echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
32032 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6; }
32033         libp_link=""
32034         libsm_ice_link=""
32035         libs_found=0
32036         for libp in "" " -lXp"; do
32037             if test "$libs_found" = 0; then
32038                 for libsm_ice in "" " -lSM -lICE"; do
32039                     if test "$libs_found" = 0; then
32040                         save_LIBS="$LIBS"
32041                         LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
32042                         save_CFLAGS=$CFLAGS
32043                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32044
32045                         cat >conftest.$ac_ext <<_ACEOF
32046 /* confdefs.h.  */
32047 _ACEOF
32048 cat confdefs.h >>conftest.$ac_ext
32049 cat >>conftest.$ac_ext <<_ACEOF
32050 /* end confdefs.h.  */
32051
32052                                 #include <Xm/Xm.h>
32053                                 #include <Xm/List.h>
32054
32055 int
32056 main ()
32057 {
32058
32059                                 XmString string = NULL;
32060                                 Widget w = NULL;
32061                                 int position = 0;
32062                                 XmListAddItem(w, string, position);
32063
32064   ;
32065   return 0;
32066 }
32067 _ACEOF
32068 rm -f conftest.$ac_objext conftest$ac_exeext
32069 if { (ac_try="$ac_link"
32070 case "(($ac_try" in
32071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32072   *) ac_try_echo=$ac_try;;
32073 esac
32074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32075   (eval "$ac_link") 2>conftest.er1
32076   ac_status=$?
32077   grep -v '^ *+' conftest.er1 >conftest.err
32078   rm -f conftest.er1
32079   cat conftest.err >&5
32080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32081   (exit $ac_status); } && {
32082          test -z "$ac_c_werror_flag" ||
32083          test ! -s conftest.err
32084        } && test -s conftest$ac_exeext &&
32085        $as_test_x conftest$ac_exeext; then
32086
32087                                 libp_link="$libp"
32088                                 libsm_ice_link="$libsm_ice"
32089                                 { echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
32090 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6; }
32091                                 libs_found=1
32092
32093 else
32094   echo "$as_me: failed program was:" >&5
32095 sed 's/^/| /' conftest.$ac_ext >&5
32096
32097
32098
32099 fi
32100
32101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32102       conftest$ac_exeext conftest.$ac_ext
32103
32104                         LIBS="$save_LIBS"
32105                         CFLAGS=$save_CFLAGS
32106                     fi
32107                 done
32108             fi
32109         done
32110
32111         if test "$libs_found" = 0; then
32112             { echo "$as_me:$LINENO: result: can't find the right libraries" >&5
32113 echo "${ECHO_T}can't find the right libraries" >&6; }
32114             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
32115 echo "$as_me: error: can't link a simple motif program" >&2;}
32116    { (exit 1); exit 1; }; }
32117         fi
32118
32119                         { echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
32120 echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6; }
32121 if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
32122   echo $ECHO_N "(cached) $ECHO_C" >&6
32123 else
32124   ac_check_lib_save_LIBS=$LIBS
32125 LIBS="-lSgm  $LIBS"
32126 cat >conftest.$ac_ext <<_ACEOF
32127 /* confdefs.h.  */
32128 _ACEOF
32129 cat confdefs.h >>conftest.$ac_ext
32130 cat >>conftest.$ac_ext <<_ACEOF
32131 /* end confdefs.h.  */
32132
32133 /* Override any GCC internal prototype to avoid an error.
32134    Use char because int might match the return type of a GCC
32135    builtin and then its argument prototype would still apply.  */
32136 #ifdef __cplusplus
32137 extern "C"
32138 #endif
32139 char SgCreateList ();
32140 int
32141 main ()
32142 {
32143 return SgCreateList ();
32144   ;
32145   return 0;
32146 }
32147 _ACEOF
32148 rm -f conftest.$ac_objext conftest$ac_exeext
32149 if { (ac_try="$ac_link"
32150 case "(($ac_try" in
32151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32152   *) ac_try_echo=$ac_try;;
32153 esac
32154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32155   (eval "$ac_link") 2>conftest.er1
32156   ac_status=$?
32157   grep -v '^ *+' conftest.er1 >conftest.err
32158   rm -f conftest.er1
32159   cat conftest.err >&5
32160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32161   (exit $ac_status); } && {
32162          test -z "$ac_c_werror_flag" ||
32163          test ! -s conftest.err
32164        } && test -s conftest$ac_exeext &&
32165        $as_test_x conftest$ac_exeext; then
32166   ac_cv_lib_Sgm_SgCreateList=yes
32167 else
32168   echo "$as_me: failed program was:" >&5
32169 sed 's/^/| /' conftest.$ac_ext >&5
32170
32171         ac_cv_lib_Sgm_SgCreateList=no
32172 fi
32173
32174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32175       conftest$ac_exeext conftest.$ac_ext
32176 LIBS=$ac_check_lib_save_LIBS
32177 fi
32178 { echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
32179 echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6; }
32180 if test $ac_cv_lib_Sgm_SgCreateList = yes; then
32181   libsgm_link=" -lSgm"
32182 fi
32183
32184
32185         save_CFLAGS=$CFLAGS
32186         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32187
32188         { echo "$as_me:$LINENO: checking for Motif 2" >&5
32189 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6; }
32190 if test "${wx_cv_lib_motif2+set}" = set; then
32191   echo $ECHO_N "(cached) $ECHO_C" >&6
32192 else
32193   cat >conftest.$ac_ext <<_ACEOF
32194 /* confdefs.h.  */
32195 _ACEOF
32196 cat confdefs.h >>conftest.$ac_ext
32197 cat >>conftest.$ac_ext <<_ACEOF
32198 /* end confdefs.h.  */
32199
32200                             #include <Xm/Xm.h>
32201
32202 int
32203 main ()
32204 {
32205
32206                             #if XmVersion < 2000
32207                             Not Motif 2
32208                             #endif
32209
32210   ;
32211   return 0;
32212 }
32213 _ACEOF
32214 rm -f conftest.$ac_objext
32215 if { (ac_try="$ac_compile"
32216 case "(($ac_try" in
32217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32218   *) ac_try_echo=$ac_try;;
32219 esac
32220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32221   (eval "$ac_compile") 2>conftest.er1
32222   ac_status=$?
32223   grep -v '^ *+' conftest.er1 >conftest.err
32224   rm -f conftest.er1
32225   cat conftest.err >&5
32226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32227   (exit $ac_status); } && {
32228          test -z "$ac_c_werror_flag" ||
32229          test ! -s conftest.err
32230        } && test -s conftest.$ac_objext; then
32231   wx_cv_lib_motif2="yes"
32232 else
32233   echo "$as_me: failed program was:" >&5
32234 sed 's/^/| /' conftest.$ac_ext >&5
32235
32236         wx_cv_lib_motif2="no"
32237 fi
32238
32239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32240 fi
32241 { echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
32242 echo "${ECHO_T}$wx_cv_lib_motif2" >&6; }
32243         if test "$wx_cv_lib_motif2" = "yes"; then
32244             cat >>confdefs.h <<\_ACEOF
32245 #define __WXMOTIF20__ 1
32246 _ACEOF
32247
32248         else
32249             cat >>confdefs.h <<\_ACEOF
32250 #define __WXMOTIF20__ 0
32251 _ACEOF
32252
32253         fi
32254
32255         { echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
32256 echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6; }
32257 if test "${wx_cv_lib_lesstif+set}" = set; then
32258   echo $ECHO_N "(cached) $ECHO_C" >&6
32259 else
32260   cat >conftest.$ac_ext <<_ACEOF
32261 /* confdefs.h.  */
32262 _ACEOF
32263 cat confdefs.h >>conftest.$ac_ext
32264 cat >>conftest.$ac_ext <<_ACEOF
32265 /* end confdefs.h.  */
32266
32267                             #include <Xm/Xm.h>
32268
32269 int
32270 main ()
32271 {
32272
32273                             #if !defined(LesstifVersion) || LesstifVersion <= 0
32274                             Not Lesstif
32275                             #endif
32276
32277   ;
32278   return 0;
32279 }
32280 _ACEOF
32281 rm -f conftest.$ac_objext
32282 if { (ac_try="$ac_compile"
32283 case "(($ac_try" in
32284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32285   *) ac_try_echo=$ac_try;;
32286 esac
32287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32288   (eval "$ac_compile") 2>conftest.er1
32289   ac_status=$?
32290   grep -v '^ *+' conftest.er1 >conftest.err
32291   rm -f conftest.er1
32292   cat conftest.err >&5
32293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32294   (exit $ac_status); } && {
32295          test -z "$ac_c_werror_flag" ||
32296          test ! -s conftest.err
32297        } && test -s conftest.$ac_objext; then
32298   wx_cv_lib_lesstif="yes"
32299 else
32300   echo "$as_me: failed program was:" >&5
32301 sed 's/^/| /' conftest.$ac_ext >&5
32302
32303         wx_cv_lib_lesstif="no"
32304 fi
32305
32306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32307
32308 fi
32309 { echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
32310 echo "${ECHO_T}$wx_cv_lib_lesstif" >&6; }
32311         if test "$wx_cv_lib_lesstif" = "yes"; then
32312             cat >>confdefs.h <<\_ACEOF
32313 #define __WXLESSTIF__ 1
32314 _ACEOF
32315
32316         else
32317             cat >>confdefs.h <<\_ACEOF
32318 #define __WXLESSTIF__ 0
32319 _ACEOF
32320
32321         fi
32322
32323         CFLAGS=$save_CFLAGS
32324
32325         GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
32326         TOOLKIT=MOTIF
32327         GUIDIST=MOTIF_DIST
32328     fi
32329
32330         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
32331                 if test "$wxUSE_LIBXPM" = "sys"; then
32332             { echo "$as_me:$LINENO: checking for Xpm library" >&5
32333 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6; }
32334
32335   ac_find_libraries=
32336   for ac_dir in $SEARCH_LIB;
32337   do
32338     for ac_extension in a so sl dylib dll.a; do
32339       if test -f "$ac_dir/libXpm.$ac_extension"; then
32340         ac_find_libraries=$ac_dir
32341         break 2
32342       fi
32343     done
32344   done
32345
32346             if test "$ac_find_libraries" != "" ; then
32347
32348     if test "$ac_find_libraries" = "default location"; then
32349     ac_path_to_link=""
32350   else
32351     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
32352     result=$?
32353     if test $result = 0; then
32354       ac_path_to_link=""
32355     else
32356       ac_path_to_link=" -L$ac_find_libraries"
32357     fi
32358   fi
32359
32360                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
32361                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
32362 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
32363
32364                 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
32365 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
32366 if test "${wx_cv_x11_xpm_h+set}" = set; then
32367   echo $ECHO_N "(cached) $ECHO_C" >&6
32368 else
32369
32370                         save_CFLAGS=$CFLAGS
32371                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32372
32373                         cat >conftest.$ac_ext <<_ACEOF
32374 /* confdefs.h.  */
32375 _ACEOF
32376 cat confdefs.h >>conftest.$ac_ext
32377 cat >>conftest.$ac_ext <<_ACEOF
32378 /* end confdefs.h.  */
32379
32380                                 #include <X11/xpm.h>
32381
32382 int
32383 main ()
32384 {
32385
32386                                 int version;
32387                                 version = XpmLibraryVersion();
32388
32389   ;
32390   return 0;
32391 }
32392 _ACEOF
32393 rm -f conftest.$ac_objext
32394 if { (ac_try="$ac_compile"
32395 case "(($ac_try" in
32396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32397   *) ac_try_echo=$ac_try;;
32398 esac
32399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32400   (eval "$ac_compile") 2>conftest.er1
32401   ac_status=$?
32402   grep -v '^ *+' conftest.er1 >conftest.err
32403   rm -f conftest.er1
32404   cat conftest.err >&5
32405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32406   (exit $ac_status); } && {
32407          test -z "$ac_c_werror_flag" ||
32408          test ! -s conftest.err
32409        } && test -s conftest.$ac_objext; then
32410   wx_cv_x11_xpm_h=yes
32411 else
32412   echo "$as_me: failed program was:" >&5
32413 sed 's/^/| /' conftest.$ac_ext >&5
32414
32415         wx_cv_x11_xpm_h=no
32416
32417 fi
32418
32419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32420
32421                         CFLAGS=$save_CFLAGS
32422
32423
32424 fi
32425 { echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
32426 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6; }
32427
32428                 if test $wx_cv_x11_xpm_h = "yes"; then
32429                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
32430                     cat >>confdefs.h <<\_ACEOF
32431 #define wxHAVE_LIB_XPM 1
32432 _ACEOF
32433
32434                 else
32435                     { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
32436 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
32437                 fi
32438             fi
32439
32440         fi
32441
32442                 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
32443 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
32444 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
32445   echo $ECHO_N "(cached) $ECHO_C" >&6
32446 else
32447   ac_check_lib_save_LIBS=$LIBS
32448 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
32449 cat >conftest.$ac_ext <<_ACEOF
32450 /* confdefs.h.  */
32451 _ACEOF
32452 cat confdefs.h >>conftest.$ac_ext
32453 cat >>conftest.$ac_ext <<_ACEOF
32454 /* end confdefs.h.  */
32455
32456 /* Override any GCC internal prototype to avoid an error.
32457    Use char because int might match the return type of a GCC
32458    builtin and then its argument prototype would still apply.  */
32459 #ifdef __cplusplus
32460 extern "C"
32461 #endif
32462 char XShapeQueryExtension ();
32463 int
32464 main ()
32465 {
32466 return XShapeQueryExtension ();
32467   ;
32468   return 0;
32469 }
32470 _ACEOF
32471 rm -f conftest.$ac_objext conftest$ac_exeext
32472 if { (ac_try="$ac_link"
32473 case "(($ac_try" in
32474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32475   *) ac_try_echo=$ac_try;;
32476 esac
32477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32478   (eval "$ac_link") 2>conftest.er1
32479   ac_status=$?
32480   grep -v '^ *+' conftest.er1 >conftest.err
32481   rm -f conftest.er1
32482   cat conftest.err >&5
32483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32484   (exit $ac_status); } && {
32485          test -z "$ac_c_werror_flag" ||
32486          test ! -s conftest.err
32487        } && test -s conftest$ac_exeext &&
32488        $as_test_x conftest$ac_exeext; then
32489   ac_cv_lib_Xext_XShapeQueryExtension=yes
32490 else
32491   echo "$as_me: failed program was:" >&5
32492 sed 's/^/| /' conftest.$ac_ext >&5
32493
32494         ac_cv_lib_Xext_XShapeQueryExtension=no
32495 fi
32496
32497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32498       conftest$ac_exeext conftest.$ac_ext
32499 LIBS=$ac_check_lib_save_LIBS
32500 fi
32501 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
32502 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
32503 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
32504
32505                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
32506                       wxHAVE_XEXT_LIB=1
32507
32508 fi
32509
32510
32511         if test "$wxHAVE_XEXT_LIB" = 1; then
32512             save_CFLAGS="$CFLAGS"
32513             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32514
32515             { echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
32516 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6; }
32517             cat >conftest.$ac_ext <<_ACEOF
32518 /* confdefs.h.  */
32519 _ACEOF
32520 cat confdefs.h >>conftest.$ac_ext
32521 cat >>conftest.$ac_ext <<_ACEOF
32522 /* end confdefs.h.  */
32523
32524                             #include <X11/Xlib.h>
32525                             #include <X11/extensions/shape.h>
32526
32527 int
32528 main ()
32529 {
32530
32531                             int dummy1, dummy2;
32532                             XShapeQueryExtension((Display*)NULL,
32533                                                  (int*)NULL, (int*)NULL);
32534
32535   ;
32536   return 0;
32537 }
32538 _ACEOF
32539 rm -f conftest.$ac_objext
32540 if { (ac_try="$ac_compile"
32541 case "(($ac_try" in
32542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32543   *) ac_try_echo=$ac_try;;
32544 esac
32545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32546   (eval "$ac_compile") 2>conftest.er1
32547   ac_status=$?
32548   grep -v '^ *+' conftest.er1 >conftest.err
32549   rm -f conftest.er1
32550   cat conftest.err >&5
32551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32552   (exit $ac_status); } && {
32553          test -z "$ac_c_werror_flag" ||
32554          test ! -s conftest.err
32555        } && test -s conftest.$ac_objext; then
32556
32557                             cat >>confdefs.h <<\_ACEOF
32558 #define HAVE_XSHAPE 1
32559 _ACEOF
32560
32561                             { echo "$as_me:$LINENO: result: found" >&5
32562 echo "${ECHO_T}found" >&6; }
32563
32564 else
32565   echo "$as_me: failed program was:" >&5
32566 sed 's/^/| /' conftest.$ac_ext >&5
32567
32568
32569                             { echo "$as_me:$LINENO: result: not found" >&5
32570 echo "${ECHO_T}not found" >&6; }
32571
32572 fi
32573
32574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32575             CFLAGS="$save_CFLAGS"
32576
32577         fi
32578     fi
32579
32580     if test "$wxUSE_OSX_CARBON" = 1; then
32581         { echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
32582 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6; }
32583         if test "$GCC" = yes; then
32584             { echo "$as_me:$LINENO: result: gcc" >&5
32585 echo "${ECHO_T}gcc" >&6; }
32586             CPPFLAGS_PASCAL="-fpascal-strings"
32587         elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
32588             { echo "$as_me:$LINENO: result: xlc" >&5
32589 echo "${ECHO_T}xlc" >&6; }
32590             CPPFLAGS_PASCAL="-qmacpstr"
32591         else
32592             { echo "$as_me:$LINENO: result: none" >&5
32593 echo "${ECHO_T}none" >&6; }
32594         fi
32595
32596         if test "x$wxUSE_UNIX" = "xyes"; then
32597             CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
32598         else
32599                         CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
32600         fi
32601
32602         TOOLKIT=OSX_CARBON
32603                 GUIDIST=OSX_CARBON_DIST
32604                         WXBASEPORT="_carbon"
32605     fi
32606
32607     if test "$wxUSE_OSX_COCOA" = 1; then
32608         TOOLKIT=OSX_COCOA
32609         GUIDIST=OSX_COCOA_DIST
32610     fi
32611
32612     if test "$wxUSE_COCOA" = 1; then
32613         TOOLKIT=COCOA
32614         GUIDIST=COCOA_DIST
32615     fi
32616
32617     if test "$wxUSE_PM" = 1; then
32618         TOOLKIT=PM
32619         GUIDIST=PM_DIST
32620         { echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
32621 echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6; }
32622 if test "${wx_cv_spbcdata+set}" = set; then
32623   echo $ECHO_N "(cached) $ECHO_C" >&6
32624 else
32625
32626                 cat >conftest.$ac_ext <<_ACEOF
32627 /* confdefs.h.  */
32628 _ACEOF
32629 cat confdefs.h >>conftest.$ac_ext
32630 cat >>conftest.$ac_ext <<_ACEOF
32631 /* end confdefs.h.  */
32632
32633                         #define INCL_PM
32634                         #include <os2.h>
32635
32636 int
32637 main ()
32638 {
32639
32640                         SPBCDATA test;
32641
32642   ;
32643   return 0;
32644 }
32645 _ACEOF
32646 rm -f conftest.$ac_objext
32647 if { (ac_try="$ac_compile"
32648 case "(($ac_try" in
32649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32650   *) ac_try_echo=$ac_try;;
32651 esac
32652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32653   (eval "$ac_compile") 2>conftest.er1
32654   ac_status=$?
32655   grep -v '^ *+' conftest.er1 >conftest.err
32656   rm -f conftest.er1
32657   cat conftest.err >&5
32658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32659   (exit $ac_status); } && {
32660          test -z "$ac_c_werror_flag" ||
32661          test ! -s conftest.err
32662        } && test -s conftest.$ac_objext; then
32663   wx_cv_spbcdata=yes
32664 else
32665   echo "$as_me: failed program was:" >&5
32666 sed 's/^/| /' conftest.$ac_ext >&5
32667
32668         wx_cv_spbcdata=no
32669
32670 fi
32671
32672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32673
32674
32675 fi
32676 { echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
32677 echo "${ECHO_T}$wx_cv_spbcdata" >&6; }
32678
32679         if test $wx_cv_spbcdata = "yes"; then
32680             cat >>confdefs.h <<\_ACEOF
32681 #define HAVE_SPBCDATA 1
32682 _ACEOF
32683
32684         fi
32685     fi
32686
32687         if test "$TOOLKIT" = "PM" ; then
32688         TOOLKIT_DIR="os2"
32689     else
32690         TOOLKIT_DIR=`echo ${TOOLKIT} | tr '[A-Z]' '[a-z]'`
32691     fi
32692
32693     if test "$wxUSE_UNIVERSAL" = "yes"; then
32694         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
32695         WIDGET_SET=univ
32696     fi
32697
32698         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
32699     DISTDIR="wx\$(TOOLKIT)"
32700 else
32701     USE_GUI=0
32702
32703             TOOLKIT_DIR="base"
32704
32705         if test "$USE_WIN32" = 1 ; then
32706                         TOOLKIT="MSW"
32707     fi
32708
32709         GUIDIST="BASE_DIST"
32710     DISTDIR="wxBase"
32711 fi
32712
32713
32714
32715 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "auto" ; then
32716     if test "$USE_UNIX" = 1 -a "$wxUSE_DARWIN" != 1 ; then
32717         wxUSE_UNICODE_UTF8=yes
32718     elif test "$USE_OS2" = 1 ; then
32719                                 wxUSE_UNICODE_UTF8=yes
32720     else
32721         wxUSE_UNICODE_UTF8=no
32722     fi
32723 fi
32724
32725
32726 if test "$wxUSE_GUI" = "yes"; then
32727     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
32728
32729 for ac_header in X11/Xlib.h
32730 do
32731 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32732 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32734 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32735   echo $ECHO_N "(cached) $ECHO_C" >&6
32736 else
32737   cat >conftest.$ac_ext <<_ACEOF
32738 /* confdefs.h.  */
32739 _ACEOF
32740 cat confdefs.h >>conftest.$ac_ext
32741 cat >>conftest.$ac_ext <<_ACEOF
32742 /* end confdefs.h.  */
32743
32744
32745 #include <$ac_header>
32746 _ACEOF
32747 rm -f conftest.$ac_objext
32748 if { (ac_try="$ac_compile"
32749 case "(($ac_try" in
32750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32751   *) ac_try_echo=$ac_try;;
32752 esac
32753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32754   (eval "$ac_compile") 2>conftest.er1
32755   ac_status=$?
32756   grep -v '^ *+' conftest.er1 >conftest.err
32757   rm -f conftest.er1
32758   cat conftest.err >&5
32759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32760   (exit $ac_status); } && {
32761          test -z "$ac_c_werror_flag" ||
32762          test ! -s conftest.err
32763        } && test -s conftest.$ac_objext; then
32764   eval "$as_ac_Header=yes"
32765 else
32766   echo "$as_me: failed program was:" >&5
32767 sed 's/^/| /' conftest.$ac_ext >&5
32768
32769         eval "$as_ac_Header=no"
32770 fi
32771
32772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32773 fi
32774 ac_res=`eval echo '${'$as_ac_Header'}'`
32775                { echo "$as_me:$LINENO: result: $ac_res" >&5
32776 echo "${ECHO_T}$ac_res" >&6; }
32777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32778   cat >>confdefs.h <<_ACEOF
32779 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32780 _ACEOF
32781
32782 fi
32783
32784 done
32785
32786
32787 for ac_header in X11/XKBlib.h
32788 do
32789 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32790 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32793   echo $ECHO_N "(cached) $ECHO_C" >&6
32794 else
32795   cat >conftest.$ac_ext <<_ACEOF
32796 /* confdefs.h.  */
32797 _ACEOF
32798 cat confdefs.h >>conftest.$ac_ext
32799 cat >>conftest.$ac_ext <<_ACEOF
32800 /* end confdefs.h.  */
32801
32802                           #if HAVE_X11_XLIB_H
32803                             #include <X11/Xlib.h>
32804                           #endif
32805
32806
32807 #include <$ac_header>
32808 _ACEOF
32809 rm -f conftest.$ac_objext
32810 if { (ac_try="$ac_compile"
32811 case "(($ac_try" in
32812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32813   *) ac_try_echo=$ac_try;;
32814 esac
32815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32816   (eval "$ac_compile") 2>conftest.er1
32817   ac_status=$?
32818   grep -v '^ *+' conftest.er1 >conftest.err
32819   rm -f conftest.er1
32820   cat conftest.err >&5
32821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32822   (exit $ac_status); } && {
32823          test -z "$ac_c_werror_flag" ||
32824          test ! -s conftest.err
32825        } && test -s conftest.$ac_objext; then
32826   eval "$as_ac_Header=yes"
32827 else
32828   echo "$as_me: failed program was:" >&5
32829 sed 's/^/| /' conftest.$ac_ext >&5
32830
32831         eval "$as_ac_Header=no"
32832 fi
32833
32834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32835 fi
32836 ac_res=`eval echo '${'$as_ac_Header'}'`
32837                { echo "$as_me:$LINENO: result: $ac_res" >&5
32838 echo "${ECHO_T}$ac_res" >&6; }
32839 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32840   cat >>confdefs.h <<_ACEOF
32841 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32842 _ACEOF
32843
32844 fi
32845
32846 done
32847
32848     fi
32849 fi
32850
32851
32852
32853 if test "$wxUSE_DISPLAY" = "yes"; then
32854     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
32855         { echo "$as_me:$LINENO: checking for Xinerama" >&5
32856 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6; }
32857
32858   ac_find_libraries=
32859   for ac_dir in $SEARCH_LIB;
32860   do
32861     for ac_extension in a so sl dylib dll.a; do
32862       if test -f "$ac_dir/libXinerama.$ac_extension"; then
32863         ac_find_libraries=$ac_dir
32864         break 2
32865       fi
32866     done
32867   done
32868
32869         if test "$ac_find_libraries" != "" ; then
32870
32871     if test "$ac_find_libraries" = "default location"; then
32872     ac_path_to_link=""
32873   else
32874     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32875     result=$?
32876     if test $result = 0; then
32877       ac_path_to_link=""
32878     else
32879       ac_path_to_link=" -L$ac_find_libraries"
32880     fi
32881   fi
32882
32883             if test "$ac_path_to_link" != " -L/usr/lib" ; then
32884                 LDFLAGS="$LDFLAGS $ac_path_to_link"
32885             fi
32886             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
32887             { echo "$as_me:$LINENO: result: yes" >&5
32888 echo "${ECHO_T}yes" >&6; }
32889
32890             { echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
32891 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6; }
32892
32893   ac_find_libraries=
32894   for ac_dir in $SEARCH_LIB;
32895   do
32896     for ac_extension in a so sl dylib dll.a; do
32897       if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
32898         ac_find_libraries=$ac_dir
32899         break 2
32900       fi
32901     done
32902   done
32903
32904             if test "$ac_find_libraries" != "" ; then
32905                 { echo "$as_me:$LINENO: result: yes" >&5
32906 echo "${ECHO_T}yes" >&6; }
32907
32908 for ac_header in X11/extensions/xf86vmode.h
32909 do
32910 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32911 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32914   echo $ECHO_N "(cached) $ECHO_C" >&6
32915 else
32916   cat >conftest.$ac_ext <<_ACEOF
32917 /* confdefs.h.  */
32918 _ACEOF
32919 cat confdefs.h >>conftest.$ac_ext
32920 cat >>conftest.$ac_ext <<_ACEOF
32921 /* end confdefs.h.  */
32922
32923                                       #if HAVE_X11_XLIB_H
32924                                         #include <X11/Xlib.h>
32925                                       #endif
32926
32927
32928 #include <$ac_header>
32929 _ACEOF
32930 rm -f conftest.$ac_objext
32931 if { (ac_try="$ac_compile"
32932 case "(($ac_try" in
32933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32934   *) ac_try_echo=$ac_try;;
32935 esac
32936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32937   (eval "$ac_compile") 2>conftest.er1
32938   ac_status=$?
32939   grep -v '^ *+' conftest.er1 >conftest.err
32940   rm -f conftest.er1
32941   cat conftest.err >&5
32942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32943   (exit $ac_status); } && {
32944          test -z "$ac_c_werror_flag" ||
32945          test ! -s conftest.err
32946        } && test -s conftest.$ac_objext; then
32947   eval "$as_ac_Header=yes"
32948 else
32949   echo "$as_me: failed program was:" >&5
32950 sed 's/^/| /' conftest.$ac_ext >&5
32951
32952         eval "$as_ac_Header=no"
32953 fi
32954
32955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32956 fi
32957 ac_res=`eval echo '${'$as_ac_Header'}'`
32958                { echo "$as_me:$LINENO: result: $ac_res" >&5
32959 echo "${ECHO_T}$ac_res" >&6; }
32960 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32961   cat >>confdefs.h <<_ACEOF
32962 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32963 _ACEOF
32964
32965                                   GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
32966
32967 fi
32968
32969 done
32970
32971             else
32972                 { echo "$as_me:$LINENO: result: no" >&5
32973 echo "${ECHO_T}no" >&6; }
32974             fi
32975
32976         else
32977             { echo "$as_me:$LINENO: result: no" >&5
32978 echo "${ECHO_T}no" >&6; }
32979             { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
32980 echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
32981             wxUSE_DISPLAY="no"
32982         fi
32983     elif test "$wxUSE_MSW" = 1; then
32984         { echo "$as_me:$LINENO: checking for ddraw.h" >&5
32985 echo $ECHO_N "checking for ddraw.h... $ECHO_C" >&6; }
32986 if test "${ac_cv_header_ddraw_h+set}" = set; then
32987   echo $ECHO_N "(cached) $ECHO_C" >&6
32988 else
32989   cat >conftest.$ac_ext <<_ACEOF
32990 /* confdefs.h.  */
32991 _ACEOF
32992 cat confdefs.h >>conftest.$ac_ext
32993 cat >>conftest.$ac_ext <<_ACEOF
32994 /* end confdefs.h.  */
32995 #include <windows.h>
32996
32997 #include <ddraw.h>
32998 _ACEOF
32999 rm -f conftest.$ac_objext
33000 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
33016   ac_cv_header_ddraw_h=yes
33017 else
33018   echo "$as_me: failed program was:" >&5
33019 sed 's/^/| /' conftest.$ac_ext >&5
33020
33021         ac_cv_header_ddraw_h=no
33022 fi
33023
33024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33025 fi
33026 { echo "$as_me:$LINENO: result: $ac_cv_header_ddraw_h" >&5
33027 echo "${ECHO_T}$ac_cv_header_ddraw_h" >&6; }
33028
33029
33030     fi
33031 fi
33032
33033 if test "$wxUSE_DETECT_SM" = "yes"; then
33034     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
33035         { echo "$as_me:$LINENO: checking for -lSM - X11 session management" >&5
33036 echo $ECHO_N "checking for -lSM - X11 session management... $ECHO_C" >&6; }
33037
33038   ac_find_libraries=
33039   for ac_dir in $SEARCH_LIB;
33040   do
33041     for ac_extension in a so sl dylib dll.a; do
33042       if test -f "$ac_dir/libSM.$ac_extension"; then
33043         ac_find_libraries=$ac_dir
33044         break 2
33045       fi
33046     done
33047   done
33048
33049         if test "$ac_find_libraries" != "" ; then
33050
33051     if test "$ac_find_libraries" = "default location"; then
33052     ac_path_to_link=""
33053   else
33054     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33055     result=$?
33056     if test $result = 0; then
33057       ac_path_to_link=""
33058     else
33059       ac_path_to_link=" -L$ac_find_libraries"
33060     fi
33061   fi
33062
33063             if test "$ac_path_to_link" != " -L/usr/lib" ; then
33064                 LDFLAGS="$LDFLAGS $ac_path_to_link"
33065             fi
33066             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lSM"
33067             { echo "$as_me:$LINENO: result: yes" >&5
33068 echo "${ECHO_T}yes" >&6; }
33069         else
33070             { echo "$as_me:$LINENO: result: no" >&5
33071 echo "${ECHO_T}no" >&6; }
33072             { echo "$as_me:$LINENO: WARNING: libSM not found; disabling session management detection" >&5
33073 echo "$as_me: WARNING: libSM not found; disabling session management detection" >&2;}
33074             wxUSE_DETECT_SM="no"
33075         fi
33076     else
33077         wxUSE_DETECT_SM="no"
33078     fi
33079 fi
33080
33081
33082
33083 USE_OPENGL=0
33084 if test "$wxUSE_OPENGL" = "yes" -o "$wxUSE_OPENGL" = "auto"; then
33085
33086
33087     if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1 -o "$wxUSE_COCOA" = 1; then
33088         OPENGL_LIBS="-framework OpenGL -framework AGL"
33089     elif test "$wxUSE_MSW" = 1; then
33090         OPENGL_LIBS="-lopengl32 -lglu32"
33091     elif test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_GTK2" = 1 -o "$wxUSE_GTK" = 1; then
33092
33093                         { echo "$as_me:$LINENO: checking for OpenGL headers" >&5
33094 echo $ECHO_N "checking for OpenGL headers... $ECHO_C" >&6; }
33095
33096 ac_find_includes=
33097 for ac_dir in $SEARCH_INCLUDE /opt/graphics/OpenGL/include /usr/include;
33098   do
33099     if test -f "$ac_dir/GL/gl.h"; then
33100       ac_find_includes=$ac_dir
33101       break
33102     fi
33103   done
33104
33105         if test "$ac_find_includes" != "" ; then
33106             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
33107 echo "${ECHO_T}found in $ac_find_includes" >&6; }
33108
33109     if test "x$ac_find_includes" = "x/usr/include"; then
33110     ac_path_to_include=""
33111   else
33112     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
33113     result=$?
33114     if test $result = 0; then
33115       ac_path_to_include=""
33116     else
33117       ac_path_to_include=" -I$ac_find_includes"
33118     fi
33119   fi
33120
33121             CPPFLAGS="$ac_path_to_include $CPPFLAGS"
33122         else
33123             { echo "$as_me:$LINENO: result: not found" >&5
33124 echo "${ECHO_T}not found" >&6; }
33125         fi
33126
33127         { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
33128 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
33129 if test "${ac_cv_header_GL_gl_h+set}" = set; then
33130   echo $ECHO_N "(cached) $ECHO_C" >&6
33131 else
33132   cat >conftest.$ac_ext <<_ACEOF
33133 /* confdefs.h.  */
33134 _ACEOF
33135 cat confdefs.h >>conftest.$ac_ext
33136 cat >>conftest.$ac_ext <<_ACEOF
33137 /* end confdefs.h.  */
33138
33139
33140 #include <GL/gl.h>
33141 _ACEOF
33142 rm -f conftest.$ac_objext
33143 if { (ac_try="$ac_compile"
33144 case "(($ac_try" in
33145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33146   *) ac_try_echo=$ac_try;;
33147 esac
33148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33149   (eval "$ac_compile") 2>conftest.er1
33150   ac_status=$?
33151   grep -v '^ *+' conftest.er1 >conftest.err
33152   rm -f conftest.er1
33153   cat conftest.err >&5
33154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33155   (exit $ac_status); } && {
33156          test -z "$ac_c_werror_flag" ||
33157          test ! -s conftest.err
33158        } && test -s conftest.$ac_objext; then
33159   ac_cv_header_GL_gl_h=yes
33160 else
33161   echo "$as_me: failed program was:" >&5
33162 sed 's/^/| /' conftest.$ac_ext >&5
33163
33164         ac_cv_header_GL_gl_h=no
33165 fi
33166
33167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33168 fi
33169 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
33170 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
33171 if test $ac_cv_header_GL_gl_h = yes; then
33172
33173             { echo "$as_me:$LINENO: checking for GL/glu.h" >&5
33174 echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6; }
33175 if test "${ac_cv_header_GL_glu_h+set}" = set; then
33176   echo $ECHO_N "(cached) $ECHO_C" >&6
33177 else
33178   cat >conftest.$ac_ext <<_ACEOF
33179 /* confdefs.h.  */
33180 _ACEOF
33181 cat confdefs.h >>conftest.$ac_ext
33182 cat >>conftest.$ac_ext <<_ACEOF
33183 /* end confdefs.h.  */
33184
33185
33186 #include <GL/glu.h>
33187 _ACEOF
33188 rm -f conftest.$ac_objext
33189 if { (ac_try="$ac_compile"
33190 case "(($ac_try" in
33191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33192   *) ac_try_echo=$ac_try;;
33193 esac
33194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33195   (eval "$ac_compile") 2>conftest.er1
33196   ac_status=$?
33197   grep -v '^ *+' conftest.er1 >conftest.err
33198   rm -f conftest.er1
33199   cat conftest.err >&5
33200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33201   (exit $ac_status); } && {
33202          test -z "$ac_c_werror_flag" ||
33203          test ! -s conftest.err
33204        } && test -s conftest.$ac_objext; then
33205   ac_cv_header_GL_glu_h=yes
33206 else
33207   echo "$as_me: failed program was:" >&5
33208 sed 's/^/| /' conftest.$ac_ext >&5
33209
33210         ac_cv_header_GL_glu_h=no
33211 fi
33212
33213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33214 fi
33215 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
33216 echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6; }
33217 if test $ac_cv_header_GL_glu_h = yes; then
33218
33219                 found_gl=0
33220
33221                 { echo "$as_me:$LINENO: checking for -lGL" >&5
33222 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6; }
33223
33224   ac_find_libraries=
33225   for ac_dir in $SEARCH_LIB /opt/graphics/OpenGL/lib;
33226   do
33227     for ac_extension in a so sl dylib dll.a; do
33228       if test -f "$ac_dir/libGL.$ac_extension"; then
33229         ac_find_libraries=$ac_dir
33230         break 2
33231       fi
33232     done
33233   done
33234
33235                 if test "$ac_find_libraries" != "" ; then
33236                     { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
33237 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
33238
33239
33240     if test "$ac_find_libraries" = "default location"; then
33241     ac_path_to_link=""
33242   else
33243     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33244     result=$?
33245     if test $result = 0; then
33246       ac_path_to_link=""
33247     else
33248       ac_path_to_link=" -L$ac_find_libraries"
33249     fi
33250   fi
33251
33252                     if test "$ac_path_to_link" != " -L/usr/lib" ; then
33253                         LDFLAGS_GL="$ac_path_to_link"
33254                     fi
33255
33256                                                                                 { echo "$as_me:$LINENO: checking for -lGLU" >&5
33257 echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6; }
33258
33259   ac_find_libraries=
33260   for ac_dir in $SEARCH_LIB;
33261   do
33262     for ac_extension in a so sl dylib dll.a; do
33263       if test -f "$ac_dir/libGLU.$ac_extension"; then
33264         ac_find_libraries=$ac_dir
33265         break 2
33266       fi
33267     done
33268   done
33269
33270                     if test "$ac_find_libraries" != "" ; then
33271
33272     if test "$ac_find_libraries" = "default location"; then
33273     ac_path_to_link=""
33274   else
33275     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33276     result=$?
33277     if test $result = 0; then
33278       ac_path_to_link=""
33279     else
33280       ac_path_to_link=" -L$ac_find_libraries"
33281     fi
33282   fi
33283
33284                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
33285                                     "$ac_path_to_link" != "$LDFLAGS_GL"; then
33286                             LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
33287                         fi
33288
33289                         found_gl=1
33290                         OPENGL_LIBS="-lGL -lGLU"
33291                         { echo "$as_me:$LINENO: result: yes" >&5
33292 echo "${ECHO_T}yes" >&6; }
33293                     else
33294                         { echo "$as_me:$LINENO: result: no" >&5
33295 echo "${ECHO_T}no" >&6; }
33296                     fi
33297                 else
33298                     { echo "$as_me:$LINENO: result: no" >&5
33299 echo "${ECHO_T}no" >&6; }
33300                 fi
33301
33302                 if test "$found_gl" != 1; then
33303                     { echo "$as_me:$LINENO: checking for -lMesaGL" >&5
33304 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6; }
33305
33306   ac_find_libraries=
33307   for ac_dir in $SEARCH_LIB;
33308   do
33309     for ac_extension in a so sl dylib dll.a; do
33310       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
33311         ac_find_libraries=$ac_dir
33312         break 2
33313       fi
33314     done
33315   done
33316
33317                     if test "$ac_find_libraries" != "" ; then
33318
33319     if test "$ac_find_libraries" = "default location"; then
33320     ac_path_to_link=""
33321   else
33322     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33323     result=$?
33324     if test $result = 0; then
33325       ac_path_to_link=""
33326     else
33327       ac_path_to_link=" -L$ac_find_libraries"
33328     fi
33329   fi
33330
33331                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
33332                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
33333                         { echo "$as_me:$LINENO: result: yes" >&5
33334 echo "${ECHO_T}yes" >&6; }
33335                     else
33336                         { echo "$as_me:$LINENO: result: no" >&5
33337 echo "${ECHO_T}no" >&6; }
33338                     fi
33339                 fi
33340
33341 fi
33342
33343
33344
33345 fi
33346
33347
33348
33349         if test "x$OPENGL_LIBS" = "x"; then
33350             if test "$wxUSE_OPENGL" = "yes"; then
33351                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
33352 echo "$as_me: error: OpenGL libraries not available" >&2;}
33353    { (exit 1); exit 1; }; }
33354             else
33355                                 { echo "$as_me:$LINENO: WARNING: OpenGL libraries not available, disabling support for OpenGL" >&5
33356 echo "$as_me: WARNING: OpenGL libraries not available, disabling support for OpenGL" >&2;}
33357                 wxUSE_OPENGL=no
33358                 USE_OPENGL=0
33359             fi
33360         else
33361                         wxUSE_OPENGL=yes
33362         fi
33363     else
33364         { echo "$as_me:$LINENO: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&5
33365 echo "$as_me: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&2;}
33366         wxUSE_OPENGL="no"
33367     fi
33368
33369     if test "$wxUSE_OPENGL" = "yes"; then
33370         USE_OPENGL=1
33371         cat >>confdefs.h <<\_ACEOF
33372 #define wxUSE_OPENGL 1
33373 _ACEOF
33374
33375         cat >>confdefs.h <<\_ACEOF
33376 #define wxUSE_GLCANVAS 1
33377 _ACEOF
33378
33379         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
33380     fi
33381 fi
33382
33383
33384 if test -n "$TOOLKIT" ; then
33385     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
33386 fi
33387
33388
33389
33390 if test "$wxUSE_SHARED" = "yes"; then
33391     case "${host}" in
33392       *-pc-msdosdjgpp )
33393                 wxUSE_SHARED=no
33394         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
33395 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
33396       ;;
33397     esac
33398 fi
33399
33400 if test "$wxUSE_SHARED" = "yes"; then
33401
33402
33403     case "${host}" in
33404         *-*-cygwin* | *-*-mingw* )
33405                                                                                                 wx_cv_version_script=no
33406             ;;
33407
33408         *)
33409             { echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
33410 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6; }
33411 if test "${wx_cv_version_script+set}" = set; then
33412   echo $ECHO_N "(cached) $ECHO_C" >&6
33413 else
33414
33415                 echo "VER_1 { *; };" >conftest.sym
33416                 echo "int main() { return 0; }" >conftest.cpp
33417
33418                 if { ac_try='
33419                         $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33420                         -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
33421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33422   (eval $ac_try) 2>&5
33423   ac_status=$?
33424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33425   (exit $ac_status); }; } ; then
33426                   if test -s conftest.stderr ; then
33427                       wx_cv_version_script=no
33428                   else
33429                       wx_cv_version_script=yes
33430                   fi
33431                 else
33432                   wx_cv_version_script=no
33433                 fi
33434
33435                                                                                                                                                                                                 if test $wx_cv_version_script = yes
33436                 then
33437                   echo "struct B { virtual ~B() { } }; \
33438                         struct D : public B { }; \
33439                         void F() { D d; }" > conftest.cpp
33440
33441                   if { ac_try='
33442                         $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33443                         -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
33444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33445   (eval $ac_try) 2>&5
33446   ac_status=$?
33447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33448   (exit $ac_status); }; } &&
33449                      { ac_try='
33450                         $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33451                         -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
33452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33453   (eval $ac_try) 2>&5
33454   ac_status=$?
33455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33456   (exit $ac_status); }; }
33457                   then
33458                     if { ac_try='
33459                           $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33460                           -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
33461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33462   (eval $ac_try) 2>&5
33463   ac_status=$?
33464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33465   (exit $ac_status); }; }
33466                     then
33467                       wx_cv_version_script=yes
33468                     else
33469                       wx_cv_version_script=no
33470                     fi
33471                   fi
33472                 fi
33473
33474                 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
33475                 rm -f conftest1.output conftest2.output conftest3.output
33476
33477 fi
33478 { echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
33479 echo "${ECHO_T}$wx_cv_version_script" >&6; }
33480
33481             if test $wx_cv_version_script = yes ; then
33482                 LDFLAGS_VERSIONING="-Wl,--version-script,\$(wx_top_builddir)/version-script"
33483             fi
33484             ;;
33485     esac
33486
33487
33488             if test "$wxUSE_VISIBILITY" != "no"; then
33489
33490
33491   if test -n "$GCC"; then
33492     CFLAGS_VISIBILITY="-fvisibility=hidden"
33493     CXXFLAGS_VISIBILITY="-fvisibility=hidden -fvisibility-inlines-hidden"
33494     { echo "$as_me:$LINENO: checking for symbols visibility support" >&5
33495 echo $ECHO_N "checking for symbols visibility support... $ECHO_C" >&6; }
33496     if test "${wx_cv_cc_visibility+set}" = set; then
33497   echo $ECHO_N "(cached) $ECHO_C" >&6
33498 else
33499
33500       wx_save_CXXFLAGS="$CXXFLAGS"
33501       CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
33502       ac_ext=cpp
33503 ac_cpp='$CXXCPP $CPPFLAGS'
33504 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33505 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33506 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33507
33508       cat >conftest.$ac_ext <<_ACEOF
33509 /* confdefs.h.  */
33510 _ACEOF
33511 cat confdefs.h >>conftest.$ac_ext
33512 cat >>conftest.$ac_ext <<_ACEOF
33513 /* end confdefs.h.  */
33514
33515          /* we need gcc >= 4.0, older versions with visibility support
33516             didn't have class visibility: */
33517          #if defined(__GNUC__) && __GNUC__ < 4
33518          error this gcc is too old;
33519          #endif
33520
33521          /* visibility only makes sense for ELF shared libs: */
33522          #if !defined(__ELF__) && !defined(__APPLE__)
33523          error this platform has no visibility;
33524          #endif
33525
33526          extern __attribute__((__visibility__("hidden"))) int hiddenvar;
33527          extern __attribute__((__visibility__("default"))) int exportedvar;
33528          extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
33529          extern __attribute__((__visibility__("default"))) int exportedfunc (void);
33530          class __attribute__((__visibility__("default"))) Foo {
33531            Foo() {}
33532          };
33533
33534 int
33535 main ()
33536 {
33537
33538   ;
33539   return 0;
33540 }
33541 _ACEOF
33542 rm -f conftest.$ac_objext
33543 if { (ac_try="$ac_compile"
33544 case "(($ac_try" in
33545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33546   *) ac_try_echo=$ac_try;;
33547 esac
33548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33549   (eval "$ac_compile") 2>conftest.er1
33550   ac_status=$?
33551   grep -v '^ *+' conftest.er1 >conftest.err
33552   rm -f conftest.er1
33553   cat conftest.err >&5
33554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33555   (exit $ac_status); } && {
33556          test -z "$ac_cxx_werror_flag" ||
33557          test ! -s conftest.err
33558        } && test -s conftest.$ac_objext; then
33559   wx_cv_cc_visibility=yes
33560 else
33561   echo "$as_me: failed program was:" >&5
33562 sed 's/^/| /' conftest.$ac_ext >&5
33563
33564         wx_cv_cc_visibility=no
33565 fi
33566
33567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33568       ac_ext=c
33569 ac_cpp='$CPP $CPPFLAGS'
33570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33573
33574       CXXFLAGS="$wx_save_CXXFLAGS"
33575 fi
33576
33577     { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility" >&5
33578 echo "${ECHO_T}$wx_cv_cc_visibility" >&6; }
33579     if test $wx_cv_cc_visibility = yes; then
33580                               { echo "$as_me:$LINENO: checking for broken libstdc++ visibility" >&5
33581 echo $ECHO_N "checking for broken libstdc++ visibility... $ECHO_C" >&6; }
33582       if test "${wx_cv_cc_broken_libstdcxx_visibility+set}" = set; then
33583   echo $ECHO_N "(cached) $ECHO_C" >&6
33584 else
33585
33586         wx_save_CXXFLAGS="$CXXFLAGS"
33587         wx_save_LDFLAGS="$LDFLAGS"
33588         CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
33589         LDFLAGS="$LDFLAGS -shared -fPIC"
33590         ac_ext=cpp
33591 ac_cpp='$CXXCPP $CPPFLAGS'
33592 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33593 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33594 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33595
33596         cat >conftest.$ac_ext <<_ACEOF
33597 /* confdefs.h.  */
33598 _ACEOF
33599 cat confdefs.h >>conftest.$ac_ext
33600 cat >>conftest.$ac_ext <<_ACEOF
33601 /* end confdefs.h.  */
33602
33603             #include <string>
33604
33605 int
33606 main ()
33607 {
33608
33609             std::string s("hello");
33610             return s.length();
33611
33612   ;
33613   return 0;
33614 }
33615 _ACEOF
33616 rm -f conftest.$ac_objext conftest$ac_exeext
33617 if { (ac_try="$ac_link"
33618 case "(($ac_try" in
33619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33620   *) ac_try_echo=$ac_try;;
33621 esac
33622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33623   (eval "$ac_link") 2>conftest.er1
33624   ac_status=$?
33625   grep -v '^ *+' conftest.er1 >conftest.err
33626   rm -f conftest.er1
33627   cat conftest.err >&5
33628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33629   (exit $ac_status); } && {
33630          test -z "$ac_cxx_werror_flag" ||
33631          test ! -s conftest.err
33632        } && test -s conftest$ac_exeext &&
33633        $as_test_x conftest$ac_exeext; then
33634   wx_cv_cc_broken_libstdcxx_visibility=no
33635 else
33636   echo "$as_me: failed program was:" >&5
33637 sed 's/^/| /' conftest.$ac_ext >&5
33638
33639         wx_cv_cc_broken_libstdcxx_visibility=yes
33640 fi
33641
33642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33643       conftest$ac_exeext conftest.$ac_ext
33644         ac_ext=c
33645 ac_cpp='$CPP $CPPFLAGS'
33646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33649
33650         CXXFLAGS="$wx_save_CXXFLAGS"
33651         LDFLAGS="$wx_save_LDFLAGS"
33652 fi
33653
33654       { echo "$as_me:$LINENO: result: $wx_cv_cc_broken_libstdcxx_visibility" >&5
33655 echo "${ECHO_T}$wx_cv_cc_broken_libstdcxx_visibility" >&6; }
33656
33657       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
33658         { echo "$as_me:$LINENO: checking whether we can work around it" >&5
33659 echo $ECHO_N "checking whether we can work around it... $ECHO_C" >&6; }
33660         if test "${wx_cv_cc_visibility_workaround+set}" = set; then
33661   echo $ECHO_N "(cached) $ECHO_C" >&6
33662 else
33663
33664           ac_ext=cpp
33665 ac_cpp='$CXXCPP $CPPFLAGS'
33666 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33667 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33668 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33669
33670           cat >conftest.$ac_ext <<_ACEOF
33671 /* confdefs.h.  */
33672 _ACEOF
33673 cat confdefs.h >>conftest.$ac_ext
33674 cat >>conftest.$ac_ext <<_ACEOF
33675 /* end confdefs.h.  */
33676
33677               #pragma GCC visibility push(default)
33678               #include <string>
33679               #pragma GCC visibility pop
33680
33681 int
33682 main ()
33683 {
33684
33685               std::string s("hello");
33686               return s.length();
33687
33688   ;
33689   return 0;
33690 }
33691 _ACEOF
33692 rm -f conftest.$ac_objext conftest$ac_exeext
33693 if { (ac_try="$ac_link"
33694 case "(($ac_try" in
33695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33696   *) ac_try_echo=$ac_try;;
33697 esac
33698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33699   (eval "$ac_link") 2>conftest.er1
33700   ac_status=$?
33701   grep -v '^ *+' conftest.er1 >conftest.err
33702   rm -f conftest.er1
33703   cat conftest.err >&5
33704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33705   (exit $ac_status); } && {
33706          test -z "$ac_cxx_werror_flag" ||
33707          test ! -s conftest.err
33708        } && test -s conftest$ac_exeext &&
33709        $as_test_x conftest$ac_exeext; then
33710   wx_cv_cc_visibility_workaround=no
33711 else
33712   echo "$as_me: failed program was:" >&5
33713 sed 's/^/| /' conftest.$ac_ext >&5
33714
33715         wx_cv_cc_visibility_workaround=yes
33716 fi
33717
33718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33719       conftest$ac_exeext conftest.$ac_ext
33720           ac_ext=c
33721 ac_cpp='$CPP $CPPFLAGS'
33722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33725
33726
33727 fi
33728
33729         { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility_workaround" >&5
33730 echo "${ECHO_T}$wx_cv_cc_visibility_workaround" >&6; }
33731
33732         if test $wx_cv_cc_visibility_workaround = no; then
33733                     wx_cv_cc_visibility=no
33734         fi
33735       fi
33736     fi
33737
33738     if test $wx_cv_cc_visibility = yes; then
33739       cat >>confdefs.h <<\_ACEOF
33740 #define HAVE_VISIBILITY 1
33741 _ACEOF
33742
33743       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
33744         cat >>confdefs.h <<\_ACEOF
33745 #define HAVE_BROKEN_LIBSTDCXX_VISIBILITY 1
33746 _ACEOF
33747
33748       fi
33749     else
33750       CFLAGS_VISIBILITY=""
33751       CXXFLAGS_VISIBILITY=""
33752     fi
33753
33754
33755   fi
33756
33757     fi
33758
33759         if test "x$SUNCXX" = xyes; then
33760         SAMPLES_RPATH_FLAG="-R\$(wx_top_builddir)/lib"
33761         WXCONFIG_RPATH="-R\$libdir"
33762     else
33763     case "${host}" in
33764       *-*-linux* | *-*-gnu* )
33765         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
33766         WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
33767         ;;
33768
33769       *-*-solaris2* )
33770
33771                         CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
33772
33773                         saveLdflags="$LDFLAGS"
33774         LDFLAGS="$saveLdflags -Wl,-rpath,/"
33775         { echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
33776 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6; }
33777         cat >conftest.$ac_ext <<_ACEOF
33778 /* confdefs.h.  */
33779 _ACEOF
33780 cat confdefs.h >>conftest.$ac_ext
33781 cat >>conftest.$ac_ext <<_ACEOF
33782 /* end confdefs.h.  */
33783
33784 int
33785 main ()
33786 {
33787
33788   ;
33789   return 0;
33790 }
33791 _ACEOF
33792 rm -f conftest.$ac_objext conftest$ac_exeext
33793 if { (ac_try="$ac_link"
33794 case "(($ac_try" in
33795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33796   *) ac_try_echo=$ac_try;;
33797 esac
33798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33799   (eval "$ac_link") 2>conftest.er1
33800   ac_status=$?
33801   grep -v '^ *+' conftest.er1 >conftest.err
33802   rm -f conftest.er1
33803   cat conftest.err >&5
33804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33805   (exit $ac_status); } && {
33806          test -z "$ac_c_werror_flag" ||
33807          test ! -s conftest.err
33808        } && test -s conftest$ac_exeext &&
33809        $as_test_x conftest$ac_exeext; then
33810
33811                 { echo "$as_me:$LINENO: result: yes" >&5
33812 echo "${ECHO_T}yes" >&6; }
33813                 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
33814                 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
33815
33816 else
33817   echo "$as_me: failed program was:" >&5
33818 sed 's/^/| /' conftest.$ac_ext >&5
33819
33820
33821                 { echo "$as_me:$LINENO: result: no" >&5
33822 echo "${ECHO_T}no" >&6; }
33823                 { echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
33824 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6; }
33825                 LDFLAGS="$saveLdflags -Wl,-R,/"
33826                 cat >conftest.$ac_ext <<_ACEOF
33827 /* confdefs.h.  */
33828 _ACEOF
33829 cat confdefs.h >>conftest.$ac_ext
33830 cat >>conftest.$ac_ext <<_ACEOF
33831 /* end confdefs.h.  */
33832
33833 int
33834 main ()
33835 {
33836
33837   ;
33838   return 0;
33839 }
33840 _ACEOF
33841 rm -f conftest.$ac_objext conftest$ac_exeext
33842 if { (ac_try="$ac_link"
33843 case "(($ac_try" in
33844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33845   *) ac_try_echo=$ac_try;;
33846 esac
33847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33848   (eval "$ac_link") 2>conftest.er1
33849   ac_status=$?
33850   grep -v '^ *+' conftest.er1 >conftest.err
33851   rm -f conftest.er1
33852   cat conftest.err >&5
33853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33854   (exit $ac_status); } && {
33855          test -z "$ac_c_werror_flag" ||
33856          test ! -s conftest.err
33857        } && test -s conftest$ac_exeext &&
33858        $as_test_x conftest$ac_exeext; then
33859
33860                         { echo "$as_me:$LINENO: result: yes" >&5
33861 echo "${ECHO_T}yes" >&6; }
33862                         SAMPLES_RPATH_FLAG="-Wl,-R,\$(wx_top_builddir)/lib"
33863                         WXCONFIG_RPATH="-Wl,-R,\$libdir"
33864
33865 else
33866   echo "$as_me: failed program was:" >&5
33867 sed 's/^/| /' conftest.$ac_ext >&5
33868
33869
33870                         { echo "$as_me:$LINENO: result: no" >&5
33871 echo "${ECHO_T}no" >&6; }
33872
33873 fi
33874
33875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33876       conftest$ac_exeext conftest.$ac_ext
33877
33878 fi
33879
33880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33881       conftest$ac_exeext conftest.$ac_ext
33882         LDFLAGS="$saveLdflags"
33883       ;;
33884
33885       *-*-darwin* )
33886         install_name_tool=`which install_name_tool`
33887         if test "$install_name_tool" -a -x "$install_name_tool"; then
33888             SAMPLES_RPATH_POSTLINK="\$(wx_top_builddir)/change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
33889             cat <<EOF >change-install-names
33890 #!/bin/sh
33891 libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
33892 inst_cmd="install_name_tool "
33893 for i in \${libnames} ; do
33894     inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
33895 done
33896 \${inst_cmd} \${3}
33897 EOF
33898             chmod +x change-install-names
33899         fi
33900
33901                                         HEADER_PAD_OPTION="-headerpad_max_install_names"
33902       ;;
33903
33904       *-*-cygwin* | *-*-mingw32* )
33905         ;;
33906
33907       *-*-hpux* )
33908         SAMPLES_RPATH_FLAG="-Wl,+b,\$(wx_top_builddir)/lib"
33909         WXCONFIG_RPATH="-Wl,+b,\$libdir"
33910         ;;
33911
33912     esac
33913     fi
33914
33915             WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
33916
33917     if test $wxUSE_RPATH = "no"; then
33918         SAMPLES_RPATH_FLAG=''
33919         SAMPLES_RPATH_POSTLINK=''
33920         WXCONFIG_RPATH=''
33921     fi
33922
33923     SHARED=1
33924
33925 else
33926
33927     config_linkage_component="-static"
33928     SHARED=0
33929
33930 fi
33931
33932
33933 UNICODE=0
33934 lib_unicode_suffix=
33935 WX_CHARTYPE="ansi"
33936 if test "$wxUSE_UNICODE" = "yes"; then
33937     lib_unicode_suffix=u
33938     WX_CHARTYPE="unicode"
33939     UNICODE=1
33940 fi
33941
33942 lib_debug_suffix=
33943 WX_DEBUGTYPE="release"
33944 DEBUG_FLAG=0
33945 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
33946     lib_debug_suffix=d
33947     WX_DEBUGTYPE="debug"
33948     DEBUG_FLAG=1
33949 fi
33950
33951 WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
33952 WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
33953
33954 DEBUG_INFO=0
33955 if test "$wxUSE_DEBUG_INFO" = "yes"; then
33956     DEBUG_INFO=1
33957 fi
33958
33959 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr '[a-z]' '[A-Z]'`
33960
33961 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
33962
33963 TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
33964
33965 if test "$cross_compiling" = "yes"; then
33966     HOST_SUFFIX="-$host_alias"
33967     TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
33968     TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
33969 fi
33970
33971
33972 if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1 -o "$wxUSE_COCOA" = 1; then
33973     WX_LIBRARY_BASENAME_NOGUI="wx_base${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33974 else
33975     WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33976 fi
33977 if test "${TOOLKIT_DIR}" = "os2"; then
33978     WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33979 else
33980     WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33981 fi
33982
33983
33984
33985 if test "$wxUSE_COCOA" = 1; then
33986
33987     ac_ext=c
33988 ac_cpp='$CPP $CPPFLAGS'
33989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33992
33993 ac_ext=m
33994
33995     { echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
33996 echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6; }
33997     cat >conftest.$ac_ext <<_ACEOF
33998 /* confdefs.h.  */
33999 _ACEOF
34000 cat confdefs.h >>conftest.$ac_ext
34001 cat >>conftest.$ac_ext <<_ACEOF
34002 /* end confdefs.h.  */
34003 #include <AppKit/NSEvent.h>
34004 #include <CoreFoundation/CoreFoundation.h>
34005
34006 int
34007 main ()
34008 {
34009
34010   ;
34011   return 0;
34012 }
34013 _ACEOF
34014 rm -f conftest.$ac_objext
34015 if { (ac_try="$ac_compile"
34016 case "(($ac_try" in
34017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34018   *) ac_try_echo=$ac_try;;
34019 esac
34020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34021   (eval "$ac_compile") 2>conftest.er1
34022   ac_status=$?
34023   grep -v '^ *+' conftest.er1 >conftest.err
34024   rm -f conftest.er1
34025   cat conftest.err >&5
34026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34027   (exit $ac_status); } && {
34028          test -z "$ac_c_werror_flag" ||
34029          test ! -s conftest.err
34030        } && test -s conftest.$ac_objext; then
34031   { echo "$as_me:$LINENO: result: no" >&5
34032 echo "${ECHO_T}no" >&6; }
34033 else
34034   echo "$as_me: failed program was:" >&5
34035 sed 's/^/| /' conftest.$ac_ext >&5
34036
34037         { echo "$as_me:$LINENO: result: yes" >&5
34038 echo "${ECHO_T}yes" >&6; }
34039         { echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
34040 echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6; }
34041         cat >conftest.$ac_ext <<_ACEOF
34042 /* confdefs.h.  */
34043 _ACEOF
34044 cat confdefs.h >>conftest.$ac_ext
34045 cat >>conftest.$ac_ext <<_ACEOF
34046 /* end confdefs.h.  */
34047 #define __Point__ 1
34048 #include <AppKit/NSEvent.h>
34049 #include <CoreFoundation/CoreFoundation.h>
34050
34051 int
34052 main ()
34053 {
34054
34055   ;
34056   return 0;
34057 }
34058 _ACEOF
34059 rm -f conftest.$ac_objext
34060 if { (ac_try="$ac_compile"
34061 case "(($ac_try" in
34062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34063   *) ac_try_echo=$ac_try;;
34064 esac
34065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34066   (eval "$ac_compile") 2>conftest.er1
34067   ac_status=$?
34068   grep -v '^ *+' conftest.er1 >conftest.err
34069   rm -f conftest.er1
34070   cat conftest.err >&5
34071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34072   (exit $ac_status); } && {
34073          test -z "$ac_c_werror_flag" ||
34074          test ! -s conftest.err
34075        } && test -s conftest.$ac_objext; then
34076   { echo "$as_me:$LINENO: result: yes" >&5
34077 echo "${ECHO_T}yes" >&6; }
34078             cat >>confdefs.h <<\_ACEOF
34079 #define __Point__ 1
34080 _ACEOF
34081
34082
34083 else
34084   echo "$as_me: failed program was:" >&5
34085 sed 's/^/| /' conftest.$ac_ext >&5
34086
34087         { { echo "$as_me:$LINENO: error: no
34088 See \`config.log' for more details." >&5
34089 echo "$as_me: error: no
34090 See \`config.log' for more details." >&2;}
34091    { (exit 1); exit 1; }; }
34092
34093 fi
34094
34095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34096
34097 fi
34098
34099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34100     ac_ext=c
34101 ac_cpp='$CPP $CPPFLAGS'
34102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34105
34106 fi
34107
34108
34109 { echo "$as_me:$LINENO: checking for mode_t" >&5
34110 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
34111 if test "${ac_cv_type_mode_t+set}" = set; then
34112   echo $ECHO_N "(cached) $ECHO_C" >&6
34113 else
34114   cat >conftest.$ac_ext <<_ACEOF
34115 /* confdefs.h.  */
34116 _ACEOF
34117 cat confdefs.h >>conftest.$ac_ext
34118 cat >>conftest.$ac_ext <<_ACEOF
34119 /* end confdefs.h.  */
34120 $ac_includes_default
34121 typedef mode_t ac__type_new_;
34122 int
34123 main ()
34124 {
34125 if ((ac__type_new_ *) 0)
34126   return 0;
34127 if (sizeof (ac__type_new_))
34128   return 0;
34129   ;
34130   return 0;
34131 }
34132 _ACEOF
34133 rm -f conftest.$ac_objext
34134 if { (ac_try="$ac_compile"
34135 case "(($ac_try" in
34136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34137   *) ac_try_echo=$ac_try;;
34138 esac
34139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34140   (eval "$ac_compile") 2>conftest.er1
34141   ac_status=$?
34142   grep -v '^ *+' conftest.er1 >conftest.err
34143   rm -f conftest.er1
34144   cat conftest.err >&5
34145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34146   (exit $ac_status); } && {
34147          test -z "$ac_c_werror_flag" ||
34148          test ! -s conftest.err
34149        } && test -s conftest.$ac_objext; then
34150   ac_cv_type_mode_t=yes
34151 else
34152   echo "$as_me: failed program was:" >&5
34153 sed 's/^/| /' conftest.$ac_ext >&5
34154
34155         ac_cv_type_mode_t=no
34156 fi
34157
34158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34159 fi
34160 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
34161 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
34162 if test $ac_cv_type_mode_t = yes; then
34163   :
34164 else
34165
34166 cat >>confdefs.h <<_ACEOF
34167 #define mode_t int
34168 _ACEOF
34169
34170 fi
34171
34172 { echo "$as_me:$LINENO: checking for off_t" >&5
34173 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
34174 if test "${ac_cv_type_off_t+set}" = set; then
34175   echo $ECHO_N "(cached) $ECHO_C" >&6
34176 else
34177   cat >conftest.$ac_ext <<_ACEOF
34178 /* confdefs.h.  */
34179 _ACEOF
34180 cat confdefs.h >>conftest.$ac_ext
34181 cat >>conftest.$ac_ext <<_ACEOF
34182 /* end confdefs.h.  */
34183 $ac_includes_default
34184 typedef off_t ac__type_new_;
34185 int
34186 main ()
34187 {
34188 if ((ac__type_new_ *) 0)
34189   return 0;
34190 if (sizeof (ac__type_new_))
34191   return 0;
34192   ;
34193   return 0;
34194 }
34195 _ACEOF
34196 rm -f conftest.$ac_objext
34197 if { (ac_try="$ac_compile"
34198 case "(($ac_try" in
34199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34200   *) ac_try_echo=$ac_try;;
34201 esac
34202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34203   (eval "$ac_compile") 2>conftest.er1
34204   ac_status=$?
34205   grep -v '^ *+' conftest.er1 >conftest.err
34206   rm -f conftest.er1
34207   cat conftest.err >&5
34208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34209   (exit $ac_status); } && {
34210          test -z "$ac_c_werror_flag" ||
34211          test ! -s conftest.err
34212        } && test -s conftest.$ac_objext; then
34213   ac_cv_type_off_t=yes
34214 else
34215   echo "$as_me: failed program was:" >&5
34216 sed 's/^/| /' conftest.$ac_ext >&5
34217
34218         ac_cv_type_off_t=no
34219 fi
34220
34221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34222 fi
34223 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
34224 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
34225 if test $ac_cv_type_off_t = yes; then
34226   :
34227 else
34228
34229 cat >>confdefs.h <<_ACEOF
34230 #define off_t long int
34231 _ACEOF
34232
34233 fi
34234
34235 { echo "$as_me:$LINENO: checking for pid_t" >&5
34236 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
34237 if test "${ac_cv_type_pid_t+set}" = set; then
34238   echo $ECHO_N "(cached) $ECHO_C" >&6
34239 else
34240   cat >conftest.$ac_ext <<_ACEOF
34241 /* confdefs.h.  */
34242 _ACEOF
34243 cat confdefs.h >>conftest.$ac_ext
34244 cat >>conftest.$ac_ext <<_ACEOF
34245 /* end confdefs.h.  */
34246 $ac_includes_default
34247 typedef pid_t ac__type_new_;
34248 int
34249 main ()
34250 {
34251 if ((ac__type_new_ *) 0)
34252   return 0;
34253 if (sizeof (ac__type_new_))
34254   return 0;
34255   ;
34256   return 0;
34257 }
34258 _ACEOF
34259 rm -f conftest.$ac_objext
34260 if { (ac_try="$ac_compile"
34261 case "(($ac_try" in
34262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34263   *) ac_try_echo=$ac_try;;
34264 esac
34265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34266   (eval "$ac_compile") 2>conftest.er1
34267   ac_status=$?
34268   grep -v '^ *+' conftest.er1 >conftest.err
34269   rm -f conftest.er1
34270   cat conftest.err >&5
34271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34272   (exit $ac_status); } && {
34273          test -z "$ac_c_werror_flag" ||
34274          test ! -s conftest.err
34275        } && test -s conftest.$ac_objext; then
34276   ac_cv_type_pid_t=yes
34277 else
34278   echo "$as_me: failed program was:" >&5
34279 sed 's/^/| /' conftest.$ac_ext >&5
34280
34281         ac_cv_type_pid_t=no
34282 fi
34283
34284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34285 fi
34286 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
34287 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
34288 if test $ac_cv_type_pid_t = yes; then
34289   :
34290 else
34291
34292 cat >>confdefs.h <<_ACEOF
34293 #define pid_t int
34294 _ACEOF
34295
34296 fi
34297
34298 { echo "$as_me:$LINENO: checking for size_t" >&5
34299 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
34300 if test "${ac_cv_type_size_t+set}" = set; then
34301   echo $ECHO_N "(cached) $ECHO_C" >&6
34302 else
34303   cat >conftest.$ac_ext <<_ACEOF
34304 /* confdefs.h.  */
34305 _ACEOF
34306 cat confdefs.h >>conftest.$ac_ext
34307 cat >>conftest.$ac_ext <<_ACEOF
34308 /* end confdefs.h.  */
34309 $ac_includes_default
34310 typedef size_t ac__type_new_;
34311 int
34312 main ()
34313 {
34314 if ((ac__type_new_ *) 0)
34315   return 0;
34316 if (sizeof (ac__type_new_))
34317   return 0;
34318   ;
34319   return 0;
34320 }
34321 _ACEOF
34322 rm -f conftest.$ac_objext
34323 if { (ac_try="$ac_compile"
34324 case "(($ac_try" in
34325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34326   *) ac_try_echo=$ac_try;;
34327 esac
34328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34329   (eval "$ac_compile") 2>conftest.er1
34330   ac_status=$?
34331   grep -v '^ *+' conftest.er1 >conftest.err
34332   rm -f conftest.er1
34333   cat conftest.err >&5
34334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34335   (exit $ac_status); } && {
34336          test -z "$ac_c_werror_flag" ||
34337          test ! -s conftest.err
34338        } && test -s conftest.$ac_objext; then
34339   ac_cv_type_size_t=yes
34340 else
34341   echo "$as_me: failed program was:" >&5
34342 sed 's/^/| /' conftest.$ac_ext >&5
34343
34344         ac_cv_type_size_t=no
34345 fi
34346
34347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34348 fi
34349 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
34350 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
34351 if test $ac_cv_type_size_t = yes; then
34352   :
34353 else
34354
34355 cat >>confdefs.h <<_ACEOF
34356 #define size_t unsigned int
34357 _ACEOF
34358
34359 fi
34360
34361
34362 { echo "$as_me:$LINENO: checking for ssize_t" >&5
34363 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
34364 if test "${ac_cv_type_ssize_t+set}" = set; then
34365   echo $ECHO_N "(cached) $ECHO_C" >&6
34366 else
34367   cat >conftest.$ac_ext <<_ACEOF
34368 /* confdefs.h.  */
34369 _ACEOF
34370 cat confdefs.h >>conftest.$ac_ext
34371 cat >>conftest.$ac_ext <<_ACEOF
34372 /* end confdefs.h.  */
34373 $ac_includes_default
34374 typedef ssize_t ac__type_new_;
34375 int
34376 main ()
34377 {
34378 if ((ac__type_new_ *) 0)
34379   return 0;
34380 if (sizeof (ac__type_new_))
34381   return 0;
34382   ;
34383   return 0;
34384 }
34385 _ACEOF
34386 rm -f conftest.$ac_objext
34387 if { (ac_try="$ac_compile"
34388 case "(($ac_try" in
34389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34390   *) ac_try_echo=$ac_try;;
34391 esac
34392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34393   (eval "$ac_compile") 2>conftest.er1
34394   ac_status=$?
34395   grep -v '^ *+' conftest.er1 >conftest.err
34396   rm -f conftest.er1
34397   cat conftest.err >&5
34398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34399   (exit $ac_status); } && {
34400          test -z "$ac_c_werror_flag" ||
34401          test ! -s conftest.err
34402        } && test -s conftest.$ac_objext; then
34403   ac_cv_type_ssize_t=yes
34404 else
34405   echo "$as_me: failed program was:" >&5
34406 sed 's/^/| /' conftest.$ac_ext >&5
34407
34408         ac_cv_type_ssize_t=no
34409 fi
34410
34411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34412 fi
34413 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34414 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
34415 if test $ac_cv_type_ssize_t = yes; then
34416
34417 cat >>confdefs.h <<_ACEOF
34418 #define HAVE_SSIZE_T 1
34419 _ACEOF
34420
34421
34422 fi
34423
34424
34425 ac_ext=cpp
34426 ac_cpp='$CXXCPP $CPPFLAGS'
34427 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34428 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34429 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34430  { echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
34431 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6; }
34432 if test "${wx_cv_size_t_is_uint+set}" = set; then
34433   echo $ECHO_N "(cached) $ECHO_C" >&6
34434 else
34435
34436                             cat >conftest.$ac_ext <<_ACEOF
34437 /* confdefs.h.  */
34438 _ACEOF
34439 cat confdefs.h >>conftest.$ac_ext
34440 cat >>conftest.$ac_ext <<_ACEOF
34441 /* end confdefs.h.  */
34442 #include <stddef.h>
34443 int
34444 main ()
34445 {
34446
34447             return 0; }
34448
34449             struct Foo { void foo(size_t); void foo(unsigned int); };
34450
34451             int bar() {
34452
34453   ;
34454   return 0;
34455 }
34456 _ACEOF
34457 rm -f conftest.$ac_objext
34458 if { (ac_try="$ac_compile"
34459 case "(($ac_try" in
34460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34461   *) ac_try_echo=$ac_try;;
34462 esac
34463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34464   (eval "$ac_compile") 2>conftest.er1
34465   ac_status=$?
34466   grep -v '^ *+' conftest.er1 >conftest.err
34467   rm -f conftest.er1
34468   cat conftest.err >&5
34469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34470   (exit $ac_status); } && {
34471          test -z "$ac_cxx_werror_flag" ||
34472          test ! -s conftest.err
34473        } && test -s conftest.$ac_objext; then
34474   wx_cv_size_t_is_uint=no
34475 else
34476   echo "$as_me: failed program was:" >&5
34477 sed 's/^/| /' conftest.$ac_ext >&5
34478
34479         wx_cv_size_t_is_uint=yes
34480
34481 fi
34482
34483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34484
34485
34486 fi
34487 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
34488 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6; }
34489
34490 if test "$wx_cv_size_t_is_uint" = "yes"; then
34491     cat >>confdefs.h <<\_ACEOF
34492 #define wxSIZE_T_IS_UINT 1
34493 _ACEOF
34494
34495 else
34496     { echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
34497 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6; }
34498 if test "${wx_cv_size_t_is_ulong+set}" = set; then
34499   echo $ECHO_N "(cached) $ECHO_C" >&6
34500 else
34501   cat >conftest.$ac_ext <<_ACEOF
34502 /* confdefs.h.  */
34503 _ACEOF
34504 cat confdefs.h >>conftest.$ac_ext
34505 cat >>conftest.$ac_ext <<_ACEOF
34506 /* end confdefs.h.  */
34507 #include <stddef.h>
34508 int
34509 main ()
34510 {
34511
34512                 return 0; }
34513
34514                 struct Foo { void foo(size_t); void foo(unsigned long); };
34515
34516                 int bar() {
34517
34518   ;
34519   return 0;
34520 }
34521 _ACEOF
34522 rm -f conftest.$ac_objext
34523 if { (ac_try="$ac_compile"
34524 case "(($ac_try" in
34525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34526   *) ac_try_echo=$ac_try;;
34527 esac
34528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34529   (eval "$ac_compile") 2>conftest.er1
34530   ac_status=$?
34531   grep -v '^ *+' conftest.er1 >conftest.err
34532   rm -f conftest.er1
34533   cat conftest.err >&5
34534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34535   (exit $ac_status); } && {
34536          test -z "$ac_cxx_werror_flag" ||
34537          test ! -s conftest.err
34538        } && test -s conftest.$ac_objext; then
34539   wx_cv_size_t_is_ulong=no
34540 else
34541   echo "$as_me: failed program was:" >&5
34542 sed 's/^/| /' conftest.$ac_ext >&5
34543
34544         wx_cv_size_t_is_ulong=yes
34545
34546 fi
34547
34548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34549
34550 fi
34551 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
34552 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6; }
34553
34554     if test "$wx_cv_size_t_is_ulong" = "yes"; then
34555         cat >>confdefs.h <<\_ACEOF
34556 #define wxSIZE_T_IS_ULONG 1
34557 _ACEOF
34558
34559     fi
34560 fi
34561
34562 { echo "$as_me:$LINENO: checking if wchar_t is separate type" >&5
34563 echo $ECHO_N "checking if wchar_t is separate type... $ECHO_C" >&6; }
34564 if test "${wx_cv_wchar_t_is_separate_type+set}" = set; then
34565   echo $ECHO_N "(cached) $ECHO_C" >&6
34566 else
34567   cat >conftest.$ac_ext <<_ACEOF
34568 /* confdefs.h.  */
34569 _ACEOF
34570 cat confdefs.h >>conftest.$ac_ext
34571 cat >>conftest.$ac_ext <<_ACEOF
34572 /* end confdefs.h.  */
34573 #include <wchar.h>
34574 int
34575 main ()
34576 {
34577
34578             return 0; }
34579
34580             struct Foo { void foo(wchar_t);
34581                          void foo(unsigned short);
34582                          void foo(unsigned int);
34583                          void foo(unsigned long); };
34584
34585             int bar() {
34586
34587   ;
34588   return 0;
34589 }
34590 _ACEOF
34591 rm -f conftest.$ac_objext
34592 if { (ac_try="$ac_compile"
34593 case "(($ac_try" in
34594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34595   *) ac_try_echo=$ac_try;;
34596 esac
34597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34598   (eval "$ac_compile") 2>conftest.er1
34599   ac_status=$?
34600   grep -v '^ *+' conftest.er1 >conftest.err
34601   rm -f conftest.er1
34602   cat conftest.err >&5
34603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34604   (exit $ac_status); } && {
34605          test -z "$ac_cxx_werror_flag" ||
34606          test ! -s conftest.err
34607        } && test -s conftest.$ac_objext; then
34608   wx_cv_wchar_t_is_separate_type=yes
34609 else
34610   echo "$as_me: failed program was:" >&5
34611 sed 's/^/| /' conftest.$ac_ext >&5
34612
34613         wx_cv_wchar_t_is_separate_type=no
34614
34615 fi
34616
34617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34618
34619 fi
34620 { echo "$as_me:$LINENO: result: $wx_cv_wchar_t_is_separate_type" >&5
34621 echo "${ECHO_T}$wx_cv_wchar_t_is_separate_type" >&6; }
34622
34623 if test "$wx_cv_wchar_t_is_separate_type" = "yes"; then
34624     cat >>confdefs.h <<\_ACEOF
34625 #define wxWCHAR_T_IS_REAL_TYPE 1
34626 _ACEOF
34627
34628 else
34629     cat >>confdefs.h <<\_ACEOF
34630 #define wxWCHAR_T_IS_REAL_TYPE 0
34631 _ACEOF
34632
34633 fi
34634
34635 ac_ext=c
34636 ac_cpp='$CPP $CPPFLAGS'
34637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34640
34641
34642 { echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
34643 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6; }
34644 if test "${wx_cv_struct_pw_gecos+set}" = set; then
34645   echo $ECHO_N "(cached) $ECHO_C" >&6
34646 else
34647
34648         cat >conftest.$ac_ext <<_ACEOF
34649 /* confdefs.h.  */
34650 _ACEOF
34651 cat confdefs.h >>conftest.$ac_ext
34652 cat >>conftest.$ac_ext <<_ACEOF
34653 /* end confdefs.h.  */
34654 #include <pwd.h>
34655 int
34656 main ()
34657 {
34658
34659                 char *p;
34660                 struct passwd *pw;
34661                 p = pw->pw_gecos;
34662
34663   ;
34664   return 0;
34665 }
34666 _ACEOF
34667 rm -f conftest.$ac_objext
34668 if { (ac_try="$ac_compile"
34669 case "(($ac_try" in
34670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34671   *) ac_try_echo=$ac_try;;
34672 esac
34673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34674   (eval "$ac_compile") 2>conftest.er1
34675   ac_status=$?
34676   grep -v '^ *+' conftest.er1 >conftest.err
34677   rm -f conftest.er1
34678   cat conftest.err >&5
34679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34680   (exit $ac_status); } && {
34681          test -z "$ac_c_werror_flag" ||
34682          test ! -s conftest.err
34683        } && test -s conftest.$ac_objext; then
34684
34685                 wx_cv_struct_pw_gecos=yes
34686
34687 else
34688   echo "$as_me: failed program was:" >&5
34689 sed 's/^/| /' conftest.$ac_ext >&5
34690
34691
34692                 wx_cv_struct_pw_gecos=no
34693
34694
34695 fi
34696
34697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34698
34699
34700 fi
34701 { echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
34702 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6; }
34703
34704 if test "$wx_cv_struct_pw_gecos" = "yes"; then
34705     cat >>confdefs.h <<\_ACEOF
34706 #define HAVE_PW_GECOS 1
34707 _ACEOF
34708
34709 fi
34710
34711
34712 if test "$wxUSE_WCHAR_T" = "yes"; then
34713     cat >>confdefs.h <<\_ACEOF
34714 #define wxUSE_WCHAR_T 1
34715 _ACEOF
34716
34717
34718         WCSLEN_FOUND=0
34719     WCHAR_LINK=
34720
34721 for ac_func in wcslen
34722 do
34723 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34724 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34725 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34726 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34727   echo $ECHO_N "(cached) $ECHO_C" >&6
34728 else
34729   cat >conftest.$ac_ext <<_ACEOF
34730 /* confdefs.h.  */
34731 _ACEOF
34732 cat confdefs.h >>conftest.$ac_ext
34733 cat >>conftest.$ac_ext <<_ACEOF
34734 /* end confdefs.h.  */
34735 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34736    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34737 #define $ac_func innocuous_$ac_func
34738
34739 /* System header to define __stub macros and hopefully few prototypes,
34740     which can conflict with char $ac_func (); below.
34741     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34742     <limits.h> exists even on freestanding compilers.  */
34743
34744 #ifdef __STDC__
34745 # include <limits.h>
34746 #else
34747 # include <assert.h>
34748 #endif
34749
34750 #undef $ac_func
34751
34752 /* Override any GCC internal prototype to avoid an error.
34753    Use char because int might match the return type of a GCC
34754    builtin and then its argument prototype would still apply.  */
34755 #ifdef __cplusplus
34756 extern "C"
34757 #endif
34758 char $ac_func ();
34759 /* The GNU C library defines this for functions which it implements
34760     to always fail with ENOSYS.  Some functions are actually named
34761     something starting with __ and the normal name is an alias.  */
34762 #if defined __stub_$ac_func || defined __stub___$ac_func
34763 choke me
34764 #endif
34765
34766 int
34767 main ()
34768 {
34769 return $ac_func ();
34770   ;
34771   return 0;
34772 }
34773 _ACEOF
34774 rm -f conftest.$ac_objext conftest$ac_exeext
34775 if { (ac_try="$ac_link"
34776 case "(($ac_try" in
34777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34778   *) ac_try_echo=$ac_try;;
34779 esac
34780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34781   (eval "$ac_link") 2>conftest.er1
34782   ac_status=$?
34783   grep -v '^ *+' conftest.er1 >conftest.err
34784   rm -f conftest.er1
34785   cat conftest.err >&5
34786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34787   (exit $ac_status); } && {
34788          test -z "$ac_c_werror_flag" ||
34789          test ! -s conftest.err
34790        } && test -s conftest$ac_exeext &&
34791        $as_test_x conftest$ac_exeext; then
34792   eval "$as_ac_var=yes"
34793 else
34794   echo "$as_me: failed program was:" >&5
34795 sed 's/^/| /' conftest.$ac_ext >&5
34796
34797         eval "$as_ac_var=no"
34798 fi
34799
34800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34801       conftest$ac_exeext conftest.$ac_ext
34802 fi
34803 ac_res=`eval echo '${'$as_ac_var'}'`
34804                { echo "$as_me:$LINENO: result: $ac_res" >&5
34805 echo "${ECHO_T}$ac_res" >&6; }
34806 if test `eval echo '${'$as_ac_var'}'` = yes; then
34807   cat >>confdefs.h <<_ACEOF
34808 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34809 _ACEOF
34810  WCSLEN_FOUND=1
34811 fi
34812 done
34813
34814
34815     if test "$WCSLEN_FOUND" = 0; then
34816         if test "$TOOLKIT" = "MSW"; then
34817             { echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
34818 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6; }
34819 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
34820   echo $ECHO_N "(cached) $ECHO_C" >&6
34821 else
34822   ac_check_lib_save_LIBS=$LIBS
34823 LIBS="-lmsvcrt  $LIBS"
34824 cat >conftest.$ac_ext <<_ACEOF
34825 /* confdefs.h.  */
34826 _ACEOF
34827 cat confdefs.h >>conftest.$ac_ext
34828 cat >>conftest.$ac_ext <<_ACEOF
34829 /* end confdefs.h.  */
34830
34831 /* Override any GCC internal prototype to avoid an error.
34832    Use char because int might match the return type of a GCC
34833    builtin and then its argument prototype would still apply.  */
34834 #ifdef __cplusplus
34835 extern "C"
34836 #endif
34837 char wcslen ();
34838 int
34839 main ()
34840 {
34841 return wcslen ();
34842   ;
34843   return 0;
34844 }
34845 _ACEOF
34846 rm -f conftest.$ac_objext conftest$ac_exeext
34847 if { (ac_try="$ac_link"
34848 case "(($ac_try" in
34849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34850   *) ac_try_echo=$ac_try;;
34851 esac
34852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34853   (eval "$ac_link") 2>conftest.er1
34854   ac_status=$?
34855   grep -v '^ *+' conftest.er1 >conftest.err
34856   rm -f conftest.er1
34857   cat conftest.err >&5
34858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34859   (exit $ac_status); } && {
34860          test -z "$ac_c_werror_flag" ||
34861          test ! -s conftest.err
34862        } && test -s conftest$ac_exeext &&
34863        $as_test_x conftest$ac_exeext; then
34864   ac_cv_lib_msvcrt_wcslen=yes
34865 else
34866   echo "$as_me: failed program was:" >&5
34867 sed 's/^/| /' conftest.$ac_ext >&5
34868
34869         ac_cv_lib_msvcrt_wcslen=no
34870 fi
34871
34872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34873       conftest$ac_exeext conftest.$ac_ext
34874 LIBS=$ac_check_lib_save_LIBS
34875 fi
34876 { echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
34877 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6; }
34878 if test $ac_cv_lib_msvcrt_wcslen = yes; then
34879   WCHAR_OK=1
34880 fi
34881
34882         else
34883             { echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
34884 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6; }
34885 if test "${ac_cv_lib_w_wcslen+set}" = set; then
34886   echo $ECHO_N "(cached) $ECHO_C" >&6
34887 else
34888   ac_check_lib_save_LIBS=$LIBS
34889 LIBS="-lw  $LIBS"
34890 cat >conftest.$ac_ext <<_ACEOF
34891 /* confdefs.h.  */
34892 _ACEOF
34893 cat confdefs.h >>conftest.$ac_ext
34894 cat >>conftest.$ac_ext <<_ACEOF
34895 /* end confdefs.h.  */
34896
34897 /* Override any GCC internal prototype to avoid an error.
34898    Use char because int might match the return type of a GCC
34899    builtin and then its argument prototype would still apply.  */
34900 #ifdef __cplusplus
34901 extern "C"
34902 #endif
34903 char wcslen ();
34904 int
34905 main ()
34906 {
34907 return wcslen ();
34908   ;
34909   return 0;
34910 }
34911 _ACEOF
34912 rm -f conftest.$ac_objext conftest$ac_exeext
34913 if { (ac_try="$ac_link"
34914 case "(($ac_try" in
34915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34916   *) ac_try_echo=$ac_try;;
34917 esac
34918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34919   (eval "$ac_link") 2>conftest.er1
34920   ac_status=$?
34921   grep -v '^ *+' conftest.er1 >conftest.err
34922   rm -f conftest.er1
34923   cat conftest.err >&5
34924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34925   (exit $ac_status); } && {
34926          test -z "$ac_c_werror_flag" ||
34927          test ! -s conftest.err
34928        } && test -s conftest$ac_exeext &&
34929        $as_test_x conftest$ac_exeext; then
34930   ac_cv_lib_w_wcslen=yes
34931 else
34932   echo "$as_me: failed program was:" >&5
34933 sed 's/^/| /' conftest.$ac_ext >&5
34934
34935         ac_cv_lib_w_wcslen=no
34936 fi
34937
34938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34939       conftest$ac_exeext conftest.$ac_ext
34940 LIBS=$ac_check_lib_save_LIBS
34941 fi
34942 { echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
34943 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6; }
34944 if test $ac_cv_lib_w_wcslen = yes; then
34945
34946                             WCHAR_LINK=" -lw"
34947                             WCSLEN_FOUND=1
34948
34949 fi
34950
34951         fi
34952     fi
34953
34954     if test "$WCSLEN_FOUND" = 1; then
34955         cat >>confdefs.h <<\_ACEOF
34956 #define HAVE_WCSLEN 1
34957 _ACEOF
34958
34959     fi
34960
34961
34962
34963
34964
34965
34966 for ac_func in wcsdup strnlen wcsnlen wcscasecmp wcsncasecmp
34967 do
34968 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34969 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34970 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34971 if { as_var=$as_ac_var; eval "test \"\${$as_var+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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34981    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34982 #define $ac_func innocuous_$ac_func
34983
34984 /* System header to define __stub macros and hopefully few prototypes,
34985     which can conflict with char $ac_func (); below.
34986     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34987     <limits.h> exists even on freestanding compilers.  */
34988
34989 #ifdef __STDC__
34990 # include <limits.h>
34991 #else
34992 # include <assert.h>
34993 #endif
34994
34995 #undef $ac_func
34996
34997 /* Override any GCC internal prototype to avoid an error.
34998    Use char because int might match the return type of a GCC
34999    builtin and then its argument prototype would still apply.  */
35000 #ifdef __cplusplus
35001 extern "C"
35002 #endif
35003 char $ac_func ();
35004 /* The GNU C library defines this for functions which it implements
35005     to always fail with ENOSYS.  Some functions are actually named
35006     something starting with __ and the normal name is an alias.  */
35007 #if defined __stub_$ac_func || defined __stub___$ac_func
35008 choke me
35009 #endif
35010
35011 int
35012 main ()
35013 {
35014 return $ac_func ();
35015   ;
35016   return 0;
35017 }
35018 _ACEOF
35019 rm -f conftest.$ac_objext conftest$ac_exeext
35020 if { (ac_try="$ac_link"
35021 case "(($ac_try" in
35022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35023   *) ac_try_echo=$ac_try;;
35024 esac
35025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35026   (eval "$ac_link") 2>conftest.er1
35027   ac_status=$?
35028   grep -v '^ *+' conftest.er1 >conftest.err
35029   rm -f conftest.er1
35030   cat conftest.err >&5
35031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35032   (exit $ac_status); } && {
35033          test -z "$ac_c_werror_flag" ||
35034          test ! -s conftest.err
35035        } && test -s conftest$ac_exeext &&
35036        $as_test_x conftest$ac_exeext; then
35037   eval "$as_ac_var=yes"
35038 else
35039   echo "$as_me: failed program was:" >&5
35040 sed 's/^/| /' conftest.$ac_ext >&5
35041
35042         eval "$as_ac_var=no"
35043 fi
35044
35045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35046       conftest$ac_exeext conftest.$ac_ext
35047 fi
35048 ac_res=`eval echo '${'$as_ac_var'}'`
35049                { echo "$as_me:$LINENO: result: $ac_res" >&5
35050 echo "${ECHO_T}$ac_res" >&6; }
35051 if test `eval echo '${'$as_ac_var'}'` = yes; then
35052   cat >>confdefs.h <<_ACEOF
35053 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35054 _ACEOF
35055
35056 fi
35057 done
35058
35059
35060                     if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
35061         CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
35062     fi
35063
35064                 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
35065 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
35066 if test "${ac_cv_type_mbstate_t+set}" = set; then
35067   echo $ECHO_N "(cached) $ECHO_C" >&6
35068 else
35069   cat >conftest.$ac_ext <<_ACEOF
35070 /* confdefs.h.  */
35071 _ACEOF
35072 cat confdefs.h >>conftest.$ac_ext
35073 cat >>conftest.$ac_ext <<_ACEOF
35074 /* end confdefs.h.  */
35075 #include <wchar.h>
35076
35077 typedef mbstate_t ac__type_new_;
35078 int
35079 main ()
35080 {
35081 if ((ac__type_new_ *) 0)
35082   return 0;
35083 if (sizeof (ac__type_new_))
35084   return 0;
35085   ;
35086   return 0;
35087 }
35088 _ACEOF
35089 rm -f conftest.$ac_objext
35090 if { (ac_try="$ac_compile"
35091 case "(($ac_try" in
35092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35093   *) ac_try_echo=$ac_try;;
35094 esac
35095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35096   (eval "$ac_compile") 2>conftest.er1
35097   ac_status=$?
35098   grep -v '^ *+' conftest.er1 >conftest.err
35099   rm -f conftest.er1
35100   cat conftest.err >&5
35101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35102   (exit $ac_status); } && {
35103          test -z "$ac_c_werror_flag" ||
35104          test ! -s conftest.err
35105        } && test -s conftest.$ac_objext; then
35106   ac_cv_type_mbstate_t=yes
35107 else
35108   echo "$as_me: failed program was:" >&5
35109 sed 's/^/| /' conftest.$ac_ext >&5
35110
35111         ac_cv_type_mbstate_t=no
35112 fi
35113
35114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35115 fi
35116 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
35117 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
35118 if test $ac_cv_type_mbstate_t = yes; then
35119
35120 cat >>confdefs.h <<_ACEOF
35121 #define HAVE_MBSTATE_T 1
35122 _ACEOF
35123
35124
35125 for ac_func in wcsrtombs
35126 do
35127 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35128 { echo "$as_me:$LINENO: checking for $ac_func" >&5
35129 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35130 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35131   echo $ECHO_N "(cached) $ECHO_C" >&6
35132 else
35133   cat >conftest.$ac_ext <<_ACEOF
35134 /* confdefs.h.  */
35135 _ACEOF
35136 cat confdefs.h >>conftest.$ac_ext
35137 cat >>conftest.$ac_ext <<_ACEOF
35138 /* end confdefs.h.  */
35139 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35140    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35141 #define $ac_func innocuous_$ac_func
35142
35143 /* System header to define __stub macros and hopefully few prototypes,
35144     which can conflict with char $ac_func (); below.
35145     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35146     <limits.h> exists even on freestanding compilers.  */
35147
35148 #ifdef __STDC__
35149 # include <limits.h>
35150 #else
35151 # include <assert.h>
35152 #endif
35153
35154 #undef $ac_func
35155
35156 /* Override any GCC internal prototype to avoid an error.
35157    Use char because int might match the return type of a GCC
35158    builtin and then its argument prototype would still apply.  */
35159 #ifdef __cplusplus
35160 extern "C"
35161 #endif
35162 char $ac_func ();
35163 /* The GNU C library defines this for functions which it implements
35164     to always fail with ENOSYS.  Some functions are actually named
35165     something starting with __ and the normal name is an alias.  */
35166 #if defined __stub_$ac_func || defined __stub___$ac_func
35167 choke me
35168 #endif
35169
35170 int
35171 main ()
35172 {
35173 return $ac_func ();
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   eval "$as_ac_var=yes"
35197 else
35198   echo "$as_me: failed program was:" >&5
35199 sed 's/^/| /' conftest.$ac_ext >&5
35200
35201         eval "$as_ac_var=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 fi
35207 ac_res=`eval echo '${'$as_ac_var'}'`
35208                { echo "$as_me:$LINENO: result: $ac_res" >&5
35209 echo "${ECHO_T}$ac_res" >&6; }
35210 if test `eval echo '${'$as_ac_var'}'` = yes; then
35211   cat >>confdefs.h <<_ACEOF
35212 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35213 _ACEOF
35214
35215 fi
35216 done
35217
35218 fi
35219
35220 else
35221     { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
35222 echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
35223 fi
35224
35225
35226
35227
35228 for ac_func in snprintf vsnprintf vsscanf
35229 do
35230 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35231 { echo "$as_me:$LINENO: checking for $ac_func" >&5
35232 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35233 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35234   echo $ECHO_N "(cached) $ECHO_C" >&6
35235 else
35236   cat >conftest.$ac_ext <<_ACEOF
35237 /* confdefs.h.  */
35238 _ACEOF
35239 cat confdefs.h >>conftest.$ac_ext
35240 cat >>conftest.$ac_ext <<_ACEOF
35241 /* end confdefs.h.  */
35242 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35243    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35244 #define $ac_func innocuous_$ac_func
35245
35246 /* System header to define __stub macros and hopefully few prototypes,
35247     which can conflict with char $ac_func (); below.
35248     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35249     <limits.h> exists even on freestanding compilers.  */
35250
35251 #ifdef __STDC__
35252 # include <limits.h>
35253 #else
35254 # include <assert.h>
35255 #endif
35256
35257 #undef $ac_func
35258
35259 /* Override any GCC internal prototype to avoid an error.
35260    Use char because int might match the return type of a GCC
35261    builtin and then its argument prototype would still apply.  */
35262 #ifdef __cplusplus
35263 extern "C"
35264 #endif
35265 char $ac_func ();
35266 /* The GNU C library defines this for functions which it implements
35267     to always fail with ENOSYS.  Some functions are actually named
35268     something starting with __ and the normal name is an alias.  */
35269 #if defined __stub_$ac_func || defined __stub___$ac_func
35270 choke me
35271 #endif
35272
35273 int
35274 main ()
35275 {
35276 return $ac_func ();
35277   ;
35278   return 0;
35279 }
35280 _ACEOF
35281 rm -f conftest.$ac_objext conftest$ac_exeext
35282 if { (ac_try="$ac_link"
35283 case "(($ac_try" in
35284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35285   *) ac_try_echo=$ac_try;;
35286 esac
35287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35288   (eval "$ac_link") 2>conftest.er1
35289   ac_status=$?
35290   grep -v '^ *+' conftest.er1 >conftest.err
35291   rm -f conftest.er1
35292   cat conftest.err >&5
35293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35294   (exit $ac_status); } && {
35295          test -z "$ac_c_werror_flag" ||
35296          test ! -s conftest.err
35297        } && test -s conftest$ac_exeext &&
35298        $as_test_x conftest$ac_exeext; then
35299   eval "$as_ac_var=yes"
35300 else
35301   echo "$as_me: failed program was:" >&5
35302 sed 's/^/| /' conftest.$ac_ext >&5
35303
35304         eval "$as_ac_var=no"
35305 fi
35306
35307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35308       conftest$ac_exeext conftest.$ac_ext
35309 fi
35310 ac_res=`eval echo '${'$as_ac_var'}'`
35311                { echo "$as_me:$LINENO: result: $ac_res" >&5
35312 echo "${ECHO_T}$ac_res" >&6; }
35313 if test `eval echo '${'$as_ac_var'}'` = yes; then
35314   cat >>confdefs.h <<_ACEOF
35315 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35316 _ACEOF
35317
35318 fi
35319 done
35320
35321
35322 ac_ext=cpp
35323 ac_cpp='$CXXCPP $CPPFLAGS'
35324 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35325 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35326 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35327
35328 if test "$ac_cv_func_vsnprintf" = "yes"; then
35329         { echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
35330 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6; }
35331 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
35332   echo $ECHO_N "(cached) $ECHO_C" >&6
35333 else
35334
35335                                                             cat >conftest.$ac_ext <<_ACEOF
35336 /* confdefs.h.  */
35337 _ACEOF
35338 cat confdefs.h >>conftest.$ac_ext
35339 cat >>conftest.$ac_ext <<_ACEOF
35340 /* end confdefs.h.  */
35341
35342                     #include <stdio.h>
35343                     #include <stdarg.h>
35344                     #ifdef __MSL__
35345                     #if __MSL__ >= 0x6000
35346                     namespace std {}
35347                     using namespace std;
35348                     #endif
35349                     #endif
35350
35351 int
35352 main ()
35353 {
35354
35355                     char *buf;
35356                     va_list ap;
35357                     vsnprintf(buf, 10u, "%s", ap);
35358
35359   ;
35360   return 0;
35361 }
35362 _ACEOF
35363 rm -f conftest.$ac_objext
35364 if { (ac_try="$ac_compile"
35365 case "(($ac_try" in
35366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35367   *) ac_try_echo=$ac_try;;
35368 esac
35369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35370   (eval "$ac_compile") 2>conftest.er1
35371   ac_status=$?
35372   grep -v '^ *+' conftest.er1 >conftest.err
35373   rm -f conftest.er1
35374   cat conftest.err >&5
35375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35376   (exit $ac_status); } && {
35377          test -z "$ac_cxx_werror_flag" ||
35378          test ! -s conftest.err
35379        } && test -s conftest.$ac_objext; then
35380   wx_cv_func_vsnprintf_decl=yes
35381 else
35382   echo "$as_me: failed program was:" >&5
35383 sed 's/^/| /' conftest.$ac_ext >&5
35384
35385         wx_cv_func_vsnprintf_decl=no
35386
35387 fi
35388
35389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35390
35391
35392 fi
35393 { echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
35394 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6; }
35395
35396     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
35397         cat >>confdefs.h <<\_ACEOF
35398 #define HAVE_VSNPRINTF_DECL 1
35399 _ACEOF
35400
35401
35402                         { echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
35403 echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6; }
35404 if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
35405   echo $ECHO_N "(cached) $ECHO_C" >&6
35406 else
35407
35408                 cat >conftest.$ac_ext <<_ACEOF
35409 /* confdefs.h.  */
35410 _ACEOF
35411 cat confdefs.h >>conftest.$ac_ext
35412 cat >>conftest.$ac_ext <<_ACEOF
35413 /* end confdefs.h.  */
35414
35415                         #include <stdio.h>
35416                         #include <stdarg.h>
35417                         #ifdef __MSL__
35418                         #if __MSL__ >= 0x6000
35419                         namespace std {}
35420                         using namespace std;
35421                         #endif
35422                         #endif
35423
35424 int
35425 main ()
35426 {
35427
35428                         char *buf;
35429                         va_list ap;
35430                         const char *fmt = "%s";
35431                         vsnprintf(buf, 10u, fmt, ap);
35432
35433   ;
35434   return 0;
35435 }
35436 _ACEOF
35437 rm -f conftest.$ac_objext
35438 if { (ac_try="$ac_compile"
35439 case "(($ac_try" in
35440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35441   *) ac_try_echo=$ac_try;;
35442 esac
35443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35444   (eval "$ac_compile") 2>conftest.er1
35445   ac_status=$?
35446   grep -v '^ *+' conftest.er1 >conftest.err
35447   rm -f conftest.er1
35448   cat conftest.err >&5
35449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35450   (exit $ac_status); } && {
35451          test -z "$ac_cxx_werror_flag" ||
35452          test ! -s conftest.err
35453        } && test -s conftest.$ac_objext; then
35454   wx_cv_func_broken_vsnprintf_decl=no
35455 else
35456   echo "$as_me: failed program was:" >&5
35457 sed 's/^/| /' conftest.$ac_ext >&5
35458
35459         wx_cv_func_broken_vsnprintf_decl=yes
35460
35461 fi
35462
35463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35464
35465
35466 fi
35467 { echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
35468 echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6; }
35469
35470         if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
35471             cat >>confdefs.h <<\_ACEOF
35472 #define HAVE_BROKEN_VSNPRINTF_DECL 1
35473 _ACEOF
35474
35475         fi
35476     fi
35477 fi
35478
35479 if test "$ac_cv_func_snprintf" = "yes"; then
35480     { echo "$as_me:$LINENO: checking for snprintf declaration" >&5
35481 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6; }
35482 if test "${wx_cv_func_snprintf_decl+set}" = set; then
35483   echo $ECHO_N "(cached) $ECHO_C" >&6
35484 else
35485
35486             cat >conftest.$ac_ext <<_ACEOF
35487 /* confdefs.h.  */
35488 _ACEOF
35489 cat confdefs.h >>conftest.$ac_ext
35490 cat >>conftest.$ac_ext <<_ACEOF
35491 /* end confdefs.h.  */
35492
35493                     #include <stdio.h>
35494                     #include <stdarg.h>
35495                     #ifdef __MSL__
35496                     #if __MSL__ >= 0x6000
35497                     namespace std {}
35498                     using namespace std;
35499                     #endif
35500                     #endif
35501
35502 int
35503 main ()
35504 {
35505
35506                     char *buf;
35507                     snprintf(buf, 10u, "%s", "wx");
35508
35509   ;
35510   return 0;
35511 }
35512 _ACEOF
35513 rm -f conftest.$ac_objext
35514 if { (ac_try="$ac_compile"
35515 case "(($ac_try" in
35516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35517   *) ac_try_echo=$ac_try;;
35518 esac
35519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35520   (eval "$ac_compile") 2>conftest.er1
35521   ac_status=$?
35522   grep -v '^ *+' conftest.er1 >conftest.err
35523   rm -f conftest.er1
35524   cat conftest.err >&5
35525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35526   (exit $ac_status); } && {
35527          test -z "$ac_cxx_werror_flag" ||
35528          test ! -s conftest.err
35529        } && test -s conftest.$ac_objext; then
35530   wx_cv_func_snprintf_decl=yes
35531 else
35532   echo "$as_me: failed program was:" >&5
35533 sed 's/^/| /' conftest.$ac_ext >&5
35534
35535         wx_cv_func_snprintf_decl=no
35536
35537 fi
35538
35539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35540
35541
35542 fi
35543 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
35544 echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6; }
35545
35546     if test "$wx_cv_func_snprintf_decl" = "yes"; then
35547         cat >>confdefs.h <<\_ACEOF
35548 #define HAVE_SNPRINTF_DECL 1
35549 _ACEOF
35550
35551     fi
35552
35553     if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
35554
35555                                         { echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
35556 echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6; }
35557 if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
35558   echo $ECHO_N "(cached) $ECHO_C" >&6
35559 else
35560
35561                 if test "$cross_compiling" = yes; then
35562
35563                         { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
35564 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
35565 echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
35566 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
35567                         wx_cv_func_snprintf_pos_params=no
35568
35569
35570 else
35571   cat >conftest.$ac_ext <<_ACEOF
35572 /* confdefs.h.  */
35573 _ACEOF
35574 cat confdefs.h >>conftest.$ac_ext
35575 cat >>conftest.$ac_ext <<_ACEOF
35576 /* end confdefs.h.  */
35577
35578                         #include <stdio.h>
35579
35580                         int main (void)
35581                         {
35582                             char buffer[128];
35583                             snprintf (buffer, 128, "%2$d %3$d %1$d", 1, 2, 3);
35584                             if (strcmp ("2 3 1", buffer) == 0)
35585                                 exit (0);
35586                             exit (1);
35587                         }
35588
35589 _ACEOF
35590 rm -f conftest$ac_exeext
35591 if { (ac_try="$ac_link"
35592 case "(($ac_try" in
35593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35594   *) ac_try_echo=$ac_try;;
35595 esac
35596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35597   (eval "$ac_link") 2>&5
35598   ac_status=$?
35599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35600   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35601   { (case "(($ac_try" in
35602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35603   *) ac_try_echo=$ac_try;;
35604 esac
35605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35606   (eval "$ac_try") 2>&5
35607   ac_status=$?
35608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35609   (exit $ac_status); }; }; then
35610   wx_cv_func_snprintf_pos_params=no
35611 else
35612   echo "$as_me: program exited with status $ac_status" >&5
35613 echo "$as_me: failed program was:" >&5
35614 sed 's/^/| /' conftest.$ac_ext >&5
35615
35616 ( exit $ac_status )
35617 wx_cv_func_snprintf_pos_params=yes
35618 fi
35619 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35620 fi
35621
35622
35623
35624
35625 fi
35626 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
35627 echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6; }
35628
35629         if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
35630             cat >>confdefs.h <<\_ACEOF
35631 #define HAVE_UNIX98_PRINTF 1
35632 _ACEOF
35633
35634         fi
35635     fi
35636 fi
35637
35638 if test "$ac_cv_func_vsscanf" = "yes"; then
35639     { echo "$as_me:$LINENO: checking for vsscanf declaration" >&5
35640 echo $ECHO_N "checking for vsscanf declaration... $ECHO_C" >&6; }
35641 if test "${wx_cv_func_vsscanf_decl+set}" = set; then
35642   echo $ECHO_N "(cached) $ECHO_C" >&6
35643 else
35644
35645             cat >conftest.$ac_ext <<_ACEOF
35646 /* confdefs.h.  */
35647 _ACEOF
35648 cat confdefs.h >>conftest.$ac_ext
35649 cat >>conftest.$ac_ext <<_ACEOF
35650 /* end confdefs.h.  */
35651
35652                     #include <stdio.h>
35653                     #include <stdarg.h>
35654                     #ifdef __MSL__
35655                     #if __MSL__ >= 0x6000
35656                     namespace std {}
35657                     using namespace std;
35658                     #endif
35659                     #endif
35660
35661 int
35662 main ()
35663 {
35664
35665                     char *buf;
35666                     va_list args;
35667                     vsscanf(buf, "%s", args);
35668
35669   ;
35670   return 0;
35671 }
35672 _ACEOF
35673 rm -f conftest.$ac_objext
35674 if { (ac_try="$ac_compile"
35675 case "(($ac_try" in
35676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35677   *) ac_try_echo=$ac_try;;
35678 esac
35679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35680   (eval "$ac_compile") 2>conftest.er1
35681   ac_status=$?
35682   grep -v '^ *+' conftest.er1 >conftest.err
35683   rm -f conftest.er1
35684   cat conftest.err >&5
35685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35686   (exit $ac_status); } && {
35687          test -z "$ac_cxx_werror_flag" ||
35688          test ! -s conftest.err
35689        } && test -s conftest.$ac_objext; then
35690   wx_cv_func_vsscanf_decl=yes
35691 else
35692   echo "$as_me: failed program was:" >&5
35693 sed 's/^/| /' conftest.$ac_ext >&5
35694
35695         wx_cv_func_vsscanf_decl=no
35696
35697 fi
35698
35699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35700
35701
35702 fi
35703 { echo "$as_me:$LINENO: result: $wx_cv_func_vsscanf_decl" >&5
35704 echo "${ECHO_T}$wx_cv_func_vsscanf_decl" >&6; }
35705
35706     if test "$wx_cv_func_vsscanf_decl" = "yes"; then
35707         cat >>confdefs.h <<\_ACEOF
35708 #define HAVE_VSSCANF_DECL 1
35709 _ACEOF
35710
35711     fi
35712 fi
35713 ac_ext=c
35714 ac_cpp='$CPP $CPPFLAGS'
35715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35718
35719
35720 if test "$wxUSE_UNICODE" = yes; then
35721
35722             wchar_headers="#include <stdio.h>
35723 #include <wchar.h>"
35724     case "${host}" in
35725         *-*-solaris2* )
35726
35727 for ac_header in widec.h
35728 do
35729 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35730 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35733   echo $ECHO_N "(cached) $ECHO_C" >&6
35734 else
35735   cat >conftest.$ac_ext <<_ACEOF
35736 /* confdefs.h.  */
35737 _ACEOF
35738 cat confdefs.h >>conftest.$ac_ext
35739 cat >>conftest.$ac_ext <<_ACEOF
35740 /* end confdefs.h.  */
35741 $ac_includes_default
35742
35743 #include <$ac_header>
35744 _ACEOF
35745 rm -f conftest.$ac_objext
35746 if { (ac_try="$ac_compile"
35747 case "(($ac_try" in
35748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35749   *) ac_try_echo=$ac_try;;
35750 esac
35751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35752   (eval "$ac_compile") 2>conftest.er1
35753   ac_status=$?
35754   grep -v '^ *+' conftest.er1 >conftest.err
35755   rm -f conftest.er1
35756   cat conftest.err >&5
35757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35758   (exit $ac_status); } && {
35759          test -z "$ac_c_werror_flag" ||
35760          test ! -s conftest.err
35761        } && test -s conftest.$ac_objext; then
35762   eval "$as_ac_Header=yes"
35763 else
35764   echo "$as_me: failed program was:" >&5
35765 sed 's/^/| /' conftest.$ac_ext >&5
35766
35767         eval "$as_ac_Header=no"
35768 fi
35769
35770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35771 fi
35772 ac_res=`eval echo '${'$as_ac_Header'}'`
35773                { echo "$as_me:$LINENO: result: $ac_res" >&5
35774 echo "${ECHO_T}$ac_res" >&6; }
35775 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35776   cat >>confdefs.h <<_ACEOF
35777 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35778 _ACEOF
35779
35780 fi
35781
35782 done
35783
35784             if test "$ac_cv_header_widec_h" = "yes"; then
35785                 wchar_headers="$wchar_headers
35786 #include <widec.h>"
35787             fi
35788     esac
35789
35790
35791   for wx_func in putws fputws wprintf vswprintf vswscanf
35792   do
35793     { echo "$as_me:$LINENO: checking for $wx_func" >&5
35794 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
35795 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
35796   echo $ECHO_N "(cached) $ECHO_C" >&6
35797 else
35798
35799         cat >conftest.$ac_ext <<_ACEOF
35800
35801             /* confdefs.h.  */
35802 _ACEOF
35803 cat confdefs.h >>conftest.$ac_ext
35804 cat >>conftest.$ac_ext <<_ACEOF
35805 /* end confdefs.h.  */
35806
35807                 $wchar_headers
35808                 $ac_includes_default
35809
35810 int
35811 main ()
35812 {
35813
35814                 #ifndef $wx_func
35815                   &$wx_func;
35816                 #endif
35817
35818
35819   ;
35820   return 0;
35821 }
35822
35823 _ACEOF
35824 rm -f conftest.$ac_objext conftest$ac_exeext
35825 if { (ac_try="$ac_link"
35826 case "(($ac_try" in
35827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35828   *) ac_try_echo=$ac_try;;
35829 esac
35830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35831   (eval "$ac_link") 2>conftest.er1
35832   ac_status=$?
35833   grep -v '^ *+' conftest.er1 >conftest.err
35834   rm -f conftest.er1
35835   cat conftest.err >&5
35836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35837   (exit $ac_status); } && {
35838          test -z "$ac_c_werror_flag" ||
35839          test ! -s conftest.err
35840        } && test -s conftest$ac_exeext &&
35841        $as_test_x conftest$ac_exeext; then
35842   eval wx_cv_func_$wx_func=yes
35843 else
35844   echo "$as_me: failed program was:" >&5
35845 sed 's/^/| /' conftest.$ac_ext >&5
35846
35847         eval wx_cv_func_$wx_func=no
35848 fi
35849
35850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35851       conftest$ac_exeext conftest.$ac_ext
35852
35853 fi
35854 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
35855                { echo "$as_me:$LINENO: result: $ac_res" >&5
35856 echo "${ECHO_T}$ac_res" >&6; }
35857
35858     if eval test \$wx_cv_func_$wx_func = yes
35859     then
35860       cat >>confdefs.h <<_ACEOF
35861 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
35862 _ACEOF
35863
35864
35865     else
35866       :
35867
35868     fi
35869   done
35870
35871
35872                 { echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
35873 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6; }
35874     cat >conftest.$ac_ext <<_ACEOF
35875 /* confdefs.h.  */
35876 _ACEOF
35877 cat confdefs.h >>conftest.$ac_ext
35878 cat >>conftest.$ac_ext <<_ACEOF
35879 /* end confdefs.h.  */
35880 #include <wchar.h>
35881 int
35882 main ()
35883 {
35884 &_vsnwprintf;
35885   ;
35886   return 0;
35887 }
35888 _ACEOF
35889 rm -f conftest.$ac_objext
35890 if { (ac_try="$ac_compile"
35891 case "(($ac_try" in
35892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35893   *) ac_try_echo=$ac_try;;
35894 esac
35895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35896   (eval "$ac_compile") 2>conftest.er1
35897   ac_status=$?
35898   grep -v '^ *+' conftest.er1 >conftest.err
35899   rm -f conftest.er1
35900   cat conftest.err >&5
35901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35902   (exit $ac_status); } && {
35903          test -z "$ac_c_werror_flag" ||
35904          test ! -s conftest.err
35905        } && test -s conftest.$ac_objext; then
35906   { echo "$as_me:$LINENO: result: yes" >&5
35907 echo "${ECHO_T}yes" >&6; }
35908                     cat >>confdefs.h <<\_ACEOF
35909 #define HAVE__VSNWPRINTF 1
35910 _ACEOF
35911
35912 else
35913   echo "$as_me: failed program was:" >&5
35914 sed 's/^/| /' conftest.$ac_ext >&5
35915
35916         { echo "$as_me:$LINENO: result: no" >&5
35917 echo "${ECHO_T}no" >&6; }
35918 fi
35919
35920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
35921 fi
35922
35923 if test "$wxUSE_FILE" = "yes"; then
35924
35925   for wx_func in fsync
35926   do
35927     { echo "$as_me:$LINENO: checking for $wx_func" >&5
35928 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
35929 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
35930   echo $ECHO_N "(cached) $ECHO_C" >&6
35931 else
35932
35933         cat >conftest.$ac_ext <<_ACEOF
35934
35935             /* confdefs.h.  */
35936 _ACEOF
35937 cat confdefs.h >>conftest.$ac_ext
35938 cat >>conftest.$ac_ext <<_ACEOF
35939 /* end confdefs.h.  */
35940
35941
35942                 $ac_includes_default
35943
35944 int
35945 main ()
35946 {
35947
35948                 #ifndef $wx_func
35949                   &$wx_func;
35950                 #endif
35951
35952
35953   ;
35954   return 0;
35955 }
35956
35957 _ACEOF
35958 rm -f conftest.$ac_objext conftest$ac_exeext
35959 if { (ac_try="$ac_link"
35960 case "(($ac_try" in
35961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35962   *) ac_try_echo=$ac_try;;
35963 esac
35964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35965   (eval "$ac_link") 2>conftest.er1
35966   ac_status=$?
35967   grep -v '^ *+' conftest.er1 >conftest.err
35968   rm -f conftest.er1
35969   cat conftest.err >&5
35970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35971   (exit $ac_status); } && {
35972          test -z "$ac_c_werror_flag" ||
35973          test ! -s conftest.err
35974        } && test -s conftest$ac_exeext &&
35975        $as_test_x conftest$ac_exeext; then
35976   eval wx_cv_func_$wx_func=yes
35977 else
35978   echo "$as_me: failed program was:" >&5
35979 sed 's/^/| /' conftest.$ac_ext >&5
35980
35981         eval wx_cv_func_$wx_func=no
35982 fi
35983
35984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35985       conftest$ac_exeext conftest.$ac_ext
35986
35987 fi
35988 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
35989                { echo "$as_me:$LINENO: result: $ac_res" >&5
35990 echo "${ECHO_T}$ac_res" >&6; }
35991
35992     if eval test \$wx_cv_func_$wx_func = yes
35993     then
35994       cat >>confdefs.h <<_ACEOF
35995 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
35996 _ACEOF
35997
35998
35999     else
36000       :
36001
36002     fi
36003   done
36004
36005 fi
36006
36007 ac_ext=cpp
36008 ac_cpp='$CXXCPP $CPPFLAGS'
36009 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36010 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36011 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36012
36013
36014   for wx_func in round
36015   do
36016     { echo "$as_me:$LINENO: checking for $wx_func" >&5
36017 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
36018 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
36019   echo $ECHO_N "(cached) $ECHO_C" >&6
36020 else
36021
36022         cat >conftest.$ac_ext <<_ACEOF
36023
36024             /* confdefs.h.  */
36025 _ACEOF
36026 cat confdefs.h >>conftest.$ac_ext
36027 cat >>conftest.$ac_ext <<_ACEOF
36028 /* end confdefs.h.  */
36029
36030                 #include <math.h>
36031                 $ac_includes_default
36032
36033 int
36034 main ()
36035 {
36036
36037                 #ifndef $wx_func
36038                   &$wx_func;
36039                 #endif
36040
36041
36042   ;
36043   return 0;
36044 }
36045
36046 _ACEOF
36047 rm -f conftest.$ac_objext conftest$ac_exeext
36048 if { (ac_try="$ac_link"
36049 case "(($ac_try" in
36050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36051   *) ac_try_echo=$ac_try;;
36052 esac
36053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36054   (eval "$ac_link") 2>conftest.er1
36055   ac_status=$?
36056   grep -v '^ *+' conftest.er1 >conftest.err
36057   rm -f conftest.er1
36058   cat conftest.err >&5
36059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36060   (exit $ac_status); } && {
36061          test -z "$ac_cxx_werror_flag" ||
36062          test ! -s conftest.err
36063        } && test -s conftest$ac_exeext &&
36064        $as_test_x conftest$ac_exeext; then
36065   eval wx_cv_func_$wx_func=yes
36066 else
36067   echo "$as_me: failed program was:" >&5
36068 sed 's/^/| /' conftest.$ac_ext >&5
36069
36070         eval wx_cv_func_$wx_func=no
36071 fi
36072
36073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36074       conftest$ac_exeext conftest.$ac_ext
36075
36076 fi
36077 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
36078                { echo "$as_me:$LINENO: result: $ac_res" >&5
36079 echo "${ECHO_T}$ac_res" >&6; }
36080
36081     if eval test \$wx_cv_func_$wx_func = yes
36082     then
36083       cat >>confdefs.h <<_ACEOF
36084 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
36085 _ACEOF
36086
36087
36088     else
36089       :
36090
36091     fi
36092   done
36093
36094 ac_ext=c
36095 ac_cpp='$CPP $CPPFLAGS'
36096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36099
36100
36101 if test "$TOOLKIT" != "MSW"; then
36102
36103 if test "$wxUSE_LIBICONV" != "no" ; then
36104
36105
36106
36107 # Check whether --with-libiconv-prefix was given.
36108 if test "${with_libiconv_prefix+set}" = set; then
36109   withval=$with_libiconv_prefix;
36110     for dir in `echo "$withval" | tr : ' '`; do
36111       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
36112       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
36113     done
36114
36115 fi
36116
36117
36118   { echo "$as_me:$LINENO: checking for iconv" >&5
36119 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
36120 if test "${am_cv_func_iconv+set}" = set; then
36121   echo $ECHO_N "(cached) $ECHO_C" >&6
36122 else
36123
36124     am_cv_func_iconv="no, consider installing GNU libiconv"
36125     am_cv_lib_iconv=no
36126     cat >conftest.$ac_ext <<_ACEOF
36127 /* confdefs.h.  */
36128 _ACEOF
36129 cat confdefs.h >>conftest.$ac_ext
36130 cat >>conftest.$ac_ext <<_ACEOF
36131 /* end confdefs.h.  */
36132 #include <stdlib.h>
36133 #include <iconv.h>
36134 int
36135 main ()
36136 {
36137 iconv_t cd = iconv_open("","");
36138        iconv(cd,NULL,NULL,NULL,NULL);
36139        iconv_close(cd);
36140   ;
36141   return 0;
36142 }
36143 _ACEOF
36144 rm -f conftest.$ac_objext conftest$ac_exeext
36145 if { (ac_try="$ac_link"
36146 case "(($ac_try" in
36147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36148   *) ac_try_echo=$ac_try;;
36149 esac
36150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36151   (eval "$ac_link") 2>conftest.er1
36152   ac_status=$?
36153   grep -v '^ *+' conftest.er1 >conftest.err
36154   rm -f conftest.er1
36155   cat conftest.err >&5
36156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36157   (exit $ac_status); } && {
36158          test -z "$ac_c_werror_flag" ||
36159          test ! -s conftest.err
36160        } && test -s conftest$ac_exeext &&
36161        $as_test_x conftest$ac_exeext; then
36162   am_cv_func_iconv=yes
36163 else
36164   echo "$as_me: failed program was:" >&5
36165 sed 's/^/| /' conftest.$ac_ext >&5
36166
36167
36168 fi
36169
36170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36171       conftest$ac_exeext conftest.$ac_ext
36172     if test "$am_cv_func_iconv" != yes; then
36173       am_save_LIBS="$LIBS"
36174       LIBS="$LIBS -liconv"
36175       cat >conftest.$ac_ext <<_ACEOF
36176 /* confdefs.h.  */
36177 _ACEOF
36178 cat confdefs.h >>conftest.$ac_ext
36179 cat >>conftest.$ac_ext <<_ACEOF
36180 /* end confdefs.h.  */
36181 #include <stdlib.h>
36182 #include <iconv.h>
36183 int
36184 main ()
36185 {
36186 iconv_t cd = iconv_open("","");
36187          iconv(cd,NULL,NULL,NULL,NULL);
36188          iconv_close(cd);
36189   ;
36190   return 0;
36191 }
36192 _ACEOF
36193 rm -f conftest.$ac_objext conftest$ac_exeext
36194 if { (ac_try="$ac_link"
36195 case "(($ac_try" in
36196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36197   *) ac_try_echo=$ac_try;;
36198 esac
36199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36200   (eval "$ac_link") 2>conftest.er1
36201   ac_status=$?
36202   grep -v '^ *+' conftest.er1 >conftest.err
36203   rm -f conftest.er1
36204   cat conftest.err >&5
36205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36206   (exit $ac_status); } && {
36207          test -z "$ac_c_werror_flag" ||
36208          test ! -s conftest.err
36209        } && test -s conftest$ac_exeext &&
36210        $as_test_x conftest$ac_exeext; then
36211   am_cv_lib_iconv=yes
36212         am_cv_func_iconv=yes
36213 else
36214   echo "$as_me: failed program was:" >&5
36215 sed 's/^/| /' conftest.$ac_ext >&5
36216
36217
36218 fi
36219
36220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36221       conftest$ac_exeext conftest.$ac_ext
36222       LIBS="$am_save_LIBS"
36223     fi
36224
36225 fi
36226 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
36227 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
36228   if test "$am_cv_func_iconv" = yes; then
36229
36230 cat >>confdefs.h <<\_ACEOF
36231 #define HAVE_ICONV 1
36232 _ACEOF
36233
36234     { echo "$as_me:$LINENO: checking if iconv needs const" >&5
36235 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6; }
36236 if test "${wx_cv_func_iconv_const+set}" = set; then
36237   echo $ECHO_N "(cached) $ECHO_C" >&6
36238 else
36239   cat >conftest.$ac_ext <<_ACEOF
36240 /* confdefs.h.  */
36241 _ACEOF
36242 cat confdefs.h >>conftest.$ac_ext
36243 cat >>conftest.$ac_ext <<_ACEOF
36244 /* end confdefs.h.  */
36245
36246 #include <stdlib.h>
36247 #include <iconv.h>
36248 extern
36249 #ifdef __cplusplus
36250 "C"
36251 #endif
36252 #if defined(__STDC__) || defined(__cplusplus)
36253 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
36254 #else
36255 size_t iconv();
36256 #endif
36257
36258 int
36259 main ()
36260 {
36261
36262   ;
36263   return 0;
36264 }
36265 _ACEOF
36266 rm -f conftest.$ac_objext
36267 if { (ac_try="$ac_compile"
36268 case "(($ac_try" in
36269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36270   *) ac_try_echo=$ac_try;;
36271 esac
36272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36273   (eval "$ac_compile") 2>conftest.er1
36274   ac_status=$?
36275   grep -v '^ *+' conftest.er1 >conftest.err
36276   rm -f conftest.er1
36277   cat conftest.err >&5
36278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36279   (exit $ac_status); } && {
36280          test -z "$ac_c_werror_flag" ||
36281          test ! -s conftest.err
36282        } && test -s conftest.$ac_objext; then
36283   wx_cv_func_iconv_const="no"
36284 else
36285   echo "$as_me: failed program was:" >&5
36286 sed 's/^/| /' conftest.$ac_ext >&5
36287
36288         wx_cv_func_iconv_const="yes"
36289
36290 fi
36291
36292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36293
36294 fi
36295 { echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
36296 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6; }
36297
36298     iconv_const=
36299     if test "x$wx_cv_func_iconv_const" = "xyes"; then
36300         iconv_const="const"
36301     fi
36302
36303
36304 cat >>confdefs.h <<_ACEOF
36305 #define ICONV_CONST $iconv_const
36306 _ACEOF
36307
36308   fi
36309   LIBICONV=
36310   if test "$am_cv_lib_iconv" = yes; then
36311     LIBICONV="-liconv"
36312   fi
36313
36314
36315     LIBS="$LIBICONV $LIBS"
36316 fi
36317
36318 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
36319
36320 for ac_func in sigaction
36321 do
36322 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36323 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36324 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36325 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36326   echo $ECHO_N "(cached) $ECHO_C" >&6
36327 else
36328   cat >conftest.$ac_ext <<_ACEOF
36329 /* confdefs.h.  */
36330 _ACEOF
36331 cat confdefs.h >>conftest.$ac_ext
36332 cat >>conftest.$ac_ext <<_ACEOF
36333 /* end confdefs.h.  */
36334 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36335    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36336 #define $ac_func innocuous_$ac_func
36337
36338 /* System header to define __stub macros and hopefully few prototypes,
36339     which can conflict with char $ac_func (); below.
36340     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36341     <limits.h> exists even on freestanding compilers.  */
36342
36343 #ifdef __STDC__
36344 # include <limits.h>
36345 #else
36346 # include <assert.h>
36347 #endif
36348
36349 #undef $ac_func
36350
36351 /* Override any GCC internal prototype to avoid an error.
36352    Use char because int might match the return type of a GCC
36353    builtin and then its argument prototype would still apply.  */
36354 #ifdef __cplusplus
36355 extern "C"
36356 #endif
36357 char $ac_func ();
36358 /* The GNU C library defines this for functions which it implements
36359     to always fail with ENOSYS.  Some functions are actually named
36360     something starting with __ and the normal name is an alias.  */
36361 #if defined __stub_$ac_func || defined __stub___$ac_func
36362 choke me
36363 #endif
36364
36365 int
36366 main ()
36367 {
36368 return $ac_func ();
36369   ;
36370   return 0;
36371 }
36372 _ACEOF
36373 rm -f conftest.$ac_objext conftest$ac_exeext
36374 if { (ac_try="$ac_link"
36375 case "(($ac_try" in
36376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36377   *) ac_try_echo=$ac_try;;
36378 esac
36379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36380   (eval "$ac_link") 2>conftest.er1
36381   ac_status=$?
36382   grep -v '^ *+' conftest.er1 >conftest.err
36383   rm -f conftest.er1
36384   cat conftest.err >&5
36385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36386   (exit $ac_status); } && {
36387          test -z "$ac_c_werror_flag" ||
36388          test ! -s conftest.err
36389        } && test -s conftest$ac_exeext &&
36390        $as_test_x conftest$ac_exeext; then
36391   eval "$as_ac_var=yes"
36392 else
36393   echo "$as_me: failed program was:" >&5
36394 sed 's/^/| /' conftest.$ac_ext >&5
36395
36396         eval "$as_ac_var=no"
36397 fi
36398
36399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36400       conftest$ac_exeext conftest.$ac_ext
36401 fi
36402 ac_res=`eval echo '${'$as_ac_var'}'`
36403                { echo "$as_me:$LINENO: result: $ac_res" >&5
36404 echo "${ECHO_T}$ac_res" >&6; }
36405 if test `eval echo '${'$as_ac_var'}'` = yes; then
36406   cat >>confdefs.h <<_ACEOF
36407 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36408 _ACEOF
36409
36410 fi
36411 done
36412
36413
36414     if test "$ac_cv_func_sigaction" = "no"; then
36415         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
36416 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
36417         wxUSE_ON_FATAL_EXCEPTION=no
36418     fi
36419
36420     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
36421       { echo "$as_me:$LINENO: checking for sa_handler type" >&5
36422 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6; }
36423 if test "${wx_cv_type_sa_handler+set}" = set; then
36424   echo $ECHO_N "(cached) $ECHO_C" >&6
36425 else
36426
36427                 ac_ext=cpp
36428 ac_cpp='$CXXCPP $CPPFLAGS'
36429 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36430 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36431 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36432
36433         cat >conftest.$ac_ext <<_ACEOF
36434 /* confdefs.h.  */
36435 _ACEOF
36436 cat confdefs.h >>conftest.$ac_ext
36437 cat >>conftest.$ac_ext <<_ACEOF
36438 /* end confdefs.h.  */
36439 #include <signal.h>
36440 int
36441 main ()
36442 {
36443
36444                         extern void testSigHandler(int);
36445
36446                         struct sigaction sa;
36447                         sa.sa_handler = testSigHandler;
36448
36449   ;
36450   return 0;
36451 }
36452 _ACEOF
36453 rm -f conftest.$ac_objext
36454 if { (ac_try="$ac_compile"
36455 case "(($ac_try" in
36456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36457   *) ac_try_echo=$ac_try;;
36458 esac
36459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36460   (eval "$ac_compile") 2>conftest.er1
36461   ac_status=$?
36462   grep -v '^ *+' conftest.er1 >conftest.err
36463   rm -f conftest.er1
36464   cat conftest.err >&5
36465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36466   (exit $ac_status); } && {
36467          test -z "$ac_cxx_werror_flag" ||
36468          test ! -s conftest.err
36469        } && test -s conftest.$ac_objext; then
36470
36471                         wx_cv_type_sa_handler=int
36472
36473 else
36474   echo "$as_me: failed program was:" >&5
36475 sed 's/^/| /' conftest.$ac_ext >&5
36476
36477
36478                         wx_cv_type_sa_handler=void
36479
36480 fi
36481
36482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36483         ac_ext=c
36484 ac_cpp='$CPP $CPPFLAGS'
36485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36488
36489
36490 fi
36491 { echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
36492 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6; }
36493
36494       cat >>confdefs.h <<_ACEOF
36495 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
36496 _ACEOF
36497
36498     fi
36499 fi
36500
36501 if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
36502     { echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
36503 echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6; }
36504 if test "${wx_cv_func_backtrace+set}" = set; then
36505   echo $ECHO_N "(cached) $ECHO_C" >&6
36506 else
36507
36508             ac_ext=cpp
36509 ac_cpp='$CXXCPP $CPPFLAGS'
36510 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36511 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36512 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36513
36514             cat >conftest.$ac_ext <<_ACEOF
36515 /* confdefs.h.  */
36516 _ACEOF
36517 cat confdefs.h >>conftest.$ac_ext
36518 cat >>conftest.$ac_ext <<_ACEOF
36519 /* end confdefs.h.  */
36520 #include <execinfo.h>
36521 int
36522 main ()
36523 {
36524
36525                     void *trace[1];
36526                     char **messages;
36527
36528                     backtrace(trace, 1);
36529                     messages = backtrace_symbols(trace, 1);
36530
36531   ;
36532   return 0;
36533 }
36534 _ACEOF
36535 rm -f conftest.$ac_objext
36536 if { (ac_try="$ac_compile"
36537 case "(($ac_try" in
36538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36539   *) ac_try_echo=$ac_try;;
36540 esac
36541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36542   (eval "$ac_compile") 2>conftest.er1
36543   ac_status=$?
36544   grep -v '^ *+' conftest.er1 >conftest.err
36545   rm -f conftest.er1
36546   cat conftest.err >&5
36547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36548   (exit $ac_status); } && {
36549          test -z "$ac_cxx_werror_flag" ||
36550          test ! -s conftest.err
36551        } && test -s conftest.$ac_objext; then
36552   wx_cv_func_backtrace=yes
36553 else
36554   echo "$as_me: failed program was:" >&5
36555 sed 's/^/| /' conftest.$ac_ext >&5
36556
36557         wx_cv_func_backtrace=no
36558
36559 fi
36560
36561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36562             ac_ext=c
36563 ac_cpp='$CPP $CPPFLAGS'
36564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36567
36568
36569
36570 fi
36571 { echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
36572 echo "${ECHO_T}$wx_cv_func_backtrace" >&6; }
36573
36574
36575     if test "$wx_cv_func_backtrace" = "no"; then
36576         { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
36577 echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
36578         wxUSE_STACKWALKER=no
36579     else
36580         { echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
36581 echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6; }
36582 if test "${wx_cv_func_cxa_demangle+set}" = set; then
36583   echo $ECHO_N "(cached) $ECHO_C" >&6
36584 else
36585
36586                 ac_ext=cpp
36587 ac_cpp='$CXXCPP $CPPFLAGS'
36588 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36589 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36590 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36591
36592                 cat >conftest.$ac_ext <<_ACEOF
36593 /* confdefs.h.  */
36594 _ACEOF
36595 cat confdefs.h >>conftest.$ac_ext
36596 cat >>conftest.$ac_ext <<_ACEOF
36597 /* end confdefs.h.  */
36598 #include <cxxabi.h>
36599 int
36600 main ()
36601 {
36602
36603                         int rc;
36604                         __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
36605
36606   ;
36607   return 0;
36608 }
36609 _ACEOF
36610 rm -f conftest.$ac_objext conftest$ac_exeext
36611 if { (ac_try="$ac_link"
36612 case "(($ac_try" in
36613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36614   *) ac_try_echo=$ac_try;;
36615 esac
36616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36617   (eval "$ac_link") 2>conftest.er1
36618   ac_status=$?
36619   grep -v '^ *+' conftest.er1 >conftest.err
36620   rm -f conftest.er1
36621   cat conftest.err >&5
36622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36623   (exit $ac_status); } && {
36624          test -z "$ac_cxx_werror_flag" ||
36625          test ! -s conftest.err
36626        } && test -s conftest$ac_exeext &&
36627        $as_test_x conftest$ac_exeext; then
36628   wx_cv_func_cxa_demangle=yes
36629 else
36630   echo "$as_me: failed program was:" >&5
36631 sed 's/^/| /' conftest.$ac_ext >&5
36632
36633         wx_cv_func_cxa_demangle=no
36634
36635 fi
36636
36637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36638       conftest$ac_exeext conftest.$ac_ext
36639                 ac_ext=c
36640 ac_cpp='$CPP $CPPFLAGS'
36641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36644
36645
36646
36647 fi
36648 { echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
36649 echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6; }
36650
36651         if test "$wx_cv_func_cxa_demangle" = "yes"; then
36652             cat >>confdefs.h <<\_ACEOF
36653 #define HAVE_CXA_DEMANGLE 1
36654 _ACEOF
36655
36656         fi
36657     fi
36658 fi
36659
36660 if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != 1 -a "$USE_UNIX" != 1; then
36661     { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
36662 echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
36663     wxUSE_STACKWALKER=no
36664 fi
36665
36666
36667
36668
36669 for ac_func in mkstemp mktemp
36670 do
36671 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36672 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36673 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36674 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36675   echo $ECHO_N "(cached) $ECHO_C" >&6
36676 else
36677   cat >conftest.$ac_ext <<_ACEOF
36678 /* confdefs.h.  */
36679 _ACEOF
36680 cat confdefs.h >>conftest.$ac_ext
36681 cat >>conftest.$ac_ext <<_ACEOF
36682 /* end confdefs.h.  */
36683 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36684    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36685 #define $ac_func innocuous_$ac_func
36686
36687 /* System header to define __stub macros and hopefully few prototypes,
36688     which can conflict with char $ac_func (); below.
36689     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36690     <limits.h> exists even on freestanding compilers.  */
36691
36692 #ifdef __STDC__
36693 # include <limits.h>
36694 #else
36695 # include <assert.h>
36696 #endif
36697
36698 #undef $ac_func
36699
36700 /* Override any GCC internal prototype to avoid an error.
36701    Use char because int might match the return type of a GCC
36702    builtin and then its argument prototype would still apply.  */
36703 #ifdef __cplusplus
36704 extern "C"
36705 #endif
36706 char $ac_func ();
36707 /* The GNU C library defines this for functions which it implements
36708     to always fail with ENOSYS.  Some functions are actually named
36709     something starting with __ and the normal name is an alias.  */
36710 #if defined __stub_$ac_func || defined __stub___$ac_func
36711 choke me
36712 #endif
36713
36714 int
36715 main ()
36716 {
36717 return $ac_func ();
36718   ;
36719   return 0;
36720 }
36721 _ACEOF
36722 rm -f conftest.$ac_objext conftest$ac_exeext
36723 if { (ac_try="$ac_link"
36724 case "(($ac_try" in
36725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36726   *) ac_try_echo=$ac_try;;
36727 esac
36728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36729   (eval "$ac_link") 2>conftest.er1
36730   ac_status=$?
36731   grep -v '^ *+' conftest.er1 >conftest.err
36732   rm -f conftest.er1
36733   cat conftest.err >&5
36734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36735   (exit $ac_status); } && {
36736          test -z "$ac_c_werror_flag" ||
36737          test ! -s conftest.err
36738        } && test -s conftest$ac_exeext &&
36739        $as_test_x conftest$ac_exeext; then
36740   eval "$as_ac_var=yes"
36741 else
36742   echo "$as_me: failed program was:" >&5
36743 sed 's/^/| /' conftest.$ac_ext >&5
36744
36745         eval "$as_ac_var=no"
36746 fi
36747
36748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36749       conftest$ac_exeext conftest.$ac_ext
36750 fi
36751 ac_res=`eval echo '${'$as_ac_var'}'`
36752                { echo "$as_me:$LINENO: result: $ac_res" >&5
36753 echo "${ECHO_T}$ac_res" >&6; }
36754 if test `eval echo '${'$as_ac_var'}'` = yes; then
36755   cat >>confdefs.h <<_ACEOF
36756 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36757 _ACEOF
36758  break
36759 fi
36760 done
36761
36762
36763 { echo "$as_me:$LINENO: checking for statfs" >&5
36764 echo $ECHO_N "checking for statfs... $ECHO_C" >&6; }
36765 if test "${wx_cv_func_statfs+set}" = set; then
36766   echo $ECHO_N "(cached) $ECHO_C" >&6
36767 else
36768   cat >conftest.$ac_ext <<_ACEOF
36769 /* confdefs.h.  */
36770 _ACEOF
36771 cat confdefs.h >>conftest.$ac_ext
36772 cat >>conftest.$ac_ext <<_ACEOF
36773 /* end confdefs.h.  */
36774
36775              #if defined(__BSD__)
36776              #include <sys/param.h>
36777              #include <sys/mount.h>
36778              #else
36779              #include <sys/vfs.h>
36780              #endif
36781
36782 int
36783 main ()
36784 {
36785
36786              long l;
36787              struct statfs fs;
36788              statfs("/", &fs);
36789              l = fs.f_bsize;
36790              l += fs.f_blocks;
36791              l += fs.f_bavail;
36792
36793   ;
36794   return 0;
36795 }
36796 _ACEOF
36797 rm -f conftest.$ac_objext
36798 if { (ac_try="$ac_compile"
36799 case "(($ac_try" in
36800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36801   *) ac_try_echo=$ac_try;;
36802 esac
36803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36804   (eval "$ac_compile") 2>conftest.er1
36805   ac_status=$?
36806   grep -v '^ *+' conftest.er1 >conftest.err
36807   rm -f conftest.er1
36808   cat conftest.err >&5
36809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36810   (exit $ac_status); } && {
36811          test -z "$ac_c_werror_flag" ||
36812          test ! -s conftest.err
36813        } && test -s conftest.$ac_objext; then
36814   wx_cv_func_statfs=yes
36815 else
36816   echo "$as_me: failed program was:" >&5
36817 sed 's/^/| /' conftest.$ac_ext >&5
36818
36819         wx_cv_func_statfs=no
36820
36821 fi
36822
36823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36824
36825 fi
36826 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
36827 echo "${ECHO_T}$wx_cv_func_statfs" >&6; }
36828
36829 if test "$wx_cv_func_statfs" = "yes"; then
36830         { echo "$as_me:$LINENO: checking for statfs declaration" >&5
36831 echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6; }
36832 if test "${wx_cv_func_statfs_decl+set}" = set; then
36833   echo $ECHO_N "(cached) $ECHO_C" >&6
36834 else
36835   ac_ext=cpp
36836 ac_cpp='$CXXCPP $CPPFLAGS'
36837 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36838 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36839 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36840
36841         cat >conftest.$ac_ext <<_ACEOF
36842 /* confdefs.h.  */
36843 _ACEOF
36844 cat confdefs.h >>conftest.$ac_ext
36845 cat >>conftest.$ac_ext <<_ACEOF
36846 /* end confdefs.h.  */
36847
36848                  #if defined(__BSD__)
36849                  #include <sys/param.h>
36850                  #include <sys/mount.h>
36851                  #else
36852                  #include <sys/vfs.h>
36853                  #endif
36854
36855 int
36856 main ()
36857 {
36858
36859                 struct statfs fs;
36860                 statfs("", &fs);
36861
36862   ;
36863   return 0;
36864 }
36865 _ACEOF
36866 rm -f conftest.$ac_objext
36867 if { (ac_try="$ac_compile"
36868 case "(($ac_try" in
36869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36870   *) ac_try_echo=$ac_try;;
36871 esac
36872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36873   (eval "$ac_compile") 2>conftest.er1
36874   ac_status=$?
36875   grep -v '^ *+' conftest.er1 >conftest.err
36876   rm -f conftest.er1
36877   cat conftest.err >&5
36878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36879   (exit $ac_status); } && {
36880          test -z "$ac_cxx_werror_flag" ||
36881          test ! -s conftest.err
36882        } && test -s conftest.$ac_objext; then
36883   wx_cv_func_statfs_decl=yes
36884 else
36885   echo "$as_me: failed program was:" >&5
36886 sed 's/^/| /' conftest.$ac_ext >&5
36887
36888         wx_cv_func_statfs_decl=no
36889
36890 fi
36891
36892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36893         ac_ext=c
36894 ac_cpp='$CPP $CPPFLAGS'
36895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36898
36899
36900 fi
36901 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
36902 echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6; }
36903
36904     if test "$wx_cv_func_statfs_decl" = "yes"; then
36905         cat >>confdefs.h <<\_ACEOF
36906 #define HAVE_STATFS_DECL 1
36907 _ACEOF
36908
36909     fi
36910
36911     wx_cv_type_statvfs_t="struct statfs"
36912     cat >>confdefs.h <<\_ACEOF
36913 #define HAVE_STATFS 1
36914 _ACEOF
36915
36916 else
36917     { echo "$as_me:$LINENO: checking for statvfs" >&5
36918 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6; }
36919 if test "${wx_cv_func_statvfs+set}" = set; then
36920   echo $ECHO_N "(cached) $ECHO_C" >&6
36921 else
36922   cat >conftest.$ac_ext <<_ACEOF
36923 /* confdefs.h.  */
36924 _ACEOF
36925 cat confdefs.h >>conftest.$ac_ext
36926 cat >>conftest.$ac_ext <<_ACEOF
36927 /* end confdefs.h.  */
36928
36929                 #include <stddef.h>
36930                 #include <sys/statvfs.h>
36931
36932 int
36933 main ()
36934 {
36935
36936                 statvfs("/", NULL);
36937
36938   ;
36939   return 0;
36940 }
36941 _ACEOF
36942 rm -f conftest.$ac_objext
36943 if { (ac_try="$ac_compile"
36944 case "(($ac_try" in
36945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36946   *) ac_try_echo=$ac_try;;
36947 esac
36948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36949   (eval "$ac_compile") 2>conftest.er1
36950   ac_status=$?
36951   grep -v '^ *+' conftest.er1 >conftest.err
36952   rm -f conftest.er1
36953   cat conftest.err >&5
36954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36955   (exit $ac_status); } && {
36956          test -z "$ac_c_werror_flag" ||
36957          test ! -s conftest.err
36958        } && test -s conftest.$ac_objext; then
36959   wx_cv_func_statvfs=yes
36960 else
36961   echo "$as_me: failed program was:" >&5
36962 sed 's/^/| /' conftest.$ac_ext >&5
36963
36964         wx_cv_func_statvfs=no
36965
36966 fi
36967
36968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36969
36970 fi
36971 { echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
36972 echo "${ECHO_T}$wx_cv_func_statvfs" >&6; }
36973
36974     if test "$wx_cv_func_statvfs" = "yes"; then
36975                                                                 { echo "$as_me:$LINENO: checking for statvfs argument type" >&5
36976 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6; }
36977 if test "${wx_cv_type_statvfs_t+set}" = set; then
36978   echo $ECHO_N "(cached) $ECHO_C" >&6
36979 else
36980   ac_ext=cpp
36981 ac_cpp='$CXXCPP $CPPFLAGS'
36982 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36983 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36984 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36985
36986             cat >conftest.$ac_ext <<_ACEOF
36987 /* confdefs.h.  */
36988 _ACEOF
36989 cat confdefs.h >>conftest.$ac_ext
36990 cat >>conftest.$ac_ext <<_ACEOF
36991 /* end confdefs.h.  */
36992
36993                     #include <sys/statvfs.h>
36994
36995 int
36996 main ()
36997 {
36998
36999                     long l;
37000                     statvfs_t fs;
37001                     statvfs("/", &fs);
37002                     l = fs.f_bsize;
37003                     l += fs.f_blocks;
37004                     l += fs.f_bavail;
37005
37006   ;
37007   return 0;
37008 }
37009 _ACEOF
37010 rm -f conftest.$ac_objext
37011 if { (ac_try="$ac_compile"
37012 case "(($ac_try" in
37013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37014   *) ac_try_echo=$ac_try;;
37015 esac
37016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37017   (eval "$ac_compile") 2>conftest.er1
37018   ac_status=$?
37019   grep -v '^ *+' conftest.er1 >conftest.err
37020   rm -f conftest.er1
37021   cat conftest.err >&5
37022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37023   (exit $ac_status); } && {
37024          test -z "$ac_cxx_werror_flag" ||
37025          test ! -s conftest.err
37026        } && test -s conftest.$ac_objext; then
37027   wx_cv_type_statvfs_t=statvfs_t
37028 else
37029   echo "$as_me: failed program was:" >&5
37030 sed 's/^/| /' conftest.$ac_ext >&5
37031
37032
37033                     cat >conftest.$ac_ext <<_ACEOF
37034 /* confdefs.h.  */
37035 _ACEOF
37036 cat confdefs.h >>conftest.$ac_ext
37037 cat >>conftest.$ac_ext <<_ACEOF
37038 /* end confdefs.h.  */
37039
37040                             #include <sys/statvfs.h>
37041
37042 int
37043 main ()
37044 {
37045
37046                             long l;
37047                             struct statvfs fs;
37048                             statvfs("/", &fs);
37049                             l = fs.f_bsize;
37050                             l += fs.f_blocks;
37051                             l += fs.f_bavail;
37052
37053   ;
37054   return 0;
37055 }
37056 _ACEOF
37057 rm -f conftest.$ac_objext
37058 if { (ac_try="$ac_compile"
37059 case "(($ac_try" in
37060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37061   *) ac_try_echo=$ac_try;;
37062 esac
37063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37064   (eval "$ac_compile") 2>conftest.er1
37065   ac_status=$?
37066   grep -v '^ *+' conftest.er1 >conftest.err
37067   rm -f conftest.er1
37068   cat conftest.err >&5
37069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37070   (exit $ac_status); } && {
37071          test -z "$ac_cxx_werror_flag" ||
37072          test ! -s conftest.err
37073        } && test -s conftest.$ac_objext; then
37074   wx_cv_type_statvfs_t="struct statvfs"
37075 else
37076   echo "$as_me: failed program was:" >&5
37077 sed 's/^/| /' conftest.$ac_ext >&5
37078
37079         wx_cv_type_statvfs_t="unknown"
37080
37081 fi
37082
37083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37084
37085
37086 fi
37087
37088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37089             ac_ext=c
37090 ac_cpp='$CPP $CPPFLAGS'
37091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37094
37095
37096 fi
37097 { echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
37098 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6; }
37099
37100         if test "$wx_cv_type_statvfs_t" != "unknown"; then
37101             cat >>confdefs.h <<\_ACEOF
37102 #define HAVE_STATVFS 1
37103 _ACEOF
37104
37105         fi
37106     else
37107                 wx_cv_type_statvfs_t="unknown"
37108     fi
37109 fi
37110
37111 if test "$wx_cv_type_statvfs_t" != "unknown"; then
37112     cat >>confdefs.h <<_ACEOF
37113 #define WX_STATFS_T $wx_cv_type_statvfs_t
37114 _ACEOF
37115
37116 else
37117     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
37118 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
37119 fi
37120
37121 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
37122
37123
37124 for ac_func in fcntl flock
37125 do
37126 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37127 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37128 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37129 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37130   echo $ECHO_N "(cached) $ECHO_C" >&6
37131 else
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37139    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37140 #define $ac_func innocuous_$ac_func
37141
37142 /* System header to define __stub macros and hopefully few prototypes,
37143     which can conflict with char $ac_func (); below.
37144     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37145     <limits.h> exists even on freestanding compilers.  */
37146
37147 #ifdef __STDC__
37148 # include <limits.h>
37149 #else
37150 # include <assert.h>
37151 #endif
37152
37153 #undef $ac_func
37154
37155 /* Override any GCC internal prototype to avoid an error.
37156    Use char because int might match the return type of a GCC
37157    builtin and then its argument prototype would still apply.  */
37158 #ifdef __cplusplus
37159 extern "C"
37160 #endif
37161 char $ac_func ();
37162 /* The GNU C library defines this for functions which it implements
37163     to always fail with ENOSYS.  Some functions are actually named
37164     something starting with __ and the normal name is an alias.  */
37165 #if defined __stub_$ac_func || defined __stub___$ac_func
37166 choke me
37167 #endif
37168
37169 int
37170 main ()
37171 {
37172 return $ac_func ();
37173   ;
37174   return 0;
37175 }
37176 _ACEOF
37177 rm -f conftest.$ac_objext conftest$ac_exeext
37178 if { (ac_try="$ac_link"
37179 case "(($ac_try" in
37180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37181   *) ac_try_echo=$ac_try;;
37182 esac
37183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37184   (eval "$ac_link") 2>conftest.er1
37185   ac_status=$?
37186   grep -v '^ *+' conftest.er1 >conftest.err
37187   rm -f conftest.er1
37188   cat conftest.err >&5
37189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37190   (exit $ac_status); } && {
37191          test -z "$ac_c_werror_flag" ||
37192          test ! -s conftest.err
37193        } && test -s conftest$ac_exeext &&
37194        $as_test_x conftest$ac_exeext; then
37195   eval "$as_ac_var=yes"
37196 else
37197   echo "$as_me: failed program was:" >&5
37198 sed 's/^/| /' conftest.$ac_ext >&5
37199
37200         eval "$as_ac_var=no"
37201 fi
37202
37203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37204       conftest$ac_exeext conftest.$ac_ext
37205 fi
37206 ac_res=`eval echo '${'$as_ac_var'}'`
37207                { echo "$as_me:$LINENO: result: $ac_res" >&5
37208 echo "${ECHO_T}$ac_res" >&6; }
37209 if test `eval echo '${'$as_ac_var'}'` = yes; then
37210   cat >>confdefs.h <<_ACEOF
37211 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37212 _ACEOF
37213  break
37214 fi
37215 done
37216
37217
37218     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
37219         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
37220 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
37221         wxUSE_SNGLINST_CHECKER=no
37222     fi
37223 fi
37224
37225
37226
37227 for ac_func in setenv putenv
37228 do
37229 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37230 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37231 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37232 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37233   echo $ECHO_N "(cached) $ECHO_C" >&6
37234 else
37235   cat >conftest.$ac_ext <<_ACEOF
37236 /* confdefs.h.  */
37237 _ACEOF
37238 cat confdefs.h >>conftest.$ac_ext
37239 cat >>conftest.$ac_ext <<_ACEOF
37240 /* end confdefs.h.  */
37241 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37242    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37243 #define $ac_func innocuous_$ac_func
37244
37245 /* System header to define __stub macros and hopefully few prototypes,
37246     which can conflict with char $ac_func (); below.
37247     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37248     <limits.h> exists even on freestanding compilers.  */
37249
37250 #ifdef __STDC__
37251 # include <limits.h>
37252 #else
37253 # include <assert.h>
37254 #endif
37255
37256 #undef $ac_func
37257
37258 /* Override any GCC internal prototype to avoid an error.
37259    Use char because int might match the return type of a GCC
37260    builtin and then its argument prototype would still apply.  */
37261 #ifdef __cplusplus
37262 extern "C"
37263 #endif
37264 char $ac_func ();
37265 /* The GNU C library defines this for functions which it implements
37266     to always fail with ENOSYS.  Some functions are actually named
37267     something starting with __ and the normal name is an alias.  */
37268 #if defined __stub_$ac_func || defined __stub___$ac_func
37269 choke me
37270 #endif
37271
37272 int
37273 main ()
37274 {
37275 return $ac_func ();
37276   ;
37277   return 0;
37278 }
37279 _ACEOF
37280 rm -f conftest.$ac_objext conftest$ac_exeext
37281 if { (ac_try="$ac_link"
37282 case "(($ac_try" in
37283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37284   *) ac_try_echo=$ac_try;;
37285 esac
37286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37287   (eval "$ac_link") 2>conftest.er1
37288   ac_status=$?
37289   grep -v '^ *+' conftest.er1 >conftest.err
37290   rm -f conftest.er1
37291   cat conftest.err >&5
37292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37293   (exit $ac_status); } && {
37294          test -z "$ac_c_werror_flag" ||
37295          test ! -s conftest.err
37296        } && test -s conftest$ac_exeext &&
37297        $as_test_x conftest$ac_exeext; then
37298   eval "$as_ac_var=yes"
37299 else
37300   echo "$as_me: failed program was:" >&5
37301 sed 's/^/| /' conftest.$ac_ext >&5
37302
37303         eval "$as_ac_var=no"
37304 fi
37305
37306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37307       conftest$ac_exeext conftest.$ac_ext
37308 fi
37309 ac_res=`eval echo '${'$as_ac_var'}'`
37310                { echo "$as_me:$LINENO: result: $ac_res" >&5
37311 echo "${ECHO_T}$ac_res" >&6; }
37312 if test `eval echo '${'$as_ac_var'}'` = yes; then
37313   cat >>confdefs.h <<_ACEOF
37314 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37315 _ACEOF
37316  break
37317 fi
37318 done
37319
37320 if test "$ac_cv_func_setenv" = "yes"; then
37321
37322 for ac_func in unsetenv
37323 do
37324 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37325 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37326 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37327 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37328   echo $ECHO_N "(cached) $ECHO_C" >&6
37329 else
37330   cat >conftest.$ac_ext <<_ACEOF
37331 /* confdefs.h.  */
37332 _ACEOF
37333 cat confdefs.h >>conftest.$ac_ext
37334 cat >>conftest.$ac_ext <<_ACEOF
37335 /* end confdefs.h.  */
37336 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37337    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37338 #define $ac_func innocuous_$ac_func
37339
37340 /* System header to define __stub macros and hopefully few prototypes,
37341     which can conflict with char $ac_func (); below.
37342     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37343     <limits.h> exists even on freestanding compilers.  */
37344
37345 #ifdef __STDC__
37346 # include <limits.h>
37347 #else
37348 # include <assert.h>
37349 #endif
37350
37351 #undef $ac_func
37352
37353 /* Override any GCC internal prototype to avoid an error.
37354    Use char because int might match the return type of a GCC
37355    builtin and then its argument prototype would still apply.  */
37356 #ifdef __cplusplus
37357 extern "C"
37358 #endif
37359 char $ac_func ();
37360 /* The GNU C library defines this for functions which it implements
37361     to always fail with ENOSYS.  Some functions are actually named
37362     something starting with __ and the normal name is an alias.  */
37363 #if defined __stub_$ac_func || defined __stub___$ac_func
37364 choke me
37365 #endif
37366
37367 int
37368 main ()
37369 {
37370 return $ac_func ();
37371   ;
37372   return 0;
37373 }
37374 _ACEOF
37375 rm -f conftest.$ac_objext conftest$ac_exeext
37376 if { (ac_try="$ac_link"
37377 case "(($ac_try" in
37378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37379   *) ac_try_echo=$ac_try;;
37380 esac
37381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37382   (eval "$ac_link") 2>conftest.er1
37383   ac_status=$?
37384   grep -v '^ *+' conftest.er1 >conftest.err
37385   rm -f conftest.er1
37386   cat conftest.err >&5
37387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37388   (exit $ac_status); } && {
37389          test -z "$ac_c_werror_flag" ||
37390          test ! -s conftest.err
37391        } && test -s conftest$ac_exeext &&
37392        $as_test_x conftest$ac_exeext; then
37393   eval "$as_ac_var=yes"
37394 else
37395   echo "$as_me: failed program was:" >&5
37396 sed 's/^/| /' conftest.$ac_ext >&5
37397
37398         eval "$as_ac_var=no"
37399 fi
37400
37401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37402       conftest$ac_exeext conftest.$ac_ext
37403 fi
37404 ac_res=`eval echo '${'$as_ac_var'}'`
37405                { echo "$as_me:$LINENO: result: $ac_res" >&5
37406 echo "${ECHO_T}$ac_res" >&6; }
37407 if test `eval echo '${'$as_ac_var'}'` = yes; then
37408   cat >>confdefs.h <<_ACEOF
37409 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37410 _ACEOF
37411
37412 fi
37413 done
37414
37415 fi
37416
37417 HAVE_SOME_SLEEP_FUNC=0
37418 if test "$USE_BEOS" = 1; then
37419             cat >>confdefs.h <<\_ACEOF
37420 #define HAVE_SLEEP 1
37421 _ACEOF
37422
37423     HAVE_SOME_SLEEP_FUNC=1
37424 fi
37425
37426 if test "$USE_DARWIN" = 1; then
37427             cat >>confdefs.h <<\_ACEOF
37428 #define HAVE_USLEEP 1
37429 _ACEOF
37430
37431     HAVE_SOME_SLEEP_FUNC=1
37432 fi
37433
37434 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
37435         POSIX4_LINK=
37436
37437 for ac_func in nanosleep
37438 do
37439 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37440 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37441 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37442 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37443   echo $ECHO_N "(cached) $ECHO_C" >&6
37444 else
37445   cat >conftest.$ac_ext <<_ACEOF
37446 /* confdefs.h.  */
37447 _ACEOF
37448 cat confdefs.h >>conftest.$ac_ext
37449 cat >>conftest.$ac_ext <<_ACEOF
37450 /* end confdefs.h.  */
37451 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37452    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37453 #define $ac_func innocuous_$ac_func
37454
37455 /* System header to define __stub macros and hopefully few prototypes,
37456     which can conflict with char $ac_func (); below.
37457     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37458     <limits.h> exists even on freestanding compilers.  */
37459
37460 #ifdef __STDC__
37461 # include <limits.h>
37462 #else
37463 # include <assert.h>
37464 #endif
37465
37466 #undef $ac_func
37467
37468 /* Override any GCC internal prototype to avoid an error.
37469    Use char because int might match the return type of a GCC
37470    builtin and then its argument prototype would still apply.  */
37471 #ifdef __cplusplus
37472 extern "C"
37473 #endif
37474 char $ac_func ();
37475 /* The GNU C library defines this for functions which it implements
37476     to always fail with ENOSYS.  Some functions are actually named
37477     something starting with __ and the normal name is an alias.  */
37478 #if defined __stub_$ac_func || defined __stub___$ac_func
37479 choke me
37480 #endif
37481
37482 int
37483 main ()
37484 {
37485 return $ac_func ();
37486   ;
37487   return 0;
37488 }
37489 _ACEOF
37490 rm -f conftest.$ac_objext conftest$ac_exeext
37491 if { (ac_try="$ac_link"
37492 case "(($ac_try" in
37493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37494   *) ac_try_echo=$ac_try;;
37495 esac
37496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37497   (eval "$ac_link") 2>conftest.er1
37498   ac_status=$?
37499   grep -v '^ *+' conftest.er1 >conftest.err
37500   rm -f conftest.er1
37501   cat conftest.err >&5
37502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37503   (exit $ac_status); } && {
37504          test -z "$ac_c_werror_flag" ||
37505          test ! -s conftest.err
37506        } && test -s conftest$ac_exeext &&
37507        $as_test_x conftest$ac_exeext; then
37508   eval "$as_ac_var=yes"
37509 else
37510   echo "$as_me: failed program was:" >&5
37511 sed 's/^/| /' conftest.$ac_ext >&5
37512
37513         eval "$as_ac_var=no"
37514 fi
37515
37516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37517       conftest$ac_exeext conftest.$ac_ext
37518 fi
37519 ac_res=`eval echo '${'$as_ac_var'}'`
37520                { echo "$as_me:$LINENO: result: $ac_res" >&5
37521 echo "${ECHO_T}$ac_res" >&6; }
37522 if test `eval echo '${'$as_ac_var'}'` = yes; then
37523   cat >>confdefs.h <<_ACEOF
37524 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37525 _ACEOF
37526  cat >>confdefs.h <<\_ACEOF
37527 #define HAVE_NANOSLEEP 1
37528 _ACEOF
37529
37530 else
37531
37532             { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
37533 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; }
37534 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
37535   echo $ECHO_N "(cached) $ECHO_C" >&6
37536 else
37537   ac_check_lib_save_LIBS=$LIBS
37538 LIBS="-lposix4  $LIBS"
37539 cat >conftest.$ac_ext <<_ACEOF
37540 /* confdefs.h.  */
37541 _ACEOF
37542 cat confdefs.h >>conftest.$ac_ext
37543 cat >>conftest.$ac_ext <<_ACEOF
37544 /* end confdefs.h.  */
37545
37546 /* Override any GCC internal prototype to avoid an error.
37547    Use char because int might match the return type of a GCC
37548    builtin and then its argument prototype would still apply.  */
37549 #ifdef __cplusplus
37550 extern "C"
37551 #endif
37552 char nanosleep ();
37553 int
37554 main ()
37555 {
37556 return nanosleep ();
37557   ;
37558   return 0;
37559 }
37560 _ACEOF
37561 rm -f conftest.$ac_objext conftest$ac_exeext
37562 if { (ac_try="$ac_link"
37563 case "(($ac_try" in
37564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37565   *) ac_try_echo=$ac_try;;
37566 esac
37567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37568   (eval "$ac_link") 2>conftest.er1
37569   ac_status=$?
37570   grep -v '^ *+' conftest.er1 >conftest.err
37571   rm -f conftest.er1
37572   cat conftest.err >&5
37573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37574   (exit $ac_status); } && {
37575          test -z "$ac_c_werror_flag" ||
37576          test ! -s conftest.err
37577        } && test -s conftest$ac_exeext &&
37578        $as_test_x conftest$ac_exeext; then
37579   ac_cv_lib_posix4_nanosleep=yes
37580 else
37581   echo "$as_me: failed program was:" >&5
37582 sed 's/^/| /' conftest.$ac_ext >&5
37583
37584         ac_cv_lib_posix4_nanosleep=no
37585 fi
37586
37587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37588       conftest$ac_exeext conftest.$ac_ext
37589 LIBS=$ac_check_lib_save_LIBS
37590 fi
37591 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
37592 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; }
37593 if test $ac_cv_lib_posix4_nanosleep = yes; then
37594
37595                     cat >>confdefs.h <<\_ACEOF
37596 #define HAVE_NANOSLEEP 1
37597 _ACEOF
37598
37599                     POSIX4_LINK=" -lposix4"
37600
37601 else
37602
37603
37604   for wx_func in usleep
37605   do
37606     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37607 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37608 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37609   echo $ECHO_N "(cached) $ECHO_C" >&6
37610 else
37611
37612         cat >conftest.$ac_ext <<_ACEOF
37613
37614             /* confdefs.h.  */
37615 _ACEOF
37616 cat confdefs.h >>conftest.$ac_ext
37617 cat >>conftest.$ac_ext <<_ACEOF
37618 /* end confdefs.h.  */
37619
37620
37621                 $ac_includes_default
37622
37623 int
37624 main ()
37625 {
37626
37627                 #ifndef $wx_func
37628                   &$wx_func;
37629                 #endif
37630
37631
37632   ;
37633   return 0;
37634 }
37635
37636 _ACEOF
37637 rm -f conftest.$ac_objext conftest$ac_exeext
37638 if { (ac_try="$ac_link"
37639 case "(($ac_try" in
37640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37641   *) ac_try_echo=$ac_try;;
37642 esac
37643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37644   (eval "$ac_link") 2>conftest.er1
37645   ac_status=$?
37646   grep -v '^ *+' conftest.er1 >conftest.err
37647   rm -f conftest.er1
37648   cat conftest.err >&5
37649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37650   (exit $ac_status); } && {
37651          test -z "$ac_c_werror_flag" ||
37652          test ! -s conftest.err
37653        } && test -s conftest$ac_exeext &&
37654        $as_test_x conftest$ac_exeext; then
37655   eval wx_cv_func_$wx_func=yes
37656 else
37657   echo "$as_me: failed program was:" >&5
37658 sed 's/^/| /' conftest.$ac_ext >&5
37659
37660         eval wx_cv_func_$wx_func=no
37661 fi
37662
37663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37664       conftest$ac_exeext conftest.$ac_ext
37665
37666 fi
37667 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37668                { echo "$as_me:$LINENO: result: $ac_res" >&5
37669 echo "${ECHO_T}$ac_res" >&6; }
37670
37671     if eval test \$wx_cv_func_$wx_func = yes
37672     then
37673       cat >>confdefs.h <<_ACEOF
37674 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37675 _ACEOF
37676
37677
37678     else
37679       :
37680       { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
37681 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
37682
37683     fi
37684   done
37685
37686
37687
37688 fi
37689
37690
37691
37692 fi
37693 done
37694
37695 fi
37696
37697
37698   for wx_func in uname
37699   do
37700     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37701 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37702 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37703   echo $ECHO_N "(cached) $ECHO_C" >&6
37704 else
37705
37706         cat >conftest.$ac_ext <<_ACEOF
37707
37708             /* confdefs.h.  */
37709 _ACEOF
37710 cat confdefs.h >>conftest.$ac_ext
37711 cat >>conftest.$ac_ext <<_ACEOF
37712 /* end confdefs.h.  */
37713
37714                 #include <sys/utsname.h>
37715                 $ac_includes_default
37716
37717 int
37718 main ()
37719 {
37720
37721                 #ifndef $wx_func
37722                   &$wx_func;
37723                 #endif
37724
37725
37726   ;
37727   return 0;
37728 }
37729
37730 _ACEOF
37731 rm -f conftest.$ac_objext conftest$ac_exeext
37732 if { (ac_try="$ac_link"
37733 case "(($ac_try" in
37734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37735   *) ac_try_echo=$ac_try;;
37736 esac
37737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37738   (eval "$ac_link") 2>conftest.er1
37739   ac_status=$?
37740   grep -v '^ *+' conftest.er1 >conftest.err
37741   rm -f conftest.er1
37742   cat conftest.err >&5
37743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37744   (exit $ac_status); } && {
37745          test -z "$ac_c_werror_flag" ||
37746          test ! -s conftest.err
37747        } && test -s conftest$ac_exeext &&
37748        $as_test_x conftest$ac_exeext; then
37749   eval wx_cv_func_$wx_func=yes
37750 else
37751   echo "$as_me: failed program was:" >&5
37752 sed 's/^/| /' conftest.$ac_ext >&5
37753
37754         eval wx_cv_func_$wx_func=no
37755 fi
37756
37757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37758       conftest$ac_exeext conftest.$ac_ext
37759
37760 fi
37761 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37762                { echo "$as_me:$LINENO: result: $ac_res" >&5
37763 echo "${ECHO_T}$ac_res" >&6; }
37764
37765     if eval test \$wx_cv_func_$wx_func = yes
37766     then
37767       cat >>confdefs.h <<_ACEOF
37768 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37769 _ACEOF
37770
37771
37772     else
37773       :
37774
37775     fi
37776   done
37777
37778 if test "$wx_cv_func_uname" != yes; then
37779
37780   for wx_func in gethostname
37781   do
37782     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37783 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37784 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37785   echo $ECHO_N "(cached) $ECHO_C" >&6
37786 else
37787
37788         cat >conftest.$ac_ext <<_ACEOF
37789
37790             /* confdefs.h.  */
37791 _ACEOF
37792 cat confdefs.h >>conftest.$ac_ext
37793 cat >>conftest.$ac_ext <<_ACEOF
37794 /* end confdefs.h.  */
37795
37796
37797                 $ac_includes_default
37798
37799 int
37800 main ()
37801 {
37802
37803                 #ifndef $wx_func
37804                   &$wx_func;
37805                 #endif
37806
37807
37808   ;
37809   return 0;
37810 }
37811
37812 _ACEOF
37813 rm -f conftest.$ac_objext conftest$ac_exeext
37814 if { (ac_try="$ac_link"
37815 case "(($ac_try" in
37816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37817   *) ac_try_echo=$ac_try;;
37818 esac
37819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37820   (eval "$ac_link") 2>conftest.er1
37821   ac_status=$?
37822   grep -v '^ *+' conftest.er1 >conftest.err
37823   rm -f conftest.er1
37824   cat conftest.err >&5
37825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37826   (exit $ac_status); } && {
37827          test -z "$ac_c_werror_flag" ||
37828          test ! -s conftest.err
37829        } && test -s conftest$ac_exeext &&
37830        $as_test_x conftest$ac_exeext; then
37831   eval wx_cv_func_$wx_func=yes
37832 else
37833   echo "$as_me: failed program was:" >&5
37834 sed 's/^/| /' conftest.$ac_ext >&5
37835
37836         eval wx_cv_func_$wx_func=no
37837 fi
37838
37839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37840       conftest$ac_exeext conftest.$ac_ext
37841
37842 fi
37843 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37844                { echo "$as_me:$LINENO: result: $ac_res" >&5
37845 echo "${ECHO_T}$ac_res" >&6; }
37846
37847     if eval test \$wx_cv_func_$wx_func = yes
37848     then
37849       cat >>confdefs.h <<_ACEOF
37850 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37851 _ACEOF
37852
37853
37854     else
37855       :
37856
37857     fi
37858   done
37859
37860 fi
37861
37862
37863   for wx_func in strtok_r
37864   do
37865     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37866 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37867 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37868   echo $ECHO_N "(cached) $ECHO_C" >&6
37869 else
37870
37871         cat >conftest.$ac_ext <<_ACEOF
37872
37873             /* confdefs.h.  */
37874 _ACEOF
37875 cat confdefs.h >>conftest.$ac_ext
37876 cat >>conftest.$ac_ext <<_ACEOF
37877 /* end confdefs.h.  */
37878
37879                 #define _REENTRANT
37880                 $ac_includes_default
37881
37882 int
37883 main ()
37884 {
37885
37886                 #ifndef $wx_func
37887                   &$wx_func;
37888                 #endif
37889
37890
37891   ;
37892   return 0;
37893 }
37894
37895 _ACEOF
37896 rm -f conftest.$ac_objext conftest$ac_exeext
37897 if { (ac_try="$ac_link"
37898 case "(($ac_try" in
37899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37900   *) ac_try_echo=$ac_try;;
37901 esac
37902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37903   (eval "$ac_link") 2>conftest.er1
37904   ac_status=$?
37905   grep -v '^ *+' conftest.er1 >conftest.err
37906   rm -f conftest.er1
37907   cat conftest.err >&5
37908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37909   (exit $ac_status); } && {
37910          test -z "$ac_c_werror_flag" ||
37911          test ! -s conftest.err
37912        } && test -s conftest$ac_exeext &&
37913        $as_test_x conftest$ac_exeext; then
37914   eval wx_cv_func_$wx_func=yes
37915 else
37916   echo "$as_me: failed program was:" >&5
37917 sed 's/^/| /' conftest.$ac_ext >&5
37918
37919         eval wx_cv_func_$wx_func=no
37920 fi
37921
37922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37923       conftest$ac_exeext conftest.$ac_ext
37924
37925 fi
37926 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37927                { echo "$as_me:$LINENO: result: $ac_res" >&5
37928 echo "${ECHO_T}$ac_res" >&6; }
37929
37930     if eval test \$wx_cv_func_$wx_func = yes
37931     then
37932       cat >>confdefs.h <<_ACEOF
37933 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37934 _ACEOF
37935
37936
37937     else
37938       :
37939
37940     fi
37941   done
37942
37943
37944 INET_LINK=
37945
37946 for ac_func in inet_addr
37947 do
37948 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37949 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37950 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37951 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37952   echo $ECHO_N "(cached) $ECHO_C" >&6
37953 else
37954   cat >conftest.$ac_ext <<_ACEOF
37955 /* confdefs.h.  */
37956 _ACEOF
37957 cat confdefs.h >>conftest.$ac_ext
37958 cat >>conftest.$ac_ext <<_ACEOF
37959 /* end confdefs.h.  */
37960 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37961    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37962 #define $ac_func innocuous_$ac_func
37963
37964 /* System header to define __stub macros and hopefully few prototypes,
37965     which can conflict with char $ac_func (); below.
37966     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37967     <limits.h> exists even on freestanding compilers.  */
37968
37969 #ifdef __STDC__
37970 # include <limits.h>
37971 #else
37972 # include <assert.h>
37973 #endif
37974
37975 #undef $ac_func
37976
37977 /* Override any GCC internal prototype to avoid an error.
37978    Use char because int might match the return type of a GCC
37979    builtin and then its argument prototype would still apply.  */
37980 #ifdef __cplusplus
37981 extern "C"
37982 #endif
37983 char $ac_func ();
37984 /* The GNU C library defines this for functions which it implements
37985     to always fail with ENOSYS.  Some functions are actually named
37986     something starting with __ and the normal name is an alias.  */
37987 #if defined __stub_$ac_func || defined __stub___$ac_func
37988 choke me
37989 #endif
37990
37991 int
37992 main ()
37993 {
37994 return $ac_func ();
37995   ;
37996   return 0;
37997 }
37998 _ACEOF
37999 rm -f conftest.$ac_objext conftest$ac_exeext
38000 if { (ac_try="$ac_link"
38001 case "(($ac_try" in
38002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38003   *) ac_try_echo=$ac_try;;
38004 esac
38005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38006   (eval "$ac_link") 2>conftest.er1
38007   ac_status=$?
38008   grep -v '^ *+' conftest.er1 >conftest.err
38009   rm -f conftest.er1
38010   cat conftest.err >&5
38011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38012   (exit $ac_status); } && {
38013          test -z "$ac_c_werror_flag" ||
38014          test ! -s conftest.err
38015        } && test -s conftest$ac_exeext &&
38016        $as_test_x conftest$ac_exeext; then
38017   eval "$as_ac_var=yes"
38018 else
38019   echo "$as_me: failed program was:" >&5
38020 sed 's/^/| /' conftest.$ac_ext >&5
38021
38022         eval "$as_ac_var=no"
38023 fi
38024
38025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38026       conftest$ac_exeext conftest.$ac_ext
38027 fi
38028 ac_res=`eval echo '${'$as_ac_var'}'`
38029                { echo "$as_me:$LINENO: result: $ac_res" >&5
38030 echo "${ECHO_T}$ac_res" >&6; }
38031 if test `eval echo '${'$as_ac_var'}'` = yes; then
38032   cat >>confdefs.h <<_ACEOF
38033 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38034 _ACEOF
38035  cat >>confdefs.h <<\_ACEOF
38036 #define HAVE_INET_ADDR 1
38037 _ACEOF
38038
38039 else
38040
38041         { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
38042 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
38043 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
38044   echo $ECHO_N "(cached) $ECHO_C" >&6
38045 else
38046   ac_check_lib_save_LIBS=$LIBS
38047 LIBS="-lnsl  $LIBS"
38048 cat >conftest.$ac_ext <<_ACEOF
38049 /* confdefs.h.  */
38050 _ACEOF
38051 cat confdefs.h >>conftest.$ac_ext
38052 cat >>conftest.$ac_ext <<_ACEOF
38053 /* end confdefs.h.  */
38054
38055 /* Override any GCC internal prototype to avoid an error.
38056    Use char because int might match the return type of a GCC
38057    builtin and then its argument prototype would still apply.  */
38058 #ifdef __cplusplus
38059 extern "C"
38060 #endif
38061 char inet_addr ();
38062 int
38063 main ()
38064 {
38065 return inet_addr ();
38066   ;
38067   return 0;
38068 }
38069 _ACEOF
38070 rm -f conftest.$ac_objext conftest$ac_exeext
38071 if { (ac_try="$ac_link"
38072 case "(($ac_try" in
38073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38074   *) ac_try_echo=$ac_try;;
38075 esac
38076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38077   (eval "$ac_link") 2>conftest.er1
38078   ac_status=$?
38079   grep -v '^ *+' conftest.er1 >conftest.err
38080   rm -f conftest.er1
38081   cat conftest.err >&5
38082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38083   (exit $ac_status); } && {
38084          test -z "$ac_c_werror_flag" ||
38085          test ! -s conftest.err
38086        } && test -s conftest$ac_exeext &&
38087        $as_test_x conftest$ac_exeext; then
38088   ac_cv_lib_nsl_inet_addr=yes
38089 else
38090   echo "$as_me: failed program was:" >&5
38091 sed 's/^/| /' conftest.$ac_ext >&5
38092
38093         ac_cv_lib_nsl_inet_addr=no
38094 fi
38095
38096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38097       conftest$ac_exeext conftest.$ac_ext
38098 LIBS=$ac_check_lib_save_LIBS
38099 fi
38100 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
38101 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
38102 if test $ac_cv_lib_nsl_inet_addr = yes; then
38103   INET_LINK="nsl"
38104 else
38105
38106                 { echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
38107 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6; }
38108 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
38109   echo $ECHO_N "(cached) $ECHO_C" >&6
38110 else
38111   ac_check_lib_save_LIBS=$LIBS
38112 LIBS="-lresolv  $LIBS"
38113 cat >conftest.$ac_ext <<_ACEOF
38114 /* confdefs.h.  */
38115 _ACEOF
38116 cat confdefs.h >>conftest.$ac_ext
38117 cat >>conftest.$ac_ext <<_ACEOF
38118 /* end confdefs.h.  */
38119
38120 /* Override any GCC internal prototype to avoid an error.
38121    Use char because int might match the return type of a GCC
38122    builtin and then its argument prototype would still apply.  */
38123 #ifdef __cplusplus
38124 extern "C"
38125 #endif
38126 char inet_addr ();
38127 int
38128 main ()
38129 {
38130 return inet_addr ();
38131   ;
38132   return 0;
38133 }
38134 _ACEOF
38135 rm -f conftest.$ac_objext conftest$ac_exeext
38136 if { (ac_try="$ac_link"
38137 case "(($ac_try" in
38138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38139   *) ac_try_echo=$ac_try;;
38140 esac
38141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38142   (eval "$ac_link") 2>conftest.er1
38143   ac_status=$?
38144   grep -v '^ *+' conftest.er1 >conftest.err
38145   rm -f conftest.er1
38146   cat conftest.err >&5
38147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38148   (exit $ac_status); } && {
38149          test -z "$ac_c_werror_flag" ||
38150          test ! -s conftest.err
38151        } && test -s conftest$ac_exeext &&
38152        $as_test_x conftest$ac_exeext; then
38153   ac_cv_lib_resolv_inet_addr=yes
38154 else
38155   echo "$as_me: failed program was:" >&5
38156 sed 's/^/| /' conftest.$ac_ext >&5
38157
38158         ac_cv_lib_resolv_inet_addr=no
38159 fi
38160
38161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38162       conftest$ac_exeext conftest.$ac_ext
38163 LIBS=$ac_check_lib_save_LIBS
38164 fi
38165 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
38166 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6; }
38167 if test $ac_cv_lib_resolv_inet_addr = yes; then
38168   INET_LINK="resolv"
38169 else
38170
38171                         { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
38172 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
38173 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
38174   echo $ECHO_N "(cached) $ECHO_C" >&6
38175 else
38176   ac_check_lib_save_LIBS=$LIBS
38177 LIBS="-lsocket  $LIBS"
38178 cat >conftest.$ac_ext <<_ACEOF
38179 /* confdefs.h.  */
38180 _ACEOF
38181 cat confdefs.h >>conftest.$ac_ext
38182 cat >>conftest.$ac_ext <<_ACEOF
38183 /* end confdefs.h.  */
38184
38185 /* Override any GCC internal prototype to avoid an error.
38186    Use char because int might match the return type of a GCC
38187    builtin and then its argument prototype would still apply.  */
38188 #ifdef __cplusplus
38189 extern "C"
38190 #endif
38191 char inet_addr ();
38192 int
38193 main ()
38194 {
38195 return inet_addr ();
38196   ;
38197   return 0;
38198 }
38199 _ACEOF
38200 rm -f conftest.$ac_objext conftest$ac_exeext
38201 if { (ac_try="$ac_link"
38202 case "(($ac_try" in
38203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38204   *) ac_try_echo=$ac_try;;
38205 esac
38206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38207   (eval "$ac_link") 2>conftest.er1
38208   ac_status=$?
38209   grep -v '^ *+' conftest.er1 >conftest.err
38210   rm -f conftest.er1
38211   cat conftest.err >&5
38212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38213   (exit $ac_status); } && {
38214          test -z "$ac_c_werror_flag" ||
38215          test ! -s conftest.err
38216        } && test -s conftest$ac_exeext &&
38217        $as_test_x conftest$ac_exeext; then
38218   ac_cv_lib_socket_inet_addr=yes
38219 else
38220   echo "$as_me: failed program was:" >&5
38221 sed 's/^/| /' conftest.$ac_ext >&5
38222
38223         ac_cv_lib_socket_inet_addr=no
38224 fi
38225
38226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38227       conftest$ac_exeext conftest.$ac_ext
38228 LIBS=$ac_check_lib_save_LIBS
38229 fi
38230 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
38231 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6; }
38232 if test $ac_cv_lib_socket_inet_addr = yes; then
38233   INET_LINK="socket"
38234
38235 fi
38236
38237
38238
38239 fi
38240
38241
38242
38243 fi
38244
38245
38246
38247 fi
38248 done
38249
38250
38251
38252 for ac_func in inet_aton
38253 do
38254 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38255 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38256 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38257 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38258   echo $ECHO_N "(cached) $ECHO_C" >&6
38259 else
38260   cat >conftest.$ac_ext <<_ACEOF
38261 /* confdefs.h.  */
38262 _ACEOF
38263 cat confdefs.h >>conftest.$ac_ext
38264 cat >>conftest.$ac_ext <<_ACEOF
38265 /* end confdefs.h.  */
38266 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38267    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38268 #define $ac_func innocuous_$ac_func
38269
38270 /* System header to define __stub macros and hopefully few prototypes,
38271     which can conflict with char $ac_func (); below.
38272     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38273     <limits.h> exists even on freestanding compilers.  */
38274
38275 #ifdef __STDC__
38276 # include <limits.h>
38277 #else
38278 # include <assert.h>
38279 #endif
38280
38281 #undef $ac_func
38282
38283 /* Override any GCC internal prototype to avoid an error.
38284    Use char because int might match the return type of a GCC
38285    builtin and then its argument prototype would still apply.  */
38286 #ifdef __cplusplus
38287 extern "C"
38288 #endif
38289 char $ac_func ();
38290 /* The GNU C library defines this for functions which it implements
38291     to always fail with ENOSYS.  Some functions are actually named
38292     something starting with __ and the normal name is an alias.  */
38293 #if defined __stub_$ac_func || defined __stub___$ac_func
38294 choke me
38295 #endif
38296
38297 int
38298 main ()
38299 {
38300 return $ac_func ();
38301   ;
38302   return 0;
38303 }
38304 _ACEOF
38305 rm -f conftest.$ac_objext conftest$ac_exeext
38306 if { (ac_try="$ac_link"
38307 case "(($ac_try" in
38308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38309   *) ac_try_echo=$ac_try;;
38310 esac
38311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38312   (eval "$ac_link") 2>conftest.er1
38313   ac_status=$?
38314   grep -v '^ *+' conftest.er1 >conftest.err
38315   rm -f conftest.er1
38316   cat conftest.err >&5
38317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38318   (exit $ac_status); } && {
38319          test -z "$ac_c_werror_flag" ||
38320          test ! -s conftest.err
38321        } && test -s conftest$ac_exeext &&
38322        $as_test_x conftest$ac_exeext; then
38323   eval "$as_ac_var=yes"
38324 else
38325   echo "$as_me: failed program was:" >&5
38326 sed 's/^/| /' conftest.$ac_ext >&5
38327
38328         eval "$as_ac_var=no"
38329 fi
38330
38331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38332       conftest$ac_exeext conftest.$ac_ext
38333 fi
38334 ac_res=`eval echo '${'$as_ac_var'}'`
38335                { echo "$as_me:$LINENO: result: $ac_res" >&5
38336 echo "${ECHO_T}$ac_res" >&6; }
38337 if test `eval echo '${'$as_ac_var'}'` = yes; then
38338   cat >>confdefs.h <<_ACEOF
38339 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38340 _ACEOF
38341  cat >>confdefs.h <<\_ACEOF
38342 #define HAVE_INET_ATON 1
38343 _ACEOF
38344
38345 else
38346
38347                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
38348 { echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
38349 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6; }
38350 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
38351   echo $ECHO_N "(cached) $ECHO_C" >&6
38352 else
38353   ac_check_lib_save_LIBS=$LIBS
38354 LIBS="-l$INET_LINK  $LIBS"
38355 cat >conftest.$ac_ext <<_ACEOF
38356 /* confdefs.h.  */
38357 _ACEOF
38358 cat confdefs.h >>conftest.$ac_ext
38359 cat >>conftest.$ac_ext <<_ACEOF
38360 /* end confdefs.h.  */
38361
38362 /* Override any GCC internal prototype to avoid an error.
38363    Use char because int might match the return type of a GCC
38364    builtin and then its argument prototype would still apply.  */
38365 #ifdef __cplusplus
38366 extern "C"
38367 #endif
38368 char inet_aton ();
38369 int
38370 main ()
38371 {
38372 return inet_aton ();
38373   ;
38374   return 0;
38375 }
38376 _ACEOF
38377 rm -f conftest.$ac_objext conftest$ac_exeext
38378 if { (ac_try="$ac_link"
38379 case "(($ac_try" in
38380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38381   *) ac_try_echo=$ac_try;;
38382 esac
38383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38384   (eval "$ac_link") 2>conftest.er1
38385   ac_status=$?
38386   grep -v '^ *+' conftest.er1 >conftest.err
38387   rm -f conftest.er1
38388   cat conftest.err >&5
38389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38390   (exit $ac_status); } && {
38391          test -z "$ac_c_werror_flag" ||
38392          test ! -s conftest.err
38393        } && test -s conftest$ac_exeext &&
38394        $as_test_x conftest$ac_exeext; then
38395   eval "$as_ac_Lib=yes"
38396 else
38397   echo "$as_me: failed program was:" >&5
38398 sed 's/^/| /' conftest.$ac_ext >&5
38399
38400         eval "$as_ac_Lib=no"
38401 fi
38402
38403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38404       conftest$ac_exeext conftest.$ac_ext
38405 LIBS=$ac_check_lib_save_LIBS
38406 fi
38407 ac_res=`eval echo '${'$as_ac_Lib'}'`
38408                { echo "$as_me:$LINENO: result: $ac_res" >&5
38409 echo "${ECHO_T}$ac_res" >&6; }
38410 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
38411   cat >>confdefs.h <<\_ACEOF
38412 #define HAVE_INET_ATON 1
38413 _ACEOF
38414
38415 fi
38416
38417
38418 fi
38419 done
38420
38421
38422 if test "x$INET_LINK" != "x"; then
38423     cat >>confdefs.h <<\_ACEOF
38424 #define HAVE_INET_ADDR 1
38425 _ACEOF
38426
38427     INET_LINK=" -l$INET_LINK"
38428 fi
38429
38430
38431   for wx_func in fdopen
38432   do
38433     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38434 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38435 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38436   echo $ECHO_N "(cached) $ECHO_C" >&6
38437 else
38438
38439         cat >conftest.$ac_ext <<_ACEOF
38440
38441             /* confdefs.h.  */
38442 _ACEOF
38443 cat confdefs.h >>conftest.$ac_ext
38444 cat >>conftest.$ac_ext <<_ACEOF
38445 /* end confdefs.h.  */
38446
38447
38448                 $ac_includes_default
38449
38450 int
38451 main ()
38452 {
38453
38454                 #ifndef $wx_func
38455                   &$wx_func;
38456                 #endif
38457
38458
38459   ;
38460   return 0;
38461 }
38462
38463 _ACEOF
38464 rm -f conftest.$ac_objext conftest$ac_exeext
38465 if { (ac_try="$ac_link"
38466 case "(($ac_try" in
38467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38468   *) ac_try_echo=$ac_try;;
38469 esac
38470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38471   (eval "$ac_link") 2>conftest.er1
38472   ac_status=$?
38473   grep -v '^ *+' conftest.er1 >conftest.err
38474   rm -f conftest.er1
38475   cat conftest.err >&5
38476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38477   (exit $ac_status); } && {
38478          test -z "$ac_c_werror_flag" ||
38479          test ! -s conftest.err
38480        } && test -s conftest$ac_exeext &&
38481        $as_test_x conftest$ac_exeext; then
38482   eval wx_cv_func_$wx_func=yes
38483 else
38484   echo "$as_me: failed program was:" >&5
38485 sed 's/^/| /' conftest.$ac_ext >&5
38486
38487         eval wx_cv_func_$wx_func=no
38488 fi
38489
38490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38491       conftest$ac_exeext conftest.$ac_ext
38492
38493 fi
38494 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38495                { echo "$as_me:$LINENO: result: $ac_res" >&5
38496 echo "${ECHO_T}$ac_res" >&6; }
38497
38498     if eval test \$wx_cv_func_$wx_func = yes
38499     then
38500       cat >>confdefs.h <<_ACEOF
38501 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38502 _ACEOF
38503
38504
38505     else
38506       :
38507
38508     fi
38509   done
38510
38511
38512 if test "$wxUSE_TARSTREAM" = "yes"; then
38513
38514   for wx_func in sysconf
38515   do
38516     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38517 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38518 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38519   echo $ECHO_N "(cached) $ECHO_C" >&6
38520 else
38521
38522         cat >conftest.$ac_ext <<_ACEOF
38523
38524             /* confdefs.h.  */
38525 _ACEOF
38526 cat confdefs.h >>conftest.$ac_ext
38527 cat >>conftest.$ac_ext <<_ACEOF
38528 /* end confdefs.h.  */
38529
38530
38531                 $ac_includes_default
38532
38533 int
38534 main ()
38535 {
38536
38537                 #ifndef $wx_func
38538                   &$wx_func;
38539                 #endif
38540
38541
38542   ;
38543   return 0;
38544 }
38545
38546 _ACEOF
38547 rm -f conftest.$ac_objext conftest$ac_exeext
38548 if { (ac_try="$ac_link"
38549 case "(($ac_try" in
38550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38551   *) ac_try_echo=$ac_try;;
38552 esac
38553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38554   (eval "$ac_link") 2>conftest.er1
38555   ac_status=$?
38556   grep -v '^ *+' conftest.er1 >conftest.err
38557   rm -f conftest.er1
38558   cat conftest.err >&5
38559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38560   (exit $ac_status); } && {
38561          test -z "$ac_c_werror_flag" ||
38562          test ! -s conftest.err
38563        } && test -s conftest$ac_exeext &&
38564        $as_test_x conftest$ac_exeext; then
38565   eval wx_cv_func_$wx_func=yes
38566 else
38567   echo "$as_me: failed program was:" >&5
38568 sed 's/^/| /' conftest.$ac_ext >&5
38569
38570         eval wx_cv_func_$wx_func=no
38571 fi
38572
38573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38574       conftest$ac_exeext conftest.$ac_ext
38575
38576 fi
38577 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38578                { echo "$as_me:$LINENO: result: $ac_res" >&5
38579 echo "${ECHO_T}$ac_res" >&6; }
38580
38581     if eval test \$wx_cv_func_$wx_func = yes
38582     then
38583       cat >>confdefs.h <<_ACEOF
38584 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38585 _ACEOF
38586
38587
38588     else
38589       :
38590
38591     fi
38592   done
38593
38594
38595
38596   for wx_func in getpwuid_r
38597   do
38598     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38599 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38600 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38601   echo $ECHO_N "(cached) $ECHO_C" >&6
38602 else
38603
38604         cat >conftest.$ac_ext <<_ACEOF
38605
38606             /* confdefs.h.  */
38607 _ACEOF
38608 cat confdefs.h >>conftest.$ac_ext
38609 cat >>conftest.$ac_ext <<_ACEOF
38610 /* end confdefs.h.  */
38611
38612
38613                     #define _REENTRANT
38614                     #include <pwd.h>
38615
38616                 $ac_includes_default
38617
38618 int
38619 main ()
38620 {
38621
38622                 #ifndef $wx_func
38623                   &$wx_func;
38624                 #endif
38625
38626                     struct passwd pw, *ppw;
38627                     char buf[1024];
38628                     getpwuid_r(0, &pw, buf, sizeof(buf), &ppw)
38629
38630
38631   ;
38632   return 0;
38633 }
38634
38635 _ACEOF
38636 rm -f conftest.$ac_objext conftest$ac_exeext
38637 if { (ac_try="$ac_link"
38638 case "(($ac_try" in
38639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38640   *) ac_try_echo=$ac_try;;
38641 esac
38642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38643   (eval "$ac_link") 2>conftest.er1
38644   ac_status=$?
38645   grep -v '^ *+' conftest.er1 >conftest.err
38646   rm -f conftest.er1
38647   cat conftest.err >&5
38648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38649   (exit $ac_status); } && {
38650          test -z "$ac_c_werror_flag" ||
38651          test ! -s conftest.err
38652        } && test -s conftest$ac_exeext &&
38653        $as_test_x conftest$ac_exeext; then
38654   eval wx_cv_func_$wx_func=yes
38655 else
38656   echo "$as_me: failed program was:" >&5
38657 sed 's/^/| /' conftest.$ac_ext >&5
38658
38659         eval wx_cv_func_$wx_func=no
38660 fi
38661
38662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38663       conftest$ac_exeext conftest.$ac_ext
38664
38665 fi
38666 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38667                { echo "$as_me:$LINENO: result: $ac_res" >&5
38668 echo "${ECHO_T}$ac_res" >&6; }
38669
38670     if eval test \$wx_cv_func_$wx_func = yes
38671     then
38672       cat >>confdefs.h <<_ACEOF
38673 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38674 _ACEOF
38675
38676
38677     else
38678       :
38679
38680     fi
38681   done
38682
38683
38684
38685   for wx_func in getgrgid_r
38686   do
38687     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38688 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38689 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38690   echo $ECHO_N "(cached) $ECHO_C" >&6
38691 else
38692
38693         cat >conftest.$ac_ext <<_ACEOF
38694
38695             /* confdefs.h.  */
38696 _ACEOF
38697 cat confdefs.h >>conftest.$ac_ext
38698 cat >>conftest.$ac_ext <<_ACEOF
38699 /* end confdefs.h.  */
38700
38701
38702                     #define _REENTRANT
38703                     #include <grp.h>
38704
38705                 $ac_includes_default
38706
38707 int
38708 main ()
38709 {
38710
38711                 #ifndef $wx_func
38712                   &$wx_func;
38713                 #endif
38714
38715                     struct group grp, *pgrp;
38716                     char buf[1024];
38717                     getgrgid_r(0, &grp, buf, sizeof(buf), &pgrp)
38718
38719
38720   ;
38721   return 0;
38722 }
38723
38724 _ACEOF
38725 rm -f conftest.$ac_objext conftest$ac_exeext
38726 if { (ac_try="$ac_link"
38727 case "(($ac_try" in
38728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38729   *) ac_try_echo=$ac_try;;
38730 esac
38731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38732   (eval "$ac_link") 2>conftest.er1
38733   ac_status=$?
38734   grep -v '^ *+' conftest.er1 >conftest.err
38735   rm -f conftest.er1
38736   cat conftest.err >&5
38737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38738   (exit $ac_status); } && {
38739          test -z "$ac_c_werror_flag" ||
38740          test ! -s conftest.err
38741        } && test -s conftest$ac_exeext &&
38742        $as_test_x conftest$ac_exeext; then
38743   eval wx_cv_func_$wx_func=yes
38744 else
38745   echo "$as_me: failed program was:" >&5
38746 sed 's/^/| /' conftest.$ac_ext >&5
38747
38748         eval wx_cv_func_$wx_func=no
38749 fi
38750
38751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38752       conftest$ac_exeext conftest.$ac_ext
38753
38754 fi
38755 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38756                { echo "$as_me:$LINENO: result: $ac_res" >&5
38757 echo "${ECHO_T}$ac_res" >&6; }
38758
38759     if eval test \$wx_cv_func_$wx_func = yes
38760     then
38761       cat >>confdefs.h <<_ACEOF
38762 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38763 _ACEOF
38764
38765
38766     else
38767       :
38768
38769     fi
38770   done
38771
38772 fi
38773
38774 fi
38775
38776
38777
38778 cat >confcache <<\_ACEOF
38779 # This file is a shell script that caches the results of configure
38780 # tests run on this system so they can be shared between configure
38781 # scripts and configure runs, see configure's option --config-cache.
38782 # It is not useful on other systems.  If it contains results you don't
38783 # want to keep, you may remove or edit it.
38784 #
38785 # config.status only pays attention to the cache file if you give it
38786 # the --recheck option to rerun configure.
38787 #
38788 # `ac_cv_env_foo' variables (set or unset) will be overridden when
38789 # loading this file, other *unset* `ac_cv_foo' will be assigned the
38790 # following values.
38791
38792 _ACEOF
38793
38794 # The following way of writing the cache mishandles newlines in values,
38795 # but we know of no workaround that is simple, portable, and efficient.
38796 # So, we kill variables containing newlines.
38797 # Ultrix sh set writes to stderr and can't be redirected directly,
38798 # and sets the high bit in the cache file unless we assign to the vars.
38799 (
38800   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
38801     eval ac_val=\$$ac_var
38802     case $ac_val in #(
38803     *${as_nl}*)
38804       case $ac_var in #(
38805       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
38806 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
38807       esac
38808       case $ac_var in #(
38809       _ | IFS | as_nl) ;; #(
38810       *) $as_unset $ac_var ;;
38811       esac ;;
38812     esac
38813   done
38814
38815   (set) 2>&1 |
38816     case $as_nl`(ac_space=' '; set) 2>&1` in #(
38817     *${as_nl}ac_space=\ *)
38818       # `set' does not quote correctly, so add quotes (double-quote
38819       # substitution turns \\\\ into \\, and sed turns \\ into \).
38820       sed -n \
38821         "s/'/'\\\\''/g;
38822           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
38823       ;; #(
38824     *)
38825       # `set' quotes correctly as required by POSIX, so do not add quotes.
38826       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
38827       ;;
38828     esac |
38829     sort
38830 ) |
38831   sed '
38832      /^ac_cv_env_/b end
38833      t clear
38834      :clear
38835      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
38836      t end
38837      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
38838      :end' >>confcache
38839 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
38840   if test -w "$cache_file"; then
38841     test "x$cache_file" != "x/dev/null" &&
38842       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
38843 echo "$as_me: updating cache $cache_file" >&6;}
38844     cat confcache >$cache_file
38845   else
38846     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
38847 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
38848   fi
38849 fi
38850 rm -f confcache
38851
38852
38853 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
38854
38855
38856     THREADS_LINK=
38857     THREADS_CFLAGS=
38858
38859     if test "$wxUSE_THREADS" = "yes" ; then
38860         if test "$USE_BEOS" = 1; then
38861             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
38862 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
38863             wxUSE_THREADS="no"
38864         fi
38865     fi
38866
38867     if test "$wxUSE_THREADS" = "yes" ; then
38868
38869
38870                                 THREAD_OPTS="-pthread"
38871         if test "x$SUNCXX" = xyes; then
38872             THREAD_OPTS="-mt lthread $THREAD_OPTS"
38873         fi
38874
38875         case "${host}" in
38876           *-*-solaris2* | *-*-sunos4* )
38877                 if test "x$GCC" = "xyes"; then
38878                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
38879                 fi
38880                 ;;
38881           *-*-freebsd*)
38882                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
38883                 ;;
38884           *-*-darwin* | *-*-cygwin* )
38885                                                 THREAD_OPTS=""
38886                 ;;
38887           *-*-aix*)
38888                                 THREAD_OPTS="pthreads"
38889                 ;;
38890           *-hp-hpux* )
38891                 if test "x$GCC" = "xyes"; then
38892                                         $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
38893                         THREAD_OPTS=""
38894                 else
38895                                                             THREAD_OPTS="-mt"
38896                 fi
38897                 ;;
38898
38899           *-*-irix* )
38900                                                                 if test "x$GCC" = "xyes"; then
38901                     THREAD_OPTS=""
38902                 fi
38903                 ;;
38904
38905           *-*-*UnixWare*)
38906                                 if test "x$GCC" != "xyes"; then
38907                     THREAD_OPTS="-Ethread"
38908                 fi
38909                 ;;
38910         esac
38911
38912                                 THREAD_OPTS="$THREAD_OPTS pthread none"
38913
38914                 THREADS_OK=no
38915         for flag in $THREAD_OPTS; do
38916             case $flag in
38917                 none)
38918                     { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
38919 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
38920                     ;;
38921
38922                 -*)
38923                     { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
38924 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
38925                     THREADS_CFLAGS="$flag"
38926                     ;;
38927
38928                 *)
38929                     { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
38930 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
38931                     THREADS_LINK="-l$flag"
38932                     ;;
38933               esac
38934
38935               save_LIBS="$LIBS"
38936               save_CFLAGS="$CFLAGS"
38937               LIBS="$THREADS_LINK $LIBS"
38938               CFLAGS="$THREADS_CFLAGS $CFLAGS"
38939
38940               cat >conftest.$ac_ext <<_ACEOF
38941 /* confdefs.h.  */
38942 _ACEOF
38943 cat confdefs.h >>conftest.$ac_ext
38944 cat >>conftest.$ac_ext <<_ACEOF
38945 /* end confdefs.h.  */
38946 #include <pthread.h>
38947 int
38948 main ()
38949 {
38950 pthread_create(0,0,0,0);
38951   ;
38952   return 0;
38953 }
38954 _ACEOF
38955 rm -f conftest.$ac_objext conftest$ac_exeext
38956 if { (ac_try="$ac_link"
38957 case "(($ac_try" in
38958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38959   *) ac_try_echo=$ac_try;;
38960 esac
38961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38962   (eval "$ac_link") 2>conftest.er1
38963   ac_status=$?
38964   grep -v '^ *+' conftest.er1 >conftest.err
38965   rm -f conftest.er1
38966   cat conftest.err >&5
38967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38968   (exit $ac_status); } && {
38969          test -z "$ac_c_werror_flag" ||
38970          test ! -s conftest.err
38971        } && test -s conftest$ac_exeext &&
38972        $as_test_x conftest$ac_exeext; then
38973   THREADS_OK=yes
38974 else
38975   echo "$as_me: failed program was:" >&5
38976 sed 's/^/| /' conftest.$ac_ext >&5
38977
38978
38979 fi
38980
38981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38982       conftest$ac_exeext conftest.$ac_ext
38983
38984               LIBS="$save_LIBS"
38985               CFLAGS="$save_CFLAGS"
38986
38987               { echo "$as_me:$LINENO: result: $THREADS_OK" >&5
38988 echo "${ECHO_T}$THREADS_OK" >&6; }
38989               if test "x$THREADS_OK" = "xyes"; then
38990                       break;
38991               fi
38992
38993               THREADS_LINK=""
38994               THREADS_CFLAGS=""
38995       done
38996
38997       if test "x$THREADS_OK" != "xyes"; then
38998           wxUSE_THREADS=no
38999           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
39000 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
39001       else
39002                               LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
39003           LIBS="$THREADS_LINK $LIBS"
39004
39005           { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
39006 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
39007           flag=no
39008           case "${host}" in
39009             *-aix*)
39010                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
39011                 flag="-D_THREAD_SAFE"
39012                 ;;
39013             *-freebsd*)
39014                 flag="-D_THREAD_SAFE"
39015                 ;;
39016             *-hp-hpux* )
39017                 flag="-D_REENTRANT"
39018                 if test "x$GCC" != "xyes"; then
39019                                         flag="$flag -D_RWSTD_MULTI_THREAD"
39020                 fi
39021                 ;;
39022             *solaris* | alpha*-osf*)
39023                 flag="-D_REENTRANT"
39024                 ;;
39025           esac
39026           { echo "$as_me:$LINENO: result: ${flag}" >&5
39027 echo "${ECHO_T}${flag}" >&6; }
39028           if test "x$flag" != xno; then
39029               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
39030           fi
39031
39032                     WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS"
39033       fi
39034     fi
39035
39036         if test "$wxUSE_THREADS" = "yes" ; then
39037
39038 for ac_func in thr_setconcurrency
39039 do
39040 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39041 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39042 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39043 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39044   echo $ECHO_N "(cached) $ECHO_C" >&6
39045 else
39046   cat >conftest.$ac_ext <<_ACEOF
39047 /* confdefs.h.  */
39048 _ACEOF
39049 cat confdefs.h >>conftest.$ac_ext
39050 cat >>conftest.$ac_ext <<_ACEOF
39051 /* end confdefs.h.  */
39052 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39053    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39054 #define $ac_func innocuous_$ac_func
39055
39056 /* System header to define __stub macros and hopefully few prototypes,
39057     which can conflict with char $ac_func (); below.
39058     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39059     <limits.h> exists even on freestanding compilers.  */
39060
39061 #ifdef __STDC__
39062 # include <limits.h>
39063 #else
39064 # include <assert.h>
39065 #endif
39066
39067 #undef $ac_func
39068
39069 /* Override any GCC internal prototype to avoid an error.
39070    Use char because int might match the return type of a GCC
39071    builtin and then its argument prototype would still apply.  */
39072 #ifdef __cplusplus
39073 extern "C"
39074 #endif
39075 char $ac_func ();
39076 /* The GNU C library defines this for functions which it implements
39077     to always fail with ENOSYS.  Some functions are actually named
39078     something starting with __ and the normal name is an alias.  */
39079 #if defined __stub_$ac_func || defined __stub___$ac_func
39080 choke me
39081 #endif
39082
39083 int
39084 main ()
39085 {
39086 return $ac_func ();
39087   ;
39088   return 0;
39089 }
39090 _ACEOF
39091 rm -f conftest.$ac_objext conftest$ac_exeext
39092 if { (ac_try="$ac_link"
39093 case "(($ac_try" in
39094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39095   *) ac_try_echo=$ac_try;;
39096 esac
39097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39098   (eval "$ac_link") 2>conftest.er1
39099   ac_status=$?
39100   grep -v '^ *+' conftest.er1 >conftest.err
39101   rm -f conftest.er1
39102   cat conftest.err >&5
39103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39104   (exit $ac_status); } && {
39105          test -z "$ac_c_werror_flag" ||
39106          test ! -s conftest.err
39107        } && test -s conftest$ac_exeext &&
39108        $as_test_x conftest$ac_exeext; then
39109   eval "$as_ac_var=yes"
39110 else
39111   echo "$as_me: failed program was:" >&5
39112 sed 's/^/| /' conftest.$ac_ext >&5
39113
39114         eval "$as_ac_var=no"
39115 fi
39116
39117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39118       conftest$ac_exeext conftest.$ac_ext
39119 fi
39120 ac_res=`eval echo '${'$as_ac_var'}'`
39121                { echo "$as_me:$LINENO: result: $ac_res" >&5
39122 echo "${ECHO_T}$ac_res" >&6; }
39123 if test `eval echo '${'$as_ac_var'}'` = yes; then
39124   cat >>confdefs.h <<_ACEOF
39125 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39126 _ACEOF
39127
39128 fi
39129 done
39130
39131
39132                   { echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
39133 echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6; }
39134 if test "${wx_cv_func_pthread_cleanup+set}" = set; then
39135   echo $ECHO_N "(cached) $ECHO_C" >&6
39136 else
39137
39138                                 ac_ext=cpp
39139 ac_cpp='$CXXCPP $CPPFLAGS'
39140 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39141 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39142 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39143
39144         cat >conftest.$ac_ext <<_ACEOF
39145 /* confdefs.h.  */
39146 _ACEOF
39147 cat confdefs.h >>conftest.$ac_ext
39148 cat >>conftest.$ac_ext <<_ACEOF
39149 /* end confdefs.h.  */
39150 #include <pthread.h>
39151                void ThreadCleanupFunc(void *p);
39152
39153 int
39154 main ()
39155 {
39156
39157                 void *p;
39158                 pthread_cleanup_push(ThreadCleanupFunc, p);
39159                 pthread_cleanup_pop(0);
39160
39161   ;
39162   return 0;
39163 }
39164 _ACEOF
39165 rm -f conftest.$ac_objext
39166 if { (ac_try="$ac_compile"
39167 case "(($ac_try" in
39168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39169   *) ac_try_echo=$ac_try;;
39170 esac
39171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39172   (eval "$ac_compile") 2>conftest.er1
39173   ac_status=$?
39174   grep -v '^ *+' conftest.er1 >conftest.err
39175   rm -f conftest.er1
39176   cat conftest.err >&5
39177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39178   (exit $ac_status); } && {
39179          test -z "$ac_cxx_werror_flag" ||
39180          test ! -s conftest.err
39181        } && test -s conftest.$ac_objext; then
39182
39183                wx_cv_func_pthread_cleanup=yes
39184
39185 else
39186   echo "$as_me: failed program was:" >&5
39187 sed 's/^/| /' conftest.$ac_ext >&5
39188
39189
39190                wx_cv_func_pthread_cleanup=no
39191
39192
39193 fi
39194
39195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39196         ac_ext=c
39197 ac_cpp='$CPP $CPPFLAGS'
39198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39201
39202
39203 fi
39204 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
39205 echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6; }
39206       if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
39207         cat >>confdefs.h <<\_ACEOF
39208 #define wxHAVE_PTHREAD_CLEANUP 1
39209 _ACEOF
39210
39211       fi
39212
39213
39214 for ac_header in sched.h
39215 do
39216 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39217 { echo "$as_me:$LINENO: checking for $ac_header" >&5
39218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
39219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39220   echo $ECHO_N "(cached) $ECHO_C" >&6
39221 else
39222   cat >conftest.$ac_ext <<_ACEOF
39223 /* confdefs.h.  */
39224 _ACEOF
39225 cat confdefs.h >>conftest.$ac_ext
39226 cat >>conftest.$ac_ext <<_ACEOF
39227 /* end confdefs.h.  */
39228 $ac_includes_default
39229
39230 #include <$ac_header>
39231 _ACEOF
39232 rm -f conftest.$ac_objext
39233 if { (ac_try="$ac_compile"
39234 case "(($ac_try" in
39235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39236   *) ac_try_echo=$ac_try;;
39237 esac
39238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39239   (eval "$ac_compile") 2>conftest.er1
39240   ac_status=$?
39241   grep -v '^ *+' conftest.er1 >conftest.err
39242   rm -f conftest.er1
39243   cat conftest.err >&5
39244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39245   (exit $ac_status); } && {
39246          test -z "$ac_c_werror_flag" ||
39247          test ! -s conftest.err
39248        } && test -s conftest.$ac_objext; then
39249   eval "$as_ac_Header=yes"
39250 else
39251   echo "$as_me: failed program was:" >&5
39252 sed 's/^/| /' conftest.$ac_ext >&5
39253
39254         eval "$as_ac_Header=no"
39255 fi
39256
39257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39258 fi
39259 ac_res=`eval echo '${'$as_ac_Header'}'`
39260                { echo "$as_me:$LINENO: result: $ac_res" >&5
39261 echo "${ECHO_T}$ac_res" >&6; }
39262 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39263   cat >>confdefs.h <<_ACEOF
39264 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39265 _ACEOF
39266
39267 fi
39268
39269 done
39270
39271       if test "$ac_cv_header_sched_h" = "yes"; then
39272           { echo "$as_me:$LINENO: checking for sched_yield" >&5
39273 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6; }
39274 if test "${ac_cv_func_sched_yield+set}" = set; then
39275   echo $ECHO_N "(cached) $ECHO_C" >&6
39276 else
39277   cat >conftest.$ac_ext <<_ACEOF
39278 /* confdefs.h.  */
39279 _ACEOF
39280 cat confdefs.h >>conftest.$ac_ext
39281 cat >>conftest.$ac_ext <<_ACEOF
39282 /* end confdefs.h.  */
39283 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
39284    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39285 #define sched_yield innocuous_sched_yield
39286
39287 /* System header to define __stub macros and hopefully few prototypes,
39288     which can conflict with char sched_yield (); below.
39289     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39290     <limits.h> exists even on freestanding compilers.  */
39291
39292 #ifdef __STDC__
39293 # include <limits.h>
39294 #else
39295 # include <assert.h>
39296 #endif
39297
39298 #undef sched_yield
39299
39300 /* Override any GCC internal prototype to avoid an error.
39301    Use char because int might match the return type of a GCC
39302    builtin and then its argument prototype would still apply.  */
39303 #ifdef __cplusplus
39304 extern "C"
39305 #endif
39306 char sched_yield ();
39307 /* The GNU C library defines this for functions which it implements
39308     to always fail with ENOSYS.  Some functions are actually named
39309     something starting with __ and the normal name is an alias.  */
39310 #if defined __stub_sched_yield || defined __stub___sched_yield
39311 choke me
39312 #endif
39313
39314 int
39315 main ()
39316 {
39317 return sched_yield ();
39318   ;
39319   return 0;
39320 }
39321 _ACEOF
39322 rm -f conftest.$ac_objext conftest$ac_exeext
39323 if { (ac_try="$ac_link"
39324 case "(($ac_try" in
39325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39326   *) ac_try_echo=$ac_try;;
39327 esac
39328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39329   (eval "$ac_link") 2>conftest.er1
39330   ac_status=$?
39331   grep -v '^ *+' conftest.er1 >conftest.err
39332   rm -f conftest.er1
39333   cat conftest.err >&5
39334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39335   (exit $ac_status); } && {
39336          test -z "$ac_c_werror_flag" ||
39337          test ! -s conftest.err
39338        } && test -s conftest$ac_exeext &&
39339        $as_test_x conftest$ac_exeext; then
39340   ac_cv_func_sched_yield=yes
39341 else
39342   echo "$as_me: failed program was:" >&5
39343 sed 's/^/| /' conftest.$ac_ext >&5
39344
39345         ac_cv_func_sched_yield=no
39346 fi
39347
39348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39349       conftest$ac_exeext conftest.$ac_ext
39350 fi
39351 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
39352 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6; }
39353 if test $ac_cv_func_sched_yield = yes; then
39354   cat >>confdefs.h <<\_ACEOF
39355 #define HAVE_SCHED_YIELD 1
39356 _ACEOF
39357
39358 else
39359
39360                 { echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
39361 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6; }
39362 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
39363   echo $ECHO_N "(cached) $ECHO_C" >&6
39364 else
39365   ac_check_lib_save_LIBS=$LIBS
39366 LIBS="-lposix4  $LIBS"
39367 cat >conftest.$ac_ext <<_ACEOF
39368 /* confdefs.h.  */
39369 _ACEOF
39370 cat confdefs.h >>conftest.$ac_ext
39371 cat >>conftest.$ac_ext <<_ACEOF
39372 /* end confdefs.h.  */
39373
39374 /* Override any GCC internal prototype to avoid an error.
39375    Use char because int might match the return type of a GCC
39376    builtin and then its argument prototype would still apply.  */
39377 #ifdef __cplusplus
39378 extern "C"
39379 #endif
39380 char sched_yield ();
39381 int
39382 main ()
39383 {
39384 return sched_yield ();
39385   ;
39386   return 0;
39387 }
39388 _ACEOF
39389 rm -f conftest.$ac_objext conftest$ac_exeext
39390 if { (ac_try="$ac_link"
39391 case "(($ac_try" in
39392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39393   *) ac_try_echo=$ac_try;;
39394 esac
39395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39396   (eval "$ac_link") 2>conftest.er1
39397   ac_status=$?
39398   grep -v '^ *+' conftest.er1 >conftest.err
39399   rm -f conftest.er1
39400   cat conftest.err >&5
39401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39402   (exit $ac_status); } && {
39403          test -z "$ac_c_werror_flag" ||
39404          test ! -s conftest.err
39405        } && test -s conftest$ac_exeext &&
39406        $as_test_x conftest$ac_exeext; then
39407   ac_cv_lib_posix4_sched_yield=yes
39408 else
39409   echo "$as_me: failed program was:" >&5
39410 sed 's/^/| /' conftest.$ac_ext >&5
39411
39412         ac_cv_lib_posix4_sched_yield=no
39413 fi
39414
39415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39416       conftest$ac_exeext conftest.$ac_ext
39417 LIBS=$ac_check_lib_save_LIBS
39418 fi
39419 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
39420 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6; }
39421 if test $ac_cv_lib_posix4_sched_yield = yes; then
39422   cat >>confdefs.h <<\_ACEOF
39423 #define HAVE_SCHED_YIELD 1
39424 _ACEOF
39425  POSIX4_LINK=" -lposix4"
39426 else
39427   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
39428 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
39429
39430 fi
39431
39432
39433
39434 fi
39435
39436       fi
39437
39438                                           HAVE_PRIOR_FUNCS=0
39439       { echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
39440 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6; }
39441 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
39442   echo $ECHO_N "(cached) $ECHO_C" >&6
39443 else
39444   cat >conftest.$ac_ext <<_ACEOF
39445 /* confdefs.h.  */
39446 _ACEOF
39447 cat confdefs.h >>conftest.$ac_ext
39448 cat >>conftest.$ac_ext <<_ACEOF
39449 /* end confdefs.h.  */
39450 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
39451    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39452 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
39453
39454 /* System header to define __stub macros and hopefully few prototypes,
39455     which can conflict with char pthread_attr_getschedpolicy (); below.
39456     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39457     <limits.h> exists even on freestanding compilers.  */
39458
39459 #ifdef __STDC__
39460 # include <limits.h>
39461 #else
39462 # include <assert.h>
39463 #endif
39464
39465 #undef pthread_attr_getschedpolicy
39466
39467 /* Override any GCC internal prototype to avoid an error.
39468    Use char because int might match the return type of a GCC
39469    builtin and then its argument prototype would still apply.  */
39470 #ifdef __cplusplus
39471 extern "C"
39472 #endif
39473 char pthread_attr_getschedpolicy ();
39474 /* The GNU C library defines this for functions which it implements
39475     to always fail with ENOSYS.  Some functions are actually named
39476     something starting with __ and the normal name is an alias.  */
39477 #if defined __stub_pthread_attr_getschedpolicy || defined __stub___pthread_attr_getschedpolicy
39478 choke me
39479 #endif
39480
39481 int
39482 main ()
39483 {
39484 return pthread_attr_getschedpolicy ();
39485   ;
39486   return 0;
39487 }
39488 _ACEOF
39489 rm -f conftest.$ac_objext conftest$ac_exeext
39490 if { (ac_try="$ac_link"
39491 case "(($ac_try" in
39492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39493   *) ac_try_echo=$ac_try;;
39494 esac
39495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39496   (eval "$ac_link") 2>conftest.er1
39497   ac_status=$?
39498   grep -v '^ *+' conftest.er1 >conftest.err
39499   rm -f conftest.er1
39500   cat conftest.err >&5
39501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39502   (exit $ac_status); } && {
39503          test -z "$ac_c_werror_flag" ||
39504          test ! -s conftest.err
39505        } && test -s conftest$ac_exeext &&
39506        $as_test_x conftest$ac_exeext; then
39507   ac_cv_func_pthread_attr_getschedpolicy=yes
39508 else
39509   echo "$as_me: failed program was:" >&5
39510 sed 's/^/| /' conftest.$ac_ext >&5
39511
39512         ac_cv_func_pthread_attr_getschedpolicy=no
39513 fi
39514
39515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39516       conftest$ac_exeext conftest.$ac_ext
39517 fi
39518 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
39519 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6; }
39520 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
39521   { echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
39522 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6; }
39523 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
39524   echo $ECHO_N "(cached) $ECHO_C" >&6
39525 else
39526   cat >conftest.$ac_ext <<_ACEOF
39527 /* confdefs.h.  */
39528 _ACEOF
39529 cat confdefs.h >>conftest.$ac_ext
39530 cat >>conftest.$ac_ext <<_ACEOF
39531 /* end confdefs.h.  */
39532 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
39533    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39534 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
39535
39536 /* System header to define __stub macros and hopefully few prototypes,
39537     which can conflict with char pthread_attr_setschedparam (); below.
39538     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39539     <limits.h> exists even on freestanding compilers.  */
39540
39541 #ifdef __STDC__
39542 # include <limits.h>
39543 #else
39544 # include <assert.h>
39545 #endif
39546
39547 #undef pthread_attr_setschedparam
39548
39549 /* Override any GCC internal prototype to avoid an error.
39550    Use char because int might match the return type of a GCC
39551    builtin and then its argument prototype would still apply.  */
39552 #ifdef __cplusplus
39553 extern "C"
39554 #endif
39555 char pthread_attr_setschedparam ();
39556 /* The GNU C library defines this for functions which it implements
39557     to always fail with ENOSYS.  Some functions are actually named
39558     something starting with __ and the normal name is an alias.  */
39559 #if defined __stub_pthread_attr_setschedparam || defined __stub___pthread_attr_setschedparam
39560 choke me
39561 #endif
39562
39563 int
39564 main ()
39565 {
39566 return pthread_attr_setschedparam ();
39567   ;
39568   return 0;
39569 }
39570 _ACEOF
39571 rm -f conftest.$ac_objext conftest$ac_exeext
39572 if { (ac_try="$ac_link"
39573 case "(($ac_try" in
39574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39575   *) ac_try_echo=$ac_try;;
39576 esac
39577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39578   (eval "$ac_link") 2>conftest.er1
39579   ac_status=$?
39580   grep -v '^ *+' conftest.er1 >conftest.err
39581   rm -f conftest.er1
39582   cat conftest.err >&5
39583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39584   (exit $ac_status); } && {
39585          test -z "$ac_c_werror_flag" ||
39586          test ! -s conftest.err
39587        } && test -s conftest$ac_exeext &&
39588        $as_test_x conftest$ac_exeext; then
39589   ac_cv_func_pthread_attr_setschedparam=yes
39590 else
39591   echo "$as_me: failed program was:" >&5
39592 sed 's/^/| /' conftest.$ac_ext >&5
39593
39594         ac_cv_func_pthread_attr_setschedparam=no
39595 fi
39596
39597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39598       conftest$ac_exeext conftest.$ac_ext
39599 fi
39600 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
39601 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6; }
39602 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
39603   { echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
39604 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6; }
39605 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
39606   echo $ECHO_N "(cached) $ECHO_C" >&6
39607 else
39608   cat >conftest.$ac_ext <<_ACEOF
39609 /* confdefs.h.  */
39610 _ACEOF
39611 cat confdefs.h >>conftest.$ac_ext
39612 cat >>conftest.$ac_ext <<_ACEOF
39613 /* end confdefs.h.  */
39614 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
39615    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39616 #define sched_get_priority_max innocuous_sched_get_priority_max
39617
39618 /* System header to define __stub macros and hopefully few prototypes,
39619     which can conflict with char sched_get_priority_max (); below.
39620     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39621     <limits.h> exists even on freestanding compilers.  */
39622
39623 #ifdef __STDC__
39624 # include <limits.h>
39625 #else
39626 # include <assert.h>
39627 #endif
39628
39629 #undef sched_get_priority_max
39630
39631 /* Override any GCC internal prototype to avoid an error.
39632    Use char because int might match the return type of a GCC
39633    builtin and then its argument prototype would still apply.  */
39634 #ifdef __cplusplus
39635 extern "C"
39636 #endif
39637 char sched_get_priority_max ();
39638 /* The GNU C library defines this for functions which it implements
39639     to always fail with ENOSYS.  Some functions are actually named
39640     something starting with __ and the normal name is an alias.  */
39641 #if defined __stub_sched_get_priority_max || defined __stub___sched_get_priority_max
39642 choke me
39643 #endif
39644
39645 int
39646 main ()
39647 {
39648 return sched_get_priority_max ();
39649   ;
39650   return 0;
39651 }
39652 _ACEOF
39653 rm -f conftest.$ac_objext conftest$ac_exeext
39654 if { (ac_try="$ac_link"
39655 case "(($ac_try" in
39656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39657   *) ac_try_echo=$ac_try;;
39658 esac
39659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39660   (eval "$ac_link") 2>conftest.er1
39661   ac_status=$?
39662   grep -v '^ *+' conftest.er1 >conftest.err
39663   rm -f conftest.er1
39664   cat conftest.err >&5
39665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39666   (exit $ac_status); } && {
39667          test -z "$ac_c_werror_flag" ||
39668          test ! -s conftest.err
39669        } && test -s conftest$ac_exeext &&
39670        $as_test_x conftest$ac_exeext; then
39671   ac_cv_func_sched_get_priority_max=yes
39672 else
39673   echo "$as_me: failed program was:" >&5
39674 sed 's/^/| /' conftest.$ac_ext >&5
39675
39676         ac_cv_func_sched_get_priority_max=no
39677 fi
39678
39679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39680       conftest$ac_exeext conftest.$ac_ext
39681 fi
39682 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
39683 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6; }
39684 if test $ac_cv_func_sched_get_priority_max = yes; then
39685   HAVE_PRIOR_FUNCS=1
39686 else
39687   { echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
39688 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6; }
39689 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
39690   echo $ECHO_N "(cached) $ECHO_C" >&6
39691 else
39692   ac_check_lib_save_LIBS=$LIBS
39693 LIBS="-lposix4  $LIBS"
39694 cat >conftest.$ac_ext <<_ACEOF
39695 /* confdefs.h.  */
39696 _ACEOF
39697 cat confdefs.h >>conftest.$ac_ext
39698 cat >>conftest.$ac_ext <<_ACEOF
39699 /* end confdefs.h.  */
39700
39701 /* Override any GCC internal prototype to avoid an error.
39702    Use char because int might match the return type of a GCC
39703    builtin and then its argument prototype would still apply.  */
39704 #ifdef __cplusplus
39705 extern "C"
39706 #endif
39707 char sched_get_priority_max ();
39708 int
39709 main ()
39710 {
39711 return sched_get_priority_max ();
39712   ;
39713   return 0;
39714 }
39715 _ACEOF
39716 rm -f conftest.$ac_objext conftest$ac_exeext
39717 if { (ac_try="$ac_link"
39718 case "(($ac_try" in
39719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39720   *) ac_try_echo=$ac_try;;
39721 esac
39722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39723   (eval "$ac_link") 2>conftest.er1
39724   ac_status=$?
39725   grep -v '^ *+' conftest.er1 >conftest.err
39726   rm -f conftest.er1
39727   cat conftest.err >&5
39728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39729   (exit $ac_status); } && {
39730          test -z "$ac_c_werror_flag" ||
39731          test ! -s conftest.err
39732        } && test -s conftest$ac_exeext &&
39733        $as_test_x conftest$ac_exeext; then
39734   ac_cv_lib_posix4_sched_get_priority_max=yes
39735 else
39736   echo "$as_me: failed program was:" >&5
39737 sed 's/^/| /' conftest.$ac_ext >&5
39738
39739         ac_cv_lib_posix4_sched_get_priority_max=no
39740 fi
39741
39742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39743       conftest$ac_exeext conftest.$ac_ext
39744 LIBS=$ac_check_lib_save_LIBS
39745 fi
39746 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
39747 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6; }
39748 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
39749
39750                                 HAVE_PRIOR_FUNCS=1
39751                                 POSIX4_LINK=" -lposix4"
39752
39753 fi
39754
39755
39756 fi
39757
39758
39759 fi
39760
39761
39762 fi
39763
39764
39765       if test "$HAVE_PRIOR_FUNCS" = 1; then
39766         cat >>confdefs.h <<\_ACEOF
39767 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
39768 _ACEOF
39769
39770       else
39771         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
39772 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
39773       fi
39774
39775       { echo "$as_me:$LINENO: checking for pthread_cancel" >&5
39776 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6; }
39777 if test "${ac_cv_func_pthread_cancel+set}" = set; then
39778   echo $ECHO_N "(cached) $ECHO_C" >&6
39779 else
39780   cat >conftest.$ac_ext <<_ACEOF
39781 /* confdefs.h.  */
39782 _ACEOF
39783 cat confdefs.h >>conftest.$ac_ext
39784 cat >>conftest.$ac_ext <<_ACEOF
39785 /* end confdefs.h.  */
39786 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
39787    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39788 #define pthread_cancel innocuous_pthread_cancel
39789
39790 /* System header to define __stub macros and hopefully few prototypes,
39791     which can conflict with char pthread_cancel (); below.
39792     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39793     <limits.h> exists even on freestanding compilers.  */
39794
39795 #ifdef __STDC__
39796 # include <limits.h>
39797 #else
39798 # include <assert.h>
39799 #endif
39800
39801 #undef pthread_cancel
39802
39803 /* Override any GCC internal prototype to avoid an error.
39804    Use char because int might match the return type of a GCC
39805    builtin and then its argument prototype would still apply.  */
39806 #ifdef __cplusplus
39807 extern "C"
39808 #endif
39809 char pthread_cancel ();
39810 /* The GNU C library defines this for functions which it implements
39811     to always fail with ENOSYS.  Some functions are actually named
39812     something starting with __ and the normal name is an alias.  */
39813 #if defined __stub_pthread_cancel || defined __stub___pthread_cancel
39814 choke me
39815 #endif
39816
39817 int
39818 main ()
39819 {
39820 return pthread_cancel ();
39821   ;
39822   return 0;
39823 }
39824 _ACEOF
39825 rm -f conftest.$ac_objext conftest$ac_exeext
39826 if { (ac_try="$ac_link"
39827 case "(($ac_try" in
39828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39829   *) ac_try_echo=$ac_try;;
39830 esac
39831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39832   (eval "$ac_link") 2>conftest.er1
39833   ac_status=$?
39834   grep -v '^ *+' conftest.er1 >conftest.err
39835   rm -f conftest.er1
39836   cat conftest.err >&5
39837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39838   (exit $ac_status); } && {
39839          test -z "$ac_c_werror_flag" ||
39840          test ! -s conftest.err
39841        } && test -s conftest$ac_exeext &&
39842        $as_test_x conftest$ac_exeext; then
39843   ac_cv_func_pthread_cancel=yes
39844 else
39845   echo "$as_me: failed program was:" >&5
39846 sed 's/^/| /' conftest.$ac_ext >&5
39847
39848         ac_cv_func_pthread_cancel=no
39849 fi
39850
39851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39852       conftest$ac_exeext conftest.$ac_ext
39853 fi
39854 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
39855 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6; }
39856 if test $ac_cv_func_pthread_cancel = yes; then
39857   cat >>confdefs.h <<\_ACEOF
39858 #define HAVE_PTHREAD_CANCEL 1
39859 _ACEOF
39860
39861 else
39862   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
39863 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
39864 fi
39865
39866
39867       { echo "$as_me:$LINENO: checking for pthread_mutex_timedlock" >&5
39868 echo $ECHO_N "checking for pthread_mutex_timedlock... $ECHO_C" >&6; }
39869 if test "${ac_cv_func_pthread_mutex_timedlock+set}" = set; then
39870   echo $ECHO_N "(cached) $ECHO_C" >&6
39871 else
39872   cat >conftest.$ac_ext <<_ACEOF
39873 /* confdefs.h.  */
39874 _ACEOF
39875 cat confdefs.h >>conftest.$ac_ext
39876 cat >>conftest.$ac_ext <<_ACEOF
39877 /* end confdefs.h.  */
39878 /* Define pthread_mutex_timedlock to an innocuous variant, in case <limits.h> declares pthread_mutex_timedlock.
39879    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39880 #define pthread_mutex_timedlock innocuous_pthread_mutex_timedlock
39881
39882 /* System header to define __stub macros and hopefully few prototypes,
39883     which can conflict with char pthread_mutex_timedlock (); below.
39884     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39885     <limits.h> exists even on freestanding compilers.  */
39886
39887 #ifdef __STDC__
39888 # include <limits.h>
39889 #else
39890 # include <assert.h>
39891 #endif
39892
39893 #undef pthread_mutex_timedlock
39894
39895 /* Override any GCC internal prototype to avoid an error.
39896    Use char because int might match the return type of a GCC
39897    builtin and then its argument prototype would still apply.  */
39898 #ifdef __cplusplus
39899 extern "C"
39900 #endif
39901 char pthread_mutex_timedlock ();
39902 /* The GNU C library defines this for functions which it implements
39903     to always fail with ENOSYS.  Some functions are actually named
39904     something starting with __ and the normal name is an alias.  */
39905 #if defined __stub_pthread_mutex_timedlock || defined __stub___pthread_mutex_timedlock
39906 choke me
39907 #endif
39908
39909 int
39910 main ()
39911 {
39912 return pthread_mutex_timedlock ();
39913   ;
39914   return 0;
39915 }
39916 _ACEOF
39917 rm -f conftest.$ac_objext conftest$ac_exeext
39918 if { (ac_try="$ac_link"
39919 case "(($ac_try" in
39920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39921   *) ac_try_echo=$ac_try;;
39922 esac
39923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39924   (eval "$ac_link") 2>conftest.er1
39925   ac_status=$?
39926   grep -v '^ *+' conftest.er1 >conftest.err
39927   rm -f conftest.er1
39928   cat conftest.err >&5
39929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39930   (exit $ac_status); } && {
39931          test -z "$ac_c_werror_flag" ||
39932          test ! -s conftest.err
39933        } && test -s conftest$ac_exeext &&
39934        $as_test_x conftest$ac_exeext; then
39935   ac_cv_func_pthread_mutex_timedlock=yes
39936 else
39937   echo "$as_me: failed program was:" >&5
39938 sed 's/^/| /' conftest.$ac_ext >&5
39939
39940         ac_cv_func_pthread_mutex_timedlock=no
39941 fi
39942
39943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39944       conftest$ac_exeext conftest.$ac_ext
39945 fi
39946 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_timedlock" >&5
39947 echo "${ECHO_T}$ac_cv_func_pthread_mutex_timedlock" >&6; }
39948 if test $ac_cv_func_pthread_mutex_timedlock = yes; then
39949   cat >>confdefs.h <<\_ACEOF
39950 #define HAVE_PTHREAD_MUTEX_TIMEDLOCK 1
39951 _ACEOF
39952
39953 else
39954   { echo "$as_me:$LINENO: WARNING: wxMutex::LockTimeout() will not work" >&5
39955 echo "$as_me: WARNING: wxMutex::LockTimeout() will not work" >&2;}
39956 fi
39957
39958
39959       { echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
39960 echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6; }
39961 if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
39962   echo $ECHO_N "(cached) $ECHO_C" >&6
39963 else
39964   cat >conftest.$ac_ext <<_ACEOF
39965 /* confdefs.h.  */
39966 _ACEOF
39967 cat confdefs.h >>conftest.$ac_ext
39968 cat >>conftest.$ac_ext <<_ACEOF
39969 /* end confdefs.h.  */
39970 /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
39971    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39972 #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
39973
39974 /* System header to define __stub macros and hopefully few prototypes,
39975     which can conflict with char pthread_attr_setstacksize (); below.
39976     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39977     <limits.h> exists even on freestanding compilers.  */
39978
39979 #ifdef __STDC__
39980 # include <limits.h>
39981 #else
39982 # include <assert.h>
39983 #endif
39984
39985 #undef pthread_attr_setstacksize
39986
39987 /* Override any GCC internal prototype to avoid an error.
39988    Use char because int might match the return type of a GCC
39989    builtin and then its argument prototype would still apply.  */
39990 #ifdef __cplusplus
39991 extern "C"
39992 #endif
39993 char pthread_attr_setstacksize ();
39994 /* The GNU C library defines this for functions which it implements
39995     to always fail with ENOSYS.  Some functions are actually named
39996     something starting with __ and the normal name is an alias.  */
39997 #if defined __stub_pthread_attr_setstacksize || defined __stub___pthread_attr_setstacksize
39998 choke me
39999 #endif
40000
40001 int
40002 main ()
40003 {
40004 return pthread_attr_setstacksize ();
40005   ;
40006   return 0;
40007 }
40008 _ACEOF
40009 rm -f conftest.$ac_objext conftest$ac_exeext
40010 if { (ac_try="$ac_link"
40011 case "(($ac_try" in
40012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40013   *) ac_try_echo=$ac_try;;
40014 esac
40015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40016   (eval "$ac_link") 2>conftest.er1
40017   ac_status=$?
40018   grep -v '^ *+' conftest.er1 >conftest.err
40019   rm -f conftest.er1
40020   cat conftest.err >&5
40021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40022   (exit $ac_status); } && {
40023          test -z "$ac_c_werror_flag" ||
40024          test ! -s conftest.err
40025        } && test -s conftest$ac_exeext &&
40026        $as_test_x conftest$ac_exeext; then
40027   ac_cv_func_pthread_attr_setstacksize=yes
40028 else
40029   echo "$as_me: failed program was:" >&5
40030 sed 's/^/| /' conftest.$ac_ext >&5
40031
40032         ac_cv_func_pthread_attr_setstacksize=no
40033 fi
40034
40035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40036       conftest$ac_exeext conftest.$ac_ext
40037 fi
40038 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
40039 echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6; }
40040 if test $ac_cv_func_pthread_attr_setstacksize = yes; then
40041   cat >>confdefs.h <<\_ACEOF
40042 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
40043 _ACEOF
40044
40045 fi
40046
40047
40048
40049       { echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
40050 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6; }
40051 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
40052   echo $ECHO_N "(cached) $ECHO_C" >&6
40053 else
40054
40055         cat >conftest.$ac_ext <<_ACEOF
40056 /* confdefs.h.  */
40057 _ACEOF
40058 cat confdefs.h >>conftest.$ac_ext
40059 cat >>conftest.$ac_ext <<_ACEOF
40060 /* end confdefs.h.  */
40061 #include <pthread.h>
40062 int
40063 main ()
40064 {
40065
40066                pthread_mutexattr_t attr;
40067                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
40068
40069   ;
40070   return 0;
40071 }
40072 _ACEOF
40073 rm -f conftest.$ac_objext
40074 if { (ac_try="$ac_compile"
40075 case "(($ac_try" in
40076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40077   *) ac_try_echo=$ac_try;;
40078 esac
40079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40080   (eval "$ac_compile") 2>conftest.er1
40081   ac_status=$?
40082   grep -v '^ *+' conftest.er1 >conftest.err
40083   rm -f conftest.er1
40084   cat conftest.err >&5
40085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40086   (exit $ac_status); } && {
40087          test -z "$ac_c_werror_flag" ||
40088          test ! -s conftest.err
40089        } && test -s conftest.$ac_objext; then
40090   wx_cv_type_pthread_mutexattr_t=yes
40091 else
40092   echo "$as_me: failed program was:" >&5
40093 sed 's/^/| /' conftest.$ac_ext >&5
40094
40095         wx_cv_type_pthread_mutexattr_t=no
40096
40097 fi
40098
40099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40100
40101 fi
40102 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
40103 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6; }
40104
40105       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
40106         cat >>confdefs.h <<\_ACEOF
40107 #define HAVE_PTHREAD_MUTEXATTR_T 1
40108 _ACEOF
40109
40110
40111                         { echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
40112 echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6; }
40113 if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
40114   echo $ECHO_N "(cached) $ECHO_C" >&6
40115 else
40116
40117                        cat >conftest.$ac_ext <<_ACEOF
40118 /* confdefs.h.  */
40119 _ACEOF
40120 cat confdefs.h >>conftest.$ac_ext
40121 cat >>conftest.$ac_ext <<_ACEOF
40122 /* end confdefs.h.  */
40123 #include <pthread.h>
40124 int
40125 main ()
40126 {
40127
40128                                pthread_mutexattr_t attr;
40129                                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
40130
40131   ;
40132   return 0;
40133 }
40134 _ACEOF
40135 rm -f conftest.$ac_objext
40136 if { (ac_try="$ac_compile"
40137 case "(($ac_try" in
40138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40139   *) ac_try_echo=$ac_try;;
40140 esac
40141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40142   (eval "$ac_compile") 2>conftest.er1
40143   ac_status=$?
40144   grep -v '^ *+' conftest.er1 >conftest.err
40145   rm -f conftest.er1
40146   cat conftest.err >&5
40147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40148   (exit $ac_status); } && {
40149          test -z "$ac_c_werror_flag" ||
40150          test ! -s conftest.err
40151        } && test -s conftest.$ac_objext; then
40152   wx_cv_func_pthread_mutexattr_settype_decl=yes
40153 else
40154   echo "$as_me: failed program was:" >&5
40155 sed 's/^/| /' conftest.$ac_ext >&5
40156
40157         wx_cv_func_pthread_mutexattr_settype_decl=no
40158
40159 fi
40160
40161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40162
40163 fi
40164 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
40165 echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6; }
40166         if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
40167             cat >>confdefs.h <<\_ACEOF
40168 #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
40169 _ACEOF
40170
40171         fi
40172       else
40173                 { echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
40174 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6; }
40175 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
40176   echo $ECHO_N "(cached) $ECHO_C" >&6
40177 else
40178
40179             cat >conftest.$ac_ext <<_ACEOF
40180 /* confdefs.h.  */
40181 _ACEOF
40182 cat confdefs.h >>conftest.$ac_ext
40183 cat >>conftest.$ac_ext <<_ACEOF
40184 /* end confdefs.h.  */
40185 #include <pthread.h>
40186 int
40187 main ()
40188 {
40189
40190                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
40191
40192   ;
40193   return 0;
40194 }
40195 _ACEOF
40196 rm -f conftest.$ac_objext
40197 if { (ac_try="$ac_compile"
40198 case "(($ac_try" in
40199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40200   *) ac_try_echo=$ac_try;;
40201 esac
40202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40203   (eval "$ac_compile") 2>conftest.er1
40204   ac_status=$?
40205   grep -v '^ *+' conftest.er1 >conftest.err
40206   rm -f conftest.er1
40207   cat conftest.err >&5
40208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40209   (exit $ac_status); } && {
40210          test -z "$ac_c_werror_flag" ||
40211          test ! -s conftest.err
40212        } && test -s conftest.$ac_objext; then
40213
40214                     wx_cv_type_pthread_rec_mutex_init=yes
40215
40216 else
40217   echo "$as_me: failed program was:" >&5
40218 sed 's/^/| /' conftest.$ac_ext >&5
40219
40220
40221                     wx_cv_type_pthread_rec_mutex_init=no
40222
40223
40224 fi
40225
40226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40227
40228 fi
40229 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
40230 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6; }
40231         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
40232           cat >>confdefs.h <<\_ACEOF
40233 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
40234 _ACEOF
40235
40236         else
40237                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
40238 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
40239         fi
40240       fi
40241
40242             { echo "$as_me:$LINENO: checking for __thread keyword" >&5
40243 echo $ECHO_N "checking for __thread keyword... $ECHO_C" >&6; }
40244 if test "${wx_cv_cc___thread+set}" = set; then
40245   echo $ECHO_N "(cached) $ECHO_C" >&6
40246 else
40247
40248               cat >conftest.$ac_ext <<_ACEOF
40249 /* confdefs.h.  */
40250 _ACEOF
40251 cat confdefs.h >>conftest.$ac_ext
40252 cat >>conftest.$ac_ext <<_ACEOF
40253 /* end confdefs.h.  */
40254 #include <pthread.h>
40255 int
40256 main ()
40257 {
40258
40259                       static __thread int n = 0;
40260                       static __thread int *p = 0;
40261
40262   ;
40263   return 0;
40264 }
40265 _ACEOF
40266 rm -f conftest.$ac_objext
40267 if { (ac_try="$ac_compile"
40268 case "(($ac_try" in
40269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40270   *) ac_try_echo=$ac_try;;
40271 esac
40272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40273   (eval "$ac_compile") 2>conftest.er1
40274   ac_status=$?
40275   grep -v '^ *+' conftest.er1 >conftest.err
40276   rm -f conftest.er1
40277   cat conftest.err >&5
40278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40279   (exit $ac_status); } && {
40280          test -z "$ac_c_werror_flag" ||
40281          test ! -s conftest.err
40282        } && test -s conftest.$ac_objext; then
40283   wx_cv_cc___thread=yes
40284 else
40285   echo "$as_me: failed program was:" >&5
40286 sed 's/^/| /' conftest.$ac_ext >&5
40287
40288         wx_cv_cc___thread=no
40289
40290 fi
40291
40292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40293
40294
40295 fi
40296 { echo "$as_me:$LINENO: result: $wx_cv_cc___thread" >&5
40297 echo "${ECHO_T}$wx_cv_cc___thread" >&6; }
40298
40299       if test "$wx_cv_cc___thread" = "yes"; then
40300
40301   GXX_VERSION=""
40302
40303
40304
40305   { echo "$as_me:$LINENO: checking if gcc accepts -dumpversion option" >&5
40306 echo $ECHO_N "checking if gcc accepts -dumpversion option... $ECHO_C" >&6; }
40307
40308   if  test "x$GCC" = "xyes" ; then
40309
40310     if  test -z "" ; then
40311
40312       ax_gcc_option_test="int main()
40313 {
40314         return 0;
40315 }"
40316
40317 else
40318
40319       ax_gcc_option_test=""
40320
40321 fi
40322
40323
40324     # Dump the test program to file
40325     cat <<EOF > conftest.c
40326 $ax_gcc_option_test
40327 EOF
40328
40329     # Dump back the file to the log, useful for debugging purposes
40330     { ac_try='cat conftest.c 1>&5'
40331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40332   (eval $ac_try) 2>&5
40333   ac_status=$?
40334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40335   (exit $ac_status); }; }
40336
40337     if  { ac_try='$CC  -dumpversion -c conftest.c 1>&5'
40338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40339   (eval $ac_try) 2>&5
40340   ac_status=$?
40341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40342   (exit $ac_status); }; } ; then
40343
40344                 { echo "$as_me:$LINENO: result: yes" >&5
40345 echo "${ECHO_T}yes" >&6; }
40346
40347     ax_gcc_version_option=yes
40348
40349
40350 else
40351
40352                 { echo "$as_me:$LINENO: result: no" >&5
40353 echo "${ECHO_T}no" >&6; }
40354
40355     ax_gcc_version_option=no
40356
40357
40358 fi
40359
40360
40361 else
40362
40363     { echo "$as_me:$LINENO: result: no gcc available" >&5
40364 echo "${ECHO_T}no gcc available" >&6; }
40365
40366 fi
40367
40368
40369   if test "x$GXX" = "xyes"; then
40370
40371     if test "x$ax_gxx_version_option" != "no"; then
40372
40373       { echo "$as_me:$LINENO: checking gxx version" >&5
40374 echo $ECHO_N "checking gxx version... $ECHO_C" >&6; }
40375 if test "${ax_cv_gxx_version+set}" = set; then
40376   echo $ECHO_N "(cached) $ECHO_C" >&6
40377 else
40378
40379         ax_cv_gxx_version="`$CXX -dumpversion`"
40380         if test "x$ax_cv_gxx_version" = "x"; then
40381
40382           ax_cv_gxx_version=""
40383
40384 fi
40385
40386
40387 fi
40388 { echo "$as_me:$LINENO: result: $ax_cv_gxx_version" >&5
40389 echo "${ECHO_T}$ax_cv_gxx_version" >&6; }
40390       GXX_VERSION=$ax_cv_gxx_version
40391
40392 fi
40393
40394
40395 fi
40396
40397
40398
40399           if test -n "$ax_cv_gxx_version"; then
40400                                                                                                                               { echo "$as_me:$LINENO: checking whether __thread support in g++ is usable" >&5
40401 echo $ECHO_N "checking whether __thread support in g++ is usable... $ECHO_C" >&6; }
40402               case "$ax_cv_gxx_version" in
40403                 1.* | 2.* | 3.* )
40404                     { echo "$as_me:$LINENO: result: no, it's broken" >&5
40405 echo "${ECHO_T}no, it's broken" >&6; }
40406                     wx_cv_cc___thread=no
40407                     ;;
40408                 *)
40409                     { echo "$as_me:$LINENO: result: yes, it works" >&5
40410 echo "${ECHO_T}yes, it works" >&6; }
40411                     ;;
40412               esac
40413           fi
40414       fi
40415
40416       if test "$wx_cv_cc___thread" = "yes"; then
40417         cat >>confdefs.h <<\_ACEOF
40418 #define HAVE___THREAD_KEYWORD 1
40419 _ACEOF
40420
40421       fi
40422     fi
40423
40424 else
40425     if test "$wxUSE_THREADS" = "yes" ; then
40426       case "${host}" in
40427         x86_64-*-mingw32* )
40428         ;;
40429         *-*-mingw32* )
40430                         { echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
40431 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6; }
40432 if test "${wx_cv_cflags_mthread+set}" = set; then
40433   echo $ECHO_N "(cached) $ECHO_C" >&6
40434 else
40435
40436                     CFLAGS_OLD="$CFLAGS"
40437                     CFLAGS="-mthreads $CFLAGS"
40438                     cat >conftest.$ac_ext <<_ACEOF
40439 /* confdefs.h.  */
40440 _ACEOF
40441 cat confdefs.h >>conftest.$ac_ext
40442 cat >>conftest.$ac_ext <<_ACEOF
40443 /* end confdefs.h.  */
40444
40445 int
40446 main ()
40447 {
40448
40449   ;
40450   return 0;
40451 }
40452 _ACEOF
40453 rm -f conftest.$ac_objext
40454 if { (ac_try="$ac_compile"
40455 case "(($ac_try" in
40456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40457   *) ac_try_echo=$ac_try;;
40458 esac
40459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40460   (eval "$ac_compile") 2>conftest.er1
40461   ac_status=$?
40462   grep -v '^ *+' conftest.er1 >conftest.err
40463   rm -f conftest.er1
40464   cat conftest.err >&5
40465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40466   (exit $ac_status); } && {
40467          test -z "$ac_c_werror_flag" ||
40468          test ! -s conftest.err
40469        } && test -s conftest.$ac_objext; then
40470   wx_cv_cflags_mthread=yes
40471 else
40472   echo "$as_me: failed program was:" >&5
40473 sed 's/^/| /' conftest.$ac_ext >&5
40474
40475         wx_cv_cflags_mthread=no
40476
40477 fi
40478
40479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40480
40481
40482 fi
40483 { echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
40484 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6; }
40485
40486             if test "$wx_cv_cflags_mthread" = "yes"; then
40487                                 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads"
40488                 LDFLAGS="$LDFLAGS -mthreads"
40489             else
40490                                 CFLAGS="$CFLAGS_OLD"
40491             fi
40492         ;;
40493         *-pc-os2*emx )
40494             WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
40495             LDFLAGS="$LDFLAGS -Zmt"
40496         ;;
40497       esac
40498     fi
40499 fi
40500
40501 { echo "$as_me:$LINENO: checking for localtime_r" >&5
40502 echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6; }
40503 if test "${ac_cv_func_localtime_r+set}" = set; then
40504   echo $ECHO_N "(cached) $ECHO_C" >&6
40505 else
40506   cat >conftest.$ac_ext <<_ACEOF
40507 /* confdefs.h.  */
40508 _ACEOF
40509 cat confdefs.h >>conftest.$ac_ext
40510 cat >>conftest.$ac_ext <<_ACEOF
40511 /* end confdefs.h.  */
40512 /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
40513    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40514 #define localtime_r innocuous_localtime_r
40515
40516 /* System header to define __stub macros and hopefully few prototypes,
40517     which can conflict with char localtime_r (); below.
40518     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40519     <limits.h> exists even on freestanding compilers.  */
40520
40521 #ifdef __STDC__
40522 # include <limits.h>
40523 #else
40524 # include <assert.h>
40525 #endif
40526
40527 #undef localtime_r
40528
40529 /* Override any GCC internal prototype to avoid an error.
40530    Use char because int might match the return type of a GCC
40531    builtin and then its argument prototype would still apply.  */
40532 #ifdef __cplusplus
40533 extern "C"
40534 #endif
40535 char localtime_r ();
40536 /* The GNU C library defines this for functions which it implements
40537     to always fail with ENOSYS.  Some functions are actually named
40538     something starting with __ and the normal name is an alias.  */
40539 #if defined __stub_localtime_r || defined __stub___localtime_r
40540 choke me
40541 #endif
40542
40543 int
40544 main ()
40545 {
40546 return localtime_r ();
40547   ;
40548   return 0;
40549 }
40550 _ACEOF
40551 rm -f conftest.$ac_objext conftest$ac_exeext
40552 if { (ac_try="$ac_link"
40553 case "(($ac_try" in
40554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40555   *) ac_try_echo=$ac_try;;
40556 esac
40557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40558   (eval "$ac_link") 2>conftest.er1
40559   ac_status=$?
40560   grep -v '^ *+' conftest.er1 >conftest.err
40561   rm -f conftest.er1
40562   cat conftest.err >&5
40563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40564   (exit $ac_status); } && {
40565          test -z "$ac_c_werror_flag" ||
40566          test ! -s conftest.err
40567        } && test -s conftest$ac_exeext &&
40568        $as_test_x conftest$ac_exeext; then
40569   ac_cv_func_localtime_r=yes
40570 else
40571   echo "$as_me: failed program was:" >&5
40572 sed 's/^/| /' conftest.$ac_ext >&5
40573
40574         ac_cv_func_localtime_r=no
40575 fi
40576
40577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40578       conftest$ac_exeext conftest.$ac_ext
40579 fi
40580 { echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
40581 echo "${ECHO_T}$ac_cv_func_localtime_r" >&6; }
40582 if test $ac_cv_func_localtime_r = yes; then
40583    cat >>confdefs.h <<\_ACEOF
40584 #define HAVE_LOCALTIME_R 1
40585 _ACEOF
40586
40587 fi
40588
40589 { echo "$as_me:$LINENO: checking for gmtime_r" >&5
40590 echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6; }
40591 if test "${ac_cv_func_gmtime_r+set}" = set; then
40592   echo $ECHO_N "(cached) $ECHO_C" >&6
40593 else
40594   cat >conftest.$ac_ext <<_ACEOF
40595 /* confdefs.h.  */
40596 _ACEOF
40597 cat confdefs.h >>conftest.$ac_ext
40598 cat >>conftest.$ac_ext <<_ACEOF
40599 /* end confdefs.h.  */
40600 /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
40601    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40602 #define gmtime_r innocuous_gmtime_r
40603
40604 /* System header to define __stub macros and hopefully few prototypes,
40605     which can conflict with char gmtime_r (); below.
40606     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40607     <limits.h> exists even on freestanding compilers.  */
40608
40609 #ifdef __STDC__
40610 # include <limits.h>
40611 #else
40612 # include <assert.h>
40613 #endif
40614
40615 #undef gmtime_r
40616
40617 /* Override any GCC internal prototype to avoid an error.
40618    Use char because int might match the return type of a GCC
40619    builtin and then its argument prototype would still apply.  */
40620 #ifdef __cplusplus
40621 extern "C"
40622 #endif
40623 char gmtime_r ();
40624 /* The GNU C library defines this for functions which it implements
40625     to always fail with ENOSYS.  Some functions are actually named
40626     something starting with __ and the normal name is an alias.  */
40627 #if defined __stub_gmtime_r || defined __stub___gmtime_r
40628 choke me
40629 #endif
40630
40631 int
40632 main ()
40633 {
40634 return gmtime_r ();
40635   ;
40636   return 0;
40637 }
40638 _ACEOF
40639 rm -f conftest.$ac_objext conftest$ac_exeext
40640 if { (ac_try="$ac_link"
40641 case "(($ac_try" in
40642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40643   *) ac_try_echo=$ac_try;;
40644 esac
40645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40646   (eval "$ac_link") 2>conftest.er1
40647   ac_status=$?
40648   grep -v '^ *+' conftest.er1 >conftest.err
40649   rm -f conftest.er1
40650   cat conftest.err >&5
40651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40652   (exit $ac_status); } && {
40653          test -z "$ac_c_werror_flag" ||
40654          test ! -s conftest.err
40655        } && test -s conftest$ac_exeext &&
40656        $as_test_x conftest$ac_exeext; then
40657   ac_cv_func_gmtime_r=yes
40658 else
40659   echo "$as_me: failed program was:" >&5
40660 sed 's/^/| /' conftest.$ac_ext >&5
40661
40662         ac_cv_func_gmtime_r=no
40663 fi
40664
40665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40666       conftest$ac_exeext conftest.$ac_ext
40667 fi
40668 { echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
40669 echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6; }
40670 if test $ac_cv_func_gmtime_r = yes; then
40671    cat >>confdefs.h <<\_ACEOF
40672 #define HAVE_GMTIME_R 1
40673 _ACEOF
40674
40675 fi
40676
40677
40678
40679
40680     ac_ext=c
40681 ac_cpp='$CPP $CPPFLAGS'
40682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40685
40686     { echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
40687 echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6; }
40688
40689     if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
40690   echo $ECHO_N "(cached) $ECHO_C" >&6
40691 else
40692
40693
40694 ################################################################
40695
40696 ac_cv_func_which_gethostbyname_r=unknown
40697
40698 #
40699 # ONE ARGUMENT (sanity check)
40700 #
40701
40702 # This should fail, as there is no variant of gethostbyname_r() that takes
40703 # a single argument. If it actually compiles, then we can assume that
40704 # netdb.h is not declaring the function, and the compiler is thereby
40705 # assuming an implicit prototype. In which case, we're out of luck.
40706 #
40707 cat >conftest.$ac_ext <<_ACEOF
40708 /* confdefs.h.  */
40709 _ACEOF
40710 cat confdefs.h >>conftest.$ac_ext
40711 cat >>conftest.$ac_ext <<_ACEOF
40712 /* end confdefs.h.  */
40713 #include <netdb.h>
40714 int
40715 main ()
40716 {
40717
40718             char *name = "www.gnu.org";
40719             (void)gethostbyname_r(name) /* ; */
40720
40721   ;
40722   return 0;
40723 }
40724 _ACEOF
40725 rm -f conftest.$ac_objext
40726 if { (ac_try="$ac_compile"
40727 case "(($ac_try" in
40728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40729   *) ac_try_echo=$ac_try;;
40730 esac
40731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40732   (eval "$ac_compile") 2>conftest.er1
40733   ac_status=$?
40734   grep -v '^ *+' conftest.er1 >conftest.err
40735   rm -f conftest.er1
40736   cat conftest.err >&5
40737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40738   (exit $ac_status); } && {
40739          test -z "$ac_c_werror_flag" ||
40740          test ! -s conftest.err
40741        } && test -s conftest.$ac_objext; then
40742   ac_cv_func_which_gethostbyname_r=no
40743 else
40744   echo "$as_me: failed program was:" >&5
40745 sed 's/^/| /' conftest.$ac_ext >&5
40746
40747
40748 fi
40749
40750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40751
40752 #
40753 # SIX ARGUMENTS
40754 # (e.g. Linux)
40755 #
40756
40757 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40758
40759 cat >conftest.$ac_ext <<_ACEOF
40760 /* confdefs.h.  */
40761 _ACEOF
40762 cat confdefs.h >>conftest.$ac_ext
40763 cat >>conftest.$ac_ext <<_ACEOF
40764 /* end confdefs.h.  */
40765 #include <netdb.h>
40766 int
40767 main ()
40768 {
40769
40770             char *name = "www.gnu.org";
40771             struct hostent ret, *retp;
40772             char buf[1024];
40773             int buflen = 1024;
40774             int my_h_errno;
40775             (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
40776
40777   ;
40778   return 0;
40779 }
40780 _ACEOF
40781 rm -f conftest.$ac_objext
40782 if { (ac_try="$ac_compile"
40783 case "(($ac_try" in
40784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40785   *) ac_try_echo=$ac_try;;
40786 esac
40787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40788   (eval "$ac_compile") 2>conftest.er1
40789   ac_status=$?
40790   grep -v '^ *+' conftest.er1 >conftest.err
40791   rm -f conftest.er1
40792   cat conftest.err >&5
40793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40794   (exit $ac_status); } && {
40795          test -z "$ac_c_werror_flag" ||
40796          test ! -s conftest.err
40797        } && test -s conftest.$ac_objext; then
40798   ac_cv_func_which_gethostbyname_r=six
40799 else
40800   echo "$as_me: failed program was:" >&5
40801 sed 's/^/| /' conftest.$ac_ext >&5
40802
40803
40804 fi
40805
40806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40807
40808 fi
40809
40810 #
40811 # FIVE ARGUMENTS
40812 # (e.g. Solaris)
40813 #
40814
40815 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40816
40817 cat >conftest.$ac_ext <<_ACEOF
40818 /* confdefs.h.  */
40819 _ACEOF
40820 cat confdefs.h >>conftest.$ac_ext
40821 cat >>conftest.$ac_ext <<_ACEOF
40822 /* end confdefs.h.  */
40823 #include <netdb.h>
40824 int
40825 main ()
40826 {
40827
40828             char *name = "www.gnu.org";
40829             struct hostent ret;
40830             char buf[1024];
40831             int buflen = 1024;
40832             int my_h_errno;
40833             (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
40834
40835   ;
40836   return 0;
40837 }
40838 _ACEOF
40839 rm -f conftest.$ac_objext
40840 if { (ac_try="$ac_compile"
40841 case "(($ac_try" in
40842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40843   *) ac_try_echo=$ac_try;;
40844 esac
40845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40846   (eval "$ac_compile") 2>conftest.er1
40847   ac_status=$?
40848   grep -v '^ *+' conftest.er1 >conftest.err
40849   rm -f conftest.er1
40850   cat conftest.err >&5
40851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40852   (exit $ac_status); } && {
40853          test -z "$ac_c_werror_flag" ||
40854          test ! -s conftest.err
40855        } && test -s conftest.$ac_objext; then
40856   ac_cv_func_which_gethostbyname_r=five
40857 else
40858   echo "$as_me: failed program was:" >&5
40859 sed 's/^/| /' conftest.$ac_ext >&5
40860
40861
40862 fi
40863
40864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40865
40866 fi
40867
40868 #
40869 # THREE ARGUMENTS
40870 # (e.g. AIX, HP-UX, Tru64)
40871 #
40872
40873 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40874
40875 cat >conftest.$ac_ext <<_ACEOF
40876 /* confdefs.h.  */
40877 _ACEOF
40878 cat confdefs.h >>conftest.$ac_ext
40879 cat >>conftest.$ac_ext <<_ACEOF
40880 /* end confdefs.h.  */
40881 #include <netdb.h>
40882 int
40883 main ()
40884 {
40885
40886             char *name = "www.gnu.org";
40887             struct hostent ret;
40888             struct hostent_data data;
40889             (void)gethostbyname_r(name, &ret, &data) /* ; */
40890
40891   ;
40892   return 0;
40893 }
40894 _ACEOF
40895 rm -f conftest.$ac_objext
40896 if { (ac_try="$ac_compile"
40897 case "(($ac_try" in
40898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40899   *) ac_try_echo=$ac_try;;
40900 esac
40901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40902   (eval "$ac_compile") 2>conftest.er1
40903   ac_status=$?
40904   grep -v '^ *+' conftest.er1 >conftest.err
40905   rm -f conftest.er1
40906   cat conftest.err >&5
40907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40908   (exit $ac_status); } && {
40909          test -z "$ac_c_werror_flag" ||
40910          test ! -s conftest.err
40911        } && test -s conftest.$ac_objext; then
40912   ac_cv_func_which_gethostbyname_r=three
40913 else
40914   echo "$as_me: failed program was:" >&5
40915 sed 's/^/| /' conftest.$ac_ext >&5
40916
40917
40918 fi
40919
40920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40921
40922 fi
40923
40924 ################################################################
40925
40926
40927 fi
40928
40929 case "$ac_cv_func_which_gethostbyname_r" in
40930     three)
40931     { echo "$as_me:$LINENO: result: three" >&5
40932 echo "${ECHO_T}three" >&6; }
40933     cat >>confdefs.h <<\_ACEOF
40934 #define HAVE_FUNC_GETHOSTBYNAME_R_3 1
40935 _ACEOF
40936
40937     ;;
40938
40939     five)
40940     { echo "$as_me:$LINENO: result: five" >&5
40941 echo "${ECHO_T}five" >&6; }
40942     cat >>confdefs.h <<\_ACEOF
40943 #define HAVE_FUNC_GETHOSTBYNAME_R_5 1
40944 _ACEOF
40945
40946     ;;
40947
40948     six)
40949     { echo "$as_me:$LINENO: result: six" >&5
40950 echo "${ECHO_T}six" >&6; }
40951     cat >>confdefs.h <<\_ACEOF
40952 #define HAVE_FUNC_GETHOSTBYNAME_R_6 1
40953 _ACEOF
40954
40955     ;;
40956
40957     no)
40958     { echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
40959 echo "${ECHO_T}cannot find function declaration in netdb.h" >&6; }
40960     ;;
40961
40962     unknown)
40963     { echo "$as_me:$LINENO: result: can't tell" >&5
40964 echo "${ECHO_T}can't tell" >&6; }
40965     ;;
40966
40967     *)
40968     { { echo "$as_me:$LINENO: error: internal error" >&5
40969 echo "$as_me: error: internal error" >&2;}
40970    { (exit 1); exit 1; }; }
40971     ;;
40972 esac
40973
40974 ac_ext=c
40975 ac_cpp='$CPP $CPPFLAGS'
40976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40979
40980
40981
40982       if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
40983               "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
40984           { echo "$as_me:$LINENO: checking for gethostbyname" >&5
40985 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
40986 if test "${ac_cv_func_gethostbyname+set}" = set; then
40987   echo $ECHO_N "(cached) $ECHO_C" >&6
40988 else
40989   cat >conftest.$ac_ext <<_ACEOF
40990 /* confdefs.h.  */
40991 _ACEOF
40992 cat confdefs.h >>conftest.$ac_ext
40993 cat >>conftest.$ac_ext <<_ACEOF
40994 /* end confdefs.h.  */
40995 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
40996    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40997 #define gethostbyname innocuous_gethostbyname
40998
40999 /* System header to define __stub macros and hopefully few prototypes,
41000     which can conflict with char gethostbyname (); below.
41001     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41002     <limits.h> exists even on freestanding compilers.  */
41003
41004 #ifdef __STDC__
41005 # include <limits.h>
41006 #else
41007 # include <assert.h>
41008 #endif
41009
41010 #undef gethostbyname
41011
41012 /* Override any GCC internal prototype to avoid an error.
41013    Use char because int might match the return type of a GCC
41014    builtin and then its argument prototype would still apply.  */
41015 #ifdef __cplusplus
41016 extern "C"
41017 #endif
41018 char gethostbyname ();
41019 /* The GNU C library defines this for functions which it implements
41020     to always fail with ENOSYS.  Some functions are actually named
41021     something starting with __ and the normal name is an alias.  */
41022 #if defined __stub_gethostbyname || defined __stub___gethostbyname
41023 choke me
41024 #endif
41025
41026 int
41027 main ()
41028 {
41029 return gethostbyname ();
41030   ;
41031   return 0;
41032 }
41033 _ACEOF
41034 rm -f conftest.$ac_objext conftest$ac_exeext
41035 if { (ac_try="$ac_link"
41036 case "(($ac_try" in
41037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41038   *) ac_try_echo=$ac_try;;
41039 esac
41040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41041   (eval "$ac_link") 2>conftest.er1
41042   ac_status=$?
41043   grep -v '^ *+' conftest.er1 >conftest.err
41044   rm -f conftest.er1
41045   cat conftest.err >&5
41046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41047   (exit $ac_status); } && {
41048          test -z "$ac_c_werror_flag" ||
41049          test ! -s conftest.err
41050        } && test -s conftest$ac_exeext &&
41051        $as_test_x conftest$ac_exeext; then
41052   ac_cv_func_gethostbyname=yes
41053 else
41054   echo "$as_me: failed program was:" >&5
41055 sed 's/^/| /' conftest.$ac_ext >&5
41056
41057         ac_cv_func_gethostbyname=no
41058 fi
41059
41060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41061       conftest$ac_exeext conftest.$ac_ext
41062 fi
41063 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
41064 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
41065 if test $ac_cv_func_gethostbyname = yes; then
41066    cat >>confdefs.h <<\_ACEOF
41067 #define HAVE_GETHOSTBYNAME 1
41068 _ACEOF
41069
41070 fi
41071
41072       fi
41073
41074 { echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
41075 echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6; }
41076 if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
41077   echo $ECHO_N "(cached) $ECHO_C" >&6
41078 else
41079
41080                 ac_ext=cpp
41081 ac_cpp='$CXXCPP $CPPFLAGS'
41082 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41083 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41084 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41085
41086
41087         cat >conftest.$ac_ext <<_ACEOF
41088 /* confdefs.h.  */
41089 _ACEOF
41090 cat confdefs.h >>conftest.$ac_ext
41091 cat >>conftest.$ac_ext <<_ACEOF
41092 /* end confdefs.h.  */
41093 #include <netdb.h>
41094 int
41095 main ()
41096 {
41097
41098                 char *name;
41099                 char *proto;
41100                 struct servent *se, *res;
41101                 char buffer[2048];
41102                 int buflen = 2048;
41103                 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
41104
41105   ;
41106   return 0;
41107 }
41108 _ACEOF
41109 rm -f conftest.$ac_objext
41110 if { (ac_try="$ac_compile"
41111 case "(($ac_try" in
41112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41113   *) ac_try_echo=$ac_try;;
41114 esac
41115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41116   (eval "$ac_compile") 2>conftest.er1
41117   ac_status=$?
41118   grep -v '^ *+' conftest.er1 >conftest.err
41119   rm -f conftest.er1
41120   cat conftest.err >&5
41121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41122   (exit $ac_status); } && {
41123          test -z "$ac_cxx_werror_flag" ||
41124          test ! -s conftest.err
41125        } && test -s conftest.$ac_objext; then
41126   ac_cv_func_which_getservbyname_r=six
41127 else
41128   echo "$as_me: failed program was:" >&5
41129 sed 's/^/| /' conftest.$ac_ext >&5
41130
41131
41132                 cat >conftest.$ac_ext <<_ACEOF
41133 /* confdefs.h.  */
41134 _ACEOF
41135 cat confdefs.h >>conftest.$ac_ext
41136 cat >>conftest.$ac_ext <<_ACEOF
41137 /* end confdefs.h.  */
41138 #include <netdb.h>
41139 int
41140 main ()
41141 {
41142
41143                         char *name;
41144                         char *proto;
41145                         struct servent *se;
41146                         char buffer[2048];
41147                         int buflen = 2048;
41148                         (void) getservbyname_r(name, proto, se, buffer, buflen)
41149
41150   ;
41151   return 0;
41152 }
41153 _ACEOF
41154 rm -f conftest.$ac_objext
41155 if { (ac_try="$ac_compile"
41156 case "(($ac_try" in
41157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41158   *) ac_try_echo=$ac_try;;
41159 esac
41160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41161   (eval "$ac_compile") 2>conftest.er1
41162   ac_status=$?
41163   grep -v '^ *+' conftest.er1 >conftest.err
41164   rm -f conftest.er1
41165   cat conftest.err >&5
41166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41167   (exit $ac_status); } && {
41168          test -z "$ac_cxx_werror_flag" ||
41169          test ! -s conftest.err
41170        } && test -s conftest.$ac_objext; then
41171   ac_cv_func_which_getservbyname_r=five
41172 else
41173   echo "$as_me: failed program was:" >&5
41174 sed 's/^/| /' conftest.$ac_ext >&5
41175
41176
41177                         cat >conftest.$ac_ext <<_ACEOF
41178 /* confdefs.h.  */
41179 _ACEOF
41180 cat confdefs.h >>conftest.$ac_ext
41181 cat >>conftest.$ac_ext <<_ACEOF
41182 /* end confdefs.h.  */
41183 #include <netdb.h>
41184 int
41185 main ()
41186 {
41187
41188                                 char *name;
41189                                 char *proto;
41190                                 struct servent *se;
41191                                 struct servent_data data;
41192                                 (void) getservbyname_r(name, proto, se, &data);
41193
41194   ;
41195   return 0;
41196 }
41197 _ACEOF
41198 rm -f conftest.$ac_objext
41199 if { (ac_try="$ac_compile"
41200 case "(($ac_try" in
41201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41202   *) ac_try_echo=$ac_try;;
41203 esac
41204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41205   (eval "$ac_compile") 2>conftest.er1
41206   ac_status=$?
41207   grep -v '^ *+' conftest.er1 >conftest.err
41208   rm -f conftest.er1
41209   cat conftest.err >&5
41210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41211   (exit $ac_status); } && {
41212          test -z "$ac_cxx_werror_flag" ||
41213          test ! -s conftest.err
41214        } && test -s conftest.$ac_objext; then
41215   ac_cv_func_which_getservbyname_r=four
41216 else
41217   echo "$as_me: failed program was:" >&5
41218 sed 's/^/| /' conftest.$ac_ext >&5
41219
41220         ac_cv_func_which_getservbyname_r=no
41221
41222 fi
41223
41224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41225
41226
41227 fi
41228
41229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41230
41231
41232 fi
41233
41234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41235         ac_ext=c
41236 ac_cpp='$CPP $CPPFLAGS'
41237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41240
41241
41242
41243 fi
41244 { echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
41245 echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6; }
41246
41247 if test $ac_cv_func_which_getservbyname_r = six; then
41248   cat >>confdefs.h <<\_ACEOF
41249 #define HAVE_FUNC_GETSERVBYNAME_R_6 1
41250 _ACEOF
41251
41252 elif test $ac_cv_func_which_getservbyname_r = five; then
41253   cat >>confdefs.h <<\_ACEOF
41254 #define HAVE_FUNC_GETSERVBYNAME_R_5 1
41255 _ACEOF
41256
41257 elif test $ac_cv_func_which_getservbyname_r = four; then
41258   cat >>confdefs.h <<\_ACEOF
41259 #define HAVE_FUNC_GETSERVBYNAME_R_4 1
41260 _ACEOF
41261
41262 fi
41263
41264
41265       if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
41266               "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
41267
41268 for ac_func in getservbyname
41269 do
41270 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41271 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41272 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41273 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41274   echo $ECHO_N "(cached) $ECHO_C" >&6
41275 else
41276   cat >conftest.$ac_ext <<_ACEOF
41277 /* confdefs.h.  */
41278 _ACEOF
41279 cat confdefs.h >>conftest.$ac_ext
41280 cat >>conftest.$ac_ext <<_ACEOF
41281 /* end confdefs.h.  */
41282 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41283    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41284 #define $ac_func innocuous_$ac_func
41285
41286 /* System header to define __stub macros and hopefully few prototypes,
41287     which can conflict with char $ac_func (); below.
41288     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41289     <limits.h> exists even on freestanding compilers.  */
41290
41291 #ifdef __STDC__
41292 # include <limits.h>
41293 #else
41294 # include <assert.h>
41295 #endif
41296
41297 #undef $ac_func
41298
41299 /* Override any GCC internal prototype to avoid an error.
41300    Use char because int might match the return type of a GCC
41301    builtin and then its argument prototype would still apply.  */
41302 #ifdef __cplusplus
41303 extern "C"
41304 #endif
41305 char $ac_func ();
41306 /* The GNU C library defines this for functions which it implements
41307     to always fail with ENOSYS.  Some functions are actually named
41308     something starting with __ and the normal name is an alias.  */
41309 #if defined __stub_$ac_func || defined __stub___$ac_func
41310 choke me
41311 #endif
41312
41313 int
41314 main ()
41315 {
41316 return $ac_func ();
41317   ;
41318   return 0;
41319 }
41320 _ACEOF
41321 rm -f conftest.$ac_objext conftest$ac_exeext
41322 if { (ac_try="$ac_link"
41323 case "(($ac_try" in
41324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41325   *) ac_try_echo=$ac_try;;
41326 esac
41327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41328   (eval "$ac_link") 2>conftest.er1
41329   ac_status=$?
41330   grep -v '^ *+' conftest.er1 >conftest.err
41331   rm -f conftest.er1
41332   cat conftest.err >&5
41333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41334   (exit $ac_status); } && {
41335          test -z "$ac_c_werror_flag" ||
41336          test ! -s conftest.err
41337        } && test -s conftest$ac_exeext &&
41338        $as_test_x conftest$ac_exeext; then
41339   eval "$as_ac_var=yes"
41340 else
41341   echo "$as_me: failed program was:" >&5
41342 sed 's/^/| /' conftest.$ac_ext >&5
41343
41344         eval "$as_ac_var=no"
41345 fi
41346
41347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41348       conftest$ac_exeext conftest.$ac_ext
41349 fi
41350 ac_res=`eval echo '${'$as_ac_var'}'`
41351                { echo "$as_me:$LINENO: result: $ac_res" >&5
41352 echo "${ECHO_T}$ac_res" >&6; }
41353 if test `eval echo '${'$as_ac_var'}'` = yes; then
41354   cat >>confdefs.h <<_ACEOF
41355 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41356 _ACEOF
41357   cat >>confdefs.h <<\_ACEOF
41358 #define HAVE_GETSERVBYNAME 1
41359 _ACEOF
41360
41361 fi
41362 done
41363
41364       fi
41365
41366 if test "$wxUSE_THREADS" = "yes"; then
41367   cat >>confdefs.h <<\_ACEOF
41368 #define wxUSE_THREADS 1
41369 _ACEOF
41370
41371
41372   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
41373 else
41374       if test "$wx_cv_func_strtok_r" = "yes"; then
41375     { echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
41376 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6; }
41377     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
41378         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
41379         { echo "$as_me:$LINENO: result: yes" >&5
41380 echo "${ECHO_T}yes" >&6; }
41381     else
41382         { echo "$as_me:$LINENO: result: no" >&5
41383 echo "${ECHO_T}no" >&6; }
41384     fi
41385   fi
41386 fi
41387
41388 if test "$WXGTK2" = 1 ; then
41389   cat >>confdefs.h <<_ACEOF
41390 #define __WXGTK20__ $WXGTK2
41391 _ACEOF
41392
41393   WXGTK12=1
41394 fi
41395
41396 if test "$WXGTK12" = 1 ; then
41397   cat >>confdefs.h <<_ACEOF
41398 #define __WXGTK12__ $WXGTK12
41399 _ACEOF
41400
41401 fi
41402
41403 if test "$WXGTK127" = 1 ; then
41404   cat >>confdefs.h <<_ACEOF
41405 #define __WXGTK127__ $WXGTK127
41406 _ACEOF
41407
41408 fi
41409
41410 if test "$WXGPE" = 1 ; then
41411   cat >>confdefs.h <<_ACEOF
41412 #define __WXGPE__ $WXGPE
41413 _ACEOF
41414
41415 fi
41416
41417 DEBUG_CFLAGS=
41418 if `echo $CXXFLAGS $CFLAGS | grep " -g" >/dev/null`; then
41419                 { echo "$as_me:$LINENO: WARNING: CXXFLAGS/CFLAGS already contains -g flag; ignoring the --enable-debug_info option" >&5
41420 echo "$as_me: WARNING: CXXFLAGS/CFLAGS already contains -g flag; ignoring the --enable-debug_info option" >&2;}
41421 elif test "$wxUSE_DEBUG_INFO" = "yes" ; then
41422     DEBUG_CFLAGS="-g"
41423 fi
41424
41425 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
41426     wxUSE_DEBUG_INFO=yes
41427     if test "$GCC" = yes; then
41428         DEBUG_CFLAGS="-ggdb"
41429     fi
41430 fi
41431
41432 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
41433     cat >>confdefs.h <<\_ACEOF
41434 #define WXDEBUG 1
41435 _ACEOF
41436
41437     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
41438 else
41439     if test "$wxUSE_GTK" = 1 ; then
41440         if test "x$wxGTK_VERSION" = "x1" ; then
41441             CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
41442         fi
41443     fi
41444 fi
41445
41446 if test "$wxUSE_MEM_TRACING" = "yes" ; then
41447     cat >>confdefs.h <<\_ACEOF
41448 #define wxUSE_MEMORY_TRACING 1
41449 _ACEOF
41450
41451     cat >>confdefs.h <<\_ACEOF
41452 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
41453 _ACEOF
41454
41455     cat >>confdefs.h <<\_ACEOF
41456 #define wxUSE_DEBUG_NEW_ALWAYS 1
41457 _ACEOF
41458
41459     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
41460 fi
41461
41462 if test "$wxUSE_DMALLOC" = "yes" ; then
41463     DMALLOC_LIBS="-ldmallocthcxx"
41464 fi
41465
41466 PROFILE_FLAGS=
41467 if test "$wxUSE_PROFILE" = "yes" ; then
41468     PROFILE_FLAGS=" -pg"
41469 fi
41470
41471 if test "$GCC" = "yes" ; then
41472     if test "$wxUSE_NO_RTTI" = "yes" ; then
41473         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
41474     fi
41475     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
41476         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
41477     fi
41478     if test "$wxUSE_PERMISSIVE" = "yes" ; then
41479         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
41480     fi
41481
41482                                                 case "${host}" in
41483       powerpc*-*-aix* )
41484         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
41485         ;;
41486       *-hppa* )
41487         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
41488         ;;
41489     esac
41490 fi
41491
41492 OPTIMISE_CFLAGS=
41493 if `echo $CXXFLAGS $CFLAGS | grep " -O" >/dev/null`; then
41494                 { echo "$as_me:$LINENO: WARNING: CXXFLAGS/CFLAGS already contains -O flag; ignoring the --disable-optimise option" >&5
41495 echo "$as_me: WARNING: CXXFLAGS/CFLAGS already contains -O flag; ignoring the --disable-optimise option" >&2;}
41496 else
41497     if test "$wxUSE_OPTIMISE" = "no" ; then
41498         if test "$GCC" = yes ; then
41499                                     OPTIMISE_CFLAGS="-O0"
41500         fi
41501     else
41502         if test "$GCC" = yes ; then
41503             case "${host}" in
41504                 *-pc-os2_emx | *-pc-os2-emx )
41505                                                             OPTIMISE_CFLAGS="-O2"
41506                 ;;
41507                 *)
41508                                                                                 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
41509                 ;;
41510             esac
41511         else
41512             OPTIMISE_CFLAGS="-O"
41513         fi
41514     fi
41515 fi
41516
41517
41518 if test "x$WXWIN_COMPATIBILITY_2_6" = "xyes"; then
41519     cat >>confdefs.h <<\_ACEOF
41520 #define WXWIN_COMPATIBILITY_2_6 1
41521 _ACEOF
41522
41523
41524     WXWIN_COMPATIBILITY_2_8="yes"
41525 fi
41526
41527 if test "x$WXWIN_COMPATIBILITY_2_8" != "xno"; then
41528     cat >>confdefs.h <<\_ACEOF
41529 #define WXWIN_COMPATIBILITY_2_8 1
41530 _ACEOF
41531
41532 fi
41533
41534
41535 if test "$wxUSE_GUI" = "yes"; then
41536     cat >>confdefs.h <<\_ACEOF
41537 #define wxUSE_GUI 1
41538 _ACEOF
41539
41540
41541                                             fi
41542
41543
41544 if test "$wxUSE_UNIX" = "yes"; then
41545   cat >>confdefs.h <<\_ACEOF
41546 #define wxUSE_UNIX 1
41547 _ACEOF
41548
41549 fi
41550
41551
41552 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
41553
41554     HAVE_DL_FUNCS=0
41555     HAVE_SHL_FUNCS=0
41556     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
41557         if test "$USE_DOS" = 1; then
41558             HAVE_DL_FUNCS=0
41559         else
41560
41561 for ac_func in dlopen
41562 do
41563 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41564 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41565 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41566 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41567   echo $ECHO_N "(cached) $ECHO_C" >&6
41568 else
41569   cat >conftest.$ac_ext <<_ACEOF
41570 /* confdefs.h.  */
41571 _ACEOF
41572 cat confdefs.h >>conftest.$ac_ext
41573 cat >>conftest.$ac_ext <<_ACEOF
41574 /* end confdefs.h.  */
41575 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41576    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41577 #define $ac_func innocuous_$ac_func
41578
41579 /* System header to define __stub macros and hopefully few prototypes,
41580     which can conflict with char $ac_func (); below.
41581     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41582     <limits.h> exists even on freestanding compilers.  */
41583
41584 #ifdef __STDC__
41585 # include <limits.h>
41586 #else
41587 # include <assert.h>
41588 #endif
41589
41590 #undef $ac_func
41591
41592 /* Override any GCC internal prototype to avoid an error.
41593    Use char because int might match the return type of a GCC
41594    builtin and then its argument prototype would still apply.  */
41595 #ifdef __cplusplus
41596 extern "C"
41597 #endif
41598 char $ac_func ();
41599 /* The GNU C library defines this for functions which it implements
41600     to always fail with ENOSYS.  Some functions are actually named
41601     something starting with __ and the normal name is an alias.  */
41602 #if defined __stub_$ac_func || defined __stub___$ac_func
41603 choke me
41604 #endif
41605
41606 int
41607 main ()
41608 {
41609 return $ac_func ();
41610   ;
41611   return 0;
41612 }
41613 _ACEOF
41614 rm -f conftest.$ac_objext conftest$ac_exeext
41615 if { (ac_try="$ac_link"
41616 case "(($ac_try" in
41617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41618   *) ac_try_echo=$ac_try;;
41619 esac
41620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41621   (eval "$ac_link") 2>conftest.er1
41622   ac_status=$?
41623   grep -v '^ *+' conftest.er1 >conftest.err
41624   rm -f conftest.er1
41625   cat conftest.err >&5
41626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41627   (exit $ac_status); } && {
41628          test -z "$ac_c_werror_flag" ||
41629          test ! -s conftest.err
41630        } && test -s conftest$ac_exeext &&
41631        $as_test_x conftest$ac_exeext; then
41632   eval "$as_ac_var=yes"
41633 else
41634   echo "$as_me: failed program was:" >&5
41635 sed 's/^/| /' conftest.$ac_ext >&5
41636
41637         eval "$as_ac_var=no"
41638 fi
41639
41640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41641       conftest$ac_exeext conftest.$ac_ext
41642 fi
41643 ac_res=`eval echo '${'$as_ac_var'}'`
41644                { echo "$as_me:$LINENO: result: $ac_res" >&5
41645 echo "${ECHO_T}$ac_res" >&6; }
41646 if test `eval echo '${'$as_ac_var'}'` = yes; then
41647   cat >>confdefs.h <<_ACEOF
41648 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41649 _ACEOF
41650
41651                 cat >>confdefs.h <<\_ACEOF
41652 #define HAVE_DLOPEN 1
41653 _ACEOF
41654
41655                 HAVE_DL_FUNCS=1
41656
41657 else
41658
41659                 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
41660 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
41661 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
41662   echo $ECHO_N "(cached) $ECHO_C" >&6
41663 else
41664   ac_check_lib_save_LIBS=$LIBS
41665 LIBS="-ldl  $LIBS"
41666 cat >conftest.$ac_ext <<_ACEOF
41667 /* confdefs.h.  */
41668 _ACEOF
41669 cat confdefs.h >>conftest.$ac_ext
41670 cat >>conftest.$ac_ext <<_ACEOF
41671 /* end confdefs.h.  */
41672
41673 /* Override any GCC internal prototype to avoid an error.
41674    Use char because int might match the return type of a GCC
41675    builtin and then its argument prototype would still apply.  */
41676 #ifdef __cplusplus
41677 extern "C"
41678 #endif
41679 char dlopen ();
41680 int
41681 main ()
41682 {
41683 return dlopen ();
41684   ;
41685   return 0;
41686 }
41687 _ACEOF
41688 rm -f conftest.$ac_objext conftest$ac_exeext
41689 if { (ac_try="$ac_link"
41690 case "(($ac_try" in
41691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41692   *) ac_try_echo=$ac_try;;
41693 esac
41694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41695   (eval "$ac_link") 2>conftest.er1
41696   ac_status=$?
41697   grep -v '^ *+' conftest.er1 >conftest.err
41698   rm -f conftest.er1
41699   cat conftest.err >&5
41700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41701   (exit $ac_status); } && {
41702          test -z "$ac_c_werror_flag" ||
41703          test ! -s conftest.err
41704        } && test -s conftest$ac_exeext &&
41705        $as_test_x conftest$ac_exeext; then
41706   ac_cv_lib_dl_dlopen=yes
41707 else
41708   echo "$as_me: failed program was:" >&5
41709 sed 's/^/| /' conftest.$ac_ext >&5
41710
41711         ac_cv_lib_dl_dlopen=no
41712 fi
41713
41714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41715       conftest$ac_exeext conftest.$ac_ext
41716 LIBS=$ac_check_lib_save_LIBS
41717 fi
41718 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
41719 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
41720 if test $ac_cv_lib_dl_dlopen = yes; then
41721
41722                                 cat >>confdefs.h <<\_ACEOF
41723 #define HAVE_DLOPEN 1
41724 _ACEOF
41725
41726                                 HAVE_DL_FUNCS=1
41727                                 DL_LINK=" -ldl$DL_LINK"
41728
41729 else
41730
41731
41732 for ac_func in shl_load
41733 do
41734 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41735 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41736 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41737 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41738   echo $ECHO_N "(cached) $ECHO_C" >&6
41739 else
41740   cat >conftest.$ac_ext <<_ACEOF
41741 /* confdefs.h.  */
41742 _ACEOF
41743 cat confdefs.h >>conftest.$ac_ext
41744 cat >>conftest.$ac_ext <<_ACEOF
41745 /* end confdefs.h.  */
41746 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41747    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41748 #define $ac_func innocuous_$ac_func
41749
41750 /* System header to define __stub macros and hopefully few prototypes,
41751     which can conflict with char $ac_func (); below.
41752     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41753     <limits.h> exists even on freestanding compilers.  */
41754
41755 #ifdef __STDC__
41756 # include <limits.h>
41757 #else
41758 # include <assert.h>
41759 #endif
41760
41761 #undef $ac_func
41762
41763 /* Override any GCC internal prototype to avoid an error.
41764    Use char because int might match the return type of a GCC
41765    builtin and then its argument prototype would still apply.  */
41766 #ifdef __cplusplus
41767 extern "C"
41768 #endif
41769 char $ac_func ();
41770 /* The GNU C library defines this for functions which it implements
41771     to always fail with ENOSYS.  Some functions are actually named
41772     something starting with __ and the normal name is an alias.  */
41773 #if defined __stub_$ac_func || defined __stub___$ac_func
41774 choke me
41775 #endif
41776
41777 int
41778 main ()
41779 {
41780 return $ac_func ();
41781   ;
41782   return 0;
41783 }
41784 _ACEOF
41785 rm -f conftest.$ac_objext conftest$ac_exeext
41786 if { (ac_try="$ac_link"
41787 case "(($ac_try" in
41788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41789   *) ac_try_echo=$ac_try;;
41790 esac
41791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41792   (eval "$ac_link") 2>conftest.er1
41793   ac_status=$?
41794   grep -v '^ *+' conftest.er1 >conftest.err
41795   rm -f conftest.er1
41796   cat conftest.err >&5
41797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41798   (exit $ac_status); } && {
41799          test -z "$ac_c_werror_flag" ||
41800          test ! -s conftest.err
41801        } && test -s conftest$ac_exeext &&
41802        $as_test_x conftest$ac_exeext; then
41803   eval "$as_ac_var=yes"
41804 else
41805   echo "$as_me: failed program was:" >&5
41806 sed 's/^/| /' conftest.$ac_ext >&5
41807
41808         eval "$as_ac_var=no"
41809 fi
41810
41811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41812       conftest$ac_exeext conftest.$ac_ext
41813 fi
41814 ac_res=`eval echo '${'$as_ac_var'}'`
41815                { echo "$as_me:$LINENO: result: $ac_res" >&5
41816 echo "${ECHO_T}$ac_res" >&6; }
41817 if test `eval echo '${'$as_ac_var'}'` = yes; then
41818   cat >>confdefs.h <<_ACEOF
41819 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41820 _ACEOF
41821
41822                                                 cat >>confdefs.h <<\_ACEOF
41823 #define HAVE_SHL_LOAD 1
41824 _ACEOF
41825
41826                                                 HAVE_SHL_FUNCS=1
41827
41828 else
41829
41830                                                 { echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
41831 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6; }
41832 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
41833   echo $ECHO_N "(cached) $ECHO_C" >&6
41834 else
41835   ac_check_lib_save_LIBS=$LIBS
41836 LIBS="-lshl_load  $LIBS"
41837 cat >conftest.$ac_ext <<_ACEOF
41838 /* confdefs.h.  */
41839 _ACEOF
41840 cat confdefs.h >>conftest.$ac_ext
41841 cat >>conftest.$ac_ext <<_ACEOF
41842 /* end confdefs.h.  */
41843
41844 /* Override any GCC internal prototype to avoid an error.
41845    Use char because int might match the return type of a GCC
41846    builtin and then its argument prototype would still apply.  */
41847 #ifdef __cplusplus
41848 extern "C"
41849 #endif
41850 char dld ();
41851 int
41852 main ()
41853 {
41854 return dld ();
41855   ;
41856   return 0;
41857 }
41858 _ACEOF
41859 rm -f conftest.$ac_objext conftest$ac_exeext
41860 if { (ac_try="$ac_link"
41861 case "(($ac_try" in
41862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41863   *) ac_try_echo=$ac_try;;
41864 esac
41865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41866   (eval "$ac_link") 2>conftest.er1
41867   ac_status=$?
41868   grep -v '^ *+' conftest.er1 >conftest.err
41869   rm -f conftest.er1
41870   cat conftest.err >&5
41871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41872   (exit $ac_status); } && {
41873          test -z "$ac_c_werror_flag" ||
41874          test ! -s conftest.err
41875        } && test -s conftest$ac_exeext &&
41876        $as_test_x conftest$ac_exeext; then
41877   ac_cv_lib_shl_load_dld=yes
41878 else
41879   echo "$as_me: failed program was:" >&5
41880 sed 's/^/| /' conftest.$ac_ext >&5
41881
41882         ac_cv_lib_shl_load_dld=no
41883 fi
41884
41885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41886       conftest$ac_exeext conftest.$ac_ext
41887 LIBS=$ac_check_lib_save_LIBS
41888 fi
41889 { echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
41890 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6; }
41891 if test $ac_cv_lib_shl_load_dld = yes; then
41892
41893                                                                 HAVE_SHL_FUNCS=1
41894                                                                 DL_LINK=" -ldld$DL_LINK"
41895
41896 fi
41897
41898
41899 fi
41900 done
41901
41902
41903 fi
41904
41905
41906 fi
41907 done
41908
41909
41910                         if test "$HAVE_DL_FUNCS" = 1; then
41911
41912 for ac_func in dlerror
41913 do
41914 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41915 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41916 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41917 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41918   echo $ECHO_N "(cached) $ECHO_C" >&6
41919 else
41920   cat >conftest.$ac_ext <<_ACEOF
41921 /* confdefs.h.  */
41922 _ACEOF
41923 cat confdefs.h >>conftest.$ac_ext
41924 cat >>conftest.$ac_ext <<_ACEOF
41925 /* end confdefs.h.  */
41926 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41927    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41928 #define $ac_func innocuous_$ac_func
41929
41930 /* System header to define __stub macros and hopefully few prototypes,
41931     which can conflict with char $ac_func (); below.
41932     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41933     <limits.h> exists even on freestanding compilers.  */
41934
41935 #ifdef __STDC__
41936 # include <limits.h>
41937 #else
41938 # include <assert.h>
41939 #endif
41940
41941 #undef $ac_func
41942
41943 /* Override any GCC internal prototype to avoid an error.
41944    Use char because int might match the return type of a GCC
41945    builtin and then its argument prototype would still apply.  */
41946 #ifdef __cplusplus
41947 extern "C"
41948 #endif
41949 char $ac_func ();
41950 /* The GNU C library defines this for functions which it implements
41951     to always fail with ENOSYS.  Some functions are actually named
41952     something starting with __ and the normal name is an alias.  */
41953 #if defined __stub_$ac_func || defined __stub___$ac_func
41954 choke me
41955 #endif
41956
41957 int
41958 main ()
41959 {
41960 return $ac_func ();
41961   ;
41962   return 0;
41963 }
41964 _ACEOF
41965 rm -f conftest.$ac_objext conftest$ac_exeext
41966 if { (ac_try="$ac_link"
41967 case "(($ac_try" in
41968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41969   *) ac_try_echo=$ac_try;;
41970 esac
41971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41972   (eval "$ac_link") 2>conftest.er1
41973   ac_status=$?
41974   grep -v '^ *+' conftest.er1 >conftest.err
41975   rm -f conftest.er1
41976   cat conftest.err >&5
41977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41978   (exit $ac_status); } && {
41979          test -z "$ac_c_werror_flag" ||
41980          test ! -s conftest.err
41981        } && test -s conftest$ac_exeext &&
41982        $as_test_x conftest$ac_exeext; then
41983   eval "$as_ac_var=yes"
41984 else
41985   echo "$as_me: failed program was:" >&5
41986 sed 's/^/| /' conftest.$ac_ext >&5
41987
41988         eval "$as_ac_var=no"
41989 fi
41990
41991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41992       conftest$ac_exeext conftest.$ac_ext
41993 fi
41994 ac_res=`eval echo '${'$as_ac_var'}'`
41995                { echo "$as_me:$LINENO: result: $ac_res" >&5
41996 echo "${ECHO_T}$ac_res" >&6; }
41997 if test `eval echo '${'$as_ac_var'}'` = yes; then
41998   cat >>confdefs.h <<_ACEOF
41999 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42000 _ACEOF
42001  cat >>confdefs.h <<\_ACEOF
42002 #define HAVE_DLERROR 1
42003 _ACEOF
42004
42005 else
42006
42007                         { echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
42008 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6; }
42009 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
42010   echo $ECHO_N "(cached) $ECHO_C" >&6
42011 else
42012   ac_check_lib_save_LIBS=$LIBS
42013 LIBS="-ldl  $LIBS"
42014 cat >conftest.$ac_ext <<_ACEOF
42015 /* confdefs.h.  */
42016 _ACEOF
42017 cat confdefs.h >>conftest.$ac_ext
42018 cat >>conftest.$ac_ext <<_ACEOF
42019 /* end confdefs.h.  */
42020
42021 /* Override any GCC internal prototype to avoid an error.
42022    Use char because int might match the return type of a GCC
42023    builtin and then its argument prototype would still apply.  */
42024 #ifdef __cplusplus
42025 extern "C"
42026 #endif
42027 char dlerror ();
42028 int
42029 main ()
42030 {
42031 return dlerror ();
42032   ;
42033   return 0;
42034 }
42035 _ACEOF
42036 rm -f conftest.$ac_objext conftest$ac_exeext
42037 if { (ac_try="$ac_link"
42038 case "(($ac_try" in
42039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42040   *) ac_try_echo=$ac_try;;
42041 esac
42042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42043   (eval "$ac_link") 2>conftest.er1
42044   ac_status=$?
42045   grep -v '^ *+' conftest.er1 >conftest.err
42046   rm -f conftest.er1
42047   cat conftest.err >&5
42048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42049   (exit $ac_status); } && {
42050          test -z "$ac_c_werror_flag" ||
42051          test ! -s conftest.err
42052        } && test -s conftest$ac_exeext &&
42053        $as_test_x conftest$ac_exeext; then
42054   ac_cv_lib_dl_dlerror=yes
42055 else
42056   echo "$as_me: failed program was:" >&5
42057 sed 's/^/| /' conftest.$ac_ext >&5
42058
42059         ac_cv_lib_dl_dlerror=no
42060 fi
42061
42062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42063       conftest$ac_exeext conftest.$ac_ext
42064 LIBS=$ac_check_lib_save_LIBS
42065 fi
42066 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
42067 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6; }
42068 if test $ac_cv_lib_dl_dlerror = yes; then
42069   cat >>confdefs.h <<\_ACEOF
42070 #define HAVE_DLERROR 1
42071 _ACEOF
42072
42073 fi
42074
42075
42076
42077 fi
42078 done
42079
42080             fi
42081         fi
42082
42083                 if test "$USE_DARWIN" = 1; then
42084                         HAVE_DL_FUNCS=1
42085         fi
42086
42087         if test "$HAVE_DL_FUNCS" = 0; then
42088             if test "$HAVE_SHL_FUNCS" = 0; then
42089               if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
42090                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
42091 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
42092                   wxUSE_DYNAMIC_LOADER=no
42093                   wxUSE_DYNLIB_CLASS=no
42094               else
42095                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
42096 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
42097               fi
42098             fi
42099         fi
42100     fi
42101 fi
42102
42103 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
42104     cat >>confdefs.h <<\_ACEOF
42105 #define wxUSE_DYNAMIC_LOADER 1
42106 _ACEOF
42107
42108 fi
42109 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
42110     cat >>confdefs.h <<\_ACEOF
42111 #define wxUSE_DYNLIB_CLASS 1
42112 _ACEOF
42113
42114 fi
42115
42116
42117
42118 if test "$wxUSE_PLUGINS" = "yes" ; then
42119     if test "$wxUSE_SHARED" = "no" ; then
42120         { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
42121 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
42122         wxUSE_PLUGINS=no
42123     fi
42124     if test "$wxUSE_MONOLITHIC" = "yes" ; then
42125         { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
42126 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
42127         wxUSE_PLUGINS=no
42128     fi
42129     if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
42130         { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
42131 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
42132         wxUSE_PLUGINS=no
42133     fi
42134     if test "$wxUSE_PLUGINS" = "yes" ; then
42135         cat >>confdefs.h <<\_ACEOF
42136 #define wxUSE_PLUGINS 1
42137 _ACEOF
42138
42139     fi
42140 fi
42141
42142
42143 if test "$wxUSE_STL" = "yes"; then
42144   cat >>confdefs.h <<\_ACEOF
42145 #define wxUSE_STL 1
42146 _ACEOF
42147
42148 fi
42149
42150 if test "$wxUSE_EXTENDED_RTTI" = "yes"; then
42151   cat >>confdefs.h <<\_ACEOF
42152 #define wxUSE_EXTENDED_RTTI 1
42153 _ACEOF
42154
42155 fi
42156
42157 if test "$wxUSE_APPLE_IEEE" = "yes"; then
42158   cat >>confdefs.h <<\_ACEOF
42159 #define wxUSE_APPLE_IEEE 1
42160 _ACEOF
42161
42162 fi
42163
42164 if test "$wxUSE_TIMER" = "yes"; then
42165   cat >>confdefs.h <<\_ACEOF
42166 #define wxUSE_TIMER 1
42167 _ACEOF
42168
42169 fi
42170
42171 if test "$USE_UNIX" = 1 ; then
42172         if test "$wxUSE_MGL" != 1; then
42173                                 { echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
42174 echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6; }
42175 if test "${ac_cv_header_sys_soundcard+set}" = set; then
42176   echo $ECHO_N "(cached) $ECHO_C" >&6
42177 else
42178
42179             cat >conftest.$ac_ext <<_ACEOF
42180 /* confdefs.h.  */
42181 _ACEOF
42182 cat confdefs.h >>conftest.$ac_ext
42183 cat >>conftest.$ac_ext <<_ACEOF
42184 /* end confdefs.h.  */
42185
42186                     #include <sys/ioctl.h>
42187                     #include <sys/soundcard.h>
42188
42189 int
42190 main ()
42191 {
42192
42193                     ioctl(0, SNDCTL_DSP_SPEED, 0);
42194
42195   ;
42196   return 0;
42197 }
42198 _ACEOF
42199 rm -f conftest.$ac_objext conftest$ac_exeext
42200 if { (ac_try="$ac_link"
42201 case "(($ac_try" in
42202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42203   *) ac_try_echo=$ac_try;;
42204 esac
42205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42206   (eval "$ac_link") 2>conftest.er1
42207   ac_status=$?
42208   grep -v '^ *+' conftest.er1 >conftest.err
42209   rm -f conftest.er1
42210   cat conftest.err >&5
42211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42212   (exit $ac_status); } && {
42213          test -z "$ac_c_werror_flag" ||
42214          test ! -s conftest.err
42215        } && test -s conftest$ac_exeext &&
42216        $as_test_x conftest$ac_exeext; then
42217   ac_cv_header_sys_soundcard=yes
42218 else
42219   echo "$as_me: failed program was:" >&5
42220 sed 's/^/| /' conftest.$ac_ext >&5
42221
42222
42223                     saveLibs="$LIBS"
42224                     LIBS="$saveLibs -lossaudio"
42225                     cat >conftest.$ac_ext <<_ACEOF
42226 /* confdefs.h.  */
42227 _ACEOF
42228 cat confdefs.h >>conftest.$ac_ext
42229 cat >>conftest.$ac_ext <<_ACEOF
42230 /* end confdefs.h.  */
42231
42232                             #include <sys/ioctl.h>
42233                             #include <sys/soundcard.h>
42234
42235 int
42236 main ()
42237 {
42238
42239                             ioctl(0, SNDCTL_DSP_SPEED, 0);
42240
42241   ;
42242   return 0;
42243 }
42244 _ACEOF
42245 rm -f conftest.$ac_objext conftest$ac_exeext
42246 if { (ac_try="$ac_link"
42247 case "(($ac_try" in
42248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42249   *) ac_try_echo=$ac_try;;
42250 esac
42251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42252   (eval "$ac_link") 2>conftest.er1
42253   ac_status=$?
42254   grep -v '^ *+' conftest.er1 >conftest.err
42255   rm -f conftest.er1
42256   cat conftest.err >&5
42257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42258   (exit $ac_status); } && {
42259          test -z "$ac_c_werror_flag" ||
42260          test ! -s conftest.err
42261        } && test -s conftest$ac_exeext &&
42262        $as_test_x conftest$ac_exeext; then
42263   ac_cv_header_sys_soundcard=yes
42264 else
42265   echo "$as_me: failed program was:" >&5
42266 sed 's/^/| /' conftest.$ac_ext >&5
42267
42268
42269                             LIBS="$saveLibs"
42270                             ac_cv_header_sys_soundcard=no
42271
42272
42273 fi
42274
42275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42276       conftest$ac_exeext conftest.$ac_ext
42277
42278
42279 fi
42280
42281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42282       conftest$ac_exeext conftest.$ac_ext
42283
42284 fi
42285 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
42286 echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6; }
42287     fi
42288
42289     if test "$ac_cv_header_sys_soundcard" = "yes"; then
42290         cat >>confdefs.h <<\_ACEOF
42291 #define HAVE_SYS_SOUNDCARD_H 1
42292 _ACEOF
42293
42294     fi
42295 fi
42296
42297 WITH_PLUGIN_SDL=0
42298 if test "$wxUSE_SOUND" = "yes"; then
42299   if test "$USE_UNIX" = 1 ; then
42300     if test "$wxUSE_LIBSDL" != "no"; then
42301
42302 # Check whether --with-sdl-prefix was given.
42303 if test "${with_sdl_prefix+set}" = set; then
42304   withval=$with_sdl_prefix; sdl_prefix="$withval"
42305 else
42306   sdl_prefix=""
42307 fi
42308
42309
42310 # Check whether --with-sdl-exec-prefix was given.
42311 if test "${with_sdl_exec_prefix+set}" = set; then
42312   withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
42313 else
42314   sdl_exec_prefix=""
42315 fi
42316
42317 # Check whether --enable-sdltest was given.
42318 if test "${enable_sdltest+set}" = set; then
42319   enableval=$enable_sdltest;
42320 else
42321   enable_sdltest=yes
42322 fi
42323
42324
42325   if test x$sdl_exec_prefix != x ; then
42326     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
42327     if test x${SDL_CONFIG+set} != xset ; then
42328       SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
42329     fi
42330   fi
42331   if test x$sdl_prefix != x ; then
42332     sdl_args="$sdl_args --prefix=$sdl_prefix"
42333     if test x${SDL_CONFIG+set} != xset ; then
42334       SDL_CONFIG=$sdl_prefix/bin/sdl-config
42335     fi
42336   fi
42337
42338   if test "x$prefix" != xNONE; then
42339     PATH="$prefix/bin:$prefix/usr/bin:$PATH"
42340   fi
42341   # Extract the first word of "sdl-config", so it can be a program name with args.
42342 set dummy sdl-config; ac_word=$2
42343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
42344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
42345 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
42346   echo $ECHO_N "(cached) $ECHO_C" >&6
42347 else
42348   case $SDL_CONFIG in
42349   [\\/]* | ?:[\\/]*)
42350   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
42351   ;;
42352   *)
42353   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42354 for as_dir in $PATH
42355 do
42356   IFS=$as_save_IFS
42357   test -z "$as_dir" && as_dir=.
42358   for ac_exec_ext in '' $ac_executable_extensions; do
42359   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42360     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42361     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42362     break 2
42363   fi
42364 done
42365 done
42366 IFS=$as_save_IFS
42367
42368   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
42369   ;;
42370 esac
42371 fi
42372 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
42373 if test -n "$SDL_CONFIG"; then
42374   { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
42375 echo "${ECHO_T}$SDL_CONFIG" >&6; }
42376 else
42377   { echo "$as_me:$LINENO: result: no" >&5
42378 echo "${ECHO_T}no" >&6; }
42379 fi
42380
42381
42382   min_sdl_version=1.2.0
42383   { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
42384 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
42385   no_sdl=""
42386   if test "$SDL_CONFIG" = "no" ; then
42387     no_sdl=yes
42388   else
42389     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
42390     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
42391
42392     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
42393            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
42394     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
42395            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
42396     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
42397            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
42398     if test "x$enable_sdltest" = "xyes" ; then
42399       ac_save_CFLAGS="$CFLAGS"
42400       ac_save_CXXFLAGS="$CXXFLAGS"
42401       ac_save_LIBS="$LIBS"
42402       CFLAGS="$CFLAGS $SDL_CFLAGS"
42403       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
42404       LIBS="$LIBS $SDL_LIBS"
42405       rm -f conf.sdltest
42406       if test "$cross_compiling" = yes; then
42407   echo $ac_n "cross compiling; assumed OK... $ac_c"
42408 else
42409   cat >conftest.$ac_ext <<_ACEOF
42410 /* confdefs.h.  */
42411 _ACEOF
42412 cat confdefs.h >>conftest.$ac_ext
42413 cat >>conftest.$ac_ext <<_ACEOF
42414 /* end confdefs.h.  */
42415
42416 #include <stdio.h>
42417 #include <stdlib.h>
42418 #include <string.h>
42419 #include "SDL.h"
42420
42421 char*
42422 my_strdup (char *str)
42423 {
42424   char *new_str;
42425
42426   if (str)
42427     {
42428       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
42429       strcpy (new_str, str);
42430     }
42431   else
42432     new_str = NULL;
42433
42434   return new_str;
42435 }
42436
42437 int main (int argc, char *argv[])
42438 {
42439   int major, minor, micro;
42440   char *tmp_version;
42441
42442   /* This hangs on some systems (?)
42443   system ("touch conf.sdltest");
42444   */
42445   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
42446
42447   /* HP/UX 9 (%@#!) writes to sscanf strings */
42448   tmp_version = my_strdup("$min_sdl_version");
42449   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
42450      printf("%s, bad version string\n", "$min_sdl_version");
42451      exit(1);
42452    }
42453
42454    if (($sdl_major_version > major) ||
42455       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
42456       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
42457     {
42458       return 0;
42459     }
42460   else
42461     {
42462       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
42463       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
42464       printf("*** best to upgrade to the required version.\n");
42465       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
42466       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
42467       printf("*** config.cache before re-running configure\n");
42468       return 1;
42469     }
42470 }
42471
42472
42473 _ACEOF
42474 rm -f conftest$ac_exeext
42475 if { (ac_try="$ac_link"
42476 case "(($ac_try" in
42477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42478   *) ac_try_echo=$ac_try;;
42479 esac
42480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42481   (eval "$ac_link") 2>&5
42482   ac_status=$?
42483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42484   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42485   { (case "(($ac_try" in
42486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42487   *) ac_try_echo=$ac_try;;
42488 esac
42489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42490   (eval "$ac_try") 2>&5
42491   ac_status=$?
42492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42493   (exit $ac_status); }; }; then
42494   :
42495 else
42496   echo "$as_me: program exited with status $ac_status" >&5
42497 echo "$as_me: failed program was:" >&5
42498 sed 's/^/| /' conftest.$ac_ext >&5
42499
42500 ( exit $ac_status )
42501 no_sdl=yes
42502 fi
42503 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42504 fi
42505
42506
42507        CFLAGS="$ac_save_CFLAGS"
42508        CXXFLAGS="$ac_save_CXXFLAGS"
42509        LIBS="$ac_save_LIBS"
42510      fi
42511   fi
42512   if test "x$no_sdl" = x ; then
42513      { echo "$as_me:$LINENO: result: yes" >&5
42514 echo "${ECHO_T}yes" >&6; }
42515
42516                     EXTRALIBS_SDL="$SDL_LIBS"
42517                     CFLAGS="$SDL_CFLAGS $CFLAGS"
42518                     CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
42519                     cat >>confdefs.h <<\_ACEOF
42520 #define wxUSE_LIBSDL 1
42521 _ACEOF
42522
42523
42524   else
42525      { echo "$as_me:$LINENO: result: no" >&5
42526 echo "${ECHO_T}no" >&6; }
42527      if test "$SDL_CONFIG" = "no" ; then
42528        echo "*** The sdl-config script installed by SDL could not be found"
42529        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
42530        echo "*** your path, or set the SDL_CONFIG environment variable to the"
42531        echo "*** full path to sdl-config."
42532      else
42533        if test -f conf.sdltest ; then
42534         :
42535        else
42536           echo "*** Could not run SDL test program, checking why..."
42537           CFLAGS="$CFLAGS $SDL_CFLAGS"
42538           CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
42539           LIBS="$LIBS $SDL_LIBS"
42540           cat >conftest.$ac_ext <<_ACEOF
42541 /* confdefs.h.  */
42542 _ACEOF
42543 cat confdefs.h >>conftest.$ac_ext
42544 cat >>conftest.$ac_ext <<_ACEOF
42545 /* end confdefs.h.  */
42546
42547 #include <stdio.h>
42548 #include "SDL.h"
42549
42550 int main(int argc, char *argv[])
42551 { return 0; }
42552 #undef  main
42553 #define main K_and_R_C_main
42554
42555 int
42556 main ()
42557 {
42558  return 0;
42559   ;
42560   return 0;
42561 }
42562 _ACEOF
42563 rm -f conftest.$ac_objext conftest$ac_exeext
42564 if { (ac_try="$ac_link"
42565 case "(($ac_try" in
42566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42567   *) ac_try_echo=$ac_try;;
42568 esac
42569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42570   (eval "$ac_link") 2>conftest.er1
42571   ac_status=$?
42572   grep -v '^ *+' conftest.er1 >conftest.err
42573   rm -f conftest.er1
42574   cat conftest.err >&5
42575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42576   (exit $ac_status); } && {
42577          test -z "$ac_c_werror_flag" ||
42578          test ! -s conftest.err
42579        } && test -s conftest$ac_exeext &&
42580        $as_test_x conftest$ac_exeext; then
42581    echo "*** The test program compiled, but did not run. This usually means"
42582           echo "*** that the run-time linker is not finding SDL or finding the wrong"
42583           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
42584           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
42585           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
42586           echo "*** is required on your system"
42587           echo "***"
42588           echo "*** If you have an old version installed, it is best to remove it, although"
42589           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
42590 else
42591   echo "$as_me: failed program was:" >&5
42592 sed 's/^/| /' conftest.$ac_ext >&5
42593
42594          echo "*** The test program failed to compile or link. See the file config.log for the"
42595           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
42596           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
42597           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
42598 fi
42599
42600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42601       conftest$ac_exeext conftest.$ac_ext
42602           CFLAGS="$ac_save_CFLAGS"
42603           CXXFLAGS="$ac_save_CXXFLAGS"
42604           LIBS="$ac_save_LIBS"
42605        fi
42606      fi
42607      SDL_CFLAGS=""
42608      SDL_LIBS=""
42609      wxUSE_LIBSDL="no"
42610   fi
42611
42612
42613   rm -f conf.sdltest
42614
42615       if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
42616         WITH_PLUGIN_SDL=1
42617       fi
42618     fi
42619   else
42620         if test "$wxUSE_MGL" = 1; then
42621         { echo "$as_me:$LINENO: WARNING: wxSound not supported in MGL under DOS... disabled" >&5
42622 echo "$as_me: WARNING: wxSound not supported in MGL under DOS... disabled" >&2;}
42623         wxUSE_SOUND="no"
42624     fi
42625   fi
42626 fi
42627
42628 if test "$wxUSE_SOUND" = "yes"; then
42629   cat >>confdefs.h <<\_ACEOF
42630 #define wxUSE_SOUND 1
42631 _ACEOF
42632
42633   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
42634 fi
42635
42636 if test "$WXGTK2" = 1; then
42637
42638
42639 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
42640         if test -n "$ac_tool_prefix"; then
42641   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
42642 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
42643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
42644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
42645 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
42646   echo $ECHO_N "(cached) $ECHO_C" >&6
42647 else
42648   case $PKG_CONFIG in
42649   [\\/]* | ?:[\\/]*)
42650   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
42651   ;;
42652   *)
42653   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42654 for as_dir in $PATH
42655 do
42656   IFS=$as_save_IFS
42657   test -z "$as_dir" && as_dir=.
42658   for ac_exec_ext in '' $ac_executable_extensions; do
42659   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42660     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42661     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42662     break 2
42663   fi
42664 done
42665 done
42666 IFS=$as_save_IFS
42667
42668   ;;
42669 esac
42670 fi
42671 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
42672 if test -n "$PKG_CONFIG"; then
42673   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
42674 echo "${ECHO_T}$PKG_CONFIG" >&6; }
42675 else
42676   { echo "$as_me:$LINENO: result: no" >&5
42677 echo "${ECHO_T}no" >&6; }
42678 fi
42679
42680
42681 fi
42682 if test -z "$ac_cv_path_PKG_CONFIG"; then
42683   ac_pt_PKG_CONFIG=$PKG_CONFIG
42684   # Extract the first word of "pkg-config", so it can be a program name with args.
42685 set dummy pkg-config; ac_word=$2
42686 { echo "$as_me:$LINENO: checking for $ac_word" >&5
42687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
42688 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
42689   echo $ECHO_N "(cached) $ECHO_C" >&6
42690 else
42691   case $ac_pt_PKG_CONFIG in
42692   [\\/]* | ?:[\\/]*)
42693   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
42694   ;;
42695   *)
42696   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42697 for as_dir in $PATH
42698 do
42699   IFS=$as_save_IFS
42700   test -z "$as_dir" && as_dir=.
42701   for ac_exec_ext in '' $ac_executable_extensions; do
42702   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42703     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42704     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42705     break 2
42706   fi
42707 done
42708 done
42709 IFS=$as_save_IFS
42710
42711   ;;
42712 esac
42713 fi
42714 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
42715 if test -n "$ac_pt_PKG_CONFIG"; then
42716   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
42717 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
42718 else
42719   { echo "$as_me:$LINENO: result: no" >&5
42720 echo "${ECHO_T}no" >&6; }
42721 fi
42722
42723   if test "x$ac_pt_PKG_CONFIG" = x; then
42724     PKG_CONFIG=""
42725   else
42726     case $cross_compiling:$ac_tool_warned in
42727 yes:)
42728 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
42729 whose name does not start with the host triplet.  If you think this
42730 configuration is useful to you, please write to autoconf@gnu.org." >&5
42731 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
42732 whose name does not start with the host triplet.  If you think this
42733 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
42734 ac_tool_warned=yes ;;
42735 esac
42736     PKG_CONFIG=$ac_pt_PKG_CONFIG
42737   fi
42738 else
42739   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
42740 fi
42741
42742 fi
42743 if test -n "$PKG_CONFIG"; then
42744         _pkg_min_version=0.9.0
42745         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
42746 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
42747         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
42748                 { echo "$as_me:$LINENO: result: yes" >&5
42749 echo "${ECHO_T}yes" >&6; }
42750         else
42751                 { echo "$as_me:$LINENO: result: no" >&5
42752 echo "${ECHO_T}no" >&6; }
42753                 PKG_CONFIG=""
42754         fi
42755
42756 fi
42757
42758     if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
42759
42760         if test "$wxUSE_GTKPRINT" = "yes" ; then
42761
42762
42763 pkg_failed=no
42764 { echo "$as_me:$LINENO: checking for GTKPRINT" >&5
42765 echo $ECHO_N "checking for GTKPRINT... $ECHO_C" >&6; }
42766
42767 if test -n "$PKG_CONFIG"; then
42768     if test -n "$GTKPRINT_CFLAGS"; then
42769         pkg_cv_GTKPRINT_CFLAGS="$GTKPRINT_CFLAGS"
42770     else
42771         if test -n "$PKG_CONFIG" && \
42772     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
42773   ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
42774   ac_status=$?
42775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42776   (exit $ac_status); }; then
42777   pkg_cv_GTKPRINT_CFLAGS=`$PKG_CONFIG --cflags "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
42778 else
42779   pkg_failed=yes
42780 fi
42781     fi
42782 else
42783         pkg_failed=untried
42784 fi
42785 if test -n "$PKG_CONFIG"; then
42786     if test -n "$GTKPRINT_LIBS"; then
42787         pkg_cv_GTKPRINT_LIBS="$GTKPRINT_LIBS"
42788     else
42789         if test -n "$PKG_CONFIG" && \
42790     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
42791   ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
42792   ac_status=$?
42793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42794   (exit $ac_status); }; then
42795   pkg_cv_GTKPRINT_LIBS=`$PKG_CONFIG --libs "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
42796 else
42797   pkg_failed=yes
42798 fi
42799     fi
42800 else
42801         pkg_failed=untried
42802 fi
42803
42804
42805
42806 if test $pkg_failed = yes; then
42807
42808 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42809         _pkg_short_errors_supported=yes
42810 else
42811         _pkg_short_errors_supported=no
42812 fi
42813         if test $_pkg_short_errors_supported = yes; then
42814                 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
42815         else
42816                 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
42817         fi
42818         # Put the nasty error message in config.log where it belongs
42819         echo "$GTKPRINT_PKG_ERRORS" >&5
42820
42821
42822                         { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
42823 echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
42824                         wxUSE_GTKPRINT="no"
42825
42826
42827 elif test $pkg_failed = untried; then
42828
42829                         { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
42830 echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
42831                         wxUSE_GTKPRINT="no"
42832
42833
42834 else
42835         GTKPRINT_CFLAGS=$pkg_cv_GTKPRINT_CFLAGS
42836         GTKPRINT_LIBS=$pkg_cv_GTKPRINT_LIBS
42837         { echo "$as_me:$LINENO: result: yes" >&5
42838 echo "${ECHO_T}yes" >&6; }
42839
42840                         CFLAGS="$GTKPRINT_CFLAGS $CFLAGS"
42841                         CXXFLAGS="$GTKPRINT_CFLAGS $CXXFLAGS"
42842                         cat >>confdefs.h <<\_ACEOF
42843 #define wxUSE_GTKPRINT 1
42844 _ACEOF
42845
42846
42847 fi
42848         fi
42849
42850         if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
42851
42852
42853 pkg_failed=no
42854 { echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
42855 echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6; }
42856
42857 if test -n "$PKG_CONFIG"; then
42858     if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
42859         pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
42860     else
42861         if test -n "$PKG_CONFIG" && \
42862     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
42863   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
42864   ac_status=$?
42865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42866   (exit $ac_status); }; then
42867   pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
42868 else
42869   pkg_failed=yes
42870 fi
42871     fi
42872 else
42873         pkg_failed=untried
42874 fi
42875 if test -n "$PKG_CONFIG"; then
42876     if test -n "$LIBGNOMEPRINTUI_LIBS"; then
42877         pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
42878     else
42879         if test -n "$PKG_CONFIG" && \
42880     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
42881   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
42882   ac_status=$?
42883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42884   (exit $ac_status); }; then
42885   pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
42886 else
42887   pkg_failed=yes
42888 fi
42889     fi
42890 else
42891         pkg_failed=untried
42892 fi
42893
42894
42895
42896 if test $pkg_failed = yes; then
42897
42898 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42899         _pkg_short_errors_supported=yes
42900 else
42901         _pkg_short_errors_supported=no
42902 fi
42903         if test $_pkg_short_errors_supported = yes; then
42904                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
42905         else
42906                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
42907         fi
42908         # Put the nasty error message in config.log where it belongs
42909         echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
42910
42911
42912                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
42913 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
42914                         wxUSE_LIBGNOMEPRINT="no"
42915
42916
42917 elif test $pkg_failed = untried; then
42918
42919                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
42920 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
42921                         wxUSE_LIBGNOMEPRINT="no"
42922
42923
42924 else
42925         LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
42926         LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
42927         { echo "$as_me:$LINENO: result: yes" >&5
42928 echo "${ECHO_T}yes" >&6; }
42929
42930                         CFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CFLAGS"
42931                         CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
42932                         cat >>confdefs.h <<\_ACEOF
42933 #define wxUSE_LIBGNOMEPRINT 1
42934 _ACEOF
42935
42936
42937 fi
42938         fi
42939     fi
42940
42941     if test "$wxUSE_MIMETYPE" = "yes" ; then
42942         if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
42943
42944
42945 pkg_failed=no
42946 { echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
42947 echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6; }
42948
42949 if test -n "$PKG_CONFIG"; then
42950     if test -n "$GNOMEVFS_CFLAGS"; then
42951         pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
42952     else
42953         if test -n "$PKG_CONFIG" && \
42954     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
42955   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
42956   ac_status=$?
42957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42958   (exit $ac_status); }; then
42959   pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
42960 else
42961   pkg_failed=yes
42962 fi
42963     fi
42964 else
42965         pkg_failed=untried
42966 fi
42967 if test -n "$PKG_CONFIG"; then
42968     if test -n "$GNOMEVFS_LIBS"; then
42969         pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
42970     else
42971         if test -n "$PKG_CONFIG" && \
42972     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
42973   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
42974   ac_status=$?
42975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42976   (exit $ac_status); }; then
42977   pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
42978 else
42979   pkg_failed=yes
42980 fi
42981     fi
42982 else
42983         pkg_failed=untried
42984 fi
42985
42986
42987
42988 if test $pkg_failed = yes; then
42989
42990 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42991         _pkg_short_errors_supported=yes
42992 else
42993         _pkg_short_errors_supported=no
42994 fi
42995         if test $_pkg_short_errors_supported = yes; then
42996                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
42997         else
42998                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
42999         fi
43000         # Put the nasty error message in config.log where it belongs
43001         echo "$GNOMEVFS_PKG_ERRORS" >&5
43002
43003
43004                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
43005 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
43006                         wxUSE_LIBGNOMEVFS="no"
43007
43008
43009 elif test $pkg_failed = untried; then
43010
43011                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
43012 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
43013                         wxUSE_LIBGNOMEVFS="no"
43014
43015
43016 else
43017         GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
43018         GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
43019         { echo "$as_me:$LINENO: result: yes" >&5
43020 echo "${ECHO_T}yes" >&6; }
43021
43022                         CFLAGS="$GNOMEVFS_CFLAGS $CFLAGS"
43023                         CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
43024                         cat >>confdefs.h <<\_ACEOF
43025 #define wxUSE_LIBGNOMEVFS 1
43026 _ACEOF
43027
43028
43029 fi
43030         fi
43031     fi
43032
43033     if test "$wxUSE_LIBHILDON" = "yes" ; then
43034
43035 pkg_failed=no
43036 { echo "$as_me:$LINENO: checking for HILDON" >&5
43037 echo $ECHO_N "checking for HILDON... $ECHO_C" >&6; }
43038
43039 if test -n "$PKG_CONFIG"; then
43040     if test -n "$HILDON_CFLAGS"; then
43041         pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
43042     else
43043         if test -n "$PKG_CONFIG" && \
43044     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
43045   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
43046   ac_status=$?
43047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43048   (exit $ac_status); }; then
43049   pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
43050 else
43051   pkg_failed=yes
43052 fi
43053     fi
43054 else
43055         pkg_failed=untried
43056 fi
43057 if test -n "$PKG_CONFIG"; then
43058     if test -n "$HILDON_LIBS"; then
43059         pkg_cv_HILDON_LIBS="$HILDON_LIBS"
43060     else
43061         if test -n "$PKG_CONFIG" && \
43062     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
43063   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
43064   ac_status=$?
43065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43066   (exit $ac_status); }; then
43067   pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
43068 else
43069   pkg_failed=yes
43070 fi
43071     fi
43072 else
43073         pkg_failed=untried
43074 fi
43075
43076
43077
43078 if test $pkg_failed = yes; then
43079
43080 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43081         _pkg_short_errors_supported=yes
43082 else
43083         _pkg_short_errors_supported=no
43084 fi
43085         if test $_pkg_short_errors_supported = yes; then
43086                 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
43087         else
43088                 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
43089         fi
43090         # Put the nasty error message in config.log where it belongs
43091         echo "$HILDON_PKG_ERRORS" >&5
43092
43093
43094                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
43095 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
43096                         wxUSE_LIBHILDON="no"
43097
43098
43099 elif test $pkg_failed = untried; then
43100
43101                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
43102 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
43103                         wxUSE_LIBHILDON="no"
43104
43105
43106 else
43107         HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
43108         HILDON_LIBS=$pkg_cv_HILDON_LIBS
43109         { echo "$as_me:$LINENO: result: yes" >&5
43110 echo "${ECHO_T}yes" >&6; }
43111
43112                 EXTRALIBS_HILDON="$HILDON_LIBS"
43113                 CFLAGS="$CFLAGS $HILDON_CFLAGS"
43114                 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
43115                 cat >>confdefs.h <<\_ACEOF
43116 #define wxUSE_LIBHILDON 1
43117 _ACEOF
43118
43119
43120 fi
43121     fi
43122 fi
43123
43124 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
43125   cat >>confdefs.h <<\_ACEOF
43126 #define wxUSE_CMDLINE_PARSER 1
43127 _ACEOF
43128
43129 fi
43130
43131 if test "$wxUSE_STOPWATCH" = "yes"; then
43132   cat >>confdefs.h <<\_ACEOF
43133 #define wxUSE_STOPWATCH 1
43134 _ACEOF
43135
43136 fi
43137
43138 if test "$wxUSE_DATETIME" = "yes"; then
43139   cat >>confdefs.h <<\_ACEOF
43140 #define wxUSE_DATETIME 1
43141 _ACEOF
43142
43143 fi
43144
43145 if test "$wxUSE_FILE" = "yes"; then
43146   cat >>confdefs.h <<\_ACEOF
43147 #define wxUSE_FILE 1
43148 _ACEOF
43149
43150 fi
43151
43152 if test "$wxUSE_FFILE" = "yes"; then
43153   cat >>confdefs.h <<\_ACEOF
43154 #define wxUSE_FFILE 1
43155 _ACEOF
43156
43157 fi
43158
43159 if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
43160   if test "$wxUSE_STREAMS" != yes; then
43161     { echo "$as_me:$LINENO: WARNING: wxArchive requires wxStreams... disabled" >&5
43162 echo "$as_me: WARNING: wxArchive requires wxStreams... disabled" >&2;}
43163     wxUSE_ARCHIVE_STREAMS=no
43164   else
43165     cat >>confdefs.h <<\_ACEOF
43166 #define wxUSE_ARCHIVE_STREAMS 1
43167 _ACEOF
43168
43169   fi
43170 fi
43171
43172 if test "$wxUSE_ZIPSTREAM" = "yes"; then
43173   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
43174     { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
43175 echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
43176   elif test "$wxUSE_ZLIB" = "no"; then
43177     { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
43178 echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
43179   else
43180     cat >>confdefs.h <<\_ACEOF
43181 #define wxUSE_ZIPSTREAM 1
43182 _ACEOF
43183
43184   fi
43185 fi
43186
43187 if test "$wxUSE_TARSTREAM" = "yes"; then
43188   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
43189     { echo "$as_me:$LINENO: WARNING: wxTar requires wxArchive... disabled" >&5
43190 echo "$as_me: WARNING: wxTar requires wxArchive... disabled" >&2;}
43191   else
43192     cat >>confdefs.h <<\_ACEOF
43193 #define wxUSE_TARSTREAM 1
43194 _ACEOF
43195
43196   fi
43197 fi
43198
43199 if test "$wxUSE_FILESYSTEM" = "yes"; then
43200   if test "$wxUSE_STREAMS" != yes -o \( "$wxUSE_FILE" != yes -a "$wxUSE_FFILE" != yes \); then
43201     { echo "$as_me:$LINENO: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&5
43202 echo "$as_me: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&2;}
43203     wxUSE_FILESYSTEM=no
43204   else
43205     cat >>confdefs.h <<\_ACEOF
43206 #define wxUSE_FILESYSTEM 1
43207 _ACEOF
43208
43209   fi
43210 fi
43211
43212 if test "$wxUSE_FS_ARCHIVE" = "yes"; then
43213   if test "$wxUSE_FILESYSTEM" != yes -o "$wxUSE_ARCHIVE_STREAMS" != yes; then
43214     { echo "$as_me:$LINENO: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&5
43215 echo "$as_me: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&2;}
43216   else
43217     cat >>confdefs.h <<\_ACEOF
43218 #define wxUSE_FS_ARCHIVE 1
43219 _ACEOF
43220
43221   fi
43222 fi
43223
43224 if test "$wxUSE_FS_ZIP" = "yes"; then
43225   if test "$wxUSE_FS_ARCHIVE" != yes; then
43226     { echo "$as_me:$LINENO: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&5
43227 echo "$as_me: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&2;}
43228   else
43229     cat >>confdefs.h <<\_ACEOF
43230 #define wxUSE_FS_ZIP 1
43231 _ACEOF
43232
43233   fi
43234 fi
43235
43236 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
43237   if test "$USE_UNIX" != 1; then
43238     { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
43239 echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
43240     wxUSE_ON_FATAL_EXCEPTION=no
43241   else
43242     cat >>confdefs.h <<\_ACEOF
43243 #define wxUSE_ON_FATAL_EXCEPTION 1
43244 _ACEOF
43245
43246   fi
43247 fi
43248
43249 if test "$wxUSE_STACKWALKER" = "yes"; then
43250     cat >>confdefs.h <<\_ACEOF
43251 #define wxUSE_STACKWALKER 1
43252 _ACEOF
43253
43254 fi
43255
43256 if test "$wxUSE_DEBUGREPORT" = "yes"; then
43257     if test "$USE_UNIX" != 1 -a "$USE_WIN32" != 1; then
43258         { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
43259 echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
43260         wxUSE_DEBUGREPORT=no
43261     else
43262         cat >>confdefs.h <<\_ACEOF
43263 #define wxUSE_DEBUGREPORT 1
43264 _ACEOF
43265
43266         if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
43267             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
43268         fi
43269     fi
43270 fi
43271
43272 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
43273   cat >>confdefs.h <<\_ACEOF
43274 #define wxUSE_SNGLINST_CHECKER 1
43275 _ACEOF
43276
43277 fi
43278
43279 if test "$wxUSE_BUSYINFO" = "yes"; then
43280   cat >>confdefs.h <<\_ACEOF
43281 #define wxUSE_BUSYINFO 1
43282 _ACEOF
43283
43284 fi
43285
43286 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
43287   cat >>confdefs.h <<\_ACEOF
43288 #define wxUSE_STD_IOSTREAM 1
43289 _ACEOF
43290
43291 fi
43292
43293 if test "$wxUSE_STD_STRING" = "yes"; then
43294   cat >>confdefs.h <<\_ACEOF
43295 #define wxUSE_STD_STRING 1
43296 _ACEOF
43297
43298 fi
43299
43300 if test "$wxUSE_STDPATHS" = "yes"; then
43301   cat >>confdefs.h <<\_ACEOF
43302 #define wxUSE_STDPATHS 1
43303 _ACEOF
43304
43305 fi
43306
43307 if test "$wxUSE_TEXTBUFFER" = "yes"; then
43308     cat >>confdefs.h <<\_ACEOF
43309 #define wxUSE_TEXTBUFFER 1
43310 _ACEOF
43311
43312 fi
43313
43314 if test "$wxUSE_TEXTFILE" = "yes"; then
43315   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
43316     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
43317 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
43318   else
43319     cat >>confdefs.h <<\_ACEOF
43320 #define wxUSE_TEXTFILE 1
43321 _ACEOF
43322
43323   fi
43324 fi
43325
43326 if test "$wxUSE_CONFIG" = "yes" ; then
43327   if test "$wxUSE_TEXTFILE" != "yes"; then
43328     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
43329 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
43330   else
43331     cat >>confdefs.h <<\_ACEOF
43332 #define wxUSE_CONFIG 1
43333 _ACEOF
43334
43335     cat >>confdefs.h <<\_ACEOF
43336 #define wxUSE_CONFIG_NATIVE 1
43337 _ACEOF
43338
43339     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
43340   fi
43341 fi
43342
43343 if test "$wxUSE_INTL" = "yes" ; then
43344   if test "$wxUSE_FILE" != "yes"; then
43345     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
43346 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
43347   else
43348     cat >>confdefs.h <<\_ACEOF
43349 #define wxUSE_INTL 1
43350 _ACEOF
43351
43352     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
43353     GUIDIST="$GUIDIST INTL_DIST"
43354   fi
43355 fi
43356
43357 if test "$wxUSE_XLOCALE" = "yes" ; then
43358     cat >>confdefs.h <<\_ACEOF
43359 #define wxUSE_XLOCALE 1
43360 _ACEOF
43361
43362     { echo "$as_me:$LINENO: checking for locale_t" >&5
43363 echo $ECHO_N "checking for locale_t... $ECHO_C" >&6; }
43364 if test "${ac_cv_type_locale_t+set}" = set; then
43365   echo $ECHO_N "(cached) $ECHO_C" >&6
43366 else
43367   cat >conftest.$ac_ext <<_ACEOF
43368 /* confdefs.h.  */
43369 _ACEOF
43370 cat confdefs.h >>conftest.$ac_ext
43371 cat >>conftest.$ac_ext <<_ACEOF
43372 /* end confdefs.h.  */
43373 #include <xlocale.h>
43374                     #include <locale.h>
43375
43376 typedef locale_t ac__type_new_;
43377 int
43378 main ()
43379 {
43380 if ((ac__type_new_ *) 0)
43381   return 0;
43382 if (sizeof (ac__type_new_))
43383   return 0;
43384   ;
43385   return 0;
43386 }
43387 _ACEOF
43388 rm -f conftest.$ac_objext
43389 if { (ac_try="$ac_compile"
43390 case "(($ac_try" in
43391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43392   *) ac_try_echo=$ac_try;;
43393 esac
43394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43395   (eval "$ac_compile") 2>conftest.er1
43396   ac_status=$?
43397   grep -v '^ *+' conftest.er1 >conftest.err
43398   rm -f conftest.er1
43399   cat conftest.err >&5
43400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43401   (exit $ac_status); } && {
43402          test -z "$ac_c_werror_flag" ||
43403          test ! -s conftest.err
43404        } && test -s conftest.$ac_objext; then
43405   ac_cv_type_locale_t=yes
43406 else
43407   echo "$as_me: failed program was:" >&5
43408 sed 's/^/| /' conftest.$ac_ext >&5
43409
43410         ac_cv_type_locale_t=no
43411 fi
43412
43413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43414 fi
43415 { echo "$as_me:$LINENO: result: $ac_cv_type_locale_t" >&5
43416 echo "${ECHO_T}$ac_cv_type_locale_t" >&6; }
43417 if test $ac_cv_type_locale_t = yes; then
43418
43419 cat >>confdefs.h <<_ACEOF
43420 #define HAVE_LOCALE_T 1
43421 _ACEOF
43422
43423
43424 fi
43425
43426 fi
43427
43428 if test "$wxUSE_LOG" = "yes"; then
43429   cat >>confdefs.h <<\_ACEOF
43430 #define wxUSE_LOG 1
43431 _ACEOF
43432
43433
43434     if test "$wxUSE_LOGGUI" = "yes"; then
43435       cat >>confdefs.h <<\_ACEOF
43436 #define wxUSE_LOGGUI 1
43437 _ACEOF
43438
43439     fi
43440
43441     if test "$wxUSE_LOGWINDOW" = "yes"; then
43442       cat >>confdefs.h <<\_ACEOF
43443 #define wxUSE_LOGWINDOW 1
43444 _ACEOF
43445
43446     fi
43447
43448     if test "$wxUSE_LOGDIALOG" = "yes"; then
43449       cat >>confdefs.h <<\_ACEOF
43450 #define wxUSE_LOG_DIALOG 1
43451 _ACEOF
43452
43453     fi
43454
43455         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
43456 fi
43457
43458 if test "$wxUSE_LONGLONG" = "yes"; then
43459   cat >>confdefs.h <<\_ACEOF
43460 #define wxUSE_LONGLONG 1
43461 _ACEOF
43462
43463 fi
43464
43465 if test "$wxUSE_GEOMETRY" = "yes"; then
43466   cat >>confdefs.h <<\_ACEOF
43467 #define wxUSE_GEOMETRY 1
43468 _ACEOF
43469
43470 fi
43471
43472 if test "$wxUSE_BASE64" = "yes"; then
43473   cat >>confdefs.h <<\_ACEOF
43474 #define wxUSE_BASE64 1
43475 _ACEOF
43476
43477 fi
43478
43479 if test "$wxUSE_STREAMS" = "yes" ; then
43480   cat >>confdefs.h <<\_ACEOF
43481 #define wxUSE_STREAMS 1
43482 _ACEOF
43483
43484 fi
43485
43486 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
43487   cat >>confdefs.h <<\_ACEOF
43488 #define wxUSE_PRINTF_POS_PARAMS 1
43489 _ACEOF
43490
43491 fi
43492
43493 if test "$wxUSE_OBJC_UNIQUIFYING" = "yes"; then
43494   cat >>confdefs.h <<\_ACEOF
43495 #define wxUSE_OBJC_UNIQUIFYING 1
43496 _ACEOF
43497
43498 fi
43499
43500
43501 if test "$wxUSE_CONSOLE_EVENTLOOP" = "yes"; then
43502     cat >>confdefs.h <<\_ACEOF
43503 #define wxUSE_CONSOLE_EVENTLOOP 1
43504 _ACEOF
43505
43506
43507     if test "$wxUSE_UNIX" = "yes"; then
43508         if test "$wxUSE_SELECT_DISPATCHER" = "yes"; then
43509             cat >>confdefs.h <<\_ACEOF
43510 #define wxUSE_SELECT_DISPATCHER 1
43511 _ACEOF
43512
43513         fi
43514
43515         if test "$wxUSE_EPOLL_DISPATCHER" = "yes"; then
43516
43517 for ac_header in sys/epoll.h
43518 do
43519 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43520 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43523   echo $ECHO_N "(cached) $ECHO_C" >&6
43524 else
43525   cat >conftest.$ac_ext <<_ACEOF
43526 /* confdefs.h.  */
43527 _ACEOF
43528 cat confdefs.h >>conftest.$ac_ext
43529 cat >>conftest.$ac_ext <<_ACEOF
43530 /* end confdefs.h.  */
43531 $ac_includes_default
43532
43533 #include <$ac_header>
43534 _ACEOF
43535 rm -f conftest.$ac_objext
43536 if { (ac_try="$ac_compile"
43537 case "(($ac_try" in
43538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43539   *) ac_try_echo=$ac_try;;
43540 esac
43541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43542   (eval "$ac_compile") 2>conftest.er1
43543   ac_status=$?
43544   grep -v '^ *+' conftest.er1 >conftest.err
43545   rm -f conftest.er1
43546   cat conftest.err >&5
43547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43548   (exit $ac_status); } && {
43549          test -z "$ac_c_werror_flag" ||
43550          test ! -s conftest.err
43551        } && test -s conftest.$ac_objext; then
43552   eval "$as_ac_Header=yes"
43553 else
43554   echo "$as_me: failed program was:" >&5
43555 sed 's/^/| /' conftest.$ac_ext >&5
43556
43557         eval "$as_ac_Header=no"
43558 fi
43559
43560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43561 fi
43562 ac_res=`eval echo '${'$as_ac_Header'}'`
43563                { echo "$as_me:$LINENO: result: $ac_res" >&5
43564 echo "${ECHO_T}$ac_res" >&6; }
43565 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43566   cat >>confdefs.h <<_ACEOF
43567 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43568 _ACEOF
43569
43570 fi
43571
43572 done
43573
43574             if test "$ac_cv_header_sys_epoll_h" = "yes"; then
43575                 cat >>confdefs.h <<\_ACEOF
43576 #define wxUSE_EPOLL_DISPATCHER 1
43577 _ACEOF
43578
43579             else
43580                 { echo "$as_me:$LINENO: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&5
43581 echo "$as_me: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&2;}
43582             fi
43583         fi
43584     fi
43585 fi
43586
43587
43588
43589
43590 for ac_func in gettimeofday ftime
43591 do
43592 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43593 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43594 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43595 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43596   echo $ECHO_N "(cached) $ECHO_C" >&6
43597 else
43598   cat >conftest.$ac_ext <<_ACEOF
43599 /* confdefs.h.  */
43600 _ACEOF
43601 cat confdefs.h >>conftest.$ac_ext
43602 cat >>conftest.$ac_ext <<_ACEOF
43603 /* end confdefs.h.  */
43604 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43605    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43606 #define $ac_func innocuous_$ac_func
43607
43608 /* System header to define __stub macros and hopefully few prototypes,
43609     which can conflict with char $ac_func (); below.
43610     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43611     <limits.h> exists even on freestanding compilers.  */
43612
43613 #ifdef __STDC__
43614 # include <limits.h>
43615 #else
43616 # include <assert.h>
43617 #endif
43618
43619 #undef $ac_func
43620
43621 /* Override any GCC internal prototype to avoid an error.
43622    Use char because int might match the return type of a GCC
43623    builtin and then its argument prototype would still apply.  */
43624 #ifdef __cplusplus
43625 extern "C"
43626 #endif
43627 char $ac_func ();
43628 /* The GNU C library defines this for functions which it implements
43629     to always fail with ENOSYS.  Some functions are actually named
43630     something starting with __ and the normal name is an alias.  */
43631 #if defined __stub_$ac_func || defined __stub___$ac_func
43632 choke me
43633 #endif
43634
43635 int
43636 main ()
43637 {
43638 return $ac_func ();
43639   ;
43640   return 0;
43641 }
43642 _ACEOF
43643 rm -f conftest.$ac_objext conftest$ac_exeext
43644 if { (ac_try="$ac_link"
43645 case "(($ac_try" in
43646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43647   *) ac_try_echo=$ac_try;;
43648 esac
43649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43650   (eval "$ac_link") 2>conftest.er1
43651   ac_status=$?
43652   grep -v '^ *+' conftest.er1 >conftest.err
43653   rm -f conftest.er1
43654   cat conftest.err >&5
43655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43656   (exit $ac_status); } && {
43657          test -z "$ac_c_werror_flag" ||
43658          test ! -s conftest.err
43659        } && test -s conftest$ac_exeext &&
43660        $as_test_x conftest$ac_exeext; then
43661   eval "$as_ac_var=yes"
43662 else
43663   echo "$as_me: failed program was:" >&5
43664 sed 's/^/| /' conftest.$ac_ext >&5
43665
43666         eval "$as_ac_var=no"
43667 fi
43668
43669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43670       conftest$ac_exeext conftest.$ac_ext
43671 fi
43672 ac_res=`eval echo '${'$as_ac_var'}'`
43673                { echo "$as_me:$LINENO: result: $ac_res" >&5
43674 echo "${ECHO_T}$ac_res" >&6; }
43675 if test `eval echo '${'$as_ac_var'}'` = yes; then
43676   cat >>confdefs.h <<_ACEOF
43677 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43678 _ACEOF
43679  break
43680 fi
43681 done
43682
43683
43684 if test "$ac_cv_func_gettimeofday" = "yes"; then
43685     { echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
43686 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6; }
43687 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
43688   echo $ECHO_N "(cached) $ECHO_C" >&6
43689 else
43690
43691                 cat >conftest.$ac_ext <<_ACEOF
43692 /* confdefs.h.  */
43693 _ACEOF
43694 cat confdefs.h >>conftest.$ac_ext
43695 cat >>conftest.$ac_ext <<_ACEOF
43696 /* end confdefs.h.  */
43697
43698                 #include <sys/time.h>
43699                 #include <unistd.h>
43700
43701 int
43702 main ()
43703 {
43704
43705                 struct timeval tv;
43706                 gettimeofday(&tv, NULL);
43707
43708   ;
43709   return 0;
43710 }
43711 _ACEOF
43712 rm -f conftest.$ac_objext
43713 if { (ac_try="$ac_compile"
43714 case "(($ac_try" in
43715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43716   *) ac_try_echo=$ac_try;;
43717 esac
43718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43719   (eval "$ac_compile") 2>conftest.er1
43720   ac_status=$?
43721   grep -v '^ *+' conftest.er1 >conftest.err
43722   rm -f conftest.er1
43723   cat conftest.err >&5
43724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43725   (exit $ac_status); } && {
43726          test -z "$ac_c_werror_flag" ||
43727          test ! -s conftest.err
43728        } && test -s conftest.$ac_objext; then
43729   wx_cv_func_gettimeofday_has_2_args=yes
43730 else
43731   echo "$as_me: failed program was:" >&5
43732 sed 's/^/| /' conftest.$ac_ext >&5
43733
43734         cat >conftest.$ac_ext <<_ACEOF
43735 /* confdefs.h.  */
43736 _ACEOF
43737 cat confdefs.h >>conftest.$ac_ext
43738 cat >>conftest.$ac_ext <<_ACEOF
43739 /* end confdefs.h.  */
43740
43741                     #include <sys/time.h>
43742                     #include <unistd.h>
43743
43744 int
43745 main ()
43746 {
43747
43748                     struct timeval tv;
43749                     gettimeofday(&tv);
43750
43751   ;
43752   return 0;
43753 }
43754 _ACEOF
43755 rm -f conftest.$ac_objext
43756 if { (ac_try="$ac_compile"
43757 case "(($ac_try" in
43758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43759   *) ac_try_echo=$ac_try;;
43760 esac
43761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43762   (eval "$ac_compile") 2>conftest.er1
43763   ac_status=$?
43764   grep -v '^ *+' conftest.er1 >conftest.err
43765   rm -f conftest.er1
43766   cat conftest.err >&5
43767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43768   (exit $ac_status); } && {
43769          test -z "$ac_c_werror_flag" ||
43770          test ! -s conftest.err
43771        } && test -s conftest.$ac_objext; then
43772   wx_cv_func_gettimeofday_has_2_args=no
43773 else
43774   echo "$as_me: failed program was:" >&5
43775 sed 's/^/| /' conftest.$ac_ext >&5
43776
43777
43778                     { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
43779 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
43780                     wx_cv_func_gettimeofday_has_2_args=unknown
43781
43782
43783 fi
43784
43785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43786
43787 fi
43788
43789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43790
43791 fi
43792 { echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
43793 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6; }
43794
43795     if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
43796         cat >>confdefs.h <<\_ACEOF
43797 #define WX_GETTIMEOFDAY_NO_TZ 1
43798 _ACEOF
43799
43800     fi
43801 fi
43802
43803 if test "$wxUSE_DATETIME" = "yes"; then
43804         { echo "$as_me:$LINENO: checking for strptime" >&5
43805 echo $ECHO_N "checking for strptime... $ECHO_C" >&6; }
43806 if test "${ac_cv_func_strptime+set}" = set; then
43807   echo $ECHO_N "(cached) $ECHO_C" >&6
43808 else
43809   cat >conftest.$ac_ext <<_ACEOF
43810 /* confdefs.h.  */
43811 _ACEOF
43812 cat confdefs.h >>conftest.$ac_ext
43813 cat >>conftest.$ac_ext <<_ACEOF
43814 /* end confdefs.h.  */
43815 /* Define strptime to an innocuous variant, in case <limits.h> declares strptime.
43816    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43817 #define strptime innocuous_strptime
43818
43819 /* System header to define __stub macros and hopefully few prototypes,
43820     which can conflict with char strptime (); below.
43821     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43822     <limits.h> exists even on freestanding compilers.  */
43823
43824 #ifdef __STDC__
43825 # include <limits.h>
43826 #else
43827 # include <assert.h>
43828 #endif
43829
43830 #undef strptime
43831
43832 /* Override any GCC internal prototype to avoid an error.
43833    Use char because int might match the return type of a GCC
43834    builtin and then its argument prototype would still apply.  */
43835 #ifdef __cplusplus
43836 extern "C"
43837 #endif
43838 char strptime ();
43839 /* The GNU C library defines this for functions which it implements
43840     to always fail with ENOSYS.  Some functions are actually named
43841     something starting with __ and the normal name is an alias.  */
43842 #if defined __stub_strptime || defined __stub___strptime
43843 choke me
43844 #endif
43845
43846 int
43847 main ()
43848 {
43849 return strptime ();
43850   ;
43851   return 0;
43852 }
43853 _ACEOF
43854 rm -f conftest.$ac_objext conftest$ac_exeext
43855 if { (ac_try="$ac_link"
43856 case "(($ac_try" in
43857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43858   *) ac_try_echo=$ac_try;;
43859 esac
43860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43861   (eval "$ac_link") 2>conftest.er1
43862   ac_status=$?
43863   grep -v '^ *+' conftest.er1 >conftest.err
43864   rm -f conftest.er1
43865   cat conftest.err >&5
43866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43867   (exit $ac_status); } && {
43868          test -z "$ac_c_werror_flag" ||
43869          test ! -s conftest.err
43870        } && test -s conftest$ac_exeext &&
43871        $as_test_x conftest$ac_exeext; then
43872   ac_cv_func_strptime=yes
43873 else
43874   echo "$as_me: failed program was:" >&5
43875 sed 's/^/| /' conftest.$ac_ext >&5
43876
43877         ac_cv_func_strptime=no
43878 fi
43879
43880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43881       conftest$ac_exeext conftest.$ac_ext
43882 fi
43883 { echo "$as_me:$LINENO: result: $ac_cv_func_strptime" >&5
43884 echo "${ECHO_T}$ac_cv_func_strptime" >&6; }
43885
43886     if test "$ac_cv_func_strptime" = "yes"; then
43887         { echo "$as_me:$LINENO: checking for strptime declaration" >&5
43888 echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6; }
43889 if test "${wx_cv_func_strptime_decl+set}" = set; then
43890   echo $ECHO_N "(cached) $ECHO_C" >&6
43891 else
43892
43893                 ac_ext=cpp
43894 ac_cpp='$CXXCPP $CPPFLAGS'
43895 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43896 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43897 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43898
43899                 cat >conftest.$ac_ext <<_ACEOF
43900 /* confdefs.h.  */
43901 _ACEOF
43902 cat confdefs.h >>conftest.$ac_ext
43903 cat >>conftest.$ac_ext <<_ACEOF
43904 /* end confdefs.h.  */
43905
43906                         #include <time.h>
43907
43908 int
43909 main ()
43910 {
43911
43912                         struct tm t;
43913                         strptime("foo", "bar", &t);
43914
43915   ;
43916   return 0;
43917 }
43918 _ACEOF
43919 rm -f conftest.$ac_objext
43920 if { (ac_try="$ac_compile"
43921 case "(($ac_try" in
43922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43923   *) ac_try_echo=$ac_try;;
43924 esac
43925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43926   (eval "$ac_compile") 2>conftest.er1
43927   ac_status=$?
43928   grep -v '^ *+' conftest.er1 >conftest.err
43929   rm -f conftest.er1
43930   cat conftest.err >&5
43931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43932   (exit $ac_status); } && {
43933          test -z "$ac_cxx_werror_flag" ||
43934          test ! -s conftest.err
43935        } && test -s conftest.$ac_objext; then
43936   wx_cv_func_strptime_decl=yes
43937 else
43938   echo "$as_me: failed program was:" >&5
43939 sed 's/^/| /' conftest.$ac_ext >&5
43940
43941         wx_cv_func_strptime_decl=no
43942
43943 fi
43944
43945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43946                 ac_ext=c
43947 ac_cpp='$CPP $CPPFLAGS'
43948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43951
43952
43953
43954 fi
43955 { echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
43956 echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6; }
43957     fi
43958     if test "$wx_cv_func_strptime_decl" = "yes"; then
43959         cat >>confdefs.h <<\_ACEOF
43960 #define HAVE_STRPTIME_DECL 1
43961 _ACEOF
43962
43963     else
43964         wx_strptime_decl="extern char *strptime(const char *, const char *, struct tm *);"
43965     fi
43966     if test "$ac_cv_func_strptime" = "yes"; then
43967                                         { echo "$as_me:$LINENO: checking whether strptime() fails on invalid strings" >&5
43968 echo $ECHO_N "checking whether strptime() fails on invalid strings... $ECHO_C" >&6; }
43969 if test "${wx_cv_func_strptime_ok+set}" = set; then
43970   echo $ECHO_N "(cached) $ECHO_C" >&6
43971 else
43972   if test "$cross_compiling" = yes; then
43973                   wx_cv_func_strptime_ok=no
43974
43975 else
43976   cat >conftest.$ac_ext <<_ACEOF
43977
43978                     #include <stdlib.h>
43979                     #include <time.h>
43980                     #include "confdefs.h"
43981
43982                     $wx_strptime_decl
43983
43984                     int main()
43985                     {
43986                         struct tm t;
43987                         return !!strptime("", "%x", &t);
43988                     }
43989
43990 _ACEOF
43991 rm -f conftest$ac_exeext
43992 if { (ac_try="$ac_link"
43993 case "(($ac_try" in
43994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43995   *) ac_try_echo=$ac_try;;
43996 esac
43997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43998   (eval "$ac_link") 2>&5
43999   ac_status=$?
44000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44001   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44002   { (case "(($ac_try" in
44003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44004   *) ac_try_echo=$ac_try;;
44005 esac
44006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44007   (eval "$ac_try") 2>&5
44008   ac_status=$?
44009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44010   (exit $ac_status); }; }; then
44011   wx_cv_func_strptime_ok=yes
44012 else
44013   echo "$as_me: program exited with status $ac_status" >&5
44014 echo "$as_me: failed program was:" >&5
44015 sed 's/^/| /' conftest.$ac_ext >&5
44016
44017 ( exit $ac_status )
44018 wx_cv_func_strptime_ok=no
44019 fi
44020 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44021 fi
44022
44023
44024
44025 fi
44026 { echo "$as_me:$LINENO: result: $wx_cv_func_strptime_ok" >&5
44027 echo "${ECHO_T}$wx_cv_func_strptime_ok" >&6; }
44028
44029         if test "$wx_cv_func_strptime_ok" = "yes"; then
44030             cat >>confdefs.h <<\_ACEOF
44031 #define HAVE_STRPTIME 1
44032 _ACEOF
44033
44034         fi
44035     fi
44036
44037             { echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
44038 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6; }
44039 if test "${wx_cv_var_timezone+set}" = set; then
44040   echo $ECHO_N "(cached) $ECHO_C" >&6
44041 else
44042
44043                         ac_ext=cpp
44044 ac_cpp='$CXXCPP $CPPFLAGS'
44045 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44046 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44047 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44048
44049                         cat >conftest.$ac_ext <<_ACEOF
44050 /* confdefs.h.  */
44051 _ACEOF
44052 cat confdefs.h >>conftest.$ac_ext
44053 cat >>conftest.$ac_ext <<_ACEOF
44054 /* end confdefs.h.  */
44055
44056                                 #include <time.h>
44057
44058 int
44059 main ()
44060 {
44061
44062                                 int tz;
44063                                 tz = timezone;
44064
44065   ;
44066   return 0;
44067 }
44068 _ACEOF
44069 rm -f conftest.$ac_objext
44070 if { (ac_try="$ac_compile"
44071 case "(($ac_try" in
44072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44073   *) ac_try_echo=$ac_try;;
44074 esac
44075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44076   (eval "$ac_compile") 2>conftest.er1
44077   ac_status=$?
44078   grep -v '^ *+' conftest.er1 >conftest.err
44079   rm -f conftest.er1
44080   cat conftest.err >&5
44081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44082   (exit $ac_status); } && {
44083          test -z "$ac_cxx_werror_flag" ||
44084          test ! -s conftest.err
44085        } && test -s conftest.$ac_objext; then
44086
44087                                 wx_cv_var_timezone=timezone
44088
44089 else
44090   echo "$as_me: failed program was:" >&5
44091 sed 's/^/| /' conftest.$ac_ext >&5
44092
44093
44094                                 cat >conftest.$ac_ext <<_ACEOF
44095 /* confdefs.h.  */
44096 _ACEOF
44097 cat confdefs.h >>conftest.$ac_ext
44098 cat >>conftest.$ac_ext <<_ACEOF
44099 /* end confdefs.h.  */
44100
44101                                         #include <time.h>
44102
44103 int
44104 main ()
44105 {
44106
44107                                         int tz;
44108                                         tz = _timezone;
44109
44110   ;
44111   return 0;
44112 }
44113 _ACEOF
44114 rm -f conftest.$ac_objext
44115 if { (ac_try="$ac_compile"
44116 case "(($ac_try" in
44117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44118   *) ac_try_echo=$ac_try;;
44119 esac
44120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44121   (eval "$ac_compile") 2>conftest.er1
44122   ac_status=$?
44123   grep -v '^ *+' conftest.er1 >conftest.err
44124   rm -f conftest.er1
44125   cat conftest.err >&5
44126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44127   (exit $ac_status); } && {
44128          test -z "$ac_cxx_werror_flag" ||
44129          test ! -s conftest.err
44130        } && test -s conftest.$ac_objext; then
44131
44132                                         wx_cv_var_timezone=_timezone
44133
44134 else
44135   echo "$as_me: failed program was:" >&5
44136 sed 's/^/| /' conftest.$ac_ext >&5
44137
44138
44139                                         cat >conftest.$ac_ext <<_ACEOF
44140 /* confdefs.h.  */
44141 _ACEOF
44142 cat confdefs.h >>conftest.$ac_ext
44143 cat >>conftest.$ac_ext <<_ACEOF
44144 /* end confdefs.h.  */
44145
44146                                                 #include <time.h>
44147
44148 int
44149 main ()
44150 {
44151
44152                                                 int tz;
44153                                                 tz = __timezone;
44154
44155   ;
44156   return 0;
44157 }
44158 _ACEOF
44159 rm -f conftest.$ac_objext
44160 if { (ac_try="$ac_compile"
44161 case "(($ac_try" in
44162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44163   *) ac_try_echo=$ac_try;;
44164 esac
44165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44166   (eval "$ac_compile") 2>conftest.er1
44167   ac_status=$?
44168   grep -v '^ *+' conftest.er1 >conftest.err
44169   rm -f conftest.er1
44170   cat conftest.err >&5
44171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44172   (exit $ac_status); } && {
44173          test -z "$ac_cxx_werror_flag" ||
44174          test ! -s conftest.err
44175        } && test -s conftest.$ac_objext; then
44176
44177                                                 wx_cv_var_timezone=__timezone
44178
44179 else
44180   echo "$as_me: failed program was:" >&5
44181 sed 's/^/| /' conftest.$ac_ext >&5
44182
44183
44184                                                 if test "$USE_DOS" = 0 ; then
44185                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
44186 echo "$as_me: WARNING: no timezone variable" >&2;}
44187                                                 fi
44188
44189
44190 fi
44191
44192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44193
44194
44195 fi
44196
44197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44198
44199
44200 fi
44201
44202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44203                         ac_ext=c
44204 ac_cpp='$CPP $CPPFLAGS'
44205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44208
44209
44210
44211 fi
44212 { echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
44213 echo "${ECHO_T}$wx_cv_var_timezone" >&6; }
44214
44215         if test "x$wx_cv_var_timezone" != x ; then
44216         cat >>confdefs.h <<_ACEOF
44217 #define WX_TIMEZONE $wx_cv_var_timezone
44218 _ACEOF
44219
44220     fi
44221
44222
44223 for ac_func in localtime
44224 do
44225 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44226 { echo "$as_me:$LINENO: checking for $ac_func" >&5
44227 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
44228 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44229   echo $ECHO_N "(cached) $ECHO_C" >&6
44230 else
44231   cat >conftest.$ac_ext <<_ACEOF
44232 /* confdefs.h.  */
44233 _ACEOF
44234 cat confdefs.h >>conftest.$ac_ext
44235 cat >>conftest.$ac_ext <<_ACEOF
44236 /* end confdefs.h.  */
44237 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44238    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44239 #define $ac_func innocuous_$ac_func
44240
44241 /* System header to define __stub macros and hopefully few prototypes,
44242     which can conflict with char $ac_func (); below.
44243     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44244     <limits.h> exists even on freestanding compilers.  */
44245
44246 #ifdef __STDC__
44247 # include <limits.h>
44248 #else
44249 # include <assert.h>
44250 #endif
44251
44252 #undef $ac_func
44253
44254 /* Override any GCC internal prototype to avoid an error.
44255    Use char because int might match the return type of a GCC
44256    builtin and then its argument prototype would still apply.  */
44257 #ifdef __cplusplus
44258 extern "C"
44259 #endif
44260 char $ac_func ();
44261 /* The GNU C library defines this for functions which it implements
44262     to always fail with ENOSYS.  Some functions are actually named
44263     something starting with __ and the normal name is an alias.  */
44264 #if defined __stub_$ac_func || defined __stub___$ac_func
44265 choke me
44266 #endif
44267
44268 int
44269 main ()
44270 {
44271 return $ac_func ();
44272   ;
44273   return 0;
44274 }
44275 _ACEOF
44276 rm -f conftest.$ac_objext conftest$ac_exeext
44277 if { (ac_try="$ac_link"
44278 case "(($ac_try" in
44279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44280   *) ac_try_echo=$ac_try;;
44281 esac
44282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44283   (eval "$ac_link") 2>conftest.er1
44284   ac_status=$?
44285   grep -v '^ *+' conftest.er1 >conftest.err
44286   rm -f conftest.er1
44287   cat conftest.err >&5
44288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44289   (exit $ac_status); } && {
44290          test -z "$ac_c_werror_flag" ||
44291          test ! -s conftest.err
44292        } && test -s conftest$ac_exeext &&
44293        $as_test_x conftest$ac_exeext; then
44294   eval "$as_ac_var=yes"
44295 else
44296   echo "$as_me: failed program was:" >&5
44297 sed 's/^/| /' conftest.$ac_ext >&5
44298
44299         eval "$as_ac_var=no"
44300 fi
44301
44302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44303       conftest$ac_exeext conftest.$ac_ext
44304 fi
44305 ac_res=`eval echo '${'$as_ac_var'}'`
44306                { echo "$as_me:$LINENO: result: $ac_res" >&5
44307 echo "${ECHO_T}$ac_res" >&6; }
44308 if test `eval echo '${'$as_ac_var'}'` = yes; then
44309   cat >>confdefs.h <<_ACEOF
44310 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44311 _ACEOF
44312
44313 fi
44314 done
44315
44316
44317     if test "$ac_cv_func_localtime" = "yes"; then
44318         { echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
44319 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6; }
44320 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
44321   echo $ECHO_N "(cached) $ECHO_C" >&6
44322 else
44323
44324             cat >conftest.$ac_ext <<_ACEOF
44325 /* confdefs.h.  */
44326 _ACEOF
44327 cat confdefs.h >>conftest.$ac_ext
44328 cat >>conftest.$ac_ext <<_ACEOF
44329 /* end confdefs.h.  */
44330
44331                     #include <time.h>
44332
44333 int
44334 main ()
44335 {
44336
44337                     struct tm tm;
44338                     tm.tm_gmtoff++;
44339
44340   ;
44341   return 0;
44342 }
44343 _ACEOF
44344 rm -f conftest.$ac_objext
44345 if { (ac_try="$ac_compile"
44346 case "(($ac_try" in
44347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44348   *) ac_try_echo=$ac_try;;
44349 esac
44350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44351   (eval "$ac_compile") 2>conftest.er1
44352   ac_status=$?
44353   grep -v '^ *+' conftest.er1 >conftest.err
44354   rm -f conftest.er1
44355   cat conftest.err >&5
44356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44357   (exit $ac_status); } && {
44358          test -z "$ac_c_werror_flag" ||
44359          test ! -s conftest.err
44360        } && test -s conftest.$ac_objext; then
44361
44362                     wx_cv_struct_tm_has_gmtoff=yes
44363
44364 else
44365   echo "$as_me: failed program was:" >&5
44366 sed 's/^/| /' conftest.$ac_ext >&5
44367
44368         wx_cv_struct_tm_has_gmtoff=no
44369
44370 fi
44371
44372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44373
44374 fi
44375 { echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
44376 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6; }
44377     fi
44378
44379     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
44380         cat >>confdefs.h <<\_ACEOF
44381 #define WX_GMTOFF_IN_TM 1
44382 _ACEOF
44383
44384     fi
44385
44386     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
44387 fi
44388
44389
44390 if test "$wxUSE_SOCKETS" = "yes"; then
44391     if test "$wxUSE_MGL" = 1; then
44392         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
44393 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
44394         wxUSE_SOCKETS="no"
44395     fi
44396 fi
44397
44398 if test "$wxUSE_SOCKETS" = "yes"; then
44399         if test "$TOOLKIT" != "MSW"; then
44400                 { echo "$as_me:$LINENO: checking for socket" >&5
44401 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
44402 if test "${ac_cv_func_socket+set}" = set; then
44403   echo $ECHO_N "(cached) $ECHO_C" >&6
44404 else
44405   cat >conftest.$ac_ext <<_ACEOF
44406 /* confdefs.h.  */
44407 _ACEOF
44408 cat confdefs.h >>conftest.$ac_ext
44409 cat >>conftest.$ac_ext <<_ACEOF
44410 /* end confdefs.h.  */
44411 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
44412    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44413 #define socket innocuous_socket
44414
44415 /* System header to define __stub macros and hopefully few prototypes,
44416     which can conflict with char socket (); below.
44417     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44418     <limits.h> exists even on freestanding compilers.  */
44419
44420 #ifdef __STDC__
44421 # include <limits.h>
44422 #else
44423 # include <assert.h>
44424 #endif
44425
44426 #undef socket
44427
44428 /* Override any GCC internal prototype to avoid an error.
44429    Use char because int might match the return type of a GCC
44430    builtin and then its argument prototype would still apply.  */
44431 #ifdef __cplusplus
44432 extern "C"
44433 #endif
44434 char socket ();
44435 /* The GNU C library defines this for functions which it implements
44436     to always fail with ENOSYS.  Some functions are actually named
44437     something starting with __ and the normal name is an alias.  */
44438 #if defined __stub_socket || defined __stub___socket
44439 choke me
44440 #endif
44441
44442 int
44443 main ()
44444 {
44445 return socket ();
44446   ;
44447   return 0;
44448 }
44449 _ACEOF
44450 rm -f conftest.$ac_objext conftest$ac_exeext
44451 if { (ac_try="$ac_link"
44452 case "(($ac_try" in
44453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44454   *) ac_try_echo=$ac_try;;
44455 esac
44456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44457   (eval "$ac_link") 2>conftest.er1
44458   ac_status=$?
44459   grep -v '^ *+' conftest.er1 >conftest.err
44460   rm -f conftest.er1
44461   cat conftest.err >&5
44462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44463   (exit $ac_status); } && {
44464          test -z "$ac_c_werror_flag" ||
44465          test ! -s conftest.err
44466        } && test -s conftest$ac_exeext &&
44467        $as_test_x conftest$ac_exeext; then
44468   ac_cv_func_socket=yes
44469 else
44470   echo "$as_me: failed program was:" >&5
44471 sed 's/^/| /' conftest.$ac_ext >&5
44472
44473         ac_cv_func_socket=no
44474 fi
44475
44476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44477       conftest$ac_exeext conftest.$ac_ext
44478 fi
44479 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
44480 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
44481 if test $ac_cv_func_socket = yes; then
44482   :
44483 else
44484
44485                 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
44486 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
44487 if test "${ac_cv_lib_socket_socket+set}" = set; then
44488   echo $ECHO_N "(cached) $ECHO_C" >&6
44489 else
44490   ac_check_lib_save_LIBS=$LIBS
44491 LIBS="-lsocket  $LIBS"
44492 cat >conftest.$ac_ext <<_ACEOF
44493 /* confdefs.h.  */
44494 _ACEOF
44495 cat confdefs.h >>conftest.$ac_ext
44496 cat >>conftest.$ac_ext <<_ACEOF
44497 /* end confdefs.h.  */
44498
44499 /* Override any GCC internal prototype to avoid an error.
44500    Use char because int might match the return type of a GCC
44501    builtin and then its argument prototype would still apply.  */
44502 #ifdef __cplusplus
44503 extern "C"
44504 #endif
44505 char socket ();
44506 int
44507 main ()
44508 {
44509 return socket ();
44510   ;
44511   return 0;
44512 }
44513 _ACEOF
44514 rm -f conftest.$ac_objext conftest$ac_exeext
44515 if { (ac_try="$ac_link"
44516 case "(($ac_try" in
44517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44518   *) ac_try_echo=$ac_try;;
44519 esac
44520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44521   (eval "$ac_link") 2>conftest.er1
44522   ac_status=$?
44523   grep -v '^ *+' conftest.er1 >conftest.err
44524   rm -f conftest.er1
44525   cat conftest.err >&5
44526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44527   (exit $ac_status); } && {
44528          test -z "$ac_c_werror_flag" ||
44529          test ! -s conftest.err
44530        } && test -s conftest$ac_exeext &&
44531        $as_test_x conftest$ac_exeext; then
44532   ac_cv_lib_socket_socket=yes
44533 else
44534   echo "$as_me: failed program was:" >&5
44535 sed 's/^/| /' conftest.$ac_ext >&5
44536
44537         ac_cv_lib_socket_socket=no
44538 fi
44539
44540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44541       conftest$ac_exeext conftest.$ac_ext
44542 LIBS=$ac_check_lib_save_LIBS
44543 fi
44544 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
44545 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
44546 if test $ac_cv_lib_socket_socket = yes; then
44547   if test "$INET_LINK" != " -lsocket"; then
44548                         INET_LINK="$INET_LINK -lsocket"
44549                     fi
44550 else
44551
44552                         { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
44553 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
44554                         wxUSE_SOCKETS=no
44555
44556
44557 fi
44558
44559
44560
44561 fi
44562
44563     fi
44564 fi
44565
44566 if test "$wxUSE_SOCKETS" = "yes" ; then
44567                 if test "$TOOLKIT" != "MSW"; then
44568                                         { echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
44569 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6; }
44570 if test "${wx_cv_type_getsockname3+set}" = set; then
44571   echo $ECHO_N "(cached) $ECHO_C" >&6
44572 else
44573
44574                 ac_ext=cpp
44575 ac_cpp='$CXXCPP $CPPFLAGS'
44576 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44577 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44578 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44579
44580                 cat >conftest.$ac_ext <<_ACEOF
44581 /* confdefs.h.  */
44582 _ACEOF
44583 cat confdefs.h >>conftest.$ac_ext
44584 cat >>conftest.$ac_ext <<_ACEOF
44585 /* end confdefs.h.  */
44586
44587                         #include <sys/types.h>
44588                         #include <sys/socket.h>
44589
44590 int
44591 main ()
44592 {
44593
44594                         socklen_t len;
44595                         getsockname(0, 0, &len);
44596
44597   ;
44598   return 0;
44599 }
44600 _ACEOF
44601 rm -f conftest.$ac_objext
44602 if { (ac_try="$ac_compile"
44603 case "(($ac_try" in
44604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44605   *) ac_try_echo=$ac_try;;
44606 esac
44607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44608   (eval "$ac_compile") 2>conftest.er1
44609   ac_status=$?
44610   grep -v '^ *+' conftest.er1 >conftest.err
44611   rm -f conftest.er1
44612   cat conftest.err >&5
44613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44614   (exit $ac_status); } && {
44615          test -z "$ac_cxx_werror_flag" ||
44616          test ! -s conftest.err
44617        } && test -s conftest.$ac_objext; then
44618   wx_cv_type_getsockname3=socklen_t
44619 else
44620   echo "$as_me: failed program was:" >&5
44621 sed 's/^/| /' conftest.$ac_ext >&5
44622
44623
44624                                                                                                                                                                         CFLAGS_OLD="$CFLAGS"
44625                         if test "$GCC" = yes ; then
44626                             CFLAGS="-Werror $CFLAGS"
44627                         fi
44628
44629                         cat >conftest.$ac_ext <<_ACEOF
44630 /* confdefs.h.  */
44631 _ACEOF
44632 cat confdefs.h >>conftest.$ac_ext
44633 cat >>conftest.$ac_ext <<_ACEOF
44634 /* end confdefs.h.  */
44635
44636                                 #include <sys/types.h>
44637                                 #include <sys/socket.h>
44638
44639 int
44640 main ()
44641 {
44642
44643                                 size_t len;
44644                                 getsockname(0, 0, &len);
44645
44646   ;
44647   return 0;
44648 }
44649 _ACEOF
44650 rm -f conftest.$ac_objext
44651 if { (ac_try="$ac_compile"
44652 case "(($ac_try" in
44653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44654   *) ac_try_echo=$ac_try;;
44655 esac
44656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44657   (eval "$ac_compile") 2>conftest.er1
44658   ac_status=$?
44659   grep -v '^ *+' conftest.er1 >conftest.err
44660   rm -f conftest.er1
44661   cat conftest.err >&5
44662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44663   (exit $ac_status); } && {
44664          test -z "$ac_cxx_werror_flag" ||
44665          test ! -s conftest.err
44666        } && test -s conftest.$ac_objext; then
44667   wx_cv_type_getsockname3=size_t
44668 else
44669   echo "$as_me: failed program was:" >&5
44670 sed 's/^/| /' conftest.$ac_ext >&5
44671
44672         cat >conftest.$ac_ext <<_ACEOF
44673 /* confdefs.h.  */
44674 _ACEOF
44675 cat confdefs.h >>conftest.$ac_ext
44676 cat >>conftest.$ac_ext <<_ACEOF
44677 /* end confdefs.h.  */
44678
44679                                     #include <sys/types.h>
44680                                     #include <sys/socket.h>
44681
44682 int
44683 main ()
44684 {
44685
44686                                     int len;
44687                                     getsockname(0, 0, &len);
44688
44689   ;
44690   return 0;
44691 }
44692 _ACEOF
44693 rm -f conftest.$ac_objext
44694 if { (ac_try="$ac_compile"
44695 case "(($ac_try" in
44696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44697   *) ac_try_echo=$ac_try;;
44698 esac
44699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44700   (eval "$ac_compile") 2>conftest.er1
44701   ac_status=$?
44702   grep -v '^ *+' conftest.er1 >conftest.err
44703   rm -f conftest.er1
44704   cat conftest.err >&5
44705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44706   (exit $ac_status); } && {
44707          test -z "$ac_cxx_werror_flag" ||
44708          test ! -s conftest.err
44709        } && test -s conftest.$ac_objext; then
44710   wx_cv_type_getsockname3=int
44711 else
44712   echo "$as_me: failed program was:" >&5
44713 sed 's/^/| /' conftest.$ac_ext >&5
44714
44715         wx_cv_type_getsockname3=unknown
44716
44717 fi
44718
44719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44720
44721 fi
44722
44723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44724
44725                         CFLAGS="$CFLAGS_OLD"
44726
44727
44728 fi
44729
44730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44731                 ac_ext=c
44732 ac_cpp='$CPP $CPPFLAGS'
44733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44736
44737
44738 fi
44739 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
44740 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6; }
44741
44742         if test "$wx_cv_type_getsockname3" = "unknown"; then
44743             wxUSE_SOCKETS=no
44744             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
44745 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
44746         else
44747             cat >>confdefs.h <<_ACEOF
44748 #define WX_SOCKLEN_T $wx_cv_type_getsockname3
44749 _ACEOF
44750
44751         fi
44752                 { echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
44753 echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6; }
44754 if test "${wx_cv_type_getsockopt5+set}" = set; then
44755   echo $ECHO_N "(cached) $ECHO_C" >&6
44756 else
44757
44758                                                                                                 ac_ext=cpp
44759 ac_cpp='$CXXCPP $CPPFLAGS'
44760 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44761 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44762 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44763
44764                 cat >conftest.$ac_ext <<_ACEOF
44765 /* confdefs.h.  */
44766 _ACEOF
44767 cat confdefs.h >>conftest.$ac_ext
44768 cat >>conftest.$ac_ext <<_ACEOF
44769 /* end confdefs.h.  */
44770
44771                         #include <sys/types.h>
44772                         #include <sys/socket.h>
44773
44774 int
44775 main ()
44776 {
44777
44778                         socklen_t len;
44779                         getsockopt(0, 0, 0, 0, &len);
44780
44781   ;
44782   return 0;
44783 }
44784 _ACEOF
44785 rm -f conftest.$ac_objext
44786 if { (ac_try="$ac_compile"
44787 case "(($ac_try" in
44788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44789   *) ac_try_echo=$ac_try;;
44790 esac
44791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44792   (eval "$ac_compile") 2>conftest.er1
44793   ac_status=$?
44794   grep -v '^ *+' conftest.er1 >conftest.err
44795   rm -f conftest.er1
44796   cat conftest.err >&5
44797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44798   (exit $ac_status); } && {
44799          test -z "$ac_cxx_werror_flag" ||
44800          test ! -s conftest.err
44801        } && test -s conftest.$ac_objext; then
44802   wx_cv_type_getsockopt5=socklen_t
44803 else
44804   echo "$as_me: failed program was:" >&5
44805 sed 's/^/| /' conftest.$ac_ext >&5
44806
44807
44808                         cat >conftest.$ac_ext <<_ACEOF
44809 /* confdefs.h.  */
44810 _ACEOF
44811 cat confdefs.h >>conftest.$ac_ext
44812 cat >>conftest.$ac_ext <<_ACEOF
44813 /* end confdefs.h.  */
44814
44815                                 #include <sys/types.h>
44816                                 #include <sys/socket.h>
44817
44818 int
44819 main ()
44820 {
44821
44822                                 size_t len;
44823                                 getsockopt(0, 0, 0, 0, &len);
44824
44825   ;
44826   return 0;
44827 }
44828 _ACEOF
44829 rm -f conftest.$ac_objext
44830 if { (ac_try="$ac_compile"
44831 case "(($ac_try" in
44832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44833   *) ac_try_echo=$ac_try;;
44834 esac
44835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44836   (eval "$ac_compile") 2>conftest.er1
44837   ac_status=$?
44838   grep -v '^ *+' conftest.er1 >conftest.err
44839   rm -f conftest.er1
44840   cat conftest.err >&5
44841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44842   (exit $ac_status); } && {
44843          test -z "$ac_cxx_werror_flag" ||
44844          test ! -s conftest.err
44845        } && test -s conftest.$ac_objext; then
44846   wx_cv_type_getsockopt5=size_t
44847 else
44848   echo "$as_me: failed program was:" >&5
44849 sed 's/^/| /' conftest.$ac_ext >&5
44850
44851         cat >conftest.$ac_ext <<_ACEOF
44852 /* confdefs.h.  */
44853 _ACEOF
44854 cat confdefs.h >>conftest.$ac_ext
44855 cat >>conftest.$ac_ext <<_ACEOF
44856 /* end confdefs.h.  */
44857
44858                                     #include <sys/types.h>
44859                                     #include <sys/socket.h>
44860
44861 int
44862 main ()
44863 {
44864
44865                                     int len;
44866                                     getsockopt(0, 0, 0, 0, &len);
44867
44868   ;
44869   return 0;
44870 }
44871 _ACEOF
44872 rm -f conftest.$ac_objext
44873 if { (ac_try="$ac_compile"
44874 case "(($ac_try" in
44875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44876   *) ac_try_echo=$ac_try;;
44877 esac
44878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44879   (eval "$ac_compile") 2>conftest.er1
44880   ac_status=$?
44881   grep -v '^ *+' conftest.er1 >conftest.err
44882   rm -f conftest.er1
44883   cat conftest.err >&5
44884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44885   (exit $ac_status); } && {
44886          test -z "$ac_cxx_werror_flag" ||
44887          test ! -s conftest.err
44888        } && test -s conftest.$ac_objext; then
44889   wx_cv_type_getsockopt5=int
44890 else
44891   echo "$as_me: failed program was:" >&5
44892 sed 's/^/| /' conftest.$ac_ext >&5
44893
44894         wx_cv_type_getsockopt5=unknown
44895
44896 fi
44897
44898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44899
44900 fi
44901
44902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44903
44904
44905 fi
44906
44907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44908                 ac_ext=c
44909 ac_cpp='$CPP $CPPFLAGS'
44910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44913
44914
44915 fi
44916 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
44917 echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6; }
44918
44919         if test "$wx_cv_type_getsockopt5" = "unknown"; then
44920             wxUSE_SOCKETS=no
44921             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
44922 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
44923         else
44924             cat >>confdefs.h <<_ACEOF
44925 #define SOCKOPTLEN_T $wx_cv_type_getsockopt5
44926 _ACEOF
44927
44928         fi
44929     fi
44930 fi
44931
44932 if test "$wxUSE_SOCKETS" = "yes" ; then
44933     if test "$wxUSE_IPV6" = "yes"; then
44934         { echo "$as_me:$LINENO: checking whether we have sockaddr_in6" >&5
44935 echo $ECHO_N "checking whether we have sockaddr_in6... $ECHO_C" >&6; }
44936 if test "${wx_cv_type_sockaddr_in6+set}" = set; then
44937   echo $ECHO_N "(cached) $ECHO_C" >&6
44938 else
44939
44940                 cat >conftest.$ac_ext <<_ACEOF
44941 /* confdefs.h.  */
44942 _ACEOF
44943 cat confdefs.h >>conftest.$ac_ext
44944 cat >>conftest.$ac_ext <<_ACEOF
44945 /* end confdefs.h.  */
44946
44947                         #include <sys/types.h>
44948                         #include <sys/socket.h>
44949                         #include <netinet/in.h>
44950
44951 int
44952 main ()
44953 {
44954
44955                         struct sockaddr_in6 sa6;
44956
44957   ;
44958   return 0;
44959 }
44960 _ACEOF
44961 rm -f conftest.$ac_objext
44962 if { (ac_try="$ac_compile"
44963 case "(($ac_try" in
44964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44965   *) ac_try_echo=$ac_try;;
44966 esac
44967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44968   (eval "$ac_compile") 2>conftest.er1
44969   ac_status=$?
44970   grep -v '^ *+' conftest.er1 >conftest.err
44971   rm -f conftest.er1
44972   cat conftest.err >&5
44973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44974   (exit $ac_status); } && {
44975          test -z "$ac_c_werror_flag" ||
44976          test ! -s conftest.err
44977        } && test -s conftest.$ac_objext; then
44978   wx_cv_type_sockaddr_in6=yes
44979 else
44980   echo "$as_me: failed program was:" >&5
44981 sed 's/^/| /' conftest.$ac_ext >&5
44982
44983         wx_cv_type_sockaddr_in6=no
44984
44985 fi
44986
44987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44988
44989
44990 fi
44991 { echo "$as_me:$LINENO: result: $wx_cv_type_sockaddr_in6" >&5
44992 echo "${ECHO_T}$wx_cv_type_sockaddr_in6" >&6; }
44993
44994         if test "$wx_cv_type_sockaddr_in6"="yes"; then
44995             cat >>confdefs.h <<\_ACEOF
44996 #define wxUSE_IPV6 1
44997 _ACEOF
44998
44999         else
45000             { echo "$as_me:$LINENO: WARNING: IPv6 support not available... disabled" >&5
45001 echo "$as_me: WARNING: IPv6 support not available... disabled" >&2;}
45002         fi
45003     fi
45004
45005     cat >>confdefs.h <<\_ACEOF
45006 #define wxUSE_SOCKETS 1
45007 _ACEOF
45008
45009     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
45010 fi
45011
45012 if test "$wxUSE_PROTOCOL" = "yes"; then
45013     if test "$wxUSE_SOCKETS" != "yes"; then
45014         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
45015 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
45016         wxUSE_PROTOCOL=no
45017     fi
45018 fi
45019
45020 if test "$wxUSE_PROTOCOL" = "yes"; then
45021     cat >>confdefs.h <<\_ACEOF
45022 #define wxUSE_PROTOCOL 1
45023 _ACEOF
45024
45025
45026     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
45027         cat >>confdefs.h <<\_ACEOF
45028 #define wxUSE_PROTOCOL_HTTP 1
45029 _ACEOF
45030
45031     fi
45032     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
45033         cat >>confdefs.h <<\_ACEOF
45034 #define wxUSE_PROTOCOL_FTP 1
45035 _ACEOF
45036
45037     fi
45038     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
45039         cat >>confdefs.h <<\_ACEOF
45040 #define wxUSE_PROTOCOL_FILE 1
45041 _ACEOF
45042
45043     fi
45044 else
45045     if test "$wxUSE_FS_INET" = "yes"; then
45046         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
45047 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
45048         wxUSE_FS_INET="no"
45049     fi
45050 fi
45051
45052 if test "$wxUSE_URL" = "yes"; then
45053     if test "$wxUSE_PROTOCOL" != "yes"; then
45054         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
45055 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
45056         wxUSE_URL=no
45057     fi
45058     if test "$wxUSE_URL" = "yes"; then
45059         cat >>confdefs.h <<\_ACEOF
45060 #define wxUSE_URL 1
45061 _ACEOF
45062
45063     fi
45064 fi
45065
45066 if test "$wxUSE_VARIANT" = "yes"; then
45067     cat >>confdefs.h <<\_ACEOF
45068 #define wxUSE_VARIANT 1
45069 _ACEOF
45070
45071 fi
45072
45073 if test "$wxUSE_FS_INET" = "yes"; then
45074   cat >>confdefs.h <<\_ACEOF
45075 #define wxUSE_FS_INET 1
45076 _ACEOF
45077
45078 fi
45079
45080
45081 if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
45082     wxUSE_JOYSTICK=no
45083
45084         if test "$TOOLKIT" = "MSW"; then
45085         wxUSE_JOYSTICK=yes
45086
45087         elif test "$TOOLKIT" = "OSX" -o "$TOOLKIT" = "COCOA"; then
45088         if test "$USE_DARWIN" = 1; then
45089                         { echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
45090 echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6; }
45091             ac_ext=cpp
45092 ac_cpp='$CXXCPP $CPPFLAGS'
45093 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45094 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45095 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45096
45097             cat >conftest.$ac_ext <<_ACEOF
45098 /* confdefs.h.  */
45099 _ACEOF
45100 cat confdefs.h >>conftest.$ac_ext
45101 cat >>conftest.$ac_ext <<_ACEOF
45102 /* end confdefs.h.  */
45103  #include <IOKit/hid/IOHIDLib.h>
45104 int
45105 main ()
45106 {
45107  IOHIDQueueInterface *qi = NULL;
45108                               IOHIDCallbackFunction cb = NULL;
45109                               qi->setEventCallout(NULL, cb, NULL, NULL);
45110   ;
45111   return 0;
45112 }
45113 _ACEOF
45114 rm -f conftest.$ac_objext
45115 if { (ac_try="$ac_compile"
45116 case "(($ac_try" in
45117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45118   *) ac_try_echo=$ac_try;;
45119 esac
45120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45121   (eval "$ac_compile") 2>conftest.er1
45122   ac_status=$?
45123   grep -v '^ *+' conftest.er1 >conftest.err
45124   rm -f conftest.er1
45125   cat conftest.err >&5
45126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45127   (exit $ac_status); } && {
45128          test -z "$ac_cxx_werror_flag" ||
45129          test ! -s conftest.err
45130        } && test -s conftest.$ac_objext; then
45131    wxUSE_JOYSTICK=yes
45132
45133 else
45134   echo "$as_me: failed program was:" >&5
45135 sed 's/^/| /' conftest.$ac_ext >&5
45136
45137
45138 fi
45139
45140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45141             ac_ext=c
45142 ac_cpp='$CPP $CPPFLAGS'
45143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45146
45147             { echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
45148 echo "${ECHO_T}$wxUSE_JOYSTICK" >&6; }
45149         fi
45150
45151         else
45152                 if test "$wxUSE_MGL" != 1; then
45153
45154 for ac_header in linux/joystick.h
45155 do
45156 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45157 { echo "$as_me:$LINENO: checking for $ac_header" >&5
45158 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
45159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45160   echo $ECHO_N "(cached) $ECHO_C" >&6
45161 else
45162   cat >conftest.$ac_ext <<_ACEOF
45163 /* confdefs.h.  */
45164 _ACEOF
45165 cat confdefs.h >>conftest.$ac_ext
45166 cat >>conftest.$ac_ext <<_ACEOF
45167 /* end confdefs.h.  */
45168 $ac_includes_default
45169
45170 #include <$ac_header>
45171 _ACEOF
45172 rm -f conftest.$ac_objext
45173 if { (ac_try="$ac_compile"
45174 case "(($ac_try" in
45175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45176   *) ac_try_echo=$ac_try;;
45177 esac
45178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45179   (eval "$ac_compile") 2>conftest.er1
45180   ac_status=$?
45181   grep -v '^ *+' conftest.er1 >conftest.err
45182   rm -f conftest.er1
45183   cat conftest.err >&5
45184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45185   (exit $ac_status); } && {
45186          test -z "$ac_c_werror_flag" ||
45187          test ! -s conftest.err
45188        } && test -s conftest.$ac_objext; then
45189   eval "$as_ac_Header=yes"
45190 else
45191   echo "$as_me: failed program was:" >&5
45192 sed 's/^/| /' conftest.$ac_ext >&5
45193
45194         eval "$as_ac_Header=no"
45195 fi
45196
45197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45198 fi
45199 ac_res=`eval echo '${'$as_ac_Header'}'`
45200                { echo "$as_me:$LINENO: result: $ac_res" >&5
45201 echo "${ECHO_T}$ac_res" >&6; }
45202 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45203   cat >>confdefs.h <<_ACEOF
45204 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45205 _ACEOF
45206  wxUSE_JOYSTICK=yes
45207 fi
45208
45209 done
45210
45211         fi
45212     fi
45213
45214     if test "$wxUSE_JOYSTICK" = "yes"; then
45215         cat >>confdefs.h <<\_ACEOF
45216 #define wxUSE_JOYSTICK 1
45217 _ACEOF
45218
45219         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
45220     else
45221         { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
45222 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
45223     fi
45224 fi
45225
45226
45227
45228 if test "$wxUSE_FONTENUM" = "yes" ; then
45229   cat >>confdefs.h <<\_ACEOF
45230 #define wxUSE_FONTENUM 1
45231 _ACEOF
45232
45233 fi
45234
45235 if test "$wxUSE_FONTMAP" = "yes" ; then
45236   cat >>confdefs.h <<\_ACEOF
45237 #define wxUSE_FONTMAP 1
45238 _ACEOF
45239
45240 fi
45241
45242 if test "$wxUSE_UNICODE" = "yes" ; then
45243   cat >>confdefs.h <<\_ACEOF
45244 #define wxUSE_UNICODE 1
45245 _ACEOF
45246
45247
45248   if test "$USE_WIN32" != 1; then
45249       wxUSE_UNICODE_MSLU=no
45250   fi
45251
45252   if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
45253         { echo "$as_me:$LINENO: checking for main in -lunicows" >&5
45254 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6; }
45255 if test "${ac_cv_lib_unicows_main+set}" = set; then
45256   echo $ECHO_N "(cached) $ECHO_C" >&6
45257 else
45258   ac_check_lib_save_LIBS=$LIBS
45259 LIBS="-lunicows  $LIBS"
45260 cat >conftest.$ac_ext <<_ACEOF
45261 /* confdefs.h.  */
45262 _ACEOF
45263 cat confdefs.h >>conftest.$ac_ext
45264 cat >>conftest.$ac_ext <<_ACEOF
45265 /* end confdefs.h.  */
45266
45267
45268 int
45269 main ()
45270 {
45271 return main ();
45272   ;
45273   return 0;
45274 }
45275 _ACEOF
45276 rm -f conftest.$ac_objext conftest$ac_exeext
45277 if { (ac_try="$ac_link"
45278 case "(($ac_try" in
45279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45280   *) ac_try_echo=$ac_try;;
45281 esac
45282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45283   (eval "$ac_link") 2>conftest.er1
45284   ac_status=$?
45285   grep -v '^ *+' conftest.er1 >conftest.err
45286   rm -f conftest.er1
45287   cat conftest.err >&5
45288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45289   (exit $ac_status); } && {
45290          test -z "$ac_c_werror_flag" ||
45291          test ! -s conftest.err
45292        } && test -s conftest$ac_exeext &&
45293        $as_test_x conftest$ac_exeext; then
45294   ac_cv_lib_unicows_main=yes
45295 else
45296   echo "$as_me: failed program was:" >&5
45297 sed 's/^/| /' conftest.$ac_ext >&5
45298
45299         ac_cv_lib_unicows_main=no
45300 fi
45301
45302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45303       conftest$ac_exeext conftest.$ac_ext
45304 LIBS=$ac_check_lib_save_LIBS
45305 fi
45306 { echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
45307 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6; }
45308 if test $ac_cv_lib_unicows_main = yes; then
45309
45310                 cat >>confdefs.h <<\_ACEOF
45311 #define wxUSE_UNICODE_MSLU 1
45312 _ACEOF
45313
45314
45315 else
45316
45317                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
45318                              Applications will only run on Windows NT/2000/XP!" >&5
45319 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
45320                              Applications will only run on Windows NT/2000/XP!" >&2;}
45321                 wxUSE_UNICODE_MSLU=no
45322
45323 fi
45324
45325     fi
45326 fi
45327
45328 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "yes"; then
45329     cat >>confdefs.h <<\_ACEOF
45330 #define wxUSE_UNICODE_UTF8 1
45331 _ACEOF
45332
45333
45334     if test "$wxUSE_UNICODE_UTF8_LOCALE" = "yes"; then
45335         cat >>confdefs.h <<\_ACEOF
45336 #define wxUSE_UTF8_LOCALE_ONLY 1
45337 _ACEOF
45338
45339     fi
45340 fi
45341
45342
45343 if test "$wxUSE_CONSTRAINTS" = "yes"; then
45344     cat >>confdefs.h <<\_ACEOF
45345 #define wxUSE_CONSTRAINTS 1
45346 _ACEOF
45347
45348     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
45349 fi
45350
45351 if test "$wxUSE_MDI" = "yes"; then
45352     cat >>confdefs.h <<\_ACEOF
45353 #define wxUSE_MDI 1
45354 _ACEOF
45355
45356
45357     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
45358         cat >>confdefs.h <<\_ACEOF
45359 #define wxUSE_MDI_ARCHITECTURE 1
45360 _ACEOF
45361
45362         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
45363     fi
45364 fi
45365
45366 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
45367     cat >>confdefs.h <<\_ACEOF
45368 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
45369 _ACEOF
45370
45371     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
45372 fi
45373
45374 if test "$wxUSE_HELP" = "yes"; then
45375     cat >>confdefs.h <<\_ACEOF
45376 #define wxUSE_HELP 1
45377 _ACEOF
45378
45379     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
45380
45381     if test "$wxUSE_MSW" = 1; then
45382       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
45383         cat >>confdefs.h <<\_ACEOF
45384 #define wxUSE_MS_HTML_HELP 1
45385 _ACEOF
45386
45387       fi
45388     fi
45389
45390     if test "$wxUSE_WXHTML_HELP" = "yes"; then
45391       if test "$wxUSE_HTML" = "yes"; then
45392         cat >>confdefs.h <<\_ACEOF
45393 #define wxUSE_WXHTML_HELP 1
45394 _ACEOF
45395
45396       else
45397         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
45398 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
45399         wxUSE_WXHTML_HELP=no
45400       fi
45401     fi
45402 fi
45403
45404 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
45405     cat >>confdefs.h <<\_ACEOF
45406 #define wxUSE_PRINTING_ARCHITECTURE 1
45407 _ACEOF
45408
45409     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
45410 fi
45411
45412 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
45413   cat >>confdefs.h <<\_ACEOF
45414 #define wxUSE_POSTSCRIPT 1
45415 _ACEOF
45416
45417 fi
45418
45419 cat >>confdefs.h <<\_ACEOF
45420 #define wxUSE_AFM_FOR_POSTSCRIPT 1
45421 _ACEOF
45422
45423
45424 if test "$wxUSE_SVG" = "yes"; then
45425     cat >>confdefs.h <<\_ACEOF
45426 #define wxUSE_SVG 1
45427 _ACEOF
45428
45429 fi
45430
45431
45432 if test "$wxUSE_METAFILE" = "yes"; then
45433     if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
45434         { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
45435 echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
45436         wxUSE_METAFILE=no
45437     fi
45438 fi
45439
45440
45441 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
45442                           -o "$wxUSE_CLIPBOARD"     = "yes" \
45443                           -o "$wxUSE_OLE"     = "yes" \
45444                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
45445     { echo "$as_me:$LINENO: checking for ole2.h" >&5
45446 echo $ECHO_N "checking for ole2.h... $ECHO_C" >&6; }
45447 if test "${ac_cv_header_ole2_h+set}" = set; then
45448   echo $ECHO_N "(cached) $ECHO_C" >&6
45449 else
45450   cat >conftest.$ac_ext <<_ACEOF
45451 /* confdefs.h.  */
45452 _ACEOF
45453 cat confdefs.h >>conftest.$ac_ext
45454 cat >>conftest.$ac_ext <<_ACEOF
45455 /* end confdefs.h.  */
45456
45457
45458 #include <ole2.h>
45459 _ACEOF
45460 rm -f conftest.$ac_objext
45461 if { (ac_try="$ac_compile"
45462 case "(($ac_try" in
45463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45464   *) ac_try_echo=$ac_try;;
45465 esac
45466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45467   (eval "$ac_compile") 2>conftest.er1
45468   ac_status=$?
45469   grep -v '^ *+' conftest.er1 >conftest.err
45470   rm -f conftest.er1
45471   cat conftest.err >&5
45472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45473   (exit $ac_status); } && {
45474          test -z "$ac_c_werror_flag" ||
45475          test ! -s conftest.err
45476        } && test -s conftest.$ac_objext; then
45477   ac_cv_header_ole2_h=yes
45478 else
45479   echo "$as_me: failed program was:" >&5
45480 sed 's/^/| /' conftest.$ac_ext >&5
45481
45482         ac_cv_header_ole2_h=no
45483 fi
45484
45485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45486 fi
45487 { echo "$as_me:$LINENO: result: $ac_cv_header_ole2_h" >&5
45488 echo "${ECHO_T}$ac_cv_header_ole2_h" >&6; }
45489
45490
45491
45492     if test "$ac_cv_header_ole2_h" = "yes" ; then
45493         if test "$GCC" = yes ; then
45494             { echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
45495 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6; }
45496             cat >conftest.$ac_ext <<_ACEOF
45497 /* confdefs.h.  */
45498 _ACEOF
45499 cat confdefs.h >>conftest.$ac_ext
45500 cat >>conftest.$ac_ext <<_ACEOF
45501 /* end confdefs.h.  */
45502 #include <windows.h>
45503                             #include <ole2.h>
45504 int
45505 main ()
45506 {
45507
45508   ;
45509   return 0;
45510 }
45511 _ACEOF
45512 rm -f conftest.$ac_objext
45513 if { (ac_try="$ac_compile"
45514 case "(($ac_try" in
45515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45516   *) ac_try_echo=$ac_try;;
45517 esac
45518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45519   (eval "$ac_compile") 2>conftest.er1
45520   ac_status=$?
45521   grep -v '^ *+' conftest.er1 >conftest.err
45522   rm -f conftest.er1
45523   cat conftest.err >&5
45524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45525   (exit $ac_status); } && {
45526          test -z "$ac_c_werror_flag" ||
45527          test ! -s conftest.err
45528        } && test -s conftest.$ac_objext; then
45529   { echo "$as_me:$LINENO: result: no" >&5
45530 echo "${ECHO_T}no" >&6; }
45531 else
45532   echo "$as_me: failed program was:" >&5
45533 sed 's/^/| /' conftest.$ac_ext >&5
45534
45535         { echo "$as_me:$LINENO: result: yes" >&5
45536 echo "${ECHO_T}yes" >&6; }
45537                             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
45538 fi
45539
45540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45541             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
45542             if test "$wxUSE_OLE" = "yes" ; then
45543                 cat >>confdefs.h <<\_ACEOF
45544 #define wxUSE_OLE 1
45545 _ACEOF
45546
45547                 cat >>confdefs.h <<\_ACEOF
45548 #define wxUSE_OLE_AUTOMATION 1
45549 _ACEOF
45550
45551                 cat >>confdefs.h <<\_ACEOF
45552 #define wxUSE_ACTIVEX 1
45553 _ACEOF
45554
45555                 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
45556             fi
45557         fi
45558
45559                 if test "$wxUSE_DATAOBJ" = "yes" ; then
45560             cat >>confdefs.h <<\_ACEOF
45561 #define wxUSE_DATAOBJ 1
45562 _ACEOF
45563
45564         fi
45565     else
45566         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
45567 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
45568
45569         wxUSE_CLIPBOARD=no
45570         wxUSE_DRAG_AND_DROP=no
45571         wxUSE_DATAOBJ=no
45572         wxUSE_OLE=no
45573     fi
45574
45575     if test "$wxUSE_METAFILE" = "yes"; then
45576         cat >>confdefs.h <<\_ACEOF
45577 #define wxUSE_METAFILE 1
45578 _ACEOF
45579
45580
45581                 cat >>confdefs.h <<\_ACEOF
45582 #define wxUSE_ENH_METAFILE 1
45583 _ACEOF
45584
45585     fi
45586 fi
45587
45588 if test "$wxUSE_IPC" = "yes"; then
45589     if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
45590         { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
45591 echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
45592         wxUSE_IPC=no
45593     fi
45594
45595     if test "$wxUSE_IPC" = "yes"; then
45596         cat >>confdefs.h <<\_ACEOF
45597 #define wxUSE_IPC 1
45598 _ACEOF
45599
45600         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
45601     fi
45602 fi
45603
45604 if test "$wxUSE_DATAOBJ" = "yes"; then
45605     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
45606         { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&5
45607 echo "$as_me: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&2;}
45608         wxUSE_DATAOBJ=no
45609     else
45610         cat >>confdefs.h <<\_ACEOF
45611 #define wxUSE_DATAOBJ 1
45612 _ACEOF
45613
45614     fi
45615 else
45616     { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
45617 echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
45618     wxUSE_CLIPBOARD=no
45619     wxUSE_DRAG_AND_DROP=no
45620 fi
45621
45622 if test "$wxUSE_CLIPBOARD" = "yes"; then
45623     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
45624         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&5
45625 echo "$as_me: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&2;}
45626         wxUSE_CLIPBOARD=no
45627     fi
45628
45629     if test "$wxUSE_CLIPBOARD" = "yes"; then
45630         cat >>confdefs.h <<\_ACEOF
45631 #define wxUSE_CLIPBOARD 1
45632 _ACEOF
45633
45634     fi
45635 fi
45636
45637 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
45638     if test "$wxUSE_GTK" = 1; then
45639         if test "$WXGTK12" != 1; then
45640             { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
45641 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
45642             wxUSE_DRAG_AND_DROP=no
45643         fi
45644     fi
45645
45646     if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_MGL" = 1 -o \
45647             "$wxUSE_DFB" = 1; then
45648         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&5
45649 echo "$as_me: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&2;}
45650         wxUSE_DRAG_AND_DROP=no
45651     fi
45652
45653     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
45654         cat >>confdefs.h <<\_ACEOF
45655 #define wxUSE_DRAG_AND_DROP 1
45656 _ACEOF
45657
45658     fi
45659
45660 fi
45661
45662 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
45663     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
45664 fi
45665
45666 if test "$wxUSE_CLIPBOARD" = "yes"; then
45667     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS clipboard"
45668 fi
45669
45670 if test "$wxUSE_SPLINES" = "yes" ; then
45671   cat >>confdefs.h <<\_ACEOF
45672 #define wxUSE_SPLINES 1
45673 _ACEOF
45674
45675 fi
45676
45677 if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
45678   cat >>confdefs.h <<\_ACEOF
45679 #define wxUSE_MOUSEWHEEL 1
45680 _ACEOF
45681
45682 fi
45683
45684
45685 USES_CONTROLS=0
45686 if test "$wxUSE_CONTROLS" = "yes"; then
45687   USES_CONTROLS=1
45688 fi
45689
45690 if test "$wxUSE_ACCEL" = "yes"; then
45691   cat >>confdefs.h <<\_ACEOF
45692 #define wxUSE_ACCEL 1
45693 _ACEOF
45694
45695   USES_CONTROLS=1
45696 fi
45697
45698 if test "$wxUSE_ANIMATIONCTRL" = "yes"; then
45699   cat >>confdefs.h <<\_ACEOF
45700 #define wxUSE_ANIMATIONCTRL 1
45701 _ACEOF
45702
45703   USES_CONTROLS=1
45704   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate"
45705 fi
45706
45707 if test "$wxUSE_BUTTON" = "yes"; then
45708   cat >>confdefs.h <<\_ACEOF
45709 #define wxUSE_BUTTON 1
45710 _ACEOF
45711
45712   USES_CONTROLS=1
45713 fi
45714
45715 if test "$wxUSE_BMPBUTTON" = "yes"; then
45716   cat >>confdefs.h <<\_ACEOF
45717 #define wxUSE_BMPBUTTON 1
45718 _ACEOF
45719
45720   USES_CONTROLS=1
45721 fi
45722
45723 if test "$wxUSE_CALCTRL" = "yes"; then
45724   cat >>confdefs.h <<\_ACEOF
45725 #define wxUSE_CALENDARCTRL 1
45726 _ACEOF
45727
45728   USES_CONTROLS=1
45729   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
45730 fi
45731
45732 if test "$wxUSE_CARET" = "yes"; then
45733   cat >>confdefs.h <<\_ACEOF
45734 #define wxUSE_CARET 1
45735 _ACEOF
45736
45737   USES_CONTROLS=1
45738   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
45739 fi
45740
45741 if test "$wxUSE_COLLPANE" = "yes"; then
45742     cat >>confdefs.h <<\_ACEOF
45743 #define wxUSE_COLLPANE 1
45744 _ACEOF
45745
45746     USES_CONTROLS=1
45747     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS collpane"
45748 fi
45749
45750 if test "$wxUSE_COMBOBOX" = "yes"; then
45751   cat >>confdefs.h <<\_ACEOF
45752 #define wxUSE_COMBOBOX 1
45753 _ACEOF
45754
45755   USES_CONTROLS=1
45756 fi
45757
45758 if test "$wxUSE_COMBOCTRL" = "yes"; then
45759   cat >>confdefs.h <<\_ACEOF
45760 #define wxUSE_COMBOCTRL 1
45761 _ACEOF
45762
45763   USES_CONTROLS=1
45764 fi
45765
45766 if test "$wxUSE_CHOICE" = "yes"; then
45767   cat >>confdefs.h <<\_ACEOF
45768 #define wxUSE_CHOICE 1
45769 _ACEOF
45770
45771   USES_CONTROLS=1
45772 fi
45773
45774 if test "$wxUSE_CHOICEBOOK" = "yes"; then
45775     cat >>confdefs.h <<\_ACEOF
45776 #define wxUSE_CHOICEBOOK 1
45777 _ACEOF
45778
45779     USES_CONTROLS=1
45780 fi
45781
45782 if test "$wxUSE_CHECKBOX" = "yes"; then
45783   cat >>confdefs.h <<\_ACEOF
45784 #define wxUSE_CHECKBOX 1
45785 _ACEOF
45786
45787   USES_CONTROLS=1
45788 fi
45789
45790 if test "$wxUSE_CHECKLST" = "yes"; then
45791   cat >>confdefs.h <<\_ACEOF
45792 #define wxUSE_CHECKLISTBOX 1
45793 _ACEOF
45794
45795   USES_CONTROLS=1
45796 fi
45797
45798 if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
45799   cat >>confdefs.h <<\_ACEOF
45800 #define wxUSE_COLOURPICKERCTRL 1
45801 _ACEOF
45802
45803   USES_CONTROLS=1
45804 fi
45805
45806 if test "$wxUSE_DATEPICKCTRL" = "yes"; then
45807   cat >>confdefs.h <<\_ACEOF
45808 #define wxUSE_DATEPICKCTRL 1
45809 _ACEOF
45810
45811   USES_CONTROLS=1
45812 fi
45813
45814 if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
45815   cat >>confdefs.h <<\_ACEOF
45816 #define wxUSE_DIRPICKERCTRL 1
45817 _ACEOF
45818
45819   USES_CONTROLS=1
45820 fi
45821
45822 if test "$wxUSE_FILECTRL" = "yes"; then
45823   cat >>confdefs.h <<\_ACEOF
45824 #define wxUSE_FILECTRL 1
45825 _ACEOF
45826
45827   USES_CONTROLS=1
45828 fi
45829
45830 if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
45831   cat >>confdefs.h <<\_ACEOF
45832 #define wxUSE_FILEPICKERCTRL 1
45833 _ACEOF
45834
45835   USES_CONTROLS=1
45836 fi
45837
45838 if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
45839   cat >>confdefs.h <<\_ACEOF
45840 #define wxUSE_FONTPICKERCTRL 1
45841 _ACEOF
45842
45843   USES_CONTROLS=1
45844 fi
45845
45846 if test "$wxUSE_DISPLAY" = "yes"; then
45847     if test "$wxUSE_DFB" = 1 -o "$wxUSE_MGL" = 1; then
45848         { echo "$as_me:$LINENO: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&5
45849 echo "$as_me: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&2;}
45850         wxUSE_DISPLAY=no
45851     else
45852         cat >>confdefs.h <<\_ACEOF
45853 #define wxUSE_DISPLAY 1
45854 _ACEOF
45855
45856         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
45857     fi
45858 fi
45859
45860 if test "$wxUSE_DETECT_SM" = "yes"; then
45861     cat >>confdefs.h <<\_ACEOF
45862 #define wxUSE_DETECT_SM 1
45863 _ACEOF
45864
45865 fi
45866
45867 if test "$wxUSE_GAUGE" = "yes"; then
45868   cat >>confdefs.h <<\_ACEOF
45869 #define wxUSE_GAUGE 1
45870 _ACEOF
45871
45872   USES_CONTROLS=1
45873 fi
45874
45875 if test "$wxUSE_GRID" = "yes"; then
45876   cat >>confdefs.h <<\_ACEOF
45877 #define wxUSE_GRID 1
45878 _ACEOF
45879
45880   USES_CONTROLS=1
45881   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
45882 fi
45883
45884 if test "$wxUSE_HEADERCTRL" = "yes"; then
45885   cat >>confdefs.h <<\_ACEOF
45886 #define wxUSE_HEADERCTRL 1
45887 _ACEOF
45888
45889   USES_CONTROLS=1
45890 fi
45891
45892 if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
45893   cat >>confdefs.h <<\_ACEOF
45894 #define wxUSE_HYPERLINKCTRL 1
45895 _ACEOF
45896
45897   USES_CONTROLS=1
45898 fi
45899
45900 if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
45901   cat >>confdefs.h <<\_ACEOF
45902 #define wxUSE_BITMAPCOMBOBOX 1
45903 _ACEOF
45904
45905   USES_CONTROLS=1
45906 fi
45907
45908 if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
45909   cat >>confdefs.h <<\_ACEOF
45910 #define wxUSE_DATAVIEWCTRL 1
45911 _ACEOF
45912
45913   USES_CONTROLS=1
45914   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
45915 fi
45916
45917 if test "$wxUSE_IMAGLIST" = "yes"; then
45918     cat >>confdefs.h <<\_ACEOF
45919 #define wxUSE_IMAGLIST 1
45920 _ACEOF
45921
45922 fi
45923
45924 if test "$wxUSE_LISTBOOK" = "yes"; then
45925     cat >>confdefs.h <<\_ACEOF
45926 #define wxUSE_LISTBOOK 1
45927 _ACEOF
45928
45929     USES_CONTROLS=1
45930 fi
45931
45932 if test "$wxUSE_LISTBOX" = "yes"; then
45933     cat >>confdefs.h <<\_ACEOF
45934 #define wxUSE_LISTBOX 1
45935 _ACEOF
45936
45937     USES_CONTROLS=1
45938 fi
45939
45940 if test "$wxUSE_LISTCTRL" = "yes"; then
45941     if test "$wxUSE_IMAGLIST" = "yes"; then
45942         cat >>confdefs.h <<\_ACEOF
45943 #define wxUSE_LISTCTRL 1
45944 _ACEOF
45945
45946         USES_CONTROLS=1
45947         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
45948     else
45949         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
45950 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
45951     fi
45952 fi
45953
45954 if test "$wxUSE_EDITABLELISTBOX" = "yes"; then
45955     cat >>confdefs.h <<\_ACEOF
45956 #define wxUSE_EDITABLELISTBOX 1
45957 _ACEOF
45958
45959     USES_CONTROLS=1
45960 fi
45961
45962 if test "$wxUSE_NOTEBOOK" = "yes"; then
45963     cat >>confdefs.h <<\_ACEOF
45964 #define wxUSE_NOTEBOOK 1
45965 _ACEOF
45966
45967     USES_CONTROLS=1
45968     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
45969 fi
45970
45971 if test "$wxUSE_NOTIFICATION_MESSAGE" = "yes"; then
45972     cat >>confdefs.h <<\_ACEOF
45973 #define wxUSE_NOTIFICATION_MESSAGE 1
45974 _ACEOF
45975
45976 fi
45977
45978 if test "$wxUSE_ODCOMBOBOX" = "yes"; then
45979   cat >>confdefs.h <<\_ACEOF
45980 #define wxUSE_ODCOMBOBOX 1
45981 _ACEOF
45982
45983   USES_CONTROLS=1
45984   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
45985 fi
45986
45987 if test "$wxUSE_RADIOBOX" = "yes"; then
45988     cat >>confdefs.h <<\_ACEOF
45989 #define wxUSE_RADIOBOX 1
45990 _ACEOF
45991
45992     USES_CONTROLS=1
45993 fi
45994
45995 if test "$wxUSE_RADIOBTN" = "yes"; then
45996     cat >>confdefs.h <<\_ACEOF
45997 #define wxUSE_RADIOBTN 1
45998 _ACEOF
45999
46000     USES_CONTROLS=1
46001 fi
46002
46003 if test "$wxUSE_REARRANGECTRL" = "yes"; then
46004     cat >>confdefs.h <<\_ACEOF
46005 #define wxUSE_REARRANGECTRL 1
46006 _ACEOF
46007
46008 fi
46009
46010 if test "$wxUSE_SASH" = "yes"; then
46011     cat >>confdefs.h <<\_ACEOF
46012 #define wxUSE_SASH 1
46013 _ACEOF
46014
46015     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
46016 fi
46017
46018 if test "$wxUSE_SCROLLBAR" = "yes"; then
46019     cat >>confdefs.h <<\_ACEOF
46020 #define wxUSE_SCROLLBAR 1
46021 _ACEOF
46022
46023     USES_CONTROLS=1
46024     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll"
46025 fi
46026
46027 if test "$wxUSE_SEARCHCTRL" = "yes"; then
46028     cat >>confdefs.h <<\_ACEOF
46029 #define wxUSE_SEARCHCTRL 1
46030 _ACEOF
46031
46032     USES_CONTROLS=1
46033 fi
46034
46035 if test "$wxUSE_SLIDER" = "yes"; then
46036     cat >>confdefs.h <<\_ACEOF
46037 #define wxUSE_SLIDER 1
46038 _ACEOF
46039
46040     USES_CONTROLS=1
46041 fi
46042
46043 if test "$wxUSE_SPINBTN" = "yes"; then
46044     cat >>confdefs.h <<\_ACEOF
46045 #define wxUSE_SPINBTN 1
46046 _ACEOF
46047
46048     USES_CONTROLS=1
46049 fi
46050
46051 if test "$wxUSE_SPINCTRL" = "yes"; then
46052     cat >>confdefs.h <<\_ACEOF
46053 #define wxUSE_SPINCTRL 1
46054 _ACEOF
46055
46056     USES_CONTROLS=1
46057 fi
46058
46059 if test "$wxUSE_SPLITTER" = "yes"; then
46060     cat >>confdefs.h <<\_ACEOF
46061 #define wxUSE_SPLITTER 1
46062 _ACEOF
46063
46064     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
46065 fi
46066
46067 if test "$wxUSE_STATBMP" = "yes"; then
46068     cat >>confdefs.h <<\_ACEOF
46069 #define wxUSE_STATBMP 1
46070 _ACEOF
46071
46072     USES_CONTROLS=1
46073 fi
46074
46075 if test "$wxUSE_STATBOX" = "yes"; then
46076     cat >>confdefs.h <<\_ACEOF
46077 #define wxUSE_STATBOX 1
46078 _ACEOF
46079
46080     USES_CONTROLS=1
46081 fi
46082
46083 if test "$wxUSE_STATTEXT" = "yes"; then
46084     cat >>confdefs.h <<\_ACEOF
46085 #define wxUSE_STATTEXT 1
46086 _ACEOF
46087
46088     USES_CONTROLS=1
46089 fi
46090
46091 if test "$wxUSE_STATLINE" = "yes"; then
46092     cat >>confdefs.h <<\_ACEOF
46093 #define wxUSE_STATLINE 1
46094 _ACEOF
46095
46096     USES_CONTROLS=1
46097 fi
46098
46099 if test "$wxUSE_STATUSBAR" = "yes"; then
46100         cat >>confdefs.h <<\_ACEOF
46101 #define wxUSE_NATIVE_STATUSBAR 1
46102 _ACEOF
46103
46104     cat >>confdefs.h <<\_ACEOF
46105 #define wxUSE_STATUSBAR 1
46106 _ACEOF
46107
46108     USES_CONTROLS=1
46109
46110     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
46111 fi
46112
46113 if test "$wxUSE_TEXTCTRL" = "yes"; then
46114     cat >>confdefs.h <<\_ACEOF
46115 #define wxUSE_TEXTCTRL 1
46116 _ACEOF
46117
46118     USES_CONTROLS=1
46119     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
46120
46121             cat >>confdefs.h <<\_ACEOF
46122 #define wxUSE_RICHEDIT 1
46123 _ACEOF
46124
46125     cat >>confdefs.h <<\_ACEOF
46126 #define wxUSE_RICHEDIT2 1
46127 _ACEOF
46128
46129 fi
46130
46131 if test "$wxUSE_TOGGLEBTN" = "yes"; then
46132     if test "$wxUSE_COCOA" = 1 ; then
46133         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
46134 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
46135         wxUSE_TOGGLEBTN=no
46136     fi
46137
46138     if test "$wxUSE_TOGGLEBTN" = "yes"; then
46139         cat >>confdefs.h <<\_ACEOF
46140 #define wxUSE_TOGGLEBTN 1
46141 _ACEOF
46142
46143         USES_CONTROLS=1
46144     fi
46145 fi
46146
46147 if test "$wxUSE_TOOLBAR" = "yes"; then
46148     cat >>confdefs.h <<\_ACEOF
46149 #define wxUSE_TOOLBAR 1
46150 _ACEOF
46151
46152     USES_CONTROLS=1
46153
46154     if test "$wxUSE_UNIVERSAL" = "yes"; then
46155         wxUSE_TOOLBAR_NATIVE="no"
46156     else
46157         wxUSE_TOOLBAR_NATIVE="yes"
46158         cat >>confdefs.h <<\_ACEOF
46159 #define wxUSE_TOOLBAR_NATIVE 1
46160 _ACEOF
46161
46162     fi
46163
46164     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
46165 fi
46166
46167 if test "$wxUSE_TOOLTIPS" = "yes"; then
46168     if test "$wxUSE_MOTIF" = 1; then
46169         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
46170 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
46171     else
46172         if test "$wxUSE_UNIVERSAL" = "yes"; then
46173             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
46174 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
46175         else
46176             cat >>confdefs.h <<\_ACEOF
46177 #define wxUSE_TOOLTIPS 1
46178 _ACEOF
46179
46180         fi
46181     fi
46182 fi
46183
46184 if test "$wxUSE_TREEBOOK" = "yes"; then
46185     cat >>confdefs.h <<\_ACEOF
46186 #define wxUSE_TREEBOOK 1
46187 _ACEOF
46188
46189     USES_CONTROLS=1
46190 fi
46191
46192 if test "$wxUSE_TOOLBOOK" = "yes"; then
46193     cat >>confdefs.h <<\_ACEOF
46194 #define wxUSE_TOOLBOOK 1
46195 _ACEOF
46196
46197     USES_CONTROLS=1
46198 fi
46199
46200 if test "$wxUSE_TREECTRL" = "yes"; then
46201     if test "$wxUSE_IMAGLIST" = "yes"; then
46202         cat >>confdefs.h <<\_ACEOF
46203 #define wxUSE_TREECTRL 1
46204 _ACEOF
46205
46206         USES_CONTROLS=1
46207         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
46208     else
46209         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
46210 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
46211     fi
46212 fi
46213
46214 if test "$wxUSE_POPUPWIN" = "yes"; then
46215     if test "$wxUSE_COCOA" = 1 ; then
46216         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
46217 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
46218     else
46219         if test "$wxUSE_PM" = 1; then
46220             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
46221 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
46222         else
46223             cat >>confdefs.h <<\_ACEOF
46224 #define wxUSE_POPUPWIN 1
46225 _ACEOF
46226
46227             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
46228
46229             USES_CONTROLS=1
46230         fi
46231     fi
46232 fi
46233
46234 if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
46235     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 -o "$wxUSE_MGL" = 1; then
46236         { echo "$as_me:$LINENO: WARNING: Dialup manager not supported on this platform... disabled" >&5
46237 echo "$as_me: WARNING: Dialup manager not supported on this platform... disabled" >&2;}
46238     else
46239         cat >>confdefs.h <<\_ACEOF
46240 #define wxUSE_DIALUP_MANAGER 1
46241 _ACEOF
46242
46243         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
46244     fi
46245 fi
46246
46247 if test "$wxUSE_TIPWINDOW" = "yes"; then
46248     if test "$wxUSE_PM" = 1; then
46249         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
46250 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
46251     else
46252         cat >>confdefs.h <<\_ACEOF
46253 #define wxUSE_TIPWINDOW 1
46254 _ACEOF
46255
46256     fi
46257 fi
46258
46259 if test "$USES_CONTROLS" = 1; then
46260     cat >>confdefs.h <<\_ACEOF
46261 #define wxUSE_CONTROLS 1
46262 _ACEOF
46263
46264 fi
46265
46266
46267 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
46268     cat >>confdefs.h <<\_ACEOF
46269 #define wxUSE_ACCESSIBILITY 1
46270 _ACEOF
46271
46272     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
46273 fi
46274
46275 if test "$wxUSE_DRAGIMAGE" = "yes"; then
46276     cat >>confdefs.h <<\_ACEOF
46277 #define wxUSE_DRAGIMAGE 1
46278 _ACEOF
46279
46280     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
46281 fi
46282
46283 if test "$wxUSE_EXCEPTIONS" = "yes"; then
46284     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
46285         { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
46286 echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
46287     else
46288         cat >>confdefs.h <<\_ACEOF
46289 #define wxUSE_EXCEPTIONS 1
46290 _ACEOF
46291
46292         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
46293     fi
46294 fi
46295
46296 USE_HTML=0
46297 if test "$wxUSE_HTML" = "yes"; then
46298     cat >>confdefs.h <<\_ACEOF
46299 #define wxUSE_HTML 1
46300 _ACEOF
46301
46302     USE_HTML=1
46303     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
46304 fi
46305 if test "$wxUSE_WEBKIT" = "yes"; then
46306     if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
46307         old_CPPFLAGS="$CPPFLAGS"
46308         CPPFLAGS="-x objective-c++ $CPPFLAGS"
46309         { echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
46310 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6; }
46311 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
46312   echo $ECHO_N "(cached) $ECHO_C" >&6
46313 else
46314   cat >conftest.$ac_ext <<_ACEOF
46315 /* confdefs.h.  */
46316 _ACEOF
46317 cat confdefs.h >>conftest.$ac_ext
46318 cat >>conftest.$ac_ext <<_ACEOF
46319 /* end confdefs.h.  */
46320
46321                            #include <Carbon/Carbon.h>
46322                            #include <WebKit/WebKit.h>
46323
46324
46325 #include <WebKit/HIWebView.h>
46326 _ACEOF
46327 rm -f conftest.$ac_objext
46328 if { (ac_try="$ac_compile"
46329 case "(($ac_try" in
46330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46331   *) ac_try_echo=$ac_try;;
46332 esac
46333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46334   (eval "$ac_compile") 2>conftest.er1
46335   ac_status=$?
46336   grep -v '^ *+' conftest.er1 >conftest.err
46337   rm -f conftest.er1
46338   cat conftest.err >&5
46339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46340   (exit $ac_status); } && {
46341          test -z "$ac_c_werror_flag" ||
46342          test ! -s conftest.err
46343        } && test -s conftest.$ac_objext; then
46344   ac_cv_header_WebKit_HIWebView_h=yes
46345 else
46346   echo "$as_me: failed program was:" >&5
46347 sed 's/^/| /' conftest.$ac_ext >&5
46348
46349         ac_cv_header_WebKit_HIWebView_h=no
46350 fi
46351
46352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46353 fi
46354 { echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
46355 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6; }
46356 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
46357
46358                            cat >>confdefs.h <<\_ACEOF
46359 #define wxUSE_WEBKIT 1
46360 _ACEOF
46361
46362                            WEBKIT_LINK="-framework WebKit"
46363
46364 else
46365
46366                            { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
46367 echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
46368                            wxUSE_WEBKIT=no
46369
46370 fi
46371
46372
46373         CPPFLAGS="$old_CPPFLAGS"
46374     elif test "$wxUSE_COCOA" = 1; then
46375         cat >>confdefs.h <<\_ACEOF
46376 #define wxUSE_WEBKIT 1
46377 _ACEOF
46378
46379     else
46380         wxUSE_WEBKIT=no
46381     fi
46382     if test "$wxUSE_WEBKIT" = "yes"; then
46383         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
46384     fi
46385 fi
46386
46387 USE_XRC=0
46388 if test "$wxUSE_XRC" = "yes"; then
46389     if test "$wxUSE_XML" != "yes"; then
46390         { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
46391 echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
46392         wxUSE_XRC=no
46393     else
46394         cat >>confdefs.h <<\_ACEOF
46395 #define wxUSE_XRC 1
46396 _ACEOF
46397
46398         USE_XRC=1
46399         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
46400     fi
46401 fi
46402
46403 USE_AUI=0
46404 if test "$wxUSE_AUI" = "yes"; then
46405    cat >>confdefs.h <<\_ACEOF
46406 #define wxUSE_AUI 1
46407 _ACEOF
46408
46409    USE_AUI=1
46410    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
46411 fi
46412
46413 USE_PROPGRID=0
46414 if test "$wxUSE_PROPGRID" = "yes"; then
46415    cat >>confdefs.h <<\_ACEOF
46416 #define wxUSE_PROPGRID 1
46417 _ACEOF
46418
46419    USE_PROPGRID=1
46420    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS propgrid"
46421 fi
46422
46423 USE_STC=0
46424 if test "$wxUSE_STC" = "yes"; then
46425    cat >>confdefs.h <<\_ACEOF
46426 #define wxUSE_STC 1
46427 _ACEOF
46428
46429    USE_STC=1
46430    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS stc"
46431 fi
46432
46433 if test "$wxUSE_MENUS" = "yes"; then
46434     cat >>confdefs.h <<\_ACEOF
46435 #define wxUSE_MENUS 1
46436 _ACEOF
46437
46438     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
46439 fi
46440
46441 if test "$wxUSE_METAFILE" = "yes"; then
46442     cat >>confdefs.h <<\_ACEOF
46443 #define wxUSE_METAFILE 1
46444 _ACEOF
46445
46446 fi
46447
46448 if test "$wxUSE_MIMETYPE" = "yes"; then
46449     cat >>confdefs.h <<\_ACEOF
46450 #define wxUSE_MIMETYPE 1
46451 _ACEOF
46452
46453 fi
46454
46455 if test "$wxUSE_MINIFRAME" = "yes"; then
46456     cat >>confdefs.h <<\_ACEOF
46457 #define wxUSE_MINIFRAME 1
46458 _ACEOF
46459
46460 fi
46461
46462 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
46463     cat >>confdefs.h <<\_ACEOF
46464 #define wxUSE_SYSTEM_OPTIONS 1
46465 _ACEOF
46466
46467 fi
46468
46469 if test "$wxUSE_TASKBARICON" = "yes"; then
46470     cat >>confdefs.h <<\_ACEOF
46471 #define wxUSE_TASKBARICON 1
46472 _ACEOF
46473
46474     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
46475 fi
46476
46477
46478 if test "$wxUSE_VALIDATORS" = "yes"; then
46479     cat >>confdefs.h <<\_ACEOF
46480 #define wxUSE_VALIDATORS 1
46481 _ACEOF
46482
46483     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
46484 fi
46485
46486 if test "$wxUSE_PALETTE" = "yes" ; then
46487     if test "$wxUSE_DFB" = 1; then
46488         { echo "$as_me:$LINENO: WARNING: wxPalette not yet supported under DFB... disabled" >&5
46489 echo "$as_me: WARNING: wxPalette not yet supported under DFB... disabled" >&2;}
46490         wxUSE_PALETTE=no
46491     else
46492         cat >>confdefs.h <<\_ACEOF
46493 #define wxUSE_PALETTE 1
46494 _ACEOF
46495
46496     fi
46497 fi
46498
46499 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
46500     LIBS=" -lunicows $LIBS"
46501 fi
46502
46503 USE_RICHTEXT=0
46504 if test "$wxUSE_RICHTEXT" = "yes"; then
46505     cat >>confdefs.h <<\_ACEOF
46506 #define wxUSE_RICHTEXT 1
46507 _ACEOF
46508
46509     USE_RICHTEXT=1
46510     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
46511 fi
46512
46513
46514 if test "$wxUSE_IMAGE" = "yes" ; then
46515     cat >>confdefs.h <<\_ACEOF
46516 #define wxUSE_IMAGE 1
46517 _ACEOF
46518
46519
46520     if test "$wxUSE_GIF" = "yes" ; then
46521       cat >>confdefs.h <<\_ACEOF
46522 #define wxUSE_GIF 1
46523 _ACEOF
46524
46525     fi
46526
46527     if test "$wxUSE_PCX" = "yes" ; then
46528       cat >>confdefs.h <<\_ACEOF
46529 #define wxUSE_PCX 1
46530 _ACEOF
46531
46532     fi
46533
46534     if test "$wxUSE_TGA" = "yes" ; then
46535       cat >>confdefs.h <<\_ACEOF
46536 #define wxUSE_TGA 1
46537 _ACEOF
46538
46539     fi
46540
46541     if test "$wxUSE_IFF" = "yes" ; then
46542       cat >>confdefs.h <<\_ACEOF
46543 #define wxUSE_IFF 1
46544 _ACEOF
46545
46546     fi
46547
46548     if test "$wxUSE_PNM" = "yes" ; then
46549       cat >>confdefs.h <<\_ACEOF
46550 #define wxUSE_PNM 1
46551 _ACEOF
46552
46553     fi
46554
46555     if test "$wxUSE_XPM" = "yes" ; then
46556       cat >>confdefs.h <<\_ACEOF
46557 #define wxUSE_XPM 1
46558 _ACEOF
46559
46560     fi
46561
46562     if test "$wxUSE_ICO_CUR" = "yes" ; then
46563       cat >>confdefs.h <<\_ACEOF
46564 #define wxUSE_ICO_CUR 1
46565 _ACEOF
46566
46567     fi
46568 fi
46569
46570
46571 if test "$wxUSE_ABOUTDLG" = "yes"; then
46572     cat >>confdefs.h <<\_ACEOF
46573 #define wxUSE_ABOUTDLG 1
46574 _ACEOF
46575
46576 fi
46577
46578 if test "$wxUSE_CHOICEDLG" = "yes"; then
46579     cat >>confdefs.h <<\_ACEOF
46580 #define wxUSE_CHOICEDLG 1
46581 _ACEOF
46582
46583 fi
46584
46585 if test "$wxUSE_COLOURDLG" = "yes"; then
46586     cat >>confdefs.h <<\_ACEOF
46587 #define wxUSE_COLOURDLG 1
46588 _ACEOF
46589
46590 fi
46591
46592 if test "$wxUSE_FILEDLG" = "yes"; then
46593     cat >>confdefs.h <<\_ACEOF
46594 #define wxUSE_FILEDLG 1
46595 _ACEOF
46596
46597 fi
46598
46599 if test "$wxUSE_FINDREPLDLG" = "yes"; then
46600     cat >>confdefs.h <<\_ACEOF
46601 #define wxUSE_FINDREPLDLG 1
46602 _ACEOF
46603
46604 fi
46605
46606 if test "$wxUSE_FONTDLG" = "yes"; then
46607     cat >>confdefs.h <<\_ACEOF
46608 #define wxUSE_FONTDLG 1
46609 _ACEOF
46610
46611 fi
46612
46613 if test "$wxUSE_DIRDLG" = "yes"; then
46614     if test "$wxUSE_TREECTRL" != "yes"; then
46615         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
46616 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
46617     else
46618         cat >>confdefs.h <<\_ACEOF
46619 #define wxUSE_DIRDLG 1
46620 _ACEOF
46621
46622     fi
46623 fi
46624
46625 if test "$wxUSE_MSGDLG" = "yes"; then
46626     cat >>confdefs.h <<\_ACEOF
46627 #define wxUSE_MSGDLG 1
46628 _ACEOF
46629
46630 fi
46631
46632 if test "$wxUSE_NUMBERDLG" = "yes"; then
46633     cat >>confdefs.h <<\_ACEOF
46634 #define wxUSE_NUMBERDLG 1
46635 _ACEOF
46636
46637 fi
46638
46639 if test "$wxUSE_PROGRESSDLG" = "yes"; then
46640     cat >>confdefs.h <<\_ACEOF
46641 #define wxUSE_PROGRESSDLG 1
46642 _ACEOF
46643
46644 fi
46645
46646 if test "$wxUSE_SPLASH" = "yes"; then
46647     cat >>confdefs.h <<\_ACEOF
46648 #define wxUSE_SPLASH 1
46649 _ACEOF
46650
46651     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
46652 fi
46653
46654 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
46655     cat >>confdefs.h <<\_ACEOF
46656 #define wxUSE_STARTUP_TIPS 1
46657 _ACEOF
46658
46659 fi
46660
46661 if test "$wxUSE_TEXTDLG" = "yes"; then
46662     cat >>confdefs.h <<\_ACEOF
46663 #define wxUSE_TEXTDLG 1
46664 _ACEOF
46665
46666 fi
46667
46668 if test "$wxUSE_WIZARDDLG" = "yes"; then
46669     cat >>confdefs.h <<\_ACEOF
46670 #define wxUSE_WIZARDDLG 1
46671 _ACEOF
46672
46673     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
46674 fi
46675
46676
46677 if test "$wxUSE_MSW" = 1 -o "$wxUSE_PM" = 1; then
46678     if test "$wxUSE_OWNER_DRAWN" = "yes"; then
46679         cat >>confdefs.h <<\_ACEOF
46680 #define wxUSE_OWNER_DRAWN 1
46681 _ACEOF
46682
46683     fi
46684 fi
46685
46686
46687 if test "$wxUSE_MSW" = 1 ; then
46688
46689     if test "$wxUSE_DC_CACHEING" = "yes"; then
46690         cat >>confdefs.h <<\_ACEOF
46691 #define wxUSE_DC_CACHEING 1
46692 _ACEOF
46693
46694     fi
46695
46696     if test "$wxUSE_DIB" = "yes"; then
46697         cat >>confdefs.h <<\_ACEOF
46698 #define wxUSE_WXDIB 1
46699 _ACEOF
46700
46701     fi
46702
46703     if test "$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW" = "yes"; then
46704         cat >>confdefs.h <<\_ACEOF
46705 #define wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW 1
46706 _ACEOF
46707
46708     fi
46709
46710     if test "$wxUSE_UXTHEME" = "yes"; then
46711         cat >>confdefs.h <<\_ACEOF
46712 #define wxUSE_UXTHEME 1
46713 _ACEOF
46714
46715     fi
46716
46717 fi
46718
46719 if test "$wxUSE_AUTOID_MANAGEMENT" = "yes"; then
46720     cat >>confdefs.h <<\_ACEOF
46721 #define wxUSE_AUTOID_MANAGEMENT 1
46722 _ACEOF
46723
46724 fi
46725
46726 if test "$USE_WIN32" = 1 ; then
46727     if test "$wxUSE_INICONF" = "yes"; then
46728         cat >>confdefs.h <<\_ACEOF
46729 #define wxUSE_INICONF 1
46730 _ACEOF
46731
46732     fi
46733
46734     if test "$wxUSE_REGKEY" = "yes"; then
46735         cat >>confdefs.h <<\_ACEOF
46736 #define wxUSE_REGKEY 1
46737 _ACEOF
46738
46739     fi
46740 fi
46741
46742
46743 if test "$wxUSE_MAC" = 1; then
46744         wxUSE_GRAPHICS_CONTEXT="yes"
46745 fi
46746
46747 if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then
46748    if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
46749       cat >>confdefs.h <<\_ACEOF
46750 #define wxUSE_GRAPHICS_CONTEXT 1
46751 _ACEOF
46752
46753    elif test "$wxUSE_GTK" != 1; then
46754             cat >>confdefs.h <<\_ACEOF
46755 #define wxUSE_GRAPHICS_CONTEXT 1
46756 _ACEOF
46757
46758    else
46759
46760 pkg_failed=no
46761 { echo "$as_me:$LINENO: checking for CAIRO" >&5
46762 echo $ECHO_N "checking for CAIRO... $ECHO_C" >&6; }
46763
46764 if test -n "$PKG_CONFIG"; then
46765     if test -n "$CAIRO_CFLAGS"; then
46766         pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
46767     else
46768         if test -n "$PKG_CONFIG" && \
46769     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
46770   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
46771   ac_status=$?
46772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46773   (exit $ac_status); }; then
46774   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
46775 else
46776   pkg_failed=yes
46777 fi
46778     fi
46779 else
46780         pkg_failed=untried
46781 fi
46782 if test -n "$PKG_CONFIG"; then
46783     if test -n "$CAIRO_LIBS"; then
46784         pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
46785     else
46786         if test -n "$PKG_CONFIG" && \
46787     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
46788   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
46789   ac_status=$?
46790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46791   (exit $ac_status); }; then
46792   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
46793 else
46794   pkg_failed=yes
46795 fi
46796     fi
46797 else
46798         pkg_failed=untried
46799 fi
46800
46801
46802
46803 if test $pkg_failed = yes; then
46804
46805 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46806         _pkg_short_errors_supported=yes
46807 else
46808         _pkg_short_errors_supported=no
46809 fi
46810         if test $_pkg_short_errors_supported = yes; then
46811                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
46812         else
46813                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
46814         fi
46815         # Put the nasty error message in config.log where it belongs
46816         echo "$CAIRO_PKG_ERRORS" >&5
46817
46818         { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
46819 echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
46820
46821 elif test $pkg_failed = untried; then
46822         { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
46823 echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
46824
46825 else
46826         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
46827         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
46828         { echo "$as_me:$LINENO: result: yes" >&5
46829 echo "${ECHO_T}yes" >&6; }
46830         cat >>confdefs.h <<\_ACEOF
46831 #define wxUSE_GRAPHICS_CONTEXT 1
46832 _ACEOF
46833
46834 fi
46835    fi
46836 fi
46837
46838
46839 USE_MEDIA=0
46840
46841 if test "$wxUSE_MEDIACTRL" = "yes" -o "$wxUSE_MEDIACTRL" = "auto"; then
46842     USE_MEDIA=1
46843
46844                 if test "$wxUSE_GTK" = 1; then
46845         wxUSE_GSTREAMER="no"
46846
46847                                                                 GST_VERSION_MAJOR=0
46848         GST_VERSION_MINOR=10
46849         GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
46850
46851         if test "$wxUSE_GSTREAMER8" = "no"; then
46852
46853 pkg_failed=no
46854 { echo "$as_me:$LINENO: checking for GST" >&5
46855 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
46856
46857 if test -n "$PKG_CONFIG"; then
46858     if test -n "$GST_CFLAGS"; then
46859         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
46860     else
46861         if test -n "$PKG_CONFIG" && \
46862     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
46863   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
46864   ac_status=$?
46865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46866   (exit $ac_status); }; then
46867   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
46868 else
46869   pkg_failed=yes
46870 fi
46871     fi
46872 else
46873         pkg_failed=untried
46874 fi
46875 if test -n "$PKG_CONFIG"; then
46876     if test -n "$GST_LIBS"; then
46877         pkg_cv_GST_LIBS="$GST_LIBS"
46878     else
46879         if test -n "$PKG_CONFIG" && \
46880     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
46881   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
46882   ac_status=$?
46883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46884   (exit $ac_status); }; then
46885   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
46886 else
46887   pkg_failed=yes
46888 fi
46889     fi
46890 else
46891         pkg_failed=untried
46892 fi
46893
46894
46895
46896 if test $pkg_failed = yes; then
46897
46898 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46899         _pkg_short_errors_supported=yes
46900 else
46901         _pkg_short_errors_supported=no
46902 fi
46903         if test $_pkg_short_errors_supported = yes; then
46904                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
46905         else
46906                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
46907         fi
46908         # Put the nasty error message in config.log where it belongs
46909         echo "$GST_PKG_ERRORS" >&5
46910
46911
46912                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
46913 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
46914                     GST_VERSION_MINOR=8
46915
46916
46917 elif test $pkg_failed = untried; then
46918
46919                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
46920 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
46921                     GST_VERSION_MINOR=8
46922
46923
46924 else
46925         GST_CFLAGS=$pkg_cv_GST_CFLAGS
46926         GST_LIBS=$pkg_cv_GST_LIBS
46927         { echo "$as_me:$LINENO: result: yes" >&5
46928 echo "${ECHO_T}yes" >&6; }
46929
46930                     wxUSE_GSTREAMER="yes"
46931                     GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
46932
46933 fi
46934         else
46935                         GST_VERSION_MINOR=8
46936         fi
46937
46938         if test $GST_VERSION_MINOR = "8"; then
46939             GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
46940
46941 pkg_failed=no
46942 { echo "$as_me:$LINENO: checking for GST" >&5
46943 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
46944
46945 if test -n "$PKG_CONFIG"; then
46946     if test -n "$GST_CFLAGS"; then
46947         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
46948     else
46949         if test -n "$PKG_CONFIG" && \
46950     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
46951   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
46952   ac_status=$?
46953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46954   (exit $ac_status); }; then
46955   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
46956 else
46957   pkg_failed=yes
46958 fi
46959     fi
46960 else
46961         pkg_failed=untried
46962 fi
46963 if test -n "$PKG_CONFIG"; then
46964     if test -n "$GST_LIBS"; then
46965         pkg_cv_GST_LIBS="$GST_LIBS"
46966     else
46967         if test -n "$PKG_CONFIG" && \
46968     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
46969   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
46970   ac_status=$?
46971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46972   (exit $ac_status); }; then
46973   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
46974 else
46975   pkg_failed=yes
46976 fi
46977     fi
46978 else
46979         pkg_failed=untried
46980 fi
46981
46982
46983
46984 if test $pkg_failed = yes; then
46985
46986 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46987         _pkg_short_errors_supported=yes
46988 else
46989         _pkg_short_errors_supported=no
46990 fi
46991         if test $_pkg_short_errors_supported = yes; then
46992                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
46993         else
46994                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
46995         fi
46996         # Put the nasty error message in config.log where it belongs
46997         echo "$GST_PKG_ERRORS" >&5
46998
46999
47000                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
47001 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
47002
47003 elif test $pkg_failed = untried; then
47004
47005                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
47006 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
47007
47008 else
47009         GST_CFLAGS=$pkg_cv_GST_CFLAGS
47010         GST_LIBS=$pkg_cv_GST_LIBS
47011         { echo "$as_me:$LINENO: result: yes" >&5
47012 echo "${ECHO_T}yes" >&6; }
47013         wxUSE_GSTREAMER="yes"
47014 fi
47015         fi
47016
47017
47018         if test "$wxUSE_GSTREAMER" = "yes"; then
47019             CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
47020             EXTRALIBS_MEDIA="$GST_LIBS"
47021
47022             cat >>confdefs.h <<\_ACEOF
47023 #define wxUSE_GSTREAMER 1
47024 _ACEOF
47025
47026         else
47027             USE_MEDIA=0
47028         fi
47029     fi
47030
47031     if test $USE_MEDIA = 1; then
47032         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
47033         cat >>confdefs.h <<\_ACEOF
47034 #define wxUSE_MEDIACTRL 1
47035 _ACEOF
47036
47037     else
47038         if test "$wxUSE_MEDIACTRL" = "yes"; then
47039             { { echo "$as_me:$LINENO: error: GStreamer not available" >&5
47040 echo "$as_me: error: GStreamer not available" >&2;}
47041    { (exit 1); exit 1; }; }
47042         else
47043                         { echo "$as_me:$LINENO: WARNING: GStreamer not available... disabling wxMediaCtrl" >&5
47044 echo "$as_me: WARNING: GStreamer not available... disabling wxMediaCtrl" >&2;}
47045         fi
47046     fi
47047 fi
47048
47049
47050 if test "$cross_compiling" = "yes"; then
47051         OSINFO="\"$host\""
47052 else
47053         OSINFO=`uname -s -r -m`
47054     OSINFO="\"$OSINFO\""
47055 fi
47056
47057 cat >>confdefs.h <<_ACEOF
47058 #define WXWIN_OS_DESCRIPTION $OSINFO
47059 _ACEOF
47060
47061
47062
47063 if test "x$prefix" != "xNONE"; then
47064     wxPREFIX=$prefix
47065 else
47066     wxPREFIX=$ac_default_prefix
47067 fi
47068
47069 cat >>confdefs.h <<_ACEOF
47070 #define wxINSTALL_PREFIX "$wxPREFIX"
47071 _ACEOF
47072
47073
47074
47075
47076 STD_BASE_LIBS="base"
47077 STD_GUI_LIBS=""
47078 BUILT_WX_LIBS="base"
47079 ALL_WX_LIBS="xrc stc gl media qa html adv core xml net base"
47080
47081 if test "$wxUSE_SOCKETS" = "yes" ; then
47082     STD_BASE_LIBS="net $STD_BASE_LIBS"
47083     BUILT_WX_LIBS="net $BUILT_WX_LIBS"
47084 fi
47085 if test "$wxUSE_XML" = "yes" ; then
47086     STD_BASE_LIBS="xml $STD_BASE_LIBS"
47087     BUILT_WX_LIBS="xml $BUILT_WX_LIBS"
47088 fi
47089
47090 if test "$wxUSE_GUI" = "yes"; then
47091     STD_GUI_LIBS="adv core"
47092     BUILT_WX_LIBS="$STD_GUI_LIBS $BUILT_WX_LIBS"
47093
47094     if test "$wxUSE_DEBUGREPORT" = "yes" ; then
47095         STD_GUI_LIBS="qa $STD_GUI_LIBS"
47096         BUILT_WX_LIBS="qa $BUILT_WX_LIBS"
47097     fi
47098     if test "$wxUSE_HTML" = "yes" ; then
47099         STD_GUI_LIBS="html $STD_GUI_LIBS"
47100         BUILT_WX_LIBS="html $BUILT_WX_LIBS"
47101     fi
47102     if test "$wxUSE_MEDIACTRL" = "yes" ; then
47103         BUILT_WX_LIBS="media $BUILT_WX_LIBS"
47104     fi
47105     if test "$wxUSE_OPENGL" = "yes" ; then
47106         BUILT_WX_LIBS="gl $BUILT_WX_LIBS"
47107     fi
47108     if test "$wxUSE_AUI" = "yes" ; then
47109         BUILT_WX_LIBS="aui $BUILT_WX_LIBS"
47110     fi
47111     if test "$wxUSE_PROPGRID" = "yes" ; then
47112         BUILT_WX_LIBS="propgrid $BUILT_WX_LIBS"
47113     fi
47114     if test "$wxUSE_RICHTEXT" = "yes" ; then
47115         BUILT_WX_LIBS="richtext $BUILT_WX_LIBS"
47116     fi
47117     if test "$wxUSE_STC" = "yes" ; then
47118         BUILT_WX_LIBS="stc $BUILT_WX_LIBS"
47119     fi
47120     if test "$wxUSE_XRC" = "yes" ; then
47121         STD_GUI_LIBS="xrc $STD_GUI_LIBS"
47122         BUILT_WX_LIBS="xrc $BUILT_WX_LIBS"
47123     fi
47124 fi
47125
47126
47127
47128
47129
47130
47131
47132
47133 if test "$wxUSE_MAC" = 1 ; then
47134     if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
47135         if test "$USE_DARWIN" = 1; then
47136             LDFLAGS="$LDFLAGS -framework QuickTime"
47137         fi
47138     fi
47139     if test "$USE_DARWIN" = 1; then
47140         LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework AudioToolbox -framework System -framework OpenGL"
47141     fi
47142 fi
47143 if test "$wxUSE_COCOA" = 1 ; then
47144     LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
47145     if test "$wxUSE_MEDIACTRL" = "yes"; then
47146         LDFLAGS="$LDFLAGS -framework QuickTime"
47147     fi
47148 fi
47149 if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
47150     LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
47151 fi
47152
47153 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
47154
47155 if test "$wxUSE_GUI" = "yes"; then
47156
47157
47158         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
47159                      erase event exec font image minimal render \
47160                      shaped svg taborder vscroll widgets wrapsizer"
47161
47162     if test "$wxUSE_MONOLITHIC" != "yes"; then
47163         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
47164     fi
47165     if test "$TOOLKIT" = "MSW"; then
47166         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
47167         if test "$wxUSE_UNIVERSAL" != "yes"; then
47168             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
47169         fi
47170     fi
47171     if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
47172         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
47173     fi
47174 else
47175     SAMPLES_SUBDIRS="console"
47176     if test "$wxUSE_SOCKETS" = "yes" ; then
47177         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
47178     fi
47179     if test "$wxUSE_IPC" = "yes" ; then
47180         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
47181     fi
47182 fi
47183
47184
47185 if test "x$INTELCC" = "xyes" ; then
47186                                         CWARNINGS="-Wall -wd810,869,981,1418,1572,1684,2259"
47187 elif test "$GCC" = yes ; then
47188     CWARNINGS="-Wall -Wundef"
47189 fi
47190
47191 if test "x$INTELCXX" = "xyes" ; then
47192                                                                 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419,1881,2259"
47193 elif test "$GXX" = yes ; then
47194     CXXWARNINGS="-Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy"
47195     { echo "$as_me:$LINENO: checking CXXWARNINGS for gcc -Woverloaded-virtual" >&5
47196 echo $ECHO_N "checking CXXWARNINGS for gcc -Woverloaded-virtual... $ECHO_C" >&6; }
47197 if test "${ac_cv_cxxflags_gcc_option__Woverloaded_virtual+set}" = set; then
47198   echo $ECHO_N "(cached) $ECHO_C" >&6
47199 else
47200   ac_cv_cxxflags_gcc_option__Woverloaded_virtual="no, unknown"
47201
47202  ac_ext=cpp
47203 ac_cpp='$CXXCPP $CPPFLAGS'
47204 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47205 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47206 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47207
47208  ac_save_CXXFLAGS="$CXXFLAGS"
47209 for ac_arg in "-pedantic -Werror % -Woverloaded-virtual"     "-pedantic % -Woverloaded-virtual %% no, obsolete"     #
47210 do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
47211    cat >conftest.$ac_ext <<_ACEOF
47212 /* confdefs.h.  */
47213 _ACEOF
47214 cat confdefs.h >>conftest.$ac_ext
47215 cat >>conftest.$ac_ext <<_ACEOF
47216 /* end confdefs.h.  */
47217
47218 int
47219 main ()
47220 {
47221 return 0;
47222   ;
47223   return 0;
47224 }
47225 _ACEOF
47226 rm -f conftest.$ac_objext
47227 if { (ac_try="$ac_compile"
47228 case "(($ac_try" in
47229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47230   *) ac_try_echo=$ac_try;;
47231 esac
47232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47233   (eval "$ac_compile") 2>conftest.er1
47234   ac_status=$?
47235   grep -v '^ *+' conftest.er1 >conftest.err
47236   rm -f conftest.er1
47237   cat conftest.err >&5
47238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47239   (exit $ac_status); } && {
47240          test -z "$ac_cxx_werror_flag" ||
47241          test ! -s conftest.err
47242        } && test -s conftest.$ac_objext; then
47243   ac_cv_cxxflags_gcc_option__Woverloaded_virtual=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
47244 else
47245   echo "$as_me: failed program was:" >&5
47246 sed 's/^/| /' conftest.$ac_ext >&5
47247
47248
47249 fi
47250
47251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47252 done
47253  CXXFLAGS="$ac_save_CXXFLAGS"
47254  ac_ext=c
47255 ac_cpp='$CPP $CPPFLAGS'
47256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47259
47260
47261 fi
47262 { echo "$as_me:$LINENO: result: $ac_cv_cxxflags_gcc_option__Woverloaded_virtual" >&5
47263 echo "${ECHO_T}$ac_cv_cxxflags_gcc_option__Woverloaded_virtual" >&6; }
47264 case ".$ac_cv_cxxflags_gcc_option__Woverloaded_virtual" in
47265      .ok|.ok,*)  ;;
47266    .|.no|.no,*)  ;;
47267    *)
47268    if echo " $CXXWARNINGS " | grep " $ac_cv_cxxflags_gcc_option__Woverloaded_virtual " 2>&1 >/dev/null
47269    then { (echo "$as_me:$LINENO: : CXXWARNINGS does contain \$ac_cv_cxxflags_gcc_option__Woverloaded_virtual") >&5
47270   (: CXXWARNINGS does contain $ac_cv_cxxflags_gcc_option__Woverloaded_virtual) 2>&5
47271   ac_status=$?
47272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47273   (exit $ac_status); }
47274    else { (echo "$as_me:$LINENO: : CXXWARNINGS=\"\$CXXWARNINGS \$ac_cv_cxxflags_gcc_option__Woverloaded_virtual\"") >&5
47275   (: CXXWARNINGS="$CXXWARNINGS $ac_cv_cxxflags_gcc_option__Woverloaded_virtual") 2>&5
47276   ac_status=$?
47277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47278   (exit $ac_status); }
47279                       CXXWARNINGS="$CXXWARNINGS $ac_cv_cxxflags_gcc_option__Woverloaded_virtual"
47280    fi
47281  ;;
47282 esac
47283
47284 fi
47285
47286
47287 WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
47288 WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
47289
47290
47291 CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
47292  -I\\${wx_top_builddir}/lib/wx/include/${TOOLCHAIN_FULLNAME} \
47293  -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
47294  $CPPFLAGS `
47295
47296 C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
47297 CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
47298 CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $CXXFLAGS `
47299 OBJCFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $OBJCFLAGS `
47300 OBJCXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $OBJCXXFLAGS `
47301
47302 WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
47303
47304
47305 if test "x$MWCC" = "xyes"; then
47306
47307             CC="$CC -cwd source -I-"
47308     CXX="$CXX -cwd source -I-"
47309 fi
47310
47311
47312 LIBS=`echo $LIBS`
47313 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
47314 EXTRALIBS_XML="$EXPAT_LINK"
47315 EXTRALIBS_HTML="$MSPACK_LINK"
47316 EXTRALIBS_MEDIA="$GST_LIBS"
47317 EXTRALIBS_STC="-lwxscintilla${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
47318 if test "$wxUSE_GUI" = "yes"; then
47319     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
47320 fi
47321 if test "$wxUSE_OPENGL" = "yes"; then
47322     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
47323 fi
47324
47325 LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
47326
47327 WXCONFIG_LIBS="$LIBS"
47328
47329 if test "$wxUSE_REGEX" = "builtin" ; then
47330     wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
47331 fi
47332 if test "$wxUSE_EXPAT" = "builtin" ; then
47333     wxconfig_3rdparty="expat $wxconfig_3rdparty"
47334 fi
47335 if test "$wxUSE_LIBTIFF" = "builtin" ; then
47336     wxconfig_3rdparty="tiff $wxconfig_3rdparty"
47337 fi
47338 if test "$wxUSE_LIBJPEG" = "builtin" ; then
47339     wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
47340 fi
47341 if test "$wxUSE_LIBPNG" = "builtin" ; then
47342     wxconfig_3rdparty="png $wxconfig_3rdparty"
47343 fi
47344 if test "$wxUSE_ZLIB" = "builtin" ; then
47345     wxconfig_3rdparty="zlib $wxconfig_3rdparty"
47346 fi
47347
47348 for i in $wxconfig_3rdparty ; do
47349     WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
47350 done
47351
47352
47353 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
47354     WXUNIV=1
47355
47356     case "$wxUNIV_THEMES" in
47357         ''|all)
47358             cat >>confdefs.h <<\_ACEOF
47359 #define wxUSE_ALL_THEMES 1
47360 _ACEOF
47361
47362             ;;
47363
47364         *)
47365             for t in `echo $wxUNIV_THEMES | tr , ' ' | tr '[a-z]' '[A-Z]'`; do
47366                 cat >>confdefs.h <<_ACEOF
47367 #define wxUSE_THEME_$t 1
47368 _ACEOF
47369
47370             done
47371     esac
47372 else
47373     WXUNIV=0
47374 fi
47375
47376
47377
47378
47379
47380
47381
47382
47383 if test $wxUSE_MONOLITHIC = "yes" ; then
47384     MONOLITHIC=1
47385 else
47386     MONOLITHIC=0
47387 fi
47388
47389 if test $wxUSE_PLUGINS = "yes" ; then
47390     USE_PLUGINS=1
47391 else
47392     USE_PLUGINS=0
47393 fi
47394
47395 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
47396     USE_QA=1
47397 else
47398     USE_QA=0
47399 fi
47400
47401 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
47402     OFFICIAL_BUILD=1
47403 else
47404     OFFICIAL_BUILD=0
47405 fi
47406
47407
47408
47409
47410
47411
47412
47413
47414
47415
47416
47417
47418
47419
47420
47421
47422
47423
47424
47425
47426
47427
47428
47429
47430
47431
47432
47433
47434 TOOLKIT_LOWERCASE=xxx
47435 if test "$TOOLKIT" = "MAC"; then
47436     TOOLKIT_LOWERCASE=osx_carbon
47437 fi
47438 if test "$TOOLKIT" = "OSX_CARBON"; then
47439     TOOLKIT_LOWERCASE=osx_carbon
47440 fi
47441 if test "$TOOLKIT" = "OSX_COCOA"; then
47442     TOOLKIT_LOWERCASE=osx_cocoa
47443 fi
47444 if test "$TOOLKIT_LOWERCASE" = "xxx"; then
47445     TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr '[A-Z]' '[a-z]'`
47446 fi
47447
47448
47449
47450
47451
47452
47453
47454
47455
47456 case "$TOOLKIT" in
47457     GTK)
47458         TOOLKIT_DESC="GTK+"
47459         if test "$WXGTK2" = 1; then
47460             TOOLKIT_DESC="$TOOLKIT_DESC 2"
47461             if test "$wxUSE_GTKPRINT" = "yes" ; then
47462                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA GTK+ printing";
47463             fi
47464             if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
47465                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
47466             fi
47467             if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
47468                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
47469             fi
47470             if test "$wxUSE_LIBHILDON" = "yes"; then
47471                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
47472             fi
47473
47474             if test "$TOOLKIT_EXTRA" != ""; then
47475                 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
47476             fi
47477         fi
47478         ;;
47479
47480     ?*)
47481         TOOLKIT_DESC=$TOOLKIT_LOWERCASE
47482         ;;
47483
47484     *)
47485         TOOLKIT_DESC="base only"
47486         ;;
47487 esac
47488
47489 if test "$wxUSE_WINE" = "yes"; then
47490     BAKEFILE_FORCE_PLATFORM=win32
47491 fi
47492
47493 if test "$wxUSE_UNICODE" = yes -a "$GCC" = yes -a "$bk_use_pch" != no
47494 then
47495     { echo "$as_me:$LINENO: checking for gcc precompiled header bug" >&5
47496 echo $ECHO_N "checking for gcc precompiled header bug... $ECHO_C" >&6; }
47497 if test "${wx_cv_gcc_pch_bug+set}" = set; then
47498   echo $ECHO_N "(cached) $ECHO_C" >&6
47499 else
47500
47501             echo '#include <stdio.h>
47502                   const wchar_t test_var[] = L"awidetest";' > conftest.h
47503
47504             echo '#include "conftest.h"
47505                   int main()
47506                   {
47507                      printf("%ls", test_var);
47508                      return 0;
47509                   }' > conftest.cpp
47510
47511             wx_cv_gcc_pch_bug="pch not supported"
47512
47513             if $CXX conftest.h >/dev/null 2>&1
47514             then
47515                 wx_cv_gcc_pch_bug=
47516
47517                 if $CXX -o conftest$PROGRAM_EXT conftest.cpp >/dev/null 2>&1
47518                 then
47519                     if tr -dc '[a-z]' < conftest$PROGRAM_EXT |
47520                         grep awidetest >/dev/null
47521                     then
47522                         wx_cv_gcc_pch_bug=no
47523                     else
47524                         wx_cv_gcc_pch_bug=yes
47525                     fi
47526                 fi
47527             fi
47528
47529             rm -f conftest.h conftest.gch conftest.cpp conftest$PROGRAM_EXT
47530
47531 fi
47532 { echo "$as_me:$LINENO: result: $wx_cv_gcc_pch_bug" >&5
47533 echo "${ECHO_T}$wx_cv_gcc_pch_bug" >&6; }
47534
47535     if test "$wx_cv_gcc_pch_bug" = yes; then
47536                         bk_use_pch=no
47537     fi
47538 fi
47539
47540
47541
47542
47543
47544
47545
47546     if test "x$BAKEFILE_HOST" = "x"; then
47547                if test "x${host}" = "x" ; then
47548                        { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
47549 echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
47550    { (exit 1); exit 1; }; }
47551                fi
47552
47553         BAKEFILE_HOST="${host}"
47554     fi
47555
47556     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
47557
47558     if test -n "$ac_tool_prefix"; then
47559   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
47560 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
47561 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47563 if test "${ac_cv_prog_RANLIB+set}" = set; then
47564   echo $ECHO_N "(cached) $ECHO_C" >&6
47565 else
47566   if test -n "$RANLIB"; then
47567   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
47568 else
47569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47570 for as_dir in $PATH
47571 do
47572   IFS=$as_save_IFS
47573   test -z "$as_dir" && as_dir=.
47574   for ac_exec_ext in '' $ac_executable_extensions; do
47575   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47576     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
47577     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47578     break 2
47579   fi
47580 done
47581 done
47582 IFS=$as_save_IFS
47583
47584 fi
47585 fi
47586 RANLIB=$ac_cv_prog_RANLIB
47587 if test -n "$RANLIB"; then
47588   { echo "$as_me:$LINENO: result: $RANLIB" >&5
47589 echo "${ECHO_T}$RANLIB" >&6; }
47590 else
47591   { echo "$as_me:$LINENO: result: no" >&5
47592 echo "${ECHO_T}no" >&6; }
47593 fi
47594
47595
47596 fi
47597 if test -z "$ac_cv_prog_RANLIB"; then
47598   ac_ct_RANLIB=$RANLIB
47599   # Extract the first word of "ranlib", so it can be a program name with args.
47600 set dummy ranlib; ac_word=$2
47601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47603 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
47604   echo $ECHO_N "(cached) $ECHO_C" >&6
47605 else
47606   if test -n "$ac_ct_RANLIB"; then
47607   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
47608 else
47609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47610 for as_dir in $PATH
47611 do
47612   IFS=$as_save_IFS
47613   test -z "$as_dir" && as_dir=.
47614   for ac_exec_ext in '' $ac_executable_extensions; do
47615   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47616     ac_cv_prog_ac_ct_RANLIB="ranlib"
47617     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47618     break 2
47619   fi
47620 done
47621 done
47622 IFS=$as_save_IFS
47623
47624 fi
47625 fi
47626 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
47627 if test -n "$ac_ct_RANLIB"; then
47628   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
47629 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
47630 else
47631   { echo "$as_me:$LINENO: result: no" >&5
47632 echo "${ECHO_T}no" >&6; }
47633 fi
47634
47635   if test "x$ac_ct_RANLIB" = x; then
47636     RANLIB=":"
47637   else
47638     case $cross_compiling:$ac_tool_warned in
47639 yes:)
47640 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
47641 whose name does not start with the host triplet.  If you think this
47642 configuration is useful to you, please write to autoconf@gnu.org." >&5
47643 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
47644 whose name does not start with the host triplet.  If you think this
47645 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47646 ac_tool_warned=yes ;;
47647 esac
47648     RANLIB=$ac_ct_RANLIB
47649   fi
47650 else
47651   RANLIB="$ac_cv_prog_RANLIB"
47652 fi
47653
47654     # Find a good install program.  We prefer a C program (faster),
47655 # so one script is as good as another.  But avoid the broken or
47656 # incompatible versions:
47657 # SysV /etc/install, /usr/sbin/install
47658 # SunOS /usr/etc/install
47659 # IRIX /sbin/install
47660 # AIX /bin/install
47661 # AmigaOS /C/install, which installs bootblocks on floppy discs
47662 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
47663 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
47664 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
47665 # OS/2's system install, which has a completely different semantic
47666 # ./install, which can be erroneously created by make from ./install.sh.
47667 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
47668 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
47669 if test -z "$INSTALL"; then
47670 if test "${ac_cv_path_install+set}" = set; then
47671   echo $ECHO_N "(cached) $ECHO_C" >&6
47672 else
47673   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47674 for as_dir in $PATH
47675 do
47676   IFS=$as_save_IFS
47677   test -z "$as_dir" && as_dir=.
47678   # Account for people who put trailing slashes in PATH elements.
47679 case $as_dir/ in
47680   ./ | .// | /cC/* | \
47681   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
47682   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
47683   /usr/ucb/* ) ;;
47684   *)
47685     # OSF1 and SCO ODT 3.0 have their own names for install.
47686     # Don't use installbsd from OSF since it installs stuff as root
47687     # by default.
47688     for ac_prog in ginstall scoinst install; do
47689       for ac_exec_ext in '' $ac_executable_extensions; do
47690         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
47691           if test $ac_prog = install &&
47692             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
47693             # AIX install.  It has an incompatible calling convention.
47694             :
47695           elif test $ac_prog = install &&
47696             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
47697             # program-specific install script used by HP pwplus--don't use.
47698             :
47699           else
47700             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
47701             break 3
47702           fi
47703         fi
47704       done
47705     done
47706     ;;
47707 esac
47708 done
47709 IFS=$as_save_IFS
47710
47711
47712 fi
47713   if test "${ac_cv_path_install+set}" = set; then
47714     INSTALL=$ac_cv_path_install
47715   else
47716     # As a last resort, use the slow shell script.  Don't cache a
47717     # value for INSTALL within a source directory, because that will
47718     # break other packages using the cache if that directory is
47719     # removed, or if the value is a relative name.
47720     INSTALL=$ac_install_sh
47721   fi
47722 fi
47723 { echo "$as_me:$LINENO: result: $INSTALL" >&5
47724 echo "${ECHO_T}$INSTALL" >&6; }
47725
47726 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
47727 # It thinks the first close brace ends the variable substitution.
47728 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
47729
47730 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
47731
47732 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
47733
47734     { echo "$as_me:$LINENO: checking whether ln -s works" >&5
47735 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
47736 LN_S=$as_ln_s
47737 if test "$LN_S" = "ln -s"; then
47738   { echo "$as_me:$LINENO: result: yes" >&5
47739 echo "${ECHO_T}yes" >&6; }
47740 else
47741   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
47742 echo "${ECHO_T}no, using $LN_S" >&6; }
47743 fi
47744
47745
47746     { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
47747 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
47748 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
47749 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
47750   echo $ECHO_N "(cached) $ECHO_C" >&6
47751 else
47752   cat >conftest.make <<\_ACEOF
47753 SHELL = /bin/sh
47754 all:
47755         @echo '@@@%%%=$(MAKE)=@@@%%%'
47756 _ACEOF
47757 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
47758 case `${MAKE-make} -f conftest.make 2>/dev/null` in
47759   *@@@%%%=?*=@@@%%%*)
47760     eval ac_cv_prog_make_${ac_make}_set=yes;;
47761   *)
47762     eval ac_cv_prog_make_${ac_make}_set=no;;
47763 esac
47764 rm -f conftest.make
47765 fi
47766 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
47767   { echo "$as_me:$LINENO: result: yes" >&5
47768 echo "${ECHO_T}yes" >&6; }
47769   SET_MAKE=
47770 else
47771   { echo "$as_me:$LINENO: result: no" >&5
47772 echo "${ECHO_T}no" >&6; }
47773   SET_MAKE="MAKE=${MAKE-make}"
47774 fi
47775
47776
47777
47778     if test "x$SUNCXX" = "xyes"; then
47779                                 AR=$CXX
47780         AROPTIONS="-xar -o"
47781
47782     elif test "x$SGICC" = "xyes"; then
47783                 AR=$CXX
47784         AROPTIONS="-ar -o"
47785
47786     else
47787         if test -n "$ac_tool_prefix"; then
47788   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
47789 set dummy ${ac_tool_prefix}ar; ac_word=$2
47790 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47792 if test "${ac_cv_prog_AR+set}" = set; then
47793   echo $ECHO_N "(cached) $ECHO_C" >&6
47794 else
47795   if test -n "$AR"; then
47796   ac_cv_prog_AR="$AR" # Let the user override the test.
47797 else
47798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47799 for as_dir in $PATH
47800 do
47801   IFS=$as_save_IFS
47802   test -z "$as_dir" && as_dir=.
47803   for ac_exec_ext in '' $ac_executable_extensions; do
47804   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47805     ac_cv_prog_AR="${ac_tool_prefix}ar"
47806     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47807     break 2
47808   fi
47809 done
47810 done
47811 IFS=$as_save_IFS
47812
47813 fi
47814 fi
47815 AR=$ac_cv_prog_AR
47816 if test -n "$AR"; then
47817   { echo "$as_me:$LINENO: result: $AR" >&5
47818 echo "${ECHO_T}$AR" >&6; }
47819 else
47820   { echo "$as_me:$LINENO: result: no" >&5
47821 echo "${ECHO_T}no" >&6; }
47822 fi
47823
47824
47825 fi
47826 if test -z "$ac_cv_prog_AR"; then
47827   ac_ct_AR=$AR
47828   # Extract the first word of "ar", so it can be a program name with args.
47829 set dummy ar; ac_word=$2
47830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47832 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
47833   echo $ECHO_N "(cached) $ECHO_C" >&6
47834 else
47835   if test -n "$ac_ct_AR"; then
47836   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
47837 else
47838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47839 for as_dir in $PATH
47840 do
47841   IFS=$as_save_IFS
47842   test -z "$as_dir" && as_dir=.
47843   for ac_exec_ext in '' $ac_executable_extensions; do
47844   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47845     ac_cv_prog_ac_ct_AR="ar"
47846     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47847     break 2
47848   fi
47849 done
47850 done
47851 IFS=$as_save_IFS
47852
47853 fi
47854 fi
47855 ac_ct_AR=$ac_cv_prog_ac_ct_AR
47856 if test -n "$ac_ct_AR"; then
47857   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
47858 echo "${ECHO_T}$ac_ct_AR" >&6; }
47859 else
47860   { echo "$as_me:$LINENO: result: no" >&5
47861 echo "${ECHO_T}no" >&6; }
47862 fi
47863
47864   if test "x$ac_ct_AR" = x; then
47865     AR="ar"
47866   else
47867     case $cross_compiling:$ac_tool_warned in
47868 yes:)
47869 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
47870 whose name does not start with the host triplet.  If you think this
47871 configuration is useful to you, please write to autoconf@gnu.org." >&5
47872 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
47873 whose name does not start with the host triplet.  If you think this
47874 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47875 ac_tool_warned=yes ;;
47876 esac
47877     AR=$ac_ct_AR
47878   fi
47879 else
47880   AR="$ac_cv_prog_AR"
47881 fi
47882
47883         AROPTIONS=rcu
47884     fi
47885
47886
47887     if test -n "$ac_tool_prefix"; then
47888   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
47889 set dummy ${ac_tool_prefix}strip; ac_word=$2
47890 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47892 if test "${ac_cv_prog_STRIP+set}" = set; then
47893   echo $ECHO_N "(cached) $ECHO_C" >&6
47894 else
47895   if test -n "$STRIP"; then
47896   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
47897 else
47898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47899 for as_dir in $PATH
47900 do
47901   IFS=$as_save_IFS
47902   test -z "$as_dir" && as_dir=.
47903   for ac_exec_ext in '' $ac_executable_extensions; do
47904   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47905     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
47906     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47907     break 2
47908   fi
47909 done
47910 done
47911 IFS=$as_save_IFS
47912
47913 fi
47914 fi
47915 STRIP=$ac_cv_prog_STRIP
47916 if test -n "$STRIP"; then
47917   { echo "$as_me:$LINENO: result: $STRIP" >&5
47918 echo "${ECHO_T}$STRIP" >&6; }
47919 else
47920   { echo "$as_me:$LINENO: result: no" >&5
47921 echo "${ECHO_T}no" >&6; }
47922 fi
47923
47924
47925 fi
47926 if test -z "$ac_cv_prog_STRIP"; then
47927   ac_ct_STRIP=$STRIP
47928   # Extract the first word of "strip", so it can be a program name with args.
47929 set dummy strip; ac_word=$2
47930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47932 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
47933   echo $ECHO_N "(cached) $ECHO_C" >&6
47934 else
47935   if test -n "$ac_ct_STRIP"; then
47936   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
47937 else
47938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47939 for as_dir in $PATH
47940 do
47941   IFS=$as_save_IFS
47942   test -z "$as_dir" && as_dir=.
47943   for ac_exec_ext in '' $ac_executable_extensions; do
47944   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47945     ac_cv_prog_ac_ct_STRIP="strip"
47946     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47947     break 2
47948   fi
47949 done
47950 done
47951 IFS=$as_save_IFS
47952
47953 fi
47954 fi
47955 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
47956 if test -n "$ac_ct_STRIP"; then
47957   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
47958 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
47959 else
47960   { echo "$as_me:$LINENO: result: no" >&5
47961 echo "${ECHO_T}no" >&6; }
47962 fi
47963
47964   if test "x$ac_ct_STRIP" = x; then
47965     STRIP=":"
47966   else
47967     case $cross_compiling:$ac_tool_warned in
47968 yes:)
47969 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
47970 whose name does not start with the host triplet.  If you think this
47971 configuration is useful to you, please write to autoconf@gnu.org." >&5
47972 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
47973 whose name does not start with the host triplet.  If you think this
47974 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47975 ac_tool_warned=yes ;;
47976 esac
47977     STRIP=$ac_ct_STRIP
47978   fi
47979 else
47980   STRIP="$ac_cv_prog_STRIP"
47981 fi
47982
47983     if test -n "$ac_tool_prefix"; then
47984   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
47985 set dummy ${ac_tool_prefix}nm; ac_word=$2
47986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47988 if test "${ac_cv_prog_NM+set}" = set; then
47989   echo $ECHO_N "(cached) $ECHO_C" >&6
47990 else
47991   if test -n "$NM"; then
47992   ac_cv_prog_NM="$NM" # Let the user override the test.
47993 else
47994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47995 for as_dir in $PATH
47996 do
47997   IFS=$as_save_IFS
47998   test -z "$as_dir" && as_dir=.
47999   for ac_exec_ext in '' $ac_executable_extensions; do
48000   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48001     ac_cv_prog_NM="${ac_tool_prefix}nm"
48002     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48003     break 2
48004   fi
48005 done
48006 done
48007 IFS=$as_save_IFS
48008
48009 fi
48010 fi
48011 NM=$ac_cv_prog_NM
48012 if test -n "$NM"; then
48013   { echo "$as_me:$LINENO: result: $NM" >&5
48014 echo "${ECHO_T}$NM" >&6; }
48015 else
48016   { echo "$as_me:$LINENO: result: no" >&5
48017 echo "${ECHO_T}no" >&6; }
48018 fi
48019
48020
48021 fi
48022 if test -z "$ac_cv_prog_NM"; then
48023   ac_ct_NM=$NM
48024   # Extract the first word of "nm", so it can be a program name with args.
48025 set dummy nm; ac_word=$2
48026 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48028 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
48029   echo $ECHO_N "(cached) $ECHO_C" >&6
48030 else
48031   if test -n "$ac_ct_NM"; then
48032   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
48033 else
48034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48035 for as_dir in $PATH
48036 do
48037   IFS=$as_save_IFS
48038   test -z "$as_dir" && as_dir=.
48039   for ac_exec_ext in '' $ac_executable_extensions; do
48040   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48041     ac_cv_prog_ac_ct_NM="nm"
48042     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48043     break 2
48044   fi
48045 done
48046 done
48047 IFS=$as_save_IFS
48048
48049 fi
48050 fi
48051 ac_ct_NM=$ac_cv_prog_ac_ct_NM
48052 if test -n "$ac_ct_NM"; then
48053   { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
48054 echo "${ECHO_T}$ac_ct_NM" >&6; }
48055 else
48056   { echo "$as_me:$LINENO: result: no" >&5
48057 echo "${ECHO_T}no" >&6; }
48058 fi
48059
48060   if test "x$ac_ct_NM" = x; then
48061     NM=":"
48062   else
48063     case $cross_compiling:$ac_tool_warned in
48064 yes:)
48065 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
48066 whose name does not start with the host triplet.  If you think this
48067 configuration is useful to you, please write to autoconf@gnu.org." >&5
48068 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
48069 whose name does not start with the host triplet.  If you think this
48070 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
48071 ac_tool_warned=yes ;;
48072 esac
48073     NM=$ac_ct_NM
48074   fi
48075 else
48076   NM="$ac_cv_prog_NM"
48077 fi
48078
48079
48080             { echo "$as_me:$LINENO: checking for command to install directories" >&5
48081 echo $ECHO_N "checking for command to install directories... $ECHO_C" >&6; }
48082     INSTALL_TEST_DIR=acbftest$$
48083     $INSTALL -d $INSTALL_TEST_DIR > /dev/null 2>&1
48084     if test $? = 0 -a -d $INSTALL_TEST_DIR; then
48085         rmdir $INSTALL_TEST_DIR
48086                         INSTALL_DIR='$(INSTALL) -d'
48087         { echo "$as_me:$LINENO: result: $INSTALL -d" >&5
48088 echo "${ECHO_T}$INSTALL -d" >&6; }
48089     else
48090         INSTALL_DIR="mkdir -p"
48091         { echo "$as_me:$LINENO: result: mkdir -p" >&5
48092 echo "${ECHO_T}mkdir -p" >&6; }
48093     fi
48094
48095
48096     LDFLAGS_GUI=
48097     case ${BAKEFILE_HOST} in
48098         *-*-cygwin* | *-*-mingw32* )
48099         LDFLAGS_GUI="-mwindows"
48100     esac
48101
48102
48103     fi
48104
48105         { echo "$as_me:$LINENO: checking if make is GNU make" >&5
48106 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6; }
48107 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
48108   echo $ECHO_N "(cached) $ECHO_C" >&6
48109 else
48110
48111         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
48112                 egrep -s GNU > /dev/null); then
48113             bakefile_cv_prog_makeisgnu="yes"
48114         else
48115             bakefile_cv_prog_makeisgnu="no"
48116         fi
48117
48118 fi
48119 { echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
48120 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6; }
48121
48122     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
48123         IF_GNU_MAKE=""
48124     else
48125         IF_GNU_MAKE="#"
48126     fi
48127
48128
48129
48130     PLATFORM_UNIX=0
48131     PLATFORM_WIN32=0
48132     PLATFORM_MSDOS=0
48133     PLATFORM_MAC=0
48134     PLATFORM_MACOS=0
48135     PLATFORM_MACOSX=0
48136     PLATFORM_OS2=0
48137     PLATFORM_BEOS=0
48138
48139     if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
48140         case "${BAKEFILE_HOST}" in
48141             *-*-mingw32* )
48142                 PLATFORM_WIN32=1
48143             ;;
48144             *-pc-msdosdjgpp )
48145                 PLATFORM_MSDOS=1
48146             ;;
48147             *-pc-os2_emx | *-pc-os2-emx )
48148                 PLATFORM_OS2=1
48149             ;;
48150             *-*-darwin* )
48151                 PLATFORM_MAC=1
48152                 PLATFORM_MACOSX=1
48153             ;;
48154             *-*-beos* )
48155                 PLATFORM_BEOS=1
48156             ;;
48157             powerpc-apple-macos* )
48158                 PLATFORM_MAC=1
48159                 PLATFORM_MACOS=1
48160             ;;
48161             * )
48162                 PLATFORM_UNIX=1
48163             ;;
48164         esac
48165     else
48166         case "$BAKEFILE_FORCE_PLATFORM" in
48167             win32 )
48168                 PLATFORM_WIN32=1
48169             ;;
48170             msdos )
48171                 PLATFORM_MSDOS=1
48172             ;;
48173             os2 )
48174                 PLATFORM_OS2=1
48175             ;;
48176             darwin )
48177                 PLATFORM_MAC=1
48178                 PLATFORM_MACOSX=1
48179             ;;
48180             unix )
48181                 PLATFORM_UNIX=1
48182             ;;
48183             beos )
48184                 PLATFORM_BEOS=1
48185             ;;
48186             * )
48187                                             ;;
48188         esac
48189     fi
48190
48191
48192
48193
48194
48195
48196
48197
48198
48199
48200
48201     # Check whether --enable-omf was given.
48202 if test "${enable_omf+set}" = set; then
48203   enableval=$enable_omf; bk_os2_use_omf="$enableval"
48204 fi
48205
48206
48207     case "${BAKEFILE_HOST}" in
48208       *-*-darwin* )
48209                         if test "x$GCC" = "xyes"; then
48210             CFLAGS="$CFLAGS -fno-common"
48211             CXXFLAGS="$CXXFLAGS -fno-common"
48212         fi
48213         if test "x$XLCC" = "xyes"; then
48214             CFLAGS="$CFLAGS -qnocommon"
48215             CXXFLAGS="$CXXFLAGS -qnocommon"
48216         fi
48217         ;;
48218
48219       *-pc-os2_emx | *-pc-os2-emx )
48220         if test "x$bk_os2_use_omf" = "xyes" ; then
48221             AR=emxomfar
48222             RANLIB=:
48223             LDFLAGS="-Zomf $LDFLAGS"
48224             CFLAGS="-Zomf $CFLAGS"
48225             CXXFLAGS="-Zomf $CXXFLAGS"
48226             OS2_LIBEXT="lib"
48227         else
48228             OS2_LIBEXT="a"
48229         fi
48230         ;;
48231
48232       i*86-*-beos* )
48233         LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
48234         ;;
48235     esac
48236
48237
48238     SO_SUFFIX="so"
48239     SO_SUFFIX_MODULE="so"
48240     EXEEXT=""
48241     LIBPREFIX="lib"
48242     LIBEXT=".a"
48243     DLLPREFIX="lib"
48244     DLLPREFIX_MODULE=""
48245     DLLIMP_SUFFIX=""
48246     dlldir="$libdir"
48247
48248     case "${BAKEFILE_HOST}" in
48249                         ia64-hp-hpux* )
48250         ;;
48251         *-hp-hpux* )
48252             SO_SUFFIX="sl"
48253             SO_SUFFIX_MODULE="sl"
48254         ;;
48255         *-*-aix* )
48256                                                                         SO_SUFFIX="a"
48257             SO_SUFFIX_MODULE="a"
48258         ;;
48259         *-*-cygwin* )
48260             SO_SUFFIX="dll"
48261             SO_SUFFIX_MODULE="dll"
48262             DLLIMP_SUFFIX="dll.a"
48263             EXEEXT=".exe"
48264             DLLPREFIX="cyg"
48265             dlldir="$bindir"
48266         ;;
48267         *-*-mingw32* )
48268             SO_SUFFIX="dll"
48269             SO_SUFFIX_MODULE="dll"
48270             DLLIMP_SUFFIX="dll.a"
48271             EXEEXT=".exe"
48272             DLLPREFIX=""
48273             dlldir="$bindir"
48274         ;;
48275         *-pc-msdosdjgpp )
48276             EXEEXT=".exe"
48277             DLLPREFIX=""
48278             dlldir="$bindir"
48279         ;;
48280         *-pc-os2_emx | *-pc-os2-emx )
48281             SO_SUFFIX="dll"
48282             SO_SUFFIX_MODULE="dll"
48283             DLLIMP_SUFFIX=$OS2_LIBEXT
48284             EXEEXT=".exe"
48285             DLLPREFIX=""
48286             LIBPREFIX=""
48287             LIBEXT=".$OS2_LIBEXT"
48288             dlldir="$bindir"
48289         ;;
48290         *-*-darwin* )
48291             SO_SUFFIX="dylib"
48292             SO_SUFFIX_MODULE="bundle"
48293         ;;
48294     esac
48295
48296     if test "x$DLLIMP_SUFFIX" = "x" ; then
48297         DLLIMP_SUFFIX="$SO_SUFFIX"
48298     fi
48299
48300
48301
48302
48303
48304
48305
48306
48307
48308
48309
48310
48311         PIC_FLAG=""
48312     if test "x$GCC" = "xyes"; then
48313                 PIC_FLAG="-fPIC"
48314     fi
48315
48316         SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
48317     SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
48318     WINDOWS_IMPLIB=0
48319
48320     case "${BAKEFILE_HOST}" in
48321       *-hp-hpux* )
48322                 if test "x$GCC" != "xyes"; then
48323                         LDFLAGS="$LDFLAGS -L/usr/lib"
48324
48325             SHARED_LD_CC="${CC} -b -o"
48326             SHARED_LD_CXX="${CXX} -b -o"
48327             PIC_FLAG="+Z"
48328         fi
48329       ;;
48330
48331       *-*-linux* )
48332                         if test "$INTELCC" = "yes" -a "$INTELCC8" != "yes"; then
48333             PIC_FLAG="-KPIC"
48334         elif test "x$SUNCXX" = "xyes"; then
48335             SHARED_LD_CC="${CC} -G -o"
48336             SHARED_LD_CXX="${CXX} -G -o"
48337             PIC_FLAG="-KPIC"
48338         fi
48339       ;;
48340
48341       *-*-solaris2* )
48342         if test "x$SUNCXX" = xyes ; then
48343             SHARED_LD_CC="${CC} -G -o"
48344             SHARED_LD_CXX="${CXX} -G -o"
48345             PIC_FLAG="-KPIC"
48346         fi
48347       ;;
48348
48349       *-*-darwin* )
48350
48351 D='$'
48352 cat <<EOF >shared-ld-sh
48353 #!/bin/sh
48354 #-----------------------------------------------------------------------------
48355 #-- Name:        distrib/mac/shared-ld-sh
48356 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
48357 #-- Author:      Gilles Depeyrot
48358 #-- Copyright:   (c) 2002 Gilles Depeyrot
48359 #-- Licence:     any use permitted
48360 #-----------------------------------------------------------------------------
48361
48362 verbose=0
48363 args=""
48364 objects=""
48365 linking_flag="-dynamiclib"
48366 ldargs="-r -keep_private_externs -nostdlib"
48367
48368 if test "x${D}CXX" = "x"; then
48369     CXX="c++"
48370 fi
48371
48372 while test ${D}# -gt 0; do
48373     case ${D}1 in
48374
48375        -v)
48376         verbose=1
48377         ;;
48378
48379        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
48380         # collect these options and values
48381         args="${D}{args} ${D}1 ${D}2"
48382         shift
48383         ;;
48384
48385        -arch|-isysroot)
48386         # collect these options and values
48387         ldargs="${D}{ldargs} ${D}1 ${D}2"
48388         shift
48389         ;;
48390
48391        -s|-Wl,*)
48392         # collect these load args
48393         ldargs="${D}{ldargs} ${D}1"
48394         ;;
48395
48396        -l*|-L*|-flat_namespace|-headerpad_max_install_names)
48397         # collect these options
48398         args="${D}{args} ${D}1"
48399         ;;
48400
48401        -dynamiclib|-bundle)
48402         linking_flag="${D}1"
48403         ;;
48404
48405        -*)
48406         echo "shared-ld: unhandled option '${D}1'"
48407         exit 1
48408         ;;
48409
48410         *.o | *.a | *.dylib)
48411         # collect object files
48412         objects="${D}{objects} ${D}1"
48413         ;;
48414
48415         *)
48416         echo "shared-ld: unhandled argument '${D}1'"
48417         exit 1
48418         ;;
48419
48420     esac
48421     shift
48422 done
48423
48424 status=0
48425
48426 #
48427 # Link one module containing all the others
48428 #
48429 if test ${D}{verbose} = 1; then
48430     echo "${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
48431 fi
48432 ${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
48433 status=${D}?
48434
48435 #
48436 # Link the shared library from the single module created, but only if the
48437 # previous command didn't fail:
48438 #
48439 if test ${D}{status} = 0; then
48440     if test ${D}{verbose} = 1; then
48441         echo "${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
48442     fi
48443     ${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}
48444     status=${D}?
48445 fi
48446
48447 #
48448 # Remove intermediate module
48449 #
48450 rm -f master.${D}${D}.o
48451
48452 exit ${D}status
48453 EOF
48454
48455         chmod +x shared-ld-sh
48456
48457         SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
48458         SHARED_LD_MODULE_CXX="CXX=\$(CXX) $SHARED_LD_MODULE_CC"
48459
48460
48461                                 { echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
48462 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6; }
48463 if test "${bakefile_cv_gcc31+set}" = set; then
48464   echo $ECHO_N "(cached) $ECHO_C" >&6
48465 else
48466
48467            cat >conftest.$ac_ext <<_ACEOF
48468 /* confdefs.h.  */
48469 _ACEOF
48470 cat confdefs.h >>conftest.$ac_ext
48471 cat >>conftest.$ac_ext <<_ACEOF
48472 /* end confdefs.h.  */
48473
48474 int
48475 main ()
48476 {
48477
48478                    #if (__GNUC__ < 3) || \
48479                        ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
48480                        This is old gcc
48481                    #endif
48482
48483   ;
48484   return 0;
48485 }
48486 _ACEOF
48487 rm -f conftest.$ac_objext
48488 if { (ac_try="$ac_compile"
48489 case "(($ac_try" in
48490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48491   *) ac_try_echo=$ac_try;;
48492 esac
48493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48494   (eval "$ac_compile") 2>conftest.er1
48495   ac_status=$?
48496   grep -v '^ *+' conftest.er1 >conftest.err
48497   rm -f conftest.er1
48498   cat conftest.err >&5
48499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48500   (exit $ac_status); } && {
48501          test -z "$ac_c_werror_flag" ||
48502          test ! -s conftest.err
48503        } && test -s conftest.$ac_objext; then
48504
48505                    bakefile_cv_gcc31=yes
48506
48507 else
48508   echo "$as_me: failed program was:" >&5
48509 sed 's/^/| /' conftest.$ac_ext >&5
48510
48511
48512                    bakefile_cv_gcc31=no
48513
48514
48515 fi
48516
48517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48518
48519 fi
48520 { echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
48521 echo "${ECHO_T}$bakefile_cv_gcc31" >&6; }
48522         if test "$bakefile_cv_gcc31" = "no"; then
48523                         SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
48524             SHARED_LD_CXX="$SHARED_LD_CC"
48525         else
48526                         SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
48527             SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
48528         fi
48529
48530         if test "x$GCC" == "xyes"; then
48531             PIC_FLAG="-dynamic -fPIC"
48532         fi
48533         if test "x$XLCC" = "xyes"; then
48534             PIC_FLAG="-dynamic -DPIC"
48535         fi
48536       ;;
48537
48538       *-*-aix* )
48539         if test "x$GCC" = "xyes"; then
48540                                                             PIC_FLAG=""
48541
48542                                                                                     case "${BAKEFILE_HOST}" in
48543                 *-*-aix5* )
48544                     LD_EXPFULL="-Wl,-bexpfull"
48545                     ;;
48546             esac
48547
48548             SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
48549             SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
48550         else
48551                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
48552 set dummy makeC++SharedLib; ac_word=$2
48553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48555 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
48556   echo $ECHO_N "(cached) $ECHO_C" >&6
48557 else
48558   if test -n "$AIX_CXX_LD"; then
48559   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
48560 else
48561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48562 for as_dir in $PATH
48563 do
48564   IFS=$as_save_IFS
48565   test -z "$as_dir" && as_dir=.
48566   for ac_exec_ext in '' $ac_executable_extensions; do
48567   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48568     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
48569     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48570     break 2
48571   fi
48572 done
48573 done
48574 IFS=$as_save_IFS
48575
48576   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
48577 fi
48578 fi
48579 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
48580 if test -n "$AIX_CXX_LD"; then
48581   { echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
48582 echo "${ECHO_T}$AIX_CXX_LD" >&6; }
48583 else
48584   { echo "$as_me:$LINENO: result: no" >&5
48585 echo "${ECHO_T}no" >&6; }
48586 fi
48587
48588
48589             SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
48590             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
48591         fi
48592       ;;
48593
48594       *-*-beos* )
48595                         SHARED_LD_CC="${LD} -nostart -o"
48596         SHARED_LD_CXX="${LD} -nostart -o"
48597       ;;
48598
48599       *-*-irix* )
48600                 if test "x$GCC" != "xyes"; then
48601             PIC_FLAG="-KPIC"
48602         fi
48603       ;;
48604
48605       *-*-cygwin* | *-*-mingw32* )
48606         PIC_FLAG=""
48607         SHARED_LD_CC="\$(CC) -shared -o"
48608         SHARED_LD_CXX="\$(CXX) -shared -o"
48609         WINDOWS_IMPLIB=1
48610       ;;
48611
48612       *-pc-os2_emx | *-pc-os2-emx )
48613         SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48614         SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48615         PIC_FLAG=""
48616
48617 D='$'
48618 cat <<EOF >dllar.sh
48619 #!/bin/sh
48620 #
48621 # dllar - a tool to build both a .dll and an .a file
48622 # from a set of object (.o) files for EMX/OS2.
48623 #
48624 #  Written by Andrew Zabolotny, bit@freya.etu.ru
48625 #  Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
48626 #
48627 #  This script will accept a set of files on the command line.
48628 #  All the public symbols from the .o files will be exported into
48629 #  a .DEF file, then linker will be run (through gcc) against them to
48630 #  build a shared library consisting of all given .o files. All libraries
48631 #  (.a) will be first decompressed into component .o files then act as
48632 #  described above. You can optionally give a description (-d "description")
48633 #  which will be put into .DLL. To see the list of accepted options (as well
48634 #  as command-line format) simply run this program without options. The .DLL
48635 #  is built to be imported by name (there is no guarantee that new versions
48636 #  of the library you build will have same ordinals for same symbols).
48637 #
48638 #  dllar is free software; you can redistribute it and/or modify
48639 #  it under the terms of the GNU General Public License as published by
48640 #  the Free Software Foundation; either version 2, or (at your option)
48641 #  any later version.
48642 #
48643 #  dllar is distributed in the hope that it will be useful,
48644 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
48645 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
48646 #  GNU General Public License for more details.
48647 #
48648 #  You should have received a copy of the GNU General Public License
48649 #  along with dllar; see the file COPYING.  If not, write to the Free
48650 #  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
48651 #  02111-1307, USA.
48652
48653 # To successfuly run this program you will need:
48654 #  - Current drive should have LFN support (HPFS, ext2, network, etc)
48655 #    (Sometimes dllar generates filenames which won't fit 8.3 scheme)
48656 #  - gcc
48657 #    (used to build the .dll)
48658 #  - emxexp
48659 #    (used to create .def file from .o files)
48660 #  - emximp
48661 #    (used to create .a file from .def file)
48662 #  - GNU text utilites (cat, sort, uniq)
48663 #    used to process emxexp output
48664 #  - GNU file utilities (mv, rm)
48665 #  - GNU sed
48666 #  - lxlite (optional, see flag below)
48667 #    (used for general .dll cleanup)
48668 #
48669
48670 flag_USE_LXLITE=1;
48671
48672 #
48673 # helper functions
48674 # basnam, variant of basename, which does _not_ remove the path, _iff_
48675 #                              second argument (suffix to remove) is given
48676 basnam(){
48677     case ${D}# in
48678     1)
48679         echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
48680         ;;
48681     2)
48682         echo ${D}1 | sed 's/'${D}2'${D}//'
48683         ;;
48684     *)
48685         echo "error in basnam ${D}*"
48686         exit 8
48687         ;;
48688     esac
48689 }
48690
48691 # Cleanup temporary files and output
48692 CleanUp() {
48693     cd ${D}curDir
48694     for i in ${D}inputFiles ; do
48695         case ${D}i in
48696         *!)
48697             rm -rf \`basnam ${D}i !\`
48698             ;;
48699         *)
48700             ;;
48701         esac
48702     done
48703
48704     # Kill result in case of failure as there is just to many stupid make/nmake
48705     # things out there which doesn't do this.
48706     if [ ${D}# -eq 0 ]; then
48707         rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
48708     fi
48709 }
48710
48711 # Print usage and exit script with rc=1.
48712 PrintHelp() {
48713  echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
48714  echo '       [-name-mangler-script script.sh]'
48715  echo '       [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
48716  echo '       [-ord[inals]] -ex[clude] "symbol(s)"'
48717  echo '       [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
48718  echo '       [*.o] [*.a]'
48719  echo '*> "output_file" should have no extension.'
48720  echo '   If it has the .o, .a or .dll extension, it is automatically removed.'
48721  echo '   The import library name is derived from this and is set to "name".a,'
48722  echo '   unless overridden by -import'
48723  echo '*> "importlib_name" should have no extension.'
48724  echo '   If it has the .o, or .a extension, it is automatically removed.'
48725  echo '   This name is used as the import library name and may be longer and'
48726  echo '   more descriptive than the DLL name which has to follow the old '
48727  echo '   8.3 convention of FAT.'
48728  echo '*> "script.sh may be given to override the output_file name by a'
48729  echo '   different name. It is mainly useful if the regular make process'
48730  echo '   of some package does not take into account OS/2 restriction of'
48731  echo '   DLL name lengths. It takes the importlib name as input and is'
48732  echo '   supposed to procude a shorter name as output. The script should'
48733  echo '   expect to get importlib_name without extension and should produce'
48734  echo '   a (max.) 8 letter name without extension.'
48735  echo '*> "cc" is used to use another GCC executable.   (default: gcc.exe)'
48736  echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
48737  echo '   These flags will be put at the start of GCC command line.'
48738  echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
48739  echo '*> -ex[clude] defines symbols which will not be exported. You can define'
48740  echo '   multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
48741  echo '   If the last character of a symbol is "*", all symbols beginning'
48742  echo '   with the prefix before "*" will be exclude, (see _GLOBAL* above).'
48743  echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
48744  echo '   TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
48745  echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
48746  echo '   C runtime DLLs.'
48747  echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
48748  echo '*> All other switches (for example -L./ or -lmylib) will be passed'
48749  echo '   unchanged to GCC at the end of command line.'
48750  echo '*> If you create a DLL from a library and you do not specify -o,'
48751  echo '   the basename for DLL and import library will be set to library name,'
48752  echo '   the initial library will be renamed to 'name'_s.a (_s for static)'
48753  echo '   i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
48754  echo '   library will be renamed into gcc_s.a.'
48755  echo '--------'
48756  echo 'Example:'
48757  echo '   dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
48758  echo '    -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
48759  CleanUp
48760  exit 1
48761 }
48762
48763 # Execute a command.
48764 # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
48765 # @Uses    Whatever CleanUp() uses.
48766 doCommand() {
48767     echo "${D}*"
48768     eval ${D}*
48769     rcCmd=${D}?
48770
48771     if [ ${D}rcCmd -ne 0 ]; then
48772         echo "command failed, exit code="${D}rcCmd
48773         CleanUp
48774         exit ${D}rcCmd
48775     fi
48776 }
48777
48778 # main routine
48779 # setup globals
48780 cmdLine=${D}*
48781 outFile=""
48782 outimpFile=""
48783 inputFiles=""
48784 renameScript=""
48785 description=""
48786 CC=gcc.exe
48787 CFLAGS="-s -Zcrtdll"
48788 EXTRA_CFLAGS=""
48789 EXPORT_BY_ORDINALS=0
48790 exclude_symbols=""
48791 library_flags=""
48792 curDir=\`pwd\`
48793 curDirS=curDir
48794 case ${D}curDirS in
48795 */)
48796   ;;
48797 *)
48798   curDirS=${D}{curDirS}"/"
48799   ;;
48800 esac
48801 # Parse commandline
48802 libsToLink=0
48803 omfLinking=0
48804 while [ ${D}1 ]; do
48805     case ${D}1 in
48806     -ord*)
48807         EXPORT_BY_ORDINALS=1;
48808         ;;
48809     -o*)
48810         shift
48811         outFile=${D}1
48812         ;;
48813     -i*)
48814         shift
48815         outimpFile=${D}1
48816         ;;
48817     -name-mangler-script)
48818         shift
48819         renameScript=${D}1
48820         ;;
48821     -d*)
48822         shift
48823         description=${D}1
48824         ;;
48825     -f*)
48826         shift
48827         CFLAGS=${D}1
48828         ;;
48829     -c*)
48830         shift
48831         CC=${D}1
48832         ;;
48833     -h*)
48834         PrintHelp
48835         ;;
48836     -ex*)
48837         shift
48838         exclude_symbols=${D}{exclude_symbols}${D}1" "
48839         ;;
48840     -libf*)
48841         shift
48842         library_flags=${D}{library_flags}${D}1" "
48843         ;;
48844     -nocrt*)
48845         CFLAGS="-s"
48846         ;;
48847     -nolxl*)
48848         flag_USE_LXLITE=0
48849         ;;
48850     -* | /*)
48851         case ${D}1 in
48852         -L* | -l*)
48853             libsToLink=1
48854             ;;
48855         -Zomf)
48856             omfLinking=1
48857             ;;
48858         *)
48859             ;;
48860         esac
48861         EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
48862         ;;
48863     *.dll)
48864         EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
48865         if [ ${D}omfLinking -eq 1 ]; then
48866             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
48867         else
48868             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
48869         fi
48870         ;;
48871     *)
48872         found=0;
48873         if [ ${D}libsToLink -ne 0 ]; then
48874             EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
48875         else
48876             for file in ${D}1 ; do
48877                 if [ -f ${D}file ]; then
48878                     inputFiles="${D}{inputFiles} ${D}file"
48879                     found=1
48880                 fi
48881             done
48882             if [ ${D}found -eq 0 ]; then
48883                 echo "ERROR: No file(s) found: "${D}1
48884                 exit 8
48885             fi
48886         fi
48887       ;;
48888     esac
48889     shift
48890 done # iterate cmdline words
48891
48892 #
48893 if [ -z "${D}inputFiles" ]; then
48894     echo "dllar: no input files"
48895     PrintHelp
48896 fi
48897
48898 # Now extract all .o files from .a files
48899 newInputFiles=""
48900 for file in ${D}inputFiles ; do
48901     case ${D}file in
48902     *.a | *.lib)
48903         case ${D}file in
48904         *.a)
48905             suffix=".a"
48906             AR="ar"
48907             ;;
48908         *.lib)
48909             suffix=".lib"
48910             AR="emxomfar"
48911             EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
48912             ;;
48913         *)
48914             ;;
48915         esac
48916         dirname=\`basnam ${D}file ${D}suffix\`"_%"
48917         mkdir ${D}dirname
48918         if [ ${D}? -ne 0 ]; then
48919             echo "Failed to create subdirectory ./${D}dirname"
48920             CleanUp
48921             exit 8;
48922         fi
48923         # Append '!' to indicate archive
48924         newInputFiles="${D}newInputFiles ${D}{dirname}!"
48925         doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
48926         cd ${D}curDir
48927         found=0;
48928         for subfile in ${D}dirname/*.o* ; do
48929             if [ -f ${D}subfile ]; then
48930                 found=1
48931                 if [ -s ${D}subfile ]; then
48932                     # FIXME: This should be: is file size > 32 byte, _not_ > 0!
48933                     newInputFiles="${D}newInputFiles ${D}subfile"
48934                 fi
48935             fi
48936         done
48937         if [ ${D}found -eq 0 ]; then
48938             echo "WARNING: there are no files in archive \\'${D}file\\'"
48939         fi
48940         ;;
48941     *)
48942         newInputFiles="${D}{newInputFiles} ${D}file"
48943         ;;
48944     esac
48945 done
48946 inputFiles="${D}newInputFiles"
48947
48948 # Output filename(s).
48949 do_backup=0;
48950 if [ -z ${D}outFile ]; then
48951     do_backup=1;
48952     set outFile ${D}inputFiles; outFile=${D}2
48953 fi
48954
48955 # If it is an archive, remove the '!' and the '_%' suffixes
48956 case ${D}outFile in
48957 *_%!)
48958     outFile=\`basnam ${D}outFile _%!\`
48959     ;;
48960 *)
48961     ;;
48962 esac
48963 case ${D}outFile in
48964 *.dll)
48965     outFile=\`basnam ${D}outFile .dll\`
48966     ;;
48967 *.DLL)
48968     outFile=\`basnam ${D}outFile .DLL\`
48969     ;;
48970 *.o)
48971     outFile=\`basnam ${D}outFile .o\`
48972     ;;
48973 *.obj)
48974     outFile=\`basnam ${D}outFile .obj\`
48975     ;;
48976 *.a)
48977     outFile=\`basnam ${D}outFile .a\`
48978     ;;
48979 *.lib)
48980     outFile=\`basnam ${D}outFile .lib\`
48981     ;;
48982 *)
48983     ;;
48984 esac
48985 case ${D}outimpFile in
48986 *.a)
48987     outimpFile=\`basnam ${D}outimpFile .a\`
48988     ;;
48989 *.lib)
48990     outimpFile=\`basnam ${D}outimpFile .lib\`
48991     ;;
48992 *)
48993     ;;
48994 esac
48995 if [ -z ${D}outimpFile ]; then
48996     outimpFile=${D}outFile
48997 fi
48998 defFile="${D}{outFile}.def"
48999 arcFile="${D}{outimpFile}.a"
49000 arcFile2="${D}{outimpFile}.lib"
49001
49002 #create ${D}dllFile as something matching 8.3 restrictions,
49003 if [ -z ${D}renameScript ] ; then
49004     dllFile="${D}outFile"
49005 else
49006     dllFile=\`${D}renameScript ${D}outimpFile\`
49007 fi
49008
49009 if [ ${D}do_backup -ne 0 ] ; then
49010     if [ -f ${D}arcFile ] ; then
49011         doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
49012     fi
49013     if [ -f ${D}arcFile2 ] ; then
49014         doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
49015     fi
49016 fi
49017
49018 # Extract public symbols from all the object files.
49019 tmpdefFile=${D}{defFile}_%
49020 rm -f ${D}tmpdefFile
49021 for file in ${D}inputFiles ; do
49022     case ${D}file in
49023     *!)
49024         ;;
49025     *)
49026         doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
49027         ;;
49028     esac
49029 done
49030
49031 # Create the def file.
49032 rm -f ${D}defFile
49033 echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
49034 dllFile="${D}{dllFile}.dll"
49035 if [ ! -z ${D}description ]; then
49036     echo "DESCRIPTION  \\"${D}{description}\\"" >> ${D}defFile
49037 fi
49038 echo "EXPORTS" >> ${D}defFile
49039
49040 doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
49041 grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
49042
49043 # Checks if the export is ok or not.
49044 for word in ${D}exclude_symbols; do
49045     grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
49046     mv ${D}{tmpdefFile}% ${D}tmpdefFile
49047 done
49048
49049
49050 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
49051     sed "=" < ${D}tmpdefFile | \\
49052     sed '
49053       N
49054       : loop
49055       s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
49056       t loop
49057     ' > ${D}{tmpdefFile}%
49058     grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
49059 else
49060     rm -f ${D}{tmpdefFile}%
49061 fi
49062 cat ${D}tmpdefFile >> ${D}defFile
49063 rm -f ${D}tmpdefFile
49064
49065 # Do linking, create implib, and apply lxlite.
49066 gccCmdl="";
49067 for file in ${D}inputFiles ; do
49068     case ${D}file in
49069     *!)
49070         ;;
49071     *)
49072         gccCmdl="${D}gccCmdl ${D}file"
49073         ;;
49074     esac
49075 done
49076 doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
49077 touch "${D}{outFile}.dll"
49078
49079 doCommand "emximp -o ${D}arcFile ${D}defFile"
49080 if [ ${D}flag_USE_LXLITE -ne 0 ]; then
49081     add_flags="";
49082     if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
49083         add_flags="-ynd"
49084     fi
49085     doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
49086 fi
49087 doCommand "emxomf -s -l ${D}arcFile"
49088
49089 # Successful exit.
49090 CleanUp 1
49091 exit 0
49092 EOF
49093
49094         chmod +x dllar.sh
49095       ;;
49096
49097       powerpc-apple-macos* | \
49098       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
49099       *-*-mirbsd* | \
49100       *-*-sunos4* | \
49101       *-*-osf* | \
49102       *-*-dgux5* | \
49103       *-*-sysv5* | \
49104       *-pc-msdosdjgpp )
49105               ;;
49106
49107       *)
49108         { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
49109 echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
49110    { (exit 1); exit 1; }; }
49111     esac
49112
49113     if test "x$PIC_FLAG" != "x" ; then
49114         PIC_FLAG="$PIC_FLAG -DPIC"
49115     fi
49116
49117     if test "x$SHARED_LD_MODULE_CC" = "x" ; then
49118         SHARED_LD_MODULE_CC="$SHARED_LD_CC"
49119     fi
49120     if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
49121         SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
49122     fi
49123
49124
49125
49126
49127
49128
49129
49130
49131
49132     USE_SOVERSION=0
49133     USE_SOVERLINUX=0
49134     USE_SOVERSOLARIS=0
49135     USE_SOVERCYGWIN=0
49136     USE_SOSYMLINKS=0
49137     USE_MACVERSION=0
49138     SONAME_FLAG=
49139
49140     case "${BAKEFILE_HOST}" in
49141       *-*-linux* | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
49142       *-*-k*bsd*-gnu | *-*-mirbsd* )
49143         if test "x$SUNCXX" = "xyes"; then
49144             SONAME_FLAG="-h "
49145         else
49146             SONAME_FLAG="-Wl,-soname,"
49147         fi
49148         USE_SOVERSION=1
49149         USE_SOVERLINUX=1
49150         USE_SOSYMLINKS=1
49151       ;;
49152
49153       *-*-solaris2* )
49154         SONAME_FLAG="-h "
49155         USE_SOVERSION=1
49156         USE_SOVERSOLARIS=1
49157         USE_SOSYMLINKS=1
49158       ;;
49159
49160       *-*-darwin* )
49161         USE_MACVERSION=1
49162         USE_SOVERSION=1
49163         USE_SOSYMLINKS=1
49164       ;;
49165
49166       *-*-cygwin* )
49167         USE_SOVERSION=1
49168         USE_SOVERCYGWIN=1
49169       ;;
49170     esac
49171
49172
49173
49174
49175
49176
49177
49178
49179
49180
49181     # Check whether --enable-dependency-tracking was given.
49182 if test "${enable_dependency_tracking+set}" = set; then
49183   enableval=$enable_dependency_tracking; bk_use_trackdeps="$enableval"
49184 fi
49185
49186
49187     { echo "$as_me:$LINENO: checking for dependency tracking method" >&5
49188 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6; }
49189
49190     BK_DEPS=""
49191     if test "x$bk_use_trackdeps" = "xno" ; then
49192         DEPS_TRACKING=0
49193         { echo "$as_me:$LINENO: result: disabled" >&5
49194 echo "${ECHO_T}disabled" >&6; }
49195     else
49196         DEPS_TRACKING=1
49197
49198         if test "x$GCC" = "xyes"; then
49199             DEPSMODE=gcc
49200             case "${BAKEFILE_HOST}" in
49201                 *-*-darwin* )
49202                                                             DEPSFLAG="-no-cpp-precomp -MMD"
49203                 ;;
49204                 * )
49205                     DEPSFLAG="-MMD"
49206                 ;;
49207             esac
49208             { echo "$as_me:$LINENO: result: gcc" >&5
49209 echo "${ECHO_T}gcc" >&6; }
49210         elif test "x$MWCC" = "xyes"; then
49211             DEPSMODE=mwcc
49212             DEPSFLAG="-MM"
49213             { echo "$as_me:$LINENO: result: mwcc" >&5
49214 echo "${ECHO_T}mwcc" >&6; }
49215         elif test "x$SUNCC" = "xyes"; then
49216             DEPSMODE=unixcc
49217             DEPSFLAG="-xM1"
49218             { echo "$as_me:$LINENO: result: Sun cc" >&5
49219 echo "${ECHO_T}Sun cc" >&6; }
49220         elif test "x$SGICC" = "xyes"; then
49221             DEPSMODE=unixcc
49222             DEPSFLAG="-M"
49223             { echo "$as_me:$LINENO: result: SGI cc" >&5
49224 echo "${ECHO_T}SGI cc" >&6; }
49225         elif test "x$HPCC" = "xyes"; then
49226             DEPSMODE=unixcc
49227             DEPSFLAG="+make"
49228             { echo "$as_me:$LINENO: result: HP cc" >&5
49229 echo "${ECHO_T}HP cc" >&6; }
49230         elif test "x$COMPAQCC" = "xyes"; then
49231             DEPSMODE=gcc
49232             DEPSFLAG="-MD"
49233             { echo "$as_me:$LINENO: result: Compaq cc" >&5
49234 echo "${ECHO_T}Compaq cc" >&6; }
49235         else
49236             DEPS_TRACKING=0
49237             { echo "$as_me:$LINENO: result: none" >&5
49238 echo "${ECHO_T}none" >&6; }
49239         fi
49240
49241         if test $DEPS_TRACKING = 1 ; then
49242
49243 D='$'
49244 cat <<EOF >bk-deps
49245 #!/bin/sh
49246
49247 # This script is part of Bakefile (http://www.bakefile.org) autoconf
49248 # script. It is used to track C/C++ files dependencies in portable way.
49249 #
49250 # Permission is given to use this file in any way.
49251
49252 DEPSMODE=${DEPSMODE}
49253 DEPSFLAG="${DEPSFLAG}"
49254 DEPSDIRBASE=.deps
49255
49256 if test ${D}DEPSMODE = gcc ; then
49257     ${D}* ${D}{DEPSFLAG}
49258     status=${D}?
49259
49260     # determine location of created files:
49261     while test ${D}# -gt 0; do
49262         case "${D}1" in
49263             -o )
49264                 shift
49265                 objfile=${D}1
49266             ;;
49267             -* )
49268             ;;
49269             * )
49270                 srcfile=${D}1
49271             ;;
49272         esac
49273         shift
49274     done
49275     objfilebase=\`basename ${D}objfile\`
49276     builddir=\`dirname ${D}objfile\`
49277     depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
49278     depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
49279     depsdir=${D}builddir/${D}DEPSDIRBASE
49280     mkdir -p ${D}depsdir
49281
49282     # if the compiler failed, we're done:
49283     if test ${D}{status} != 0 ; then
49284         rm -f ${D}depfile
49285         exit ${D}{status}
49286     fi
49287
49288     # move created file to the location we want it in:
49289     if test -f ${D}depfile ; then
49290         sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{depsdir}/${D}{objfilebase}.d
49291         rm -f ${D}depfile
49292     else
49293         # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
49294         depfile=\`echo "${D}objfile" | sed -e 's/\\..*${D}/.d/g'\`
49295         if test ! -f ${D}depfile ; then
49296             # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
49297             depfile="${D}objfile.d"
49298         fi
49299         if test -f ${D}depfile ; then
49300             sed -e "\\,^${D}objfile,!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{depsdir}/${D}{objfilebase}.d
49301             rm -f ${D}depfile
49302         fi
49303     fi
49304     exit 0
49305
49306 elif test ${D}DEPSMODE = mwcc ; then
49307     ${D}* || exit ${D}?
49308     # Run mwcc again with -MM and redirect into the dep file we want
49309     # NOTE: We can't use shift here because we need ${D}* to be valid
49310     prevarg=
49311     for arg in ${D}* ; do
49312         if test "${D}prevarg" = "-o"; then
49313             objfile=${D}arg
49314         else
49315             case "${D}arg" in
49316                 -* )
49317                 ;;
49318                 * )
49319                     srcfile=${D}arg
49320                 ;;
49321             esac
49322         fi
49323         prevarg="${D}arg"
49324     done
49325
49326     objfilebase=\`basename ${D}objfile\`
49327     builddir=\`dirname ${D}objfile\`
49328     depsdir=${D}builddir/${D}DEPSDIRBASE
49329     mkdir -p ${D}depsdir
49330
49331     ${D}* ${D}DEPSFLAG >${D}{depsdir}/${D}{objfilebase}.d
49332     exit 0
49333
49334 elif test ${D}DEPSMODE = unixcc; then
49335     ${D}* || exit ${D}?
49336     # Run compiler again with deps flag and redirect into the dep file.
49337     # It doesn't work if the '-o FILE' option is used, but without it the
49338     # dependency file will contain the wrong name for the object. So it is
49339     # removed from the command line, and the dep file is fixed with sed.
49340     cmd=""
49341     while test ${D}# -gt 0; do
49342         case "${D}1" in
49343             -o )
49344                 shift
49345                 objfile=${D}1
49346             ;;
49347             * )
49348                 eval arg${D}#=\\${D}1
49349                 cmd="${D}cmd \\${D}arg${D}#"
49350             ;;
49351         esac
49352         shift
49353     done
49354
49355     objfilebase=\`basename ${D}objfile\`
49356     builddir=\`dirname ${D}objfile\`
49357     depsdir=${D}builddir/${D}DEPSDIRBASE
49358     mkdir -p ${D}depsdir
49359
49360     eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{depsdir}/${D}{objfilebase}.d
49361     exit 0
49362
49363 else
49364     ${D}*
49365     exit ${D}?
49366 fi
49367 EOF
49368
49369             chmod +x bk-deps
49370                                     BK_DEPS="`pwd`/bk-deps"
49371         fi
49372     fi
49373
49374
49375
49376
49377
49378     case ${BAKEFILE_HOST} in
49379         *-*-cygwin* | *-*-mingw32* )
49380                         if test -n "$ac_tool_prefix"; then
49381   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
49382 set dummy ${ac_tool_prefix}windres; ac_word=$2
49383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49385 if test "${ac_cv_prog_WINDRES+set}" = set; then
49386   echo $ECHO_N "(cached) $ECHO_C" >&6
49387 else
49388   if test -n "$WINDRES"; then
49389   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
49390 else
49391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49392 for as_dir in $PATH
49393 do
49394   IFS=$as_save_IFS
49395   test -z "$as_dir" && as_dir=.
49396   for ac_exec_ext in '' $ac_executable_extensions; do
49397   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49398     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
49399     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49400     break 2
49401   fi
49402 done
49403 done
49404 IFS=$as_save_IFS
49405
49406 fi
49407 fi
49408 WINDRES=$ac_cv_prog_WINDRES
49409 if test -n "$WINDRES"; then
49410   { echo "$as_me:$LINENO: result: $WINDRES" >&5
49411 echo "${ECHO_T}$WINDRES" >&6; }
49412 else
49413   { echo "$as_me:$LINENO: result: no" >&5
49414 echo "${ECHO_T}no" >&6; }
49415 fi
49416
49417
49418 fi
49419 if test -z "$ac_cv_prog_WINDRES"; then
49420   ac_ct_WINDRES=$WINDRES
49421   # Extract the first word of "windres", so it can be a program name with args.
49422 set dummy windres; ac_word=$2
49423 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49425 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
49426   echo $ECHO_N "(cached) $ECHO_C" >&6
49427 else
49428   if test -n "$ac_ct_WINDRES"; then
49429   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
49430 else
49431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49432 for as_dir in $PATH
49433 do
49434   IFS=$as_save_IFS
49435   test -z "$as_dir" && as_dir=.
49436   for ac_exec_ext in '' $ac_executable_extensions; do
49437   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49438     ac_cv_prog_ac_ct_WINDRES="windres"
49439     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49440     break 2
49441   fi
49442 done
49443 done
49444 IFS=$as_save_IFS
49445
49446 fi
49447 fi
49448 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
49449 if test -n "$ac_ct_WINDRES"; then
49450   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
49451 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
49452 else
49453   { echo "$as_me:$LINENO: result: no" >&5
49454 echo "${ECHO_T}no" >&6; }
49455 fi
49456
49457   if test "x$ac_ct_WINDRES" = x; then
49458     WINDRES=""
49459   else
49460     case $cross_compiling:$ac_tool_warned in
49461 yes:)
49462 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49463 whose name does not start with the host triplet.  If you think this
49464 configuration is useful to you, please write to autoconf@gnu.org." >&5
49465 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49466 whose name does not start with the host triplet.  If you think this
49467 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49468 ac_tool_warned=yes ;;
49469 esac
49470     WINDRES=$ac_ct_WINDRES
49471   fi
49472 else
49473   WINDRES="$ac_cv_prog_WINDRES"
49474 fi
49475
49476          ;;
49477
49478       *-*-darwin* | powerpc-apple-macos* )
49479             # Extract the first word of "Rez", so it can be a program name with args.
49480 set dummy Rez; ac_word=$2
49481 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49483 if test "${ac_cv_prog_REZ+set}" = set; then
49484   echo $ECHO_N "(cached) $ECHO_C" >&6
49485 else
49486   if test -n "$REZ"; then
49487   ac_cv_prog_REZ="$REZ" # Let the user override the test.
49488 else
49489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49490 for as_dir in $PATH
49491 do
49492   IFS=$as_save_IFS
49493   test -z "$as_dir" && as_dir=.
49494   for ac_exec_ext in '' $ac_executable_extensions; do
49495   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49496     ac_cv_prog_REZ="Rez"
49497     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49498     break 2
49499   fi
49500 done
49501 done
49502 IFS=$as_save_IFS
49503
49504   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
49505 fi
49506 fi
49507 REZ=$ac_cv_prog_REZ
49508 if test -n "$REZ"; then
49509   { echo "$as_me:$LINENO: result: $REZ" >&5
49510 echo "${ECHO_T}$REZ" >&6; }
49511 else
49512   { echo "$as_me:$LINENO: result: no" >&5
49513 echo "${ECHO_T}no" >&6; }
49514 fi
49515
49516
49517             # Extract the first word of "SetFile", so it can be a program name with args.
49518 set dummy SetFile; ac_word=$2
49519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49521 if test "${ac_cv_prog_SETFILE+set}" = set; then
49522   echo $ECHO_N "(cached) $ECHO_C" >&6
49523 else
49524   if test -n "$SETFILE"; then
49525   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
49526 else
49527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49528 for as_dir in $PATH
49529 do
49530   IFS=$as_save_IFS
49531   test -z "$as_dir" && as_dir=.
49532   for ac_exec_ext in '' $ac_executable_extensions; do
49533   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49534     ac_cv_prog_SETFILE="SetFile"
49535     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49536     break 2
49537   fi
49538 done
49539 done
49540 IFS=$as_save_IFS
49541
49542   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
49543 fi
49544 fi
49545 SETFILE=$ac_cv_prog_SETFILE
49546 if test -n "$SETFILE"; then
49547   { echo "$as_me:$LINENO: result: $SETFILE" >&5
49548 echo "${ECHO_T}$SETFILE" >&6; }
49549 else
49550   { echo "$as_me:$LINENO: result: no" >&5
49551 echo "${ECHO_T}no" >&6; }
49552 fi
49553
49554
49555         ;;
49556     esac
49557
49558
49559
49560
49561
49562
49563
49564
49565
49566     BAKEFILE_BAKEFILE_M4_VERSION="0.2.5"
49567
49568
49569 BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.5"
49570
49571
49572
49573     # Check whether --enable-precomp-headers was given.
49574 if test "${enable_precomp_headers+set}" = set; then
49575   enableval=$enable_precomp_headers; bk_use_pch="$enableval"
49576 fi
49577
49578
49579     GCC_PCH=0
49580     ICC_PCH=0
49581     USE_PCH=0
49582     BK_MAKE_PCH=""
49583
49584     case ${BAKEFILE_HOST} in
49585         *-*-cygwin* )
49586                                                 bk_use_pch="no"
49587             ;;
49588     esac
49589
49590     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
49591         if test "x$GCC" = "xyes"; then
49592                         { echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
49593 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6; }
49594             cat >conftest.$ac_ext <<_ACEOF
49595 /* confdefs.h.  */
49596 _ACEOF
49597 cat confdefs.h >>conftest.$ac_ext
49598 cat >>conftest.$ac_ext <<_ACEOF
49599 /* end confdefs.h.  */
49600
49601 int
49602 main ()
49603 {
49604
49605                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
49606                         There is no PCH support
49607                     #endif
49608                     #if (__GNUC__ < 3)
49609                         There is no PCH support
49610                     #endif
49611                     #if (__GNUC__ == 3) && \
49612                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
49613                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
49614                        ( defined(__INTEL_COMPILER) )
49615                         There is no PCH support
49616                     #endif
49617
49618   ;
49619   return 0;
49620 }
49621 _ACEOF
49622 rm -f conftest.$ac_objext
49623 if { (ac_try="$ac_compile"
49624 case "(($ac_try" in
49625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49626   *) ac_try_echo=$ac_try;;
49627 esac
49628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49629   (eval "$ac_compile") 2>conftest.er1
49630   ac_status=$?
49631   grep -v '^ *+' conftest.er1 >conftest.err
49632   rm -f conftest.er1
49633   cat conftest.err >&5
49634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49635   (exit $ac_status); } && {
49636          test -z "$ac_c_werror_flag" ||
49637          test ! -s conftest.err
49638        } && test -s conftest.$ac_objext; then
49639
49640                     { echo "$as_me:$LINENO: result: yes" >&5
49641 echo "${ECHO_T}yes" >&6; }
49642                     GCC_PCH=1
49643
49644 else
49645   echo "$as_me: failed program was:" >&5
49646 sed 's/^/| /' conftest.$ac_ext >&5
49647
49648
49649                     if test "$INTELCXX8" = "yes"; then
49650                         { echo "$as_me:$LINENO: result: yes" >&5
49651 echo "${ECHO_T}yes" >&6; }
49652                         ICC_PCH=1
49653                         if test "$INTELCXX10" = "yes"; then
49654                             ICC_PCH_CREATE_SWITCH="-pch-create"
49655                             ICC_PCH_USE_SWITCH="-pch-use"
49656                         else
49657                             ICC_PCH_CREATE_SWITCH="-create-pch"
49658                             ICC_PCH_USE_SWITCH="-use-pch"
49659                         fi
49660                     else
49661                         { echo "$as_me:$LINENO: result: no" >&5
49662 echo "${ECHO_T}no" >&6; }
49663                     fi
49664
49665 fi
49666
49667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49668             if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
49669                 USE_PCH=1
49670
49671 D='$'
49672 cat <<EOF >bk-make-pch
49673 #!/bin/sh
49674
49675 # This script is part of Bakefile (http://www.bakefile.org) autoconf
49676 # script. It is used to generated precompiled headers.
49677 #
49678 # Permission is given to use this file in any way.
49679
49680 outfile="${D}{1}"
49681 header="${D}{2}"
49682 shift
49683 shift
49684
49685 builddir=\`echo ${D}outfile | sed -e 's,/\\.pch/.*${D},,g'\`
49686
49687 compiler=""
49688 headerfile=""
49689
49690 while test ${D}{#} -gt 0; do
49691     add_to_cmdline=1
49692     case "${D}{1}" in
49693         -I* )
49694             incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
49695             if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
49696                 headerfile="${D}{incdir}/${D}{header}"
49697             fi
49698         ;;
49699         -use-pch|-use_pch|-pch-use )
49700             shift
49701             add_to_cmdline=0
49702         ;;
49703     esac
49704     if test ${D}add_to_cmdline = 1 ; then
49705         compiler="${D}{compiler} ${D}{1}"
49706     fi
49707     shift
49708 done
49709
49710 if test "x${D}{headerfile}" = "x" ; then
49711     echo "error: can't find header ${D}{header} in include paths" >&2
49712 else
49713     if test -f ${D}{outfile} ; then
49714         rm -f ${D}{outfile}
49715     else
49716         mkdir -p \`dirname ${D}{outfile}\`
49717     fi
49718     depsfile="${D}{builddir}/.deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
49719     mkdir -p ${D}{builddir}/.deps
49720     if test "x${GCC_PCH}" = "x1" ; then
49721         # can do this because gcc is >= 3.4:
49722         ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
49723     elif test "x${ICC_PCH}" = "x1" ; then
49724         filename=pch_gen-${D}${D}
49725         file=${D}{filename}.c
49726         dfile=${D}{filename}.d
49727         cat > ${D}file <<EOT
49728 #include "${D}header"
49729 EOT
49730         # using -MF icc complains about differing command lines in creation/use
49731         ${D}compiler -c ${ICC_PCH_CREATE_SWITCH} ${D}outfile -MMD ${D}file && \\
49732           sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
49733           rm -f ${D}file ${D}dfile ${D}{filename}.o
49734     fi
49735     exit ${D}{?}
49736 fi
49737 EOF
49738
49739                 chmod +x bk-make-pch
49740                                                                 BK_MAKE_PCH="`pwd`/bk-make-pch"
49741             fi
49742         fi
49743     fi
49744
49745
49746
49747
49748
49749
49750
49751     COND_BUILD_DEBUG="#"
49752     if test "x$BUILD" = "xdebug" ; then
49753         COND_BUILD_DEBUG=""
49754     fi
49755
49756     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
49757     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
49758         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
49759     fi
49760
49761     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
49762     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
49763         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
49764     fi
49765
49766     COND_BUILD_DEBUG_UNICODE_0="#"
49767     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
49768         COND_BUILD_DEBUG_UNICODE_0=""
49769     fi
49770
49771     COND_BUILD_DEBUG_UNICODE_1="#"
49772     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
49773         COND_BUILD_DEBUG_UNICODE_1=""
49774     fi
49775
49776     COND_BUILD_RELEASE="#"
49777     if test "x$BUILD" = "xrelease" ; then
49778         COND_BUILD_RELEASE=""
49779     fi
49780
49781     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
49782     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
49783         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
49784     fi
49785
49786     COND_BUILD_RELEASE_UNICODE_0="#"
49787     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
49788         COND_BUILD_RELEASE_UNICODE_0=""
49789     fi
49790
49791     COND_BUILD_RELEASE_UNICODE_1="#"
49792     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
49793         COND_BUILD_RELEASE_UNICODE_1=""
49794     fi
49795
49796     COND_BUILD_debug="#"
49797     if test "x$BUILD" = "xdebug" ; then
49798         COND_BUILD_debug=""
49799     fi
49800
49801     COND_BUILD_debug_DEBUG_FLAG_default="#"
49802     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
49803         COND_BUILD_debug_DEBUG_FLAG_default=""
49804     fi
49805
49806     COND_BUILD_debug_DEBUG_INFO_default="#"
49807     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
49808         COND_BUILD_debug_DEBUG_INFO_default=""
49809     fi
49810
49811     COND_BUILD_debug_UNICODE_0="#"
49812     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
49813         COND_BUILD_debug_UNICODE_0=""
49814     fi
49815
49816     COND_BUILD_debug_UNICODE_1="#"
49817     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
49818         COND_BUILD_debug_UNICODE_1=""
49819     fi
49820
49821     COND_BUILD_release="#"
49822     if test "x$BUILD" = "xrelease" ; then
49823         COND_BUILD_release=""
49824     fi
49825
49826     COND_BUILD_release_DEBUG_INFO_default="#"
49827     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
49828         COND_BUILD_release_DEBUG_INFO_default=""
49829     fi
49830
49831     COND_BUILD_release_UNICODE_0="#"
49832     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
49833         COND_BUILD_release_UNICODE_0=""
49834     fi
49835
49836     COND_BUILD_release_UNICODE_1="#"
49837     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
49838         COND_BUILD_release_UNICODE_1=""
49839     fi
49840
49841     COND_DEBUG_FLAG_1="#"
49842     if test "x$DEBUG_FLAG" = "x1" ; then
49843         COND_DEBUG_FLAG_1=""
49844     fi
49845
49846     COND_DEBUG_INFO_0="#"
49847     if test "x$DEBUG_INFO" = "x0" ; then
49848         COND_DEBUG_INFO_0=""
49849     fi
49850
49851     COND_DEBUG_INFO_1="#"
49852     if test "x$DEBUG_INFO" = "x1" ; then
49853         COND_DEBUG_INFO_1=""
49854     fi
49855
49856     COND_DEPS_TRACKING_0="#"
49857     if test "x$DEPS_TRACKING" = "x0" ; then
49858         COND_DEPS_TRACKING_0=""
49859     fi
49860
49861     COND_DEPS_TRACKING_1="#"
49862     if test "x$DEPS_TRACKING" = "x1" ; then
49863         COND_DEPS_TRACKING_1=""
49864     fi
49865
49866     COND_GCC_PCH_1="#"
49867     if test "x$GCC_PCH" = "x1" ; then
49868         COND_GCC_PCH_1=""
49869     fi
49870
49871     COND_ICC_PCH_1="#"
49872     if test "x$ICC_PCH" = "x1" ; then
49873         COND_ICC_PCH_1=""
49874     fi
49875
49876     COND_MONOLITHIC_0="#"
49877     if test "x$MONOLITHIC" = "x0" ; then
49878         COND_MONOLITHIC_0=""
49879     fi
49880
49881     COND_MONOLITHIC_0_SHARED_0="#"
49882     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
49883         COND_MONOLITHIC_0_SHARED_0=""
49884     fi
49885
49886     COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
49887     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
49888         COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
49889     fi
49890
49891     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
49892     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
49893         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
49894     fi
49895
49896     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
49897     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
49898         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
49899     fi
49900
49901     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
49902     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
49903         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
49904     fi
49905
49906     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
49907     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
49908         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
49909     fi
49910
49911     COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1="#"
49912     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_PROPGRID" = "x1" ; then
49913         COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1=""
49914     fi
49915
49916     COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
49917     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
49918         COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
49919     fi
49920
49921     COND_MONOLITHIC_0_SHARED_0_USE_STC_1="#"
49922     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
49923         COND_MONOLITHIC_0_SHARED_0_USE_STC_1=""
49924     fi
49925
49926     COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
49927     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
49928         COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
49929     fi
49930
49931     COND_MONOLITHIC_0_SHARED_1="#"
49932     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
49933         COND_MONOLITHIC_0_SHARED_1=""
49934     fi
49935
49936     COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
49937     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
49938         COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
49939     fi
49940
49941     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
49942     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
49943         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
49944     fi
49945
49946     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
49947     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
49948         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
49949     fi
49950
49951     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
49952     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
49953         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
49954     fi
49955
49956     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
49957     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
49958         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
49959     fi
49960
49961     COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1="#"
49962     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_PROPGRID" = "x1" ; then
49963         COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1=""
49964     fi
49965
49966     COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
49967     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
49968         COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
49969     fi
49970
49971     COND_MONOLITHIC_0_SHARED_1_USE_STC_1="#"
49972     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_STC" = "x1" ; then
49973         COND_MONOLITHIC_0_SHARED_1_USE_STC_1=""
49974     fi
49975
49976     COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
49977     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
49978         COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
49979     fi
49980
49981     COND_MONOLITHIC_0_USE_AUI_1="#"
49982     if test "x$MONOLITHIC" = "x0" -a "x$USE_AUI" = "x1" ; then
49983         COND_MONOLITHIC_0_USE_AUI_1=""
49984     fi
49985
49986     COND_MONOLITHIC_0_USE_GUI_1="#"
49987     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" ; then
49988         COND_MONOLITHIC_0_USE_GUI_1=""
49989     fi
49990
49991     COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1="#"
49992     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
49993         COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1=""
49994     fi
49995
49996     COND_MONOLITHIC_0_USE_HTML_1="#"
49997     if test "x$MONOLITHIC" = "x0" -a "x$USE_HTML" = "x1" ; then
49998         COND_MONOLITHIC_0_USE_HTML_1=""
49999     fi
50000
50001     COND_MONOLITHIC_0_USE_MEDIA_1="#"
50002     if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
50003         COND_MONOLITHIC_0_USE_MEDIA_1=""
50004     fi
50005
50006     COND_MONOLITHIC_0_USE_PROPGRID_1="#"
50007     if test "x$MONOLITHIC" = "x0" -a "x$USE_PROPGRID" = "x1" ; then
50008         COND_MONOLITHIC_0_USE_PROPGRID_1=""
50009     fi
50010
50011     COND_MONOLITHIC_0_USE_QA_1="#"
50012     if test "x$MONOLITHIC" = "x0" -a "x$USE_QA" = "x1" ; then
50013         COND_MONOLITHIC_0_USE_QA_1=""
50014     fi
50015
50016     COND_MONOLITHIC_0_USE_RICHTEXT_1="#"
50017     if test "x$MONOLITHIC" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
50018         COND_MONOLITHIC_0_USE_RICHTEXT_1=""
50019     fi
50020
50021     COND_MONOLITHIC_0_USE_STC_1="#"
50022     if test "x$MONOLITHIC" = "x0" -a "x$USE_STC" = "x1" ; then
50023         COND_MONOLITHIC_0_USE_STC_1=""
50024     fi
50025
50026     COND_MONOLITHIC_0_USE_XRC_1="#"
50027     if test "x$MONOLITHIC" = "x0" -a "x$USE_XRC" = "x1" ; then
50028         COND_MONOLITHIC_0_USE_XRC_1=""
50029     fi
50030
50031     COND_MONOLITHIC_1="#"
50032     if test "x$MONOLITHIC" = "x1" ; then
50033         COND_MONOLITHIC_1=""
50034     fi
50035
50036     COND_MONOLITHIC_1_SHARED_0="#"
50037     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
50038         COND_MONOLITHIC_1_SHARED_0=""
50039     fi
50040
50041     COND_MONOLITHIC_1_SHARED_1="#"
50042     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
50043         COND_MONOLITHIC_1_SHARED_1=""
50044     fi
50045
50046     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
50047     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
50048         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
50049     fi
50050
50051     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
50052     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
50053         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
50054     fi
50055
50056     COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
50057     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
50058         COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
50059     fi
50060
50061     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
50062     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
50063         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
50064     fi
50065
50066     COND_PLATFORM_MACOSX_1="#"
50067     if test "x$PLATFORM_MACOSX" = "x1" ; then
50068         COND_PLATFORM_MACOSX_1=""
50069     fi
50070
50071     COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0="#"
50072     if test "x$PLATFORM_MACOSX" = "x1" -a "x$PLATFORM_MSDOS" = "x0" ; then
50073         COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0=""
50074     fi
50075
50076     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1="#"
50077     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" ; then
50078         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1=""
50079     fi
50080
50081     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0="#"
50082     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50083         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0=""
50084     fi
50085
50086     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1="#"
50087     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" ; then
50088         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1=""
50089     fi
50090
50091     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0="#"
50092     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50093         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0=""
50094     fi
50095
50096     COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
50097     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
50098         COND_PLATFORM_MACOSX_1_USE_GUI_1=""
50099     fi
50100
50101     COND_PLATFORM_MACOSX_1_USE_OPENGL_1="#"
50102     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_OPENGL" = "x1" ; then
50103         COND_PLATFORM_MACOSX_1_USE_OPENGL_1=""
50104     fi
50105
50106     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
50107     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
50108         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
50109     fi
50110
50111     COND_PLATFORM_MACOS_1="#"
50112     if test "x$PLATFORM_MACOS" = "x1" ; then
50113         COND_PLATFORM_MACOS_1=""
50114     fi
50115
50116     COND_PLATFORM_MAC_0="#"
50117     if test "x$PLATFORM_MAC" = "x0" ; then
50118         COND_PLATFORM_MAC_0=""
50119     fi
50120
50121     COND_PLATFORM_MAC_1="#"
50122     if test "x$PLATFORM_MAC" = "x1" ; then
50123         COND_PLATFORM_MAC_1=""
50124     fi
50125
50126     COND_PLATFORM_MSDOS_0="#"
50127     if test "x$PLATFORM_MSDOS" = "x0" ; then
50128         COND_PLATFORM_MSDOS_0=""
50129     fi
50130
50131     COND_PLATFORM_MSDOS_1="#"
50132     if test "x$PLATFORM_MSDOS" = "x1" ; then
50133         COND_PLATFORM_MSDOS_1=""
50134     fi
50135
50136     COND_PLATFORM_OS2_1="#"
50137     if test "x$PLATFORM_OS2" = "x1" ; then
50138         COND_PLATFORM_OS2_1=""
50139     fi
50140
50141     COND_PLATFORM_UNIX_0="#"
50142     if test "x$PLATFORM_UNIX" = "x0" ; then
50143         COND_PLATFORM_UNIX_0=""
50144     fi
50145
50146     COND_PLATFORM_UNIX_1="#"
50147     if test "x$PLATFORM_UNIX" = "x1" ; then
50148         COND_PLATFORM_UNIX_1=""
50149     fi
50150
50151     COND_PLATFORM_UNIX_1_TOOLKIT_MGL="#"
50152     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" ; then
50153         COND_PLATFORM_UNIX_1_TOOLKIT_MGL=""
50154     fi
50155
50156     COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1="#"
50157     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
50158         COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1=""
50159     fi
50160
50161     COND_PLATFORM_UNIX_1_USE_GUI_1="#"
50162     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
50163         COND_PLATFORM_UNIX_1_USE_GUI_1=""
50164     fi
50165
50166     COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
50167     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
50168         COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
50169     fi
50170
50171     COND_PLATFORM_WIN32_0="#"
50172     if test "x$PLATFORM_WIN32" = "x0" ; then
50173         COND_PLATFORM_WIN32_0=""
50174     fi
50175
50176     COND_PLATFORM_WIN32_1="#"
50177     if test "x$PLATFORM_WIN32" = "x1" ; then
50178         COND_PLATFORM_WIN32_1=""
50179     fi
50180
50181     COND_SHARED_0="#"
50182     if test "x$SHARED" = "x0" ; then
50183         COND_SHARED_0=""
50184     fi
50185
50186     COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
50187     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
50188         COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
50189     fi
50190
50191     COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
50192     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
50193         COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
50194     fi
50195
50196     COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
50197     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
50198         COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
50199     fi
50200
50201     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
50202     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
50203         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
50204     fi
50205
50206     COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin="#"
50207     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50208         COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin=""
50209     fi
50210
50211     COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin="#"
50212     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50213         COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin=""
50214     fi
50215
50216     COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin="#"
50217     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50218         COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin=""
50219     fi
50220
50221     COND_SHARED_0_USE_STC_1="#"
50222     if test "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
50223         COND_SHARED_0_USE_STC_1=""
50224     fi
50225
50226     COND_SHARED_0_wxUSE_EXPAT_builtin="#"
50227     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
50228         COND_SHARED_0_wxUSE_EXPAT_builtin=""
50229     fi
50230
50231     COND_SHARED_0_wxUSE_REGEX_builtin="#"
50232     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
50233         COND_SHARED_0_wxUSE_REGEX_builtin=""
50234     fi
50235
50236     COND_SHARED_0_wxUSE_ZLIB_builtin="#"
50237     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
50238         COND_SHARED_0_wxUSE_ZLIB_builtin=""
50239     fi
50240
50241     COND_SHARED_1="#"
50242     if test "x$SHARED" = "x1" ; then
50243         COND_SHARED_1=""
50244     fi
50245
50246     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
50247     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
50248         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
50249     fi
50250
50251     COND_TOOLKIT_="#"
50252     if test "x$TOOLKIT" = "x" ; then
50253         COND_TOOLKIT_=""
50254     fi
50255
50256     COND_TOOLKIT_COCOA="#"
50257     if test "x$TOOLKIT" = "xCOCOA" ; then
50258         COND_TOOLKIT_COCOA=""
50259     fi
50260
50261     COND_TOOLKIT_COCOA_USE_GUI_1="#"
50262     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
50263         COND_TOOLKIT_COCOA_USE_GUI_1=""
50264     fi
50265
50266     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
50267     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50268         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
50269     fi
50270
50271     COND_TOOLKIT_DFB="#"
50272     if test "x$TOOLKIT" = "xDFB" ; then
50273         COND_TOOLKIT_DFB=""
50274     fi
50275
50276     COND_TOOLKIT_DFB_USE_GUI_1="#"
50277     if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
50278         COND_TOOLKIT_DFB_USE_GUI_1=""
50279     fi
50280
50281     COND_TOOLKIT_GTK="#"
50282     if test "x$TOOLKIT" = "xGTK" ; then
50283         COND_TOOLKIT_GTK=""
50284     fi
50285
50286     COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
50287     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
50288         COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
50289     fi
50290
50291     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
50292     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
50293         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
50294     fi
50295
50296     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
50297     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
50298         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
50299     fi
50300
50301     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
50302     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50303         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
50304     fi
50305
50306     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
50307     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
50308         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
50309     fi
50310
50311     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
50312     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50313         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
50314     fi
50315
50316     COND_TOOLKIT_GTK_USE_GUI_1="#"
50317     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
50318         COND_TOOLKIT_GTK_USE_GUI_1=""
50319     fi
50320
50321     COND_TOOLKIT_MAC="#"
50322     if test "x$TOOLKIT" = "xMAC" ; then
50323         COND_TOOLKIT_MAC=""
50324     fi
50325
50326     COND_TOOLKIT_MGL="#"
50327     if test "x$TOOLKIT" = "xMGL" ; then
50328         COND_TOOLKIT_MGL=""
50329     fi
50330
50331     COND_TOOLKIT_MGL_USE_GUI_1="#"
50332     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
50333         COND_TOOLKIT_MGL_USE_GUI_1=""
50334     fi
50335
50336     COND_TOOLKIT_MOTIF="#"
50337     if test "x$TOOLKIT" = "xMOTIF" ; then
50338         COND_TOOLKIT_MOTIF=""
50339     fi
50340
50341     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
50342     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
50343         COND_TOOLKIT_MOTIF_USE_GUI_1=""
50344     fi
50345
50346     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
50347     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50348         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
50349     fi
50350
50351     COND_TOOLKIT_MSW="#"
50352     if test "x$TOOLKIT" = "xMSW" ; then
50353         COND_TOOLKIT_MSW=""
50354     fi
50355
50356     COND_TOOLKIT_MSW_USE_GUI_1="#"
50357     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
50358         COND_TOOLKIT_MSW_USE_GUI_1=""
50359     fi
50360
50361     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
50362     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50363         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
50364     fi
50365
50366     COND_TOOLKIT_MSW_WXUNIV_0="#"
50367     if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
50368         COND_TOOLKIT_MSW_WXUNIV_0=""
50369     fi
50370
50371     COND_TOOLKIT_OSX_CARBON="#"
50372     if test "x$TOOLKIT" = "xOSX_CARBON" ; then
50373         COND_TOOLKIT_OSX_CARBON=""
50374     fi
50375
50376     COND_TOOLKIT_OSX_CARBON_USE_GUI_1="#"
50377     if test "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" ; then
50378         COND_TOOLKIT_OSX_CARBON_USE_GUI_1=""
50379     fi
50380
50381     COND_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0="#"
50382     if test "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50383         COND_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0=""
50384     fi
50385
50386     COND_TOOLKIT_OSX_COCOA="#"
50387     if test "x$TOOLKIT" = "xOSX_COCOA" ; then
50388         COND_TOOLKIT_OSX_COCOA=""
50389     fi
50390
50391     COND_TOOLKIT_OSX_COCOA_USE_GUI_1="#"
50392     if test "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" ; then
50393         COND_TOOLKIT_OSX_COCOA_USE_GUI_1=""
50394     fi
50395
50396     COND_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0="#"
50397     if test "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50398         COND_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0=""
50399     fi
50400
50401     COND_TOOLKIT_OSX_IPHONE="#"
50402     if test "x$TOOLKIT" = "xOSX_IPHONE" ; then
50403         COND_TOOLKIT_OSX_IPHONE=""
50404     fi
50405
50406     COND_TOOLKIT_PM="#"
50407     if test "x$TOOLKIT" = "xPM" ; then
50408         COND_TOOLKIT_PM=""
50409     fi
50410
50411     COND_TOOLKIT_PM_USE_GUI_1="#"
50412     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
50413         COND_TOOLKIT_PM_USE_GUI_1=""
50414     fi
50415
50416     COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
50417     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50418         COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
50419     fi
50420
50421     COND_TOOLKIT_WINCE="#"
50422     if test "x$TOOLKIT" = "xWINCE" ; then
50423         COND_TOOLKIT_WINCE=""
50424     fi
50425
50426     COND_TOOLKIT_WINCE_USE_GUI_1="#"
50427     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
50428         COND_TOOLKIT_WINCE_USE_GUI_1=""
50429     fi
50430
50431     COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
50432     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50433         COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
50434     fi
50435
50436     COND_TOOLKIT_WINCE_WXUNIV_0="#"
50437     if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
50438         COND_TOOLKIT_WINCE_WXUNIV_0=""
50439     fi
50440
50441     COND_TOOLKIT_X11="#"
50442     if test "x$TOOLKIT" = "xX11" ; then
50443         COND_TOOLKIT_X11=""
50444     fi
50445
50446     COND_TOOLKIT_X11_USE_GUI_1="#"
50447     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
50448         COND_TOOLKIT_X11_USE_GUI_1=""
50449     fi
50450
50451     COND_UNICODE_1="#"
50452     if test "x$UNICODE" = "x1" ; then
50453         COND_UNICODE_1=""
50454     fi
50455
50456     COND_USE_EXCEPTIONS_0="#"
50457     if test "x$USE_EXCEPTIONS" = "x0" ; then
50458         COND_USE_EXCEPTIONS_0=""
50459     fi
50460
50461     COND_USE_EXCEPTIONS_1="#"
50462     if test "x$USE_EXCEPTIONS" = "x1" ; then
50463         COND_USE_EXCEPTIONS_1=""
50464     fi
50465
50466     COND_USE_GUI_0="#"
50467     if test "x$USE_GUI" = "x0" ; then
50468         COND_USE_GUI_0=""
50469     fi
50470
50471     COND_USE_GUI_1="#"
50472     if test "x$USE_GUI" = "x1" ; then
50473         COND_USE_GUI_1=""
50474     fi
50475
50476     COND_USE_GUI_1_USE_OPENGL_1="#"
50477     if test "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
50478         COND_USE_GUI_1_USE_OPENGL_1=""
50479     fi
50480
50481     COND_USE_GUI_1_WXUNIV_0="#"
50482     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50483         COND_USE_GUI_1_WXUNIV_0=""
50484     fi
50485
50486     COND_USE_GUI_1_WXUNIV_1="#"
50487     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
50488         COND_USE_GUI_1_WXUNIV_1=""
50489     fi
50490
50491     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
50492     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50493         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
50494     fi
50495
50496     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
50497     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50498         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
50499     fi
50500
50501     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
50502     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50503         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
50504     fi
50505
50506     COND_USE_GUI_1_wxUSE_LIBJPEG_builtin="#"
50507     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50508         COND_USE_GUI_1_wxUSE_LIBJPEG_builtin=""
50509     fi
50510
50511     COND_USE_GUI_1_wxUSE_LIBPNG_builtin="#"
50512     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50513         COND_USE_GUI_1_wxUSE_LIBPNG_builtin=""
50514     fi
50515
50516     COND_USE_GUI_1_wxUSE_LIBTIFF_builtin="#"
50517     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50518         COND_USE_GUI_1_wxUSE_LIBTIFF_builtin=""
50519     fi
50520
50521     COND_USE_OPENGL_1="#"
50522     if test "x$USE_OPENGL" = "x1" ; then
50523         COND_USE_OPENGL_1=""
50524     fi
50525
50526     COND_USE_PCH_1="#"
50527     if test "x$USE_PCH" = "x1" ; then
50528         COND_USE_PCH_1=""
50529     fi
50530
50531     COND_USE_PLUGINS_0="#"
50532     if test "x$USE_PLUGINS" = "x0" ; then
50533         COND_USE_PLUGINS_0=""
50534     fi
50535
50536     COND_USE_RTTI_0="#"
50537     if test "x$USE_RTTI" = "x0" ; then
50538         COND_USE_RTTI_0=""
50539     fi
50540
50541     COND_USE_RTTI_1="#"
50542     if test "x$USE_RTTI" = "x1" ; then
50543         COND_USE_RTTI_1=""
50544     fi
50545
50546     COND_USE_SOSYMLINKS_1="#"
50547     if test "x$USE_SOSYMLINKS" = "x1" ; then
50548         COND_USE_SOSYMLINKS_1=""
50549     fi
50550
50551     COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
50552     if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
50553         COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
50554     fi
50555
50556     COND_USE_SOVERLINUX_1="#"
50557     if test "x$USE_SOVERLINUX" = "x1" ; then
50558         COND_USE_SOVERLINUX_1=""
50559     fi
50560
50561     COND_USE_SOVERSION_0="#"
50562     if test "x$USE_SOVERSION" = "x0" ; then
50563         COND_USE_SOVERSION_0=""
50564     fi
50565
50566     COND_USE_SOVERSOLARIS_1="#"
50567     if test "x$USE_SOVERSOLARIS" = "x1" ; then
50568         COND_USE_SOVERSOLARIS_1=""
50569     fi
50570
50571     COND_USE_STC_1="#"
50572     if test "x$USE_STC" = "x1" ; then
50573         COND_USE_STC_1=""
50574     fi
50575
50576     COND_USE_THREADS_0="#"
50577     if test "x$USE_THREADS" = "x0" ; then
50578         COND_USE_THREADS_0=""
50579     fi
50580
50581     COND_USE_THREADS_1="#"
50582     if test "x$USE_THREADS" = "x1" ; then
50583         COND_USE_THREADS_1=""
50584     fi
50585
50586     COND_USE_XRC_1="#"
50587     if test "x$USE_XRC" = "x1" ; then
50588         COND_USE_XRC_1=""
50589     fi
50590
50591     COND_WINDOWS_IMPLIB_1="#"
50592     if test "x$WINDOWS_IMPLIB" = "x1" ; then
50593         COND_WINDOWS_IMPLIB_1=""
50594     fi
50595
50596     COND_WITH_PLUGIN_SDL_1="#"
50597     if test "x$WITH_PLUGIN_SDL" = "x1" ; then
50598         COND_WITH_PLUGIN_SDL_1=""
50599     fi
50600
50601     COND_WXUNIV_0="#"
50602     if test "x$WXUNIV" = "x0" ; then
50603         COND_WXUNIV_0=""
50604     fi
50605
50606     COND_WXUNIV_1="#"
50607     if test "x$WXUNIV" = "x1" ; then
50608         COND_WXUNIV_1=""
50609     fi
50610
50611     COND_WXUSE_EXPAT_BUILTIN="#"
50612     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
50613         COND_WXUSE_EXPAT_BUILTIN=""
50614     fi
50615
50616     COND_WXUSE_LIBJPEG_BUILTIN="#"
50617     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50618         COND_WXUSE_LIBJPEG_BUILTIN=""
50619     fi
50620
50621     COND_WXUSE_LIBPNG_BUILTIN="#"
50622     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50623         COND_WXUSE_LIBPNG_BUILTIN=""
50624     fi
50625
50626     COND_WXUSE_LIBTIFF_BUILTIN="#"
50627     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50628         COND_WXUSE_LIBTIFF_BUILTIN=""
50629     fi
50630
50631     COND_WXUSE_REGEX_BUILTIN="#"
50632     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
50633         COND_WXUSE_REGEX_BUILTIN=""
50634     fi
50635
50636     COND_WXUSE_ZLIB_BUILTIN="#"
50637     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
50638         COND_WXUSE_ZLIB_BUILTIN=""
50639     fi
50640
50641     COND_wxUSE_EXPAT_builtin="#"
50642     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
50643         COND_wxUSE_EXPAT_builtin=""
50644     fi
50645
50646     COND_wxUSE_LIBJPEG_builtin="#"
50647     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50648         COND_wxUSE_LIBJPEG_builtin=""
50649     fi
50650
50651     COND_wxUSE_LIBPNG_builtin="#"
50652     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50653         COND_wxUSE_LIBPNG_builtin=""
50654     fi
50655
50656     COND_wxUSE_LIBTIFF_builtin="#"
50657     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50658         COND_wxUSE_LIBTIFF_builtin=""
50659     fi
50660
50661     COND_wxUSE_REGEX_builtin="#"
50662     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
50663         COND_wxUSE_REGEX_builtin=""
50664     fi
50665
50666     COND_wxUSE_ZLIB_builtin="#"
50667     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
50668         COND_wxUSE_ZLIB_builtin=""
50669     fi
50670
50671
50672
50673     if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
50674         { { 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
50675 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;}
50676    { (exit 1); exit 1; }; }
50677     fi
50678
50679     if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
50680         { { 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
50681 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;}
50682    { (exit 1); exit 1; }; }
50683     fi
50684
50685
50686 case ${INSTALL} in
50687   /* ) # Absolute
50688      ;;
50689   ?:* ) # Drive letter, considered as absolute.
50690      ;;
50691   *)
50692      INSTALL=`pwd`/${INSTALL} ;;
50693 esac
50694
50695 if test "$wxUSE_GUI" = "yes"; then
50696
50697 if test "$wxUSE_MSW" = 1 ; then
50698     if test "x$WINDRES" = "x"; then
50699         { { echo "$as_me:$LINENO: error: Required windres program not found" >&5
50700 echo "$as_me: error: Required windres program not found" >&2;}
50701    { (exit 1); exit 1; }; }
50702     fi
50703
50704     RESCOMP="$WINDRES"
50705 fi
50706
50707 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
50708             WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
50709     WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
50710
50711         LIBWXMACRES="\$(wx_top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
50712
50713     # Extract the first word of "DeRez", so it can be a program name with args.
50714 set dummy DeRez; ac_word=$2
50715 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50717 if test "${ac_cv_prog_DEREZ+set}" = set; then
50718   echo $ECHO_N "(cached) $ECHO_C" >&6
50719 else
50720   if test -n "$DEREZ"; then
50721   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
50722 else
50723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50724 for as_dir in $PATH
50725 do
50726   IFS=$as_save_IFS
50727   test -z "$as_dir" && as_dir=.
50728   for ac_exec_ext in '' $ac_executable_extensions; do
50729   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50730     ac_cv_prog_DEREZ="DeRez"
50731     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50732     break 2
50733   fi
50734 done
50735 done
50736 IFS=$as_save_IFS
50737
50738   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
50739 fi
50740 fi
50741 DEREZ=$ac_cv_prog_DEREZ
50742 if test -n "$DEREZ"; then
50743   { echo "$as_me:$LINENO: result: $DEREZ" >&5
50744 echo "${ECHO_T}$DEREZ" >&6; }
50745 else
50746   { echo "$as_me:$LINENO: result: no" >&5
50747 echo "${ECHO_T}no" >&6; }
50748 fi
50749
50750
50751
50752     MACSETFILE="\$(SETFILE)"
50753
50754             if test "$wxUSE_OSX_CARBON" = 1; then
50755         POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
50756         RESCOMP="$REZ"
50757         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
50758     else
50759         POSTLINK_COMMAND="cat /dev/null | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
50760         RESCOMP="cat /dev/null \| $REZ"
50761         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
50762     fi
50763
50764 else
50765         MACSETFILE="@true"
50766
50767     if test "$wxUSE_PM" = 1; then
50768         RESCOMP="emxbind"
50769         WXCONFIG_RESFLAGS="-ep"
50770
50771                 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
50772     else
50773         POSTLINK_COMMAND="@true"
50774     fi
50775 fi
50776
50777 fi
50778
50779
50780 if test $GCC_PCH = 1
50781 then
50782     if test "$wx_cv_gcc_pch_bug" = yes; then
50783         { echo "$as_me:$LINENO: WARNING: *** Precompiled header support is broken on this compiler" >&5
50784 echo "$as_me: WARNING: *** Precompiled header support is broken on this compiler" >&2;}
50785         { echo "$as_me:$LINENO: WARNING: *** --enable-precomp-headers is not recommended" >&5
50786 echo "$as_me: WARNING: *** --enable-precomp-headers is not recommended" >&2;}
50787         { echo "$as_me:$LINENO: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&5
50788 echo "$as_me: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&2;}
50789     fi
50790
50791     # Our WX_PRECOMP flag does not make sense for any language except C++ because
50792     # the headers that benefit from precompilation are mostly C++ headers.
50793     CXXFLAGS="-DWX_PRECOMP $CXXFLAGS"
50794     # When Bakefile can do multi-language PCH (e.g. C++ and Objective-C++) enable this:
50795     #OBJCXXFLAGS="-DWX_PRECOMP $CXXFLAGS"
50796 fi
50797
50798
50799 if test "$wxUSE_MAC" = 1 ; then
50800     if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
50801         sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
50802         mv temp bk-deps
50803         chmod +x bk-deps
50804     fi
50805 fi
50806
50807 if test "$wxUSE_SHARED" = "yes"; then
50808                 case "${host}" in
50809       *-pc-os2_emx | *-pc-os2-emx )
50810         SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50811         SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50812         cp -p ${srcdir}/src/os2/dllnames.sh .
50813         cp -p ${srcdir}/src/os2/dllar.sh .
50814       ;;
50815     esac
50816 fi
50817 if test "$wxUSE_OMF" = "yes"; then
50818     case "${host}" in
50819       *-pc-os2_emx | *-pc-os2-emx )
50820         LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
50821         LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
50822         WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
50823       ;;
50824     esac
50825 fi
50826
50827 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
50828
50829
50830 case "${host}" in
50831     *-*-solaris2* )
50832                         if test "$GCC" = yes; then
50833             CPPFLAGS=`echo $CPPFLAGS | sed 's/-mt//'`
50834             LIBS=`echo $LIBS | sed 's/-mt//'`
50835             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-mt//'`
50836         fi
50837         ;;
50838
50839     *-*-linux* )
50840                         if test "x$SUNCXX" = xyes; then
50841             CPPFLAGS=`echo $CPPFLAGS | sed 's/-pthread//'`
50842             LIBS=`echo $LIBS | sed 's/-pthread//'`
50843             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-pthread//'`
50844         fi
50845         ;;
50846 esac
50847
50848 CFLAGS="$CFLAGS $CFLAGS_VISIBILITY"
50849 CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
50850 OBJCFLAGS="$OBJCFLAGS $CFLAGS_VISIBILITY"
50851 OBJCXXFLAGS="$OBJCXXFLAGS $CXXFLAGS_VISIBILITY"
50852
50853 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
50854
50855
50856
50857
50858
50859
50860
50861
50862
50863
50864
50865
50866
50867
50868
50869
50870
50871
50872
50873
50874
50875
50876
50877
50878
50879
50880
50881
50882
50883
50884
50885
50886
50887
50888
50889
50890
50891
50892
50893
50894
50895
50896
50897
50898
50899
50900
50901
50902
50903
50904
50905
50906
50907
50908
50909
50910
50911
50912
50913
50914 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
50915 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
50916 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
50917 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
50918   echo $ECHO_N "(cached) $ECHO_C" >&6
50919 else
50920   cat >conftest.make <<\_ACEOF
50921 SHELL = /bin/sh
50922 all:
50923         @echo '@@@%%%=$(MAKE)=@@@%%%'
50924 _ACEOF
50925 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
50926 case `${MAKE-make} -f conftest.make 2>/dev/null` in
50927   *@@@%%%=?*=@@@%%%*)
50928     eval ac_cv_prog_make_${ac_make}_set=yes;;
50929   *)
50930     eval ac_cv_prog_make_${ac_make}_set=no;;
50931 esac
50932 rm -f conftest.make
50933 fi
50934 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
50935   { echo "$as_me:$LINENO: result: yes" >&5
50936 echo "${ECHO_T}yes" >&6; }
50937   SET_MAKE=
50938 else
50939   { echo "$as_me:$LINENO: result: no" >&5
50940 echo "${ECHO_T}no" >&6; }
50941   SET_MAKE="MAKE=${MAKE-make}"
50942 fi
50943
50944
50945
50946 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
50947
50948
50949 if test "$USE_WIN32" = 1; then
50950     ac_config_commands="$ac_config_commands
50951             rcdefs.h
50952         "
50953
50954 fi
50955
50956 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
50957
50958
50959 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
50960
50961
50962 ac_config_files="$ac_config_files utils/ifacecheck/rungccxml.sh"
50963
50964
50965 if test "$wx_cv_version_script" = "yes"; then
50966     ac_config_files="$ac_config_files version-script"
50967
50968 fi
50969 ac_config_files="$ac_config_files Makefile"
50970
50971
50972 ac_config_commands="$ac_config_commands wx-config"
50973
50974
50975
50976 if test "$wxWITH_SUBDIRS" != "no"; then
50977 if test "$wxUSE_GUI" = "yes"; then
50978     SUBDIRS="samples demos utils"
50979 else
50980             SUBDIRS="samples utils"
50981 fi
50982
50983
50984
50985 # Check whether --with-cppunit-prefix was given.
50986 if test "${with_cppunit_prefix+set}" = set; then
50987   withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
50988 else
50989   cppunit_config_prefix=""
50990 fi
50991
50992
50993 # Check whether --with-cppunit-exec-prefix was given.
50994 if test "${with_cppunit_exec_prefix+set}" = set; then
50995   withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
50996 else
50997   cppunit_config_exec_prefix=""
50998 fi
50999
51000
51001   if test x$cppunit_config_exec_prefix != x ; then
51002      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
51003      if test x${CPPUNIT_CONFIG+set} != xset ; then
51004         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
51005      fi
51006   fi
51007   if test x$cppunit_config_prefix != x ; then
51008      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
51009      if test x${CPPUNIT_CONFIG+set} != xset ; then
51010         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
51011      fi
51012   fi
51013
51014   # Extract the first word of "cppunit-config", so it can be a program name with args.
51015 set dummy cppunit-config; ac_word=$2
51016 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51018 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
51019   echo $ECHO_N "(cached) $ECHO_C" >&6
51020 else
51021   case $CPPUNIT_CONFIG in
51022   [\\/]* | ?:[\\/]*)
51023   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
51024   ;;
51025   *)
51026   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51027 for as_dir in $PATH
51028 do
51029   IFS=$as_save_IFS
51030   test -z "$as_dir" && as_dir=.
51031   for ac_exec_ext in '' $ac_executable_extensions; do
51032   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51033     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
51034     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51035     break 2
51036   fi
51037 done
51038 done
51039 IFS=$as_save_IFS
51040
51041   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
51042   ;;
51043 esac
51044 fi
51045 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
51046 if test -n "$CPPUNIT_CONFIG"; then
51047   { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
51048 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
51049 else
51050   { echo "$as_me:$LINENO: result: no" >&5
51051 echo "${ECHO_T}no" >&6; }
51052 fi
51053
51054
51055   cppunit_version_min=1.8.0
51056
51057   { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
51058 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
51059   no_cppunit=""
51060   if test "$CPPUNIT_CONFIG" = "no" ; then
51061     { echo "$as_me:$LINENO: result: no" >&5
51062 echo "${ECHO_T}no" >&6; }
51063     no_cppunit=yes
51064   else
51065     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
51066     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
51067     cppunit_version=`$CPPUNIT_CONFIG --version`
51068
51069     cppunit_major_version=`echo $cppunit_version | \
51070            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
51071     cppunit_minor_version=`echo $cppunit_version | \
51072            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
51073     cppunit_micro_version=`echo $cppunit_version | \
51074            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
51075
51076     cppunit_major_min=`echo $cppunit_version_min | \
51077            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
51078     cppunit_minor_min=`echo $cppunit_version_min | \
51079            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
51080     cppunit_micro_min=`echo $cppunit_version_min | \
51081            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
51082
51083     cppunit_version_proper=`expr \
51084         $cppunit_major_version \> $cppunit_major_min \| \
51085         $cppunit_major_version \= $cppunit_major_min \& \
51086         $cppunit_minor_version \> $cppunit_minor_min \| \
51087         $cppunit_major_version \= $cppunit_major_min \& \
51088         $cppunit_minor_version \= $cppunit_minor_min \& \
51089         $cppunit_micro_version \>= $cppunit_micro_min `
51090
51091     if test "$cppunit_version_proper" = "1" ; then
51092       { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
51093 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
51094     else
51095       { echo "$as_me:$LINENO: result: no" >&5
51096 echo "${ECHO_T}no" >&6; }
51097       no_cppunit=yes
51098     fi
51099   fi
51100
51101   if test "x$no_cppunit" = x ; then
51102      SUBDIRS="$SUBDIRS tests"
51103   else
51104      CPPUNIT_CFLAGS=""
51105      CPPUNIT_LIBS=""
51106      :
51107   fi
51108
51109
51110
51111
51112
51113 for subdir in $SUBDIRS; do
51114     if test -d ${srcdir}/${subdir} ; then
51115         if test "$wxUSE_GUI" = "yes"; then
51116             if test ${subdir} = "samples"; then
51117                                                 makefiles="samples/Makefile.in $makefiles"
51118                 for sample in $SAMPLES_SUBDIRS; do
51119                     if test -d $srcdir/samples/$sample; then
51120                         makefiles="samples/$sample/Makefile.in $makefiles"
51121                     fi
51122                 done
51123             else
51124                                                                 disabled_var=DISABLED_`echo $subdir | tr '[a-z]' '[A-Z]'`
51125                 eval "disabled=\$$disabled_var"
51126                 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
51127                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | $EGREP -v "$disabled"`
51128             fi
51129         else
51130                                     if test ${subdir} = "samples"; then
51131                                                 makefiles="samples/Makefile.in $makefiles"
51132                 for sample in `echo $SAMPLES_SUBDIRS`; do
51133                     if test -d $srcdir/samples/$sample; then
51134                         makefiles="samples/$sample/Makefile.in $makefiles"
51135                     fi
51136                 done
51137             elif test ${subdir} = "utils"; then
51138                 makefiles=""
51139                 for util in ifacecheck ; do
51140                     if test -d $srcdir/utils/$util ; then
51141                         makefiles="utils/$util/src/Makefile.in \
51142                                    $makefiles"
51143                     fi
51144                 done
51145             else
51146                                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
51147             fi
51148         fi
51149
51150         for mkin in $makefiles ; do
51151             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
51152             ac_config_files="$ac_config_files $mk"
51153
51154         done
51155     fi
51156 done
51157 fi
51158 cat >confcache <<\_ACEOF
51159 # This file is a shell script that caches the results of configure
51160 # tests run on this system so they can be shared between configure
51161 # scripts and configure runs, see configure's option --config-cache.
51162 # It is not useful on other systems.  If it contains results you don't
51163 # want to keep, you may remove or edit it.
51164 #
51165 # config.status only pays attention to the cache file if you give it
51166 # the --recheck option to rerun configure.
51167 #
51168 # `ac_cv_env_foo' variables (set or unset) will be overridden when
51169 # loading this file, other *unset* `ac_cv_foo' will be assigned the
51170 # following values.
51171
51172 _ACEOF
51173
51174 # The following way of writing the cache mishandles newlines in values,
51175 # but we know of no workaround that is simple, portable, and efficient.
51176 # So, we kill variables containing newlines.
51177 # Ultrix sh set writes to stderr and can't be redirected directly,
51178 # and sets the high bit in the cache file unless we assign to the vars.
51179 (
51180   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
51181     eval ac_val=\$$ac_var
51182     case $ac_val in #(
51183     *${as_nl}*)
51184       case $ac_var in #(
51185       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
51186 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
51187       esac
51188       case $ac_var in #(
51189       _ | IFS | as_nl) ;; #(
51190       *) $as_unset $ac_var ;;
51191       esac ;;
51192     esac
51193   done
51194
51195   (set) 2>&1 |
51196     case $as_nl`(ac_space=' '; set) 2>&1` in #(
51197     *${as_nl}ac_space=\ *)
51198       # `set' does not quote correctly, so add quotes (double-quote
51199       # substitution turns \\\\ into \\, and sed turns \\ into \).
51200       sed -n \
51201         "s/'/'\\\\''/g;
51202           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
51203       ;; #(
51204     *)
51205       # `set' quotes correctly as required by POSIX, so do not add quotes.
51206       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
51207       ;;
51208     esac |
51209     sort
51210 ) |
51211   sed '
51212      /^ac_cv_env_/b end
51213      t clear
51214      :clear
51215      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
51216      t end
51217      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
51218      :end' >>confcache
51219 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
51220   if test -w "$cache_file"; then
51221     test "x$cache_file" != "x/dev/null" &&
51222       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
51223 echo "$as_me: updating cache $cache_file" >&6;}
51224     cat confcache >$cache_file
51225   else
51226     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
51227 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
51228   fi
51229 fi
51230 rm -f confcache
51231
51232 test "x$prefix" = xNONE && prefix=$ac_default_prefix
51233 # Let make expand exec_prefix.
51234 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
51235
51236 DEFS=-DHAVE_CONFIG_H
51237
51238 ac_libobjs=
51239 ac_ltlibobjs=
51240 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
51241   # 1. Remove the extension, and $U if already installed.
51242   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
51243   ac_i=`echo "$ac_i" | sed "$ac_script"`
51244   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
51245   #    will be set to the directory where LIBOBJS objects are built.
51246   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
51247   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
51248 done
51249 LIBOBJS=$ac_libobjs
51250
51251 LTLIBOBJS=$ac_ltlibobjs
51252
51253
51254
51255 : ${CONFIG_STATUS=./config.status}
51256 ac_clean_files_save=$ac_clean_files
51257 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
51258 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
51259 echo "$as_me: creating $CONFIG_STATUS" >&6;}
51260 cat >$CONFIG_STATUS <<_ACEOF
51261 #! $SHELL
51262 # Generated by $as_me.
51263 # Run this file to recreate the current configuration.
51264 # Compiler output produced by configure, useful for debugging
51265 # configure, is in config.log if it exists.
51266
51267 debug=false
51268 ac_cs_recheck=false
51269 ac_cs_silent=false
51270 SHELL=\${CONFIG_SHELL-$SHELL}
51271 _ACEOF
51272
51273 cat >>$CONFIG_STATUS <<\_ACEOF
51274 ## --------------------- ##
51275 ## M4sh Initialization.  ##
51276 ## --------------------- ##
51277
51278 # Be more Bourne compatible
51279 DUALCASE=1; export DUALCASE # for MKS sh
51280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
51281   emulate sh
51282   NULLCMD=:
51283   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
51284   # is contrary to our usage.  Disable this feature.
51285   alias -g '${1+"$@"}'='"$@"'
51286   setopt NO_GLOB_SUBST
51287 else
51288   case `(set -o) 2>/dev/null` in
51289   *posix*) set -o posix ;;
51290 esac
51291
51292 fi
51293
51294
51295
51296
51297 # PATH needs CR
51298 # Avoid depending upon Character Ranges.
51299 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
51300 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
51301 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
51302 as_cr_digits='0123456789'
51303 as_cr_alnum=$as_cr_Letters$as_cr_digits
51304
51305 # The user is always right.
51306 if test "${PATH_SEPARATOR+set}" != set; then
51307   echo "#! /bin/sh" >conf$$.sh
51308   echo  "exit 0"   >>conf$$.sh
51309   chmod +x conf$$.sh
51310   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
51311     PATH_SEPARATOR=';'
51312   else
51313     PATH_SEPARATOR=:
51314   fi
51315   rm -f conf$$.sh
51316 fi
51317
51318 # Support unset when possible.
51319 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51320   as_unset=unset
51321 else
51322   as_unset=false
51323 fi
51324
51325
51326 # IFS
51327 # We need space, tab and new line, in precisely that order.  Quoting is
51328 # there to prevent editors from complaining about space-tab.
51329 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
51330 # splitting by setting IFS to empty value.)
51331 as_nl='
51332 '
51333 IFS=" ""        $as_nl"
51334
51335 # Find who we are.  Look in the path if we contain no directory separator.
51336 case $0 in
51337   *[\\/]* ) as_myself=$0 ;;
51338   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51339 for as_dir in $PATH
51340 do
51341   IFS=$as_save_IFS
51342   test -z "$as_dir" && as_dir=.
51343   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
51344 done
51345 IFS=$as_save_IFS
51346
51347      ;;
51348 esac
51349 # We did not find ourselves, most probably we were run as `sh COMMAND'
51350 # in which case we are not to be found in the path.
51351 if test "x$as_myself" = x; then
51352   as_myself=$0
51353 fi
51354 if test ! -f "$as_myself"; then
51355   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
51356   { (exit 1); exit 1; }
51357 fi
51358
51359 # Work around bugs in pre-3.0 UWIN ksh.
51360 for as_var in ENV MAIL MAILPATH
51361 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
51362 done
51363 PS1='$ '
51364 PS2='> '
51365 PS4='+ '
51366
51367 # NLS nuisances.
51368 for as_var in \
51369   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
51370   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
51371   LC_TELEPHONE LC_TIME
51372 do
51373   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
51374     eval $as_var=C; export $as_var
51375   else
51376     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
51377   fi
51378 done
51379
51380 # Required to use basename.
51381 if expr a : '\(a\)' >/dev/null 2>&1 &&
51382    test "X`expr 00001 : '.*\(...\)'`" = X001; then
51383   as_expr=expr
51384 else
51385   as_expr=false
51386 fi
51387
51388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
51389   as_basename=basename
51390 else
51391   as_basename=false
51392 fi
51393
51394
51395 # Name of the executable.
51396 as_me=`$as_basename -- "$0" ||
51397 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
51398          X"$0" : 'X\(//\)$' \| \
51399          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
51400 echo X/"$0" |
51401     sed '/^.*\/\([^/][^/]*\)\/*$/{
51402             s//\1/
51403             q
51404           }
51405           /^X\/\(\/\/\)$/{
51406             s//\1/
51407             q
51408           }
51409           /^X\/\(\/\).*/{
51410             s//\1/
51411             q
51412           }
51413           s/.*/./; q'`
51414
51415 # CDPATH.
51416 $as_unset CDPATH
51417
51418
51419
51420   as_lineno_1=$LINENO
51421   as_lineno_2=$LINENO
51422   test "x$as_lineno_1" != "x$as_lineno_2" &&
51423   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
51424
51425   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
51426   # uniformly replaced by the line number.  The first 'sed' inserts a
51427   # line-number line after each line using $LINENO; the second 'sed'
51428   # does the real work.  The second script uses 'N' to pair each
51429   # line-number line with the line containing $LINENO, and appends
51430   # trailing '-' during substitution so that $LINENO is not a special
51431   # case at line end.
51432   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
51433   # scripts with optimization help from Paolo Bonzini.  Blame Lee
51434   # E. McMahon (1931-1989) for sed's syntax.  :-)
51435   sed -n '
51436     p
51437     /[$]LINENO/=
51438   ' <$as_myself |
51439     sed '
51440       s/[$]LINENO.*/&-/
51441       t lineno
51442       b
51443       :lineno
51444       N
51445       :loop
51446       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
51447       t loop
51448       s/-\n.*//
51449     ' >$as_me.lineno &&
51450   chmod +x "$as_me.lineno" ||
51451     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
51452    { (exit 1); exit 1; }; }
51453
51454   # Don't try to exec as it changes $[0], causing all sort of problems
51455   # (the dirname of $[0] is not the place where we might find the
51456   # original and so on.  Autoconf is especially sensitive to this).
51457   . "./$as_me.lineno"
51458   # Exit status is that of the last command.
51459   exit
51460 }
51461
51462
51463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
51464   as_dirname=dirname
51465 else
51466   as_dirname=false
51467 fi
51468
51469 ECHO_C= ECHO_N= ECHO_T=
51470 case `echo -n x` in
51471 -n*)
51472   case `echo 'x\c'` in
51473   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
51474   *)   ECHO_C='\c';;
51475   esac;;
51476 *)
51477   ECHO_N='-n';;
51478 esac
51479
51480 if expr a : '\(a\)' >/dev/null 2>&1 &&
51481    test "X`expr 00001 : '.*\(...\)'`" = X001; then
51482   as_expr=expr
51483 else
51484   as_expr=false
51485 fi
51486
51487 rm -f conf$$ conf$$.exe conf$$.file
51488 if test -d conf$$.dir; then
51489   rm -f conf$$.dir/conf$$.file
51490 else
51491   rm -f conf$$.dir
51492   mkdir conf$$.dir
51493 fi
51494 echo >conf$$.file
51495 if ln -s conf$$.file conf$$ 2>/dev/null; then
51496   as_ln_s='ln -s'
51497   # ... but there are two gotchas:
51498   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
51499   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
51500   # In both cases, we have to default to `cp -p'.
51501   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
51502     as_ln_s='cp -p'
51503 elif ln conf$$.file conf$$ 2>/dev/null; then
51504   as_ln_s=ln
51505 else
51506   as_ln_s='cp -p'
51507 fi
51508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
51509 rmdir conf$$.dir 2>/dev/null
51510
51511 if mkdir -p . 2>/dev/null; then
51512   as_mkdir_p=:
51513 else
51514   test -d ./-p && rmdir ./-p
51515   as_mkdir_p=false
51516 fi
51517
51518 if test -x / >/dev/null 2>&1; then
51519   as_test_x='test -x'
51520 else
51521   if ls -dL / >/dev/null 2>&1; then
51522     as_ls_L_option=L
51523   else
51524     as_ls_L_option=
51525   fi
51526   as_test_x='
51527     eval sh -c '\''
51528       if test -d "$1"; then
51529         test -d "$1/.";
51530       else
51531         case $1 in
51532         -*)set "./$1";;
51533         esac;
51534         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
51535         ???[sx]*):;;*)false;;esac;fi
51536     '\'' sh
51537   '
51538 fi
51539 as_executable_p=$as_test_x
51540
51541 # Sed expression to map a string onto a valid CPP name.
51542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
51543
51544 # Sed expression to map a string onto a valid variable name.
51545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
51546
51547
51548 exec 6>&1
51549
51550 # Save the log message, to keep $[0] and so on meaningful, and to
51551 # report actual input values of CONFIG_FILES etc. instead of their
51552 # values after options handling.
51553 ac_log="
51554 This file was extended by wxWidgets $as_me 2.9.0, which was
51555 generated by GNU Autoconf 2.61.  Invocation command line was
51556
51557   CONFIG_FILES    = $CONFIG_FILES
51558   CONFIG_HEADERS  = $CONFIG_HEADERS
51559   CONFIG_LINKS    = $CONFIG_LINKS
51560   CONFIG_COMMANDS = $CONFIG_COMMANDS
51561   $ $0 $@
51562
51563 on `(hostname || uname -n) 2>/dev/null | sed 1q`
51564 "
51565
51566 _ACEOF
51567
51568 cat >>$CONFIG_STATUS <<_ACEOF
51569 # Files that config.status was made for.
51570 config_files="$ac_config_files"
51571 config_headers="$ac_config_headers"
51572 config_commands="$ac_config_commands"
51573
51574 _ACEOF
51575
51576 cat >>$CONFIG_STATUS <<\_ACEOF
51577 ac_cs_usage="\
51578 \`$as_me' instantiates files from templates according to the
51579 current configuration.
51580
51581 Usage: $0 [OPTIONS] [FILE]...
51582
51583   -h, --help       print this help, then exit
51584   -V, --version    print version number and configuration settings, then exit
51585   -q, --quiet      do not print progress messages
51586   -d, --debug      don't remove temporary files
51587       --recheck    update $as_me by reconfiguring in the same conditions
51588   --file=FILE[:TEMPLATE]
51589                    instantiate the configuration file FILE
51590   --header=FILE[:TEMPLATE]
51591                    instantiate the configuration header FILE
51592
51593 Configuration files:
51594 $config_files
51595
51596 Configuration headers:
51597 $config_headers
51598
51599 Configuration commands:
51600 $config_commands
51601
51602 Report bugs to <bug-autoconf@gnu.org>."
51603
51604 _ACEOF
51605 cat >>$CONFIG_STATUS <<_ACEOF
51606 ac_cs_version="\\
51607 wxWidgets config.status 2.9.0
51608 configured by $0, generated by GNU Autoconf 2.61,
51609   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
51610
51611 Copyright (C) 2006 Free Software Foundation, Inc.
51612 This config.status script is free software; the Free Software Foundation
51613 gives unlimited permission to copy, distribute and modify it."
51614
51615 ac_pwd='$ac_pwd'
51616 srcdir='$srcdir'
51617 INSTALL='$INSTALL'
51618 _ACEOF
51619
51620 cat >>$CONFIG_STATUS <<\_ACEOF
51621 # If no file are specified by the user, then we need to provide default
51622 # value.  By we need to know if files were specified by the user.
51623 ac_need_defaults=:
51624 while test $# != 0
51625 do
51626   case $1 in
51627   --*=*)
51628     ac_option=`expr "X$1" : 'X\([^=]*\)='`
51629     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
51630     ac_shift=:
51631     ;;
51632   *)
51633     ac_option=$1
51634     ac_optarg=$2
51635     ac_shift=shift
51636     ;;
51637   esac
51638
51639   case $ac_option in
51640   # Handling of the options.
51641   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
51642     ac_cs_recheck=: ;;
51643   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
51644     echo "$ac_cs_version"; exit ;;
51645   --debug | --debu | --deb | --de | --d | -d )
51646     debug=: ;;
51647   --file | --fil | --fi | --f )
51648     $ac_shift
51649     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
51650     ac_need_defaults=false;;
51651   --header | --heade | --head | --hea )
51652     $ac_shift
51653     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
51654     ac_need_defaults=false;;
51655   --he | --h)
51656     # Conflict between --help and --header
51657     { echo "$as_me: error: ambiguous option: $1
51658 Try \`$0 --help' for more information." >&2
51659    { (exit 1); exit 1; }; };;
51660   --help | --hel | -h )
51661     echo "$ac_cs_usage"; exit ;;
51662   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
51663   | -silent | --silent | --silen | --sile | --sil | --si | --s)
51664     ac_cs_silent=: ;;
51665
51666   # This is an error.
51667   -*) { echo "$as_me: error: unrecognized option: $1
51668 Try \`$0 --help' for more information." >&2
51669    { (exit 1); exit 1; }; } ;;
51670
51671   *) ac_config_targets="$ac_config_targets $1"
51672      ac_need_defaults=false ;;
51673
51674   esac
51675   shift
51676 done
51677
51678 ac_configure_extra_args=
51679
51680 if $ac_cs_silent; then
51681   exec 6>/dev/null
51682   ac_configure_extra_args="$ac_configure_extra_args --silent"
51683 fi
51684
51685 _ACEOF
51686 cat >>$CONFIG_STATUS <<_ACEOF
51687 if \$ac_cs_recheck; then
51688   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
51689   CONFIG_SHELL=$SHELL
51690   export CONFIG_SHELL
51691   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
51692 fi
51693
51694 _ACEOF
51695 cat >>$CONFIG_STATUS <<\_ACEOF
51696 exec 5>>config.log
51697 {
51698   echo
51699   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
51700 ## Running $as_me. ##
51701 _ASBOX
51702   echo "$ac_log"
51703 } >&5
51704
51705 _ACEOF
51706 cat >>$CONFIG_STATUS <<_ACEOF
51707 #
51708 # INIT-COMMANDS
51709 #
51710
51711             CPP="$CPP"
51712             infile="$srcdir/include/wx/msw/genrcdefs.h"
51713             outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
51714
51715
51716  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
51717  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
51718  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
51719                      LN_S="${LN_S}"
51720
51721
51722 _ACEOF
51723
51724 cat >>$CONFIG_STATUS <<\_ACEOF
51725
51726 # Handling of arguments.
51727 for ac_config_target in $ac_config_targets
51728 do
51729   case $ac_config_target in
51730     "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
51731     "rcdefs.h") CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
51732     "lib/wx/config/${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
51733     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
51734     "utils/ifacecheck/rungccxml.sh") CONFIG_FILES="$CONFIG_FILES utils/ifacecheck/rungccxml.sh" ;;
51735     "version-script") CONFIG_FILES="$CONFIG_FILES version-script" ;;
51736     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
51737     "wx-config") CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
51738     "$mk") CONFIG_FILES="$CONFIG_FILES $mk" ;;
51739
51740   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
51741 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
51742    { (exit 1); exit 1; }; };;
51743   esac
51744 done
51745
51746
51747 # If the user did not use the arguments to specify the items to instantiate,
51748 # then the envvar interface is used.  Set only those that are not.
51749 # We use the long form for the default assignment because of an extremely
51750 # bizarre bug on SunOS 4.1.3.
51751 if $ac_need_defaults; then
51752   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
51753   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
51754   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
51755 fi
51756
51757 # Have a temporary directory for convenience.  Make it in the build tree
51758 # simply because there is no reason against having it here, and in addition,
51759 # creating and moving files from /tmp can sometimes cause problems.
51760 # Hook for its removal unless debugging.
51761 # Note that there is a small window in which the directory will not be cleaned:
51762 # after its creation but before its name has been assigned to `$tmp'.
51763 $debug ||
51764 {
51765   tmp=
51766   trap 'exit_status=$?
51767   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
51768 ' 0
51769   trap '{ (exit 1); exit 1; }' 1 2 13 15
51770 }
51771 # Create a (secure) tmp directory for tmp files.
51772
51773 {
51774   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
51775   test -n "$tmp" && test -d "$tmp"
51776 }  ||
51777 {
51778   tmp=./conf$$-$RANDOM
51779   (umask 077 && mkdir "$tmp")
51780 } ||
51781 {
51782    echo "$me: cannot create a temporary directory in ." >&2
51783    { (exit 1); exit 1; }
51784 }
51785
51786 #
51787 # Set up the sed scripts for CONFIG_FILES section.
51788 #
51789
51790 # No need to generate the scripts if there are no CONFIG_FILES.
51791 # This happens for instance when ./config.status config.h
51792 if test -n "$CONFIG_FILES"; then
51793
51794 _ACEOF
51795
51796
51797
51798 ac_delim='%!_!# '
51799 for ac_last_try in false false false false false :; do
51800   cat >conf$$subs.sed <<_ACEOF
51801 SHELL!$SHELL$ac_delim
51802 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
51803 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
51804 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
51805 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
51806 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
51807 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
51808 exec_prefix!$exec_prefix$ac_delim
51809 prefix!$prefix$ac_delim
51810 program_transform_name!$program_transform_name$ac_delim
51811 bindir!$bindir$ac_delim
51812 sbindir!$sbindir$ac_delim
51813 libexecdir!$libexecdir$ac_delim
51814 datarootdir!$datarootdir$ac_delim
51815 datadir!$datadir$ac_delim
51816 sysconfdir!$sysconfdir$ac_delim
51817 sharedstatedir!$sharedstatedir$ac_delim
51818 localstatedir!$localstatedir$ac_delim
51819 includedir!$includedir$ac_delim
51820 oldincludedir!$oldincludedir$ac_delim
51821 docdir!$docdir$ac_delim
51822 infodir!$infodir$ac_delim
51823 htmldir!$htmldir$ac_delim
51824 dvidir!$dvidir$ac_delim
51825 pdfdir!$pdfdir$ac_delim
51826 psdir!$psdir$ac_delim
51827 libdir!$libdir$ac_delim
51828 localedir!$localedir$ac_delim
51829 mandir!$mandir$ac_delim
51830 DEFS!$DEFS$ac_delim
51831 ECHO_C!$ECHO_C$ac_delim
51832 ECHO_N!$ECHO_N$ac_delim
51833 ECHO_T!$ECHO_T$ac_delim
51834 LIBS!$LIBS$ac_delim
51835 build_alias!$build_alias$ac_delim
51836 host_alias!$host_alias$ac_delim
51837 target_alias!$target_alias$ac_delim
51838 build!$build$ac_delim
51839 build_cpu!$build_cpu$ac_delim
51840 build_vendor!$build_vendor$ac_delim
51841 build_os!$build_os$ac_delim
51842 host!$host$ac_delim
51843 host_cpu!$host_cpu$ac_delim
51844 host_vendor!$host_vendor$ac_delim
51845 host_os!$host_os$ac_delim
51846 wx_top_builddir!$wx_top_builddir$ac_delim
51847 CC!$CC$ac_delim
51848 CFLAGS!$CFLAGS$ac_delim
51849 LDFLAGS!$LDFLAGS$ac_delim
51850 CPPFLAGS!$CPPFLAGS$ac_delim
51851 ac_ct_CC!$ac_ct_CC$ac_delim
51852 EXEEXT!$EXEEXT$ac_delim
51853 OBJEXT!$OBJEXT$ac_delim
51854 CPP!$CPP$ac_delim
51855 GREP!$GREP$ac_delim
51856 EGREP!$EGREP$ac_delim
51857 CXX!$CXX$ac_delim
51858 CXXFLAGS!$CXXFLAGS$ac_delim
51859 ac_ct_CXX!$ac_ct_CXX$ac_delim
51860 AR!$AR$ac_delim
51861 subdirs!$subdirs$ac_delim
51862 PKG_CONFIG!$PKG_CONFIG$ac_delim
51863 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
51864 GTK_LIBS!$GTK_LIBS$ac_delim
51865 GTK_CONFIG!$GTK_CONFIG$ac_delim
51866 DIRECTFB_CFLAGS!$DIRECTFB_CFLAGS$ac_delim
51867 DIRECTFB_LIBS!$DIRECTFB_LIBS$ac_delim
51868 XMKMF!$XMKMF$ac_delim
51869 X_CFLAGS!$X_CFLAGS$ac_delim
51870 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
51871 X_LIBS!$X_LIBS$ac_delim
51872 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
51873 PANGOX_CFLAGS!$PANGOX_CFLAGS$ac_delim
51874 PANGOX_LIBS!$PANGOX_LIBS$ac_delim
51875 PANGOFT2_CFLAGS!$PANGOFT2_CFLAGS$ac_delim
51876 PANGOFT2_LIBS!$PANGOFT2_LIBS$ac_delim
51877 PANGOXFT_CFLAGS!$PANGOXFT_CFLAGS$ac_delim
51878 PANGOXFT_LIBS!$PANGOXFT_LIBS$ac_delim
51879 CFLAGS_VISIBILITY!$CFLAGS_VISIBILITY$ac_delim
51880 CXXFLAGS_VISIBILITY!$CXXFLAGS_VISIBILITY$ac_delim
51881 LIBICONV!$LIBICONV$ac_delim
51882 GXX_VERSION!$GXX_VERSION$ac_delim
51883 SDL_CONFIG!$SDL_CONFIG$ac_delim
51884 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
51885 SDL_LIBS!$SDL_LIBS$ac_delim
51886 GTKPRINT_CFLAGS!$GTKPRINT_CFLAGS$ac_delim
51887 GTKPRINT_LIBS!$GTKPRINT_LIBS$ac_delim
51888 LIBGNOMEPRINTUI_CFLAGS!$LIBGNOMEPRINTUI_CFLAGS$ac_delim
51889 LIBGNOMEPRINTUI_LIBS!$LIBGNOMEPRINTUI_LIBS$ac_delim
51890 GNOMEVFS_CFLAGS!$GNOMEVFS_CFLAGS$ac_delim
51891 GNOMEVFS_LIBS!$GNOMEVFS_LIBS$ac_delim
51892 HILDON_CFLAGS!$HILDON_CFLAGS$ac_delim
51893 HILDON_LIBS!$HILDON_LIBS$ac_delim
51894 CAIRO_CFLAGS!$CAIRO_CFLAGS$ac_delim
51895 CAIRO_LIBS!$CAIRO_LIBS$ac_delim
51896 GST_CFLAGS!$GST_CFLAGS$ac_delim
51897 GST_LIBS!$GST_LIBS$ac_delim
51898 _ACEOF
51899
51900   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
51901     break
51902   elif $ac_last_try; then
51903     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
51904 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
51905    { (exit 1); exit 1; }; }
51906   else
51907     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
51908   fi
51909 done
51910
51911 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
51912 if test -n "$ac_eof"; then
51913   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
51914   ac_eof=`expr $ac_eof + 1`
51915 fi
51916
51917 cat >>$CONFIG_STATUS <<_ACEOF
51918 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
51919 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
51920 _ACEOF
51921 sed '
51922 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
51923 s/^/s,@/; s/!/@,|#_!!_#|/
51924 :n
51925 t n
51926 s/'"$ac_delim"'$/,g/; t
51927 s/$/\\/; p
51928 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
51929 ' >>$CONFIG_STATUS <conf$$subs.sed
51930 rm -f conf$$subs.sed
51931 cat >>$CONFIG_STATUS <<_ACEOF
51932 CEOF$ac_eof
51933 _ACEOF
51934
51935
51936 ac_delim='%!_!# '
51937 for ac_last_try in false false false false false :; do
51938   cat >conf$$subs.sed <<_ACEOF
51939 ALL_WX_LIBS!$ALL_WX_LIBS$ac_delim
51940 BUILT_WX_LIBS!$BUILT_WX_LIBS$ac_delim
51941 STD_BASE_LIBS!$STD_BASE_LIBS$ac_delim
51942 STD_GUI_LIBS!$STD_GUI_LIBS$ac_delim
51943 wxUSE_ZLIB!$wxUSE_ZLIB$ac_delim
51944 wxUSE_REGEX!$wxUSE_REGEX$ac_delim
51945 wxUSE_EXPAT!$wxUSE_EXPAT$ac_delim
51946 wxUSE_LIBJPEG!$wxUSE_LIBJPEG$ac_delim
51947 wxUSE_LIBPNG!$wxUSE_LIBPNG$ac_delim
51948 wxUSE_LIBTIFF!$wxUSE_LIBTIFF$ac_delim
51949 VENDOR!$VENDOR$ac_delim
51950 OFFICIAL_BUILD!$OFFICIAL_BUILD$ac_delim
51951 WX_FLAVOUR!$WX_FLAVOUR$ac_delim
51952 WX_LIB_FLAVOUR!$WX_LIB_FLAVOUR$ac_delim
51953 WXUNIV!$WXUNIV$ac_delim
51954 MONOLITHIC!$MONOLITHIC$ac_delim
51955 USE_PLUGINS!$USE_PLUGINS$ac_delim
51956 CXXWARNINGS!$CXXWARNINGS$ac_delim
51957 EXTRALIBS!$EXTRALIBS$ac_delim
51958 EXTRALIBS_XML!$EXTRALIBS_XML$ac_delim
51959 EXTRALIBS_HTML!$EXTRALIBS_HTML$ac_delim
51960 EXTRALIBS_MEDIA!$EXTRALIBS_MEDIA$ac_delim
51961 EXTRALIBS_GUI!$EXTRALIBS_GUI$ac_delim
51962 EXTRALIBS_OPENGL!$EXTRALIBS_OPENGL$ac_delim
51963 EXTRALIBS_SDL!$EXTRALIBS_SDL$ac_delim
51964 EXTRALIBS_STC!$EXTRALIBS_STC$ac_delim
51965 WITH_PLUGIN_SDL!$WITH_PLUGIN_SDL$ac_delim
51966 EXTRALIBS_GTKPRINT!$EXTRALIBS_GTKPRINT$ac_delim
51967 EXTRALIBS_GNOMEPRINT!$EXTRALIBS_GNOMEPRINT$ac_delim
51968 EXTRALIBS_GNOMEVFS!$EXTRALIBS_GNOMEVFS$ac_delim
51969 EXTRALIBS_HILDON!$EXTRALIBS_HILDON$ac_delim
51970 UNICODE!$UNICODE$ac_delim
51971 BUILD!$BUILD$ac_delim
51972 DEBUG_INFO!$DEBUG_INFO$ac_delim
51973 DEBUG_FLAG!$DEBUG_FLAG$ac_delim
51974 TOOLKIT_LOWERCASE!$TOOLKIT_LOWERCASE$ac_delim
51975 TOOLKIT_VERSION!$TOOLKIT_VERSION$ac_delim
51976 SAMPLES_RPATH_FLAG!$SAMPLES_RPATH_FLAG$ac_delim
51977 SAMPLES_RPATH_POSTLINK!$SAMPLES_RPATH_POSTLINK$ac_delim
51978 HEADER_PAD_OPTION!$HEADER_PAD_OPTION$ac_delim
51979 HOST_SUFFIX!$HOST_SUFFIX$ac_delim
51980 CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
51981 CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
51982 RANLIB!$RANLIB$ac_delim
51983 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
51984 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
51985 INSTALL_DATA!$INSTALL_DATA$ac_delim
51986 LN_S!$LN_S$ac_delim
51987 SET_MAKE!$SET_MAKE$ac_delim
51988 MAKE_SET!$MAKE_SET$ac_delim
51989 AROPTIONS!$AROPTIONS$ac_delim
51990 STRIP!$STRIP$ac_delim
51991 NM!$NM$ac_delim
51992 INSTALL_DIR!$INSTALL_DIR$ac_delim
51993 LDFLAGS_GUI!$LDFLAGS_GUI$ac_delim
51994 IF_GNU_MAKE!$IF_GNU_MAKE$ac_delim
51995 PLATFORM_UNIX!$PLATFORM_UNIX$ac_delim
51996 PLATFORM_WIN32!$PLATFORM_WIN32$ac_delim
51997 PLATFORM_MSDOS!$PLATFORM_MSDOS$ac_delim
51998 PLATFORM_MAC!$PLATFORM_MAC$ac_delim
51999 PLATFORM_MACOS!$PLATFORM_MACOS$ac_delim
52000 PLATFORM_MACOSX!$PLATFORM_MACOSX$ac_delim
52001 PLATFORM_OS2!$PLATFORM_OS2$ac_delim
52002 PLATFORM_BEOS!$PLATFORM_BEOS$ac_delim
52003 SO_SUFFIX!$SO_SUFFIX$ac_delim
52004 SO_SUFFIX_MODULE!$SO_SUFFIX_MODULE$ac_delim
52005 DLLIMP_SUFFIX!$DLLIMP_SUFFIX$ac_delim
52006 LIBPREFIX!$LIBPREFIX$ac_delim
52007 LIBEXT!$LIBEXT$ac_delim
52008 DLLPREFIX!$DLLPREFIX$ac_delim
52009 DLLPREFIX_MODULE!$DLLPREFIX_MODULE$ac_delim
52010 dlldir!$dlldir$ac_delim
52011 AIX_CXX_LD!$AIX_CXX_LD$ac_delim
52012 SHARED_LD_CC!$SHARED_LD_CC$ac_delim
52013 SHARED_LD_CXX!$SHARED_LD_CXX$ac_delim
52014 SHARED_LD_MODULE_CC!$SHARED_LD_MODULE_CC$ac_delim
52015 SHARED_LD_MODULE_CXX!$SHARED_LD_MODULE_CXX$ac_delim
52016 PIC_FLAG!$PIC_FLAG$ac_delim
52017 WINDOWS_IMPLIB!$WINDOWS_IMPLIB$ac_delim
52018 USE_SOVERSION!$USE_SOVERSION$ac_delim
52019 USE_SOVERLINUX!$USE_SOVERLINUX$ac_delim
52020 USE_SOVERSOLARIS!$USE_SOVERSOLARIS$ac_delim
52021 USE_SOVERCYGWIN!$USE_SOVERCYGWIN$ac_delim
52022 USE_MACVERSION!$USE_MACVERSION$ac_delim
52023 USE_SOSYMLINKS!$USE_SOSYMLINKS$ac_delim
52024 SONAME_FLAG!$SONAME_FLAG$ac_delim
52025 DEPS_TRACKING!$DEPS_TRACKING$ac_delim
52026 BK_DEPS!$BK_DEPS$ac_delim
52027 WINDRES!$WINDRES$ac_delim
52028 REZ!$REZ$ac_delim
52029 SETFILE!$SETFILE$ac_delim
52030 OBJCXXFLAGS!$OBJCXXFLAGS$ac_delim
52031 GCC_PCH!$GCC_PCH$ac_delim
52032 ICC_PCH!$ICC_PCH$ac_delim
52033 ICC_PCH_CREATE_SWITCH!$ICC_PCH_CREATE_SWITCH$ac_delim
52034 ICC_PCH_USE_SWITCH!$ICC_PCH_USE_SWITCH$ac_delim
52035 BK_MAKE_PCH!$BK_MAKE_PCH$ac_delim
52036 _ACEOF
52037
52038   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
52039     break
52040   elif $ac_last_try; then
52041     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
52042 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
52043    { (exit 1); exit 1; }; }
52044   else
52045     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
52046   fi
52047 done
52048
52049 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
52050 if test -n "$ac_eof"; then
52051   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
52052   ac_eof=`expr $ac_eof + 1`
52053 fi
52054
52055 cat >>$CONFIG_STATUS <<_ACEOF
52056 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
52057 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
52058 _ACEOF
52059 sed '
52060 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
52061 s/^/s,@/; s/!/@,|#_!!_#|/
52062 :n
52063 t n
52064 s/'"$ac_delim"'$/,g/; t
52065 s/$/\\/; p
52066 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
52067 ' >>$CONFIG_STATUS <conf$$subs.sed
52068 rm -f conf$$subs.sed
52069 cat >>$CONFIG_STATUS <<_ACEOF
52070 CEOF$ac_eof
52071 _ACEOF
52072
52073
52074 ac_delim='%!_!# '
52075 for ac_last_try in false false false false false :; do
52076   cat >conf$$subs.sed <<_ACEOF
52077 COND_BUILD_DEBUG!$COND_BUILD_DEBUG$ac_delim
52078 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT!$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT$ac_delim
52079 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT!$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT$ac_delim
52080 COND_BUILD_DEBUG_UNICODE_0!$COND_BUILD_DEBUG_UNICODE_0$ac_delim
52081 COND_BUILD_DEBUG_UNICODE_1!$COND_BUILD_DEBUG_UNICODE_1$ac_delim
52082 COND_BUILD_RELEASE!$COND_BUILD_RELEASE$ac_delim
52083 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT!$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT$ac_delim
52084 COND_BUILD_RELEASE_UNICODE_0!$COND_BUILD_RELEASE_UNICODE_0$ac_delim
52085 COND_BUILD_RELEASE_UNICODE_1!$COND_BUILD_RELEASE_UNICODE_1$ac_delim
52086 COND_BUILD_debug!$COND_BUILD_debug$ac_delim
52087 COND_BUILD_debug_DEBUG_FLAG_default!$COND_BUILD_debug_DEBUG_FLAG_default$ac_delim
52088 COND_BUILD_debug_DEBUG_INFO_default!$COND_BUILD_debug_DEBUG_INFO_default$ac_delim
52089 COND_BUILD_debug_UNICODE_0!$COND_BUILD_debug_UNICODE_0$ac_delim
52090 COND_BUILD_debug_UNICODE_1!$COND_BUILD_debug_UNICODE_1$ac_delim
52091 COND_BUILD_release!$COND_BUILD_release$ac_delim
52092 COND_BUILD_release_DEBUG_INFO_default!$COND_BUILD_release_DEBUG_INFO_default$ac_delim
52093 COND_BUILD_release_UNICODE_0!$COND_BUILD_release_UNICODE_0$ac_delim
52094 COND_BUILD_release_UNICODE_1!$COND_BUILD_release_UNICODE_1$ac_delim
52095 COND_DEBUG_FLAG_1!$COND_DEBUG_FLAG_1$ac_delim
52096 COND_DEBUG_INFO_0!$COND_DEBUG_INFO_0$ac_delim
52097 COND_DEBUG_INFO_1!$COND_DEBUG_INFO_1$ac_delim
52098 COND_DEPS_TRACKING_0!$COND_DEPS_TRACKING_0$ac_delim
52099 COND_DEPS_TRACKING_1!$COND_DEPS_TRACKING_1$ac_delim
52100 COND_GCC_PCH_1!$COND_GCC_PCH_1$ac_delim
52101 COND_ICC_PCH_1!$COND_ICC_PCH_1$ac_delim
52102 COND_MONOLITHIC_0!$COND_MONOLITHIC_0$ac_delim
52103 COND_MONOLITHIC_0_SHARED_0!$COND_MONOLITHIC_0_SHARED_0$ac_delim
52104 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1$ac_delim
52105 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1$ac_delim
52106 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1$ac_delim
52107 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1$ac_delim
52108 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1$ac_delim
52109 COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1!$COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1$ac_delim
52110 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1$ac_delim
52111 COND_MONOLITHIC_0_SHARED_0_USE_STC_1!$COND_MONOLITHIC_0_SHARED_0_USE_STC_1$ac_delim
52112 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1$ac_delim
52113 COND_MONOLITHIC_0_SHARED_1!$COND_MONOLITHIC_0_SHARED_1$ac_delim
52114 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1$ac_delim
52115 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1$ac_delim
52116 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1$ac_delim
52117 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1$ac_delim
52118 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1$ac_delim
52119 COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1!$COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1$ac_delim
52120 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1$ac_delim
52121 COND_MONOLITHIC_0_SHARED_1_USE_STC_1!$COND_MONOLITHIC_0_SHARED_1_USE_STC_1$ac_delim
52122 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1$ac_delim
52123 COND_MONOLITHIC_0_USE_AUI_1!$COND_MONOLITHIC_0_USE_AUI_1$ac_delim
52124 COND_MONOLITHIC_0_USE_GUI_1!$COND_MONOLITHIC_0_USE_GUI_1$ac_delim
52125 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1$ac_delim
52126 COND_MONOLITHIC_0_USE_HTML_1!$COND_MONOLITHIC_0_USE_HTML_1$ac_delim
52127 COND_MONOLITHIC_0_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_MEDIA_1$ac_delim
52128 COND_MONOLITHIC_0_USE_PROPGRID_1!$COND_MONOLITHIC_0_USE_PROPGRID_1$ac_delim
52129 COND_MONOLITHIC_0_USE_QA_1!$COND_MONOLITHIC_0_USE_QA_1$ac_delim
52130 COND_MONOLITHIC_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_USE_RICHTEXT_1$ac_delim
52131 COND_MONOLITHIC_0_USE_STC_1!$COND_MONOLITHIC_0_USE_STC_1$ac_delim
52132 COND_MONOLITHIC_0_USE_XRC_1!$COND_MONOLITHIC_0_USE_XRC_1$ac_delim
52133 COND_MONOLITHIC_1!$COND_MONOLITHIC_1$ac_delim
52134 COND_MONOLITHIC_1_SHARED_0!$COND_MONOLITHIC_1_SHARED_0$ac_delim
52135 COND_MONOLITHIC_1_SHARED_1!$COND_MONOLITHIC_1_SHARED_1$ac_delim
52136 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1$ac_delim
52137 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1$ac_delim
52138 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1$ac_delim
52139 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1$ac_delim
52140 COND_PLATFORM_MACOSX_1!$COND_PLATFORM_MACOSX_1$ac_delim
52141 COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0!$COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0$ac_delim
52142 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1$ac_delim
52143 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0$ac_delim
52144 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1$ac_delim
52145 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0$ac_delim
52146 COND_PLATFORM_MACOSX_1_USE_GUI_1!$COND_PLATFORM_MACOSX_1_USE_GUI_1$ac_delim
52147 COND_PLATFORM_MACOSX_1_USE_OPENGL_1!$COND_PLATFORM_MACOSX_1_USE_OPENGL_1$ac_delim
52148 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1$ac_delim
52149 COND_PLATFORM_MACOS_1!$COND_PLATFORM_MACOS_1$ac_delim
52150 COND_PLATFORM_MAC_0!$COND_PLATFORM_MAC_0$ac_delim
52151 COND_PLATFORM_MAC_1!$COND_PLATFORM_MAC_1$ac_delim
52152 COND_PLATFORM_MSDOS_0!$COND_PLATFORM_MSDOS_0$ac_delim
52153 COND_PLATFORM_MSDOS_1!$COND_PLATFORM_MSDOS_1$ac_delim
52154 COND_PLATFORM_OS2_1!$COND_PLATFORM_OS2_1$ac_delim
52155 COND_PLATFORM_UNIX_0!$COND_PLATFORM_UNIX_0$ac_delim
52156 COND_PLATFORM_UNIX_1!$COND_PLATFORM_UNIX_1$ac_delim
52157 COND_PLATFORM_UNIX_1_TOOLKIT_MGL!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL$ac_delim
52158 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1$ac_delim
52159 COND_PLATFORM_UNIX_1_USE_GUI_1!$COND_PLATFORM_UNIX_1_USE_GUI_1$ac_delim
52160 COND_PLATFORM_UNIX_1_USE_PLUGINS_0!$COND_PLATFORM_UNIX_1_USE_PLUGINS_0$ac_delim
52161 COND_PLATFORM_WIN32_0!$COND_PLATFORM_WIN32_0$ac_delim
52162 COND_PLATFORM_WIN32_1!$COND_PLATFORM_WIN32_1$ac_delim
52163 COND_SHARED_0!$COND_SHARED_0$ac_delim
52164 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0$ac_delim
52165 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0$ac_delim
52166 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0!$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0$ac_delim
52167 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1$ac_delim
52168 COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin$ac_delim
52169 COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin$ac_delim
52170 COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin$ac_delim
52171 COND_SHARED_0_USE_STC_1!$COND_SHARED_0_USE_STC_1$ac_delim
52172 COND_SHARED_0_wxUSE_EXPAT_builtin!$COND_SHARED_0_wxUSE_EXPAT_builtin$ac_delim
52173 COND_SHARED_0_wxUSE_REGEX_builtin!$COND_SHARED_0_wxUSE_REGEX_builtin$ac_delim
52174 _ACEOF
52175
52176   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
52177     break
52178   elif $ac_last_try; then
52179     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
52180 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
52181    { (exit 1); exit 1; }; }
52182   else
52183     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
52184   fi
52185 done
52186
52187 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
52188 if test -n "$ac_eof"; then
52189   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
52190   ac_eof=`expr $ac_eof + 1`
52191 fi
52192
52193 cat >>$CONFIG_STATUS <<_ACEOF
52194 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
52195 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
52196 _ACEOF
52197 sed '
52198 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
52199 s/^/s,@/; s/!/@,|#_!!_#|/
52200 :n
52201 t n
52202 s/'"$ac_delim"'$/,g/; t
52203 s/$/\\/; p
52204 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
52205 ' >>$CONFIG_STATUS <conf$$subs.sed
52206 rm -f conf$$subs.sed
52207 cat >>$CONFIG_STATUS <<_ACEOF
52208 CEOF$ac_eof
52209 _ACEOF
52210
52211
52212 ac_delim='%!_!# '
52213 for ac_last_try in false false false false false :; do
52214   cat >conf$$subs.sed <<_ACEOF
52215 COND_SHARED_0_wxUSE_ZLIB_builtin!$COND_SHARED_0_wxUSE_ZLIB_builtin$ac_delim
52216 COND_SHARED_1!$COND_SHARED_1$ac_delim
52217 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1$ac_delim
52218 COND_TOOLKIT_!$COND_TOOLKIT_$ac_delim
52219 COND_TOOLKIT_COCOA!$COND_TOOLKIT_COCOA$ac_delim
52220 COND_TOOLKIT_COCOA_USE_GUI_1!$COND_TOOLKIT_COCOA_USE_GUI_1$ac_delim
52221 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0$ac_delim
52222 COND_TOOLKIT_DFB!$COND_TOOLKIT_DFB$ac_delim
52223 COND_TOOLKIT_DFB_USE_GUI_1!$COND_TOOLKIT_DFB_USE_GUI_1$ac_delim
52224 COND_TOOLKIT_GTK!$COND_TOOLKIT_GTK$ac_delim
52225 COND_TOOLKIT_GTK_TOOLKIT_VERSION_!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_$ac_delim
52226 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2$ac_delim
52227 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1$ac_delim
52228 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0$ac_delim
52229 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1$ac_delim
52230 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0$ac_delim
52231 COND_TOOLKIT_GTK_USE_GUI_1!$COND_TOOLKIT_GTK_USE_GUI_1$ac_delim
52232 COND_TOOLKIT_MAC!$COND_TOOLKIT_MAC$ac_delim
52233 COND_TOOLKIT_MGL!$COND_TOOLKIT_MGL$ac_delim
52234 COND_TOOLKIT_MGL_USE_GUI_1!$COND_TOOLKIT_MGL_USE_GUI_1$ac_delim
52235 COND_TOOLKIT_MOTIF!$COND_TOOLKIT_MOTIF$ac_delim
52236 COND_TOOLKIT_MOTIF_USE_GUI_1!$COND_TOOLKIT_MOTIF_USE_GUI_1$ac_delim
52237 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0$ac_delim
52238 COND_TOOLKIT_MSW!$COND_TOOLKIT_MSW$ac_delim
52239 COND_TOOLKIT_MSW_USE_GUI_1!$COND_TOOLKIT_MSW_USE_GUI_1$ac_delim
52240 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0$ac_delim
52241 COND_TOOLKIT_MSW_WXUNIV_0!$COND_TOOLKIT_MSW_WXUNIV_0$ac_delim
52242 COND_TOOLKIT_OSX_CARBON!$COND_TOOLKIT_OSX_CARBON$ac_delim
52243 COND_TOOLKIT_OSX_CARBON_USE_GUI_1!$COND_TOOLKIT_OSX_CARBON_USE_GUI_1$ac_delim
52244 COND_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0$ac_delim
52245 COND_TOOLKIT_OSX_COCOA!$COND_TOOLKIT_OSX_COCOA$ac_delim
52246 COND_TOOLKIT_OSX_COCOA_USE_GUI_1!$COND_TOOLKIT_OSX_COCOA_USE_GUI_1$ac_delim
52247 COND_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0$ac_delim
52248 COND_TOOLKIT_OSX_IPHONE!$COND_TOOLKIT_OSX_IPHONE$ac_delim
52249 COND_TOOLKIT_PM!$COND_TOOLKIT_PM$ac_delim
52250 COND_TOOLKIT_PM_USE_GUI_1!$COND_TOOLKIT_PM_USE_GUI_1$ac_delim
52251 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0$ac_delim
52252 COND_TOOLKIT_WINCE!$COND_TOOLKIT_WINCE$ac_delim
52253 COND_TOOLKIT_WINCE_USE_GUI_1!$COND_TOOLKIT_WINCE_USE_GUI_1$ac_delim
52254 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0$ac_delim
52255 COND_TOOLKIT_WINCE_WXUNIV_0!$COND_TOOLKIT_WINCE_WXUNIV_0$ac_delim
52256 COND_TOOLKIT_X11!$COND_TOOLKIT_X11$ac_delim
52257 COND_TOOLKIT_X11_USE_GUI_1!$COND_TOOLKIT_X11_USE_GUI_1$ac_delim
52258 COND_UNICODE_1!$COND_UNICODE_1$ac_delim
52259 COND_USE_EXCEPTIONS_0!$COND_USE_EXCEPTIONS_0$ac_delim
52260 COND_USE_EXCEPTIONS_1!$COND_USE_EXCEPTIONS_1$ac_delim
52261 COND_USE_GUI_0!$COND_USE_GUI_0$ac_delim
52262 COND_USE_GUI_1!$COND_USE_GUI_1$ac_delim
52263 COND_USE_GUI_1_USE_OPENGL_1!$COND_USE_GUI_1_USE_OPENGL_1$ac_delim
52264 COND_USE_GUI_1_WXUNIV_0!$COND_USE_GUI_1_WXUNIV_0$ac_delim
52265 COND_USE_GUI_1_WXUNIV_1!$COND_USE_GUI_1_WXUNIV_1$ac_delim
52266 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
52267 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
52268 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
52269 COND_USE_GUI_1_wxUSE_LIBJPEG_builtin!$COND_USE_GUI_1_wxUSE_LIBJPEG_builtin$ac_delim
52270 COND_USE_GUI_1_wxUSE_LIBPNG_builtin!$COND_USE_GUI_1_wxUSE_LIBPNG_builtin$ac_delim
52271 COND_USE_GUI_1_wxUSE_LIBTIFF_builtin!$COND_USE_GUI_1_wxUSE_LIBTIFF_builtin$ac_delim
52272 COND_USE_OPENGL_1!$COND_USE_OPENGL_1$ac_delim
52273 COND_USE_PCH_1!$COND_USE_PCH_1$ac_delim
52274 COND_USE_PLUGINS_0!$COND_USE_PLUGINS_0$ac_delim
52275 COND_USE_RTTI_0!$COND_USE_RTTI_0$ac_delim
52276 COND_USE_RTTI_1!$COND_USE_RTTI_1$ac_delim
52277 COND_USE_SOSYMLINKS_1!$COND_USE_SOSYMLINKS_1$ac_delim
52278 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1!$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1$ac_delim
52279 COND_USE_SOVERLINUX_1!$COND_USE_SOVERLINUX_1$ac_delim
52280 COND_USE_SOVERSION_0!$COND_USE_SOVERSION_0$ac_delim
52281 COND_USE_SOVERSOLARIS_1!$COND_USE_SOVERSOLARIS_1$ac_delim
52282 COND_USE_STC_1!$COND_USE_STC_1$ac_delim
52283 COND_USE_THREADS_0!$COND_USE_THREADS_0$ac_delim
52284 COND_USE_THREADS_1!$COND_USE_THREADS_1$ac_delim
52285 COND_USE_XRC_1!$COND_USE_XRC_1$ac_delim
52286 COND_WINDOWS_IMPLIB_1!$COND_WINDOWS_IMPLIB_1$ac_delim
52287 COND_WITH_PLUGIN_SDL_1!$COND_WITH_PLUGIN_SDL_1$ac_delim
52288 COND_WXUNIV_0!$COND_WXUNIV_0$ac_delim
52289 COND_WXUNIV_1!$COND_WXUNIV_1$ac_delim
52290 COND_WXUSE_EXPAT_BUILTIN!$COND_WXUSE_EXPAT_BUILTIN$ac_delim
52291 COND_WXUSE_LIBJPEG_BUILTIN!$COND_WXUSE_LIBJPEG_BUILTIN$ac_delim
52292 COND_WXUSE_LIBPNG_BUILTIN!$COND_WXUSE_LIBPNG_BUILTIN$ac_delim
52293 COND_WXUSE_LIBTIFF_BUILTIN!$COND_WXUSE_LIBTIFF_BUILTIN$ac_delim
52294 COND_WXUSE_REGEX_BUILTIN!$COND_WXUSE_REGEX_BUILTIN$ac_delim
52295 COND_WXUSE_ZLIB_BUILTIN!$COND_WXUSE_ZLIB_BUILTIN$ac_delim
52296 COND_wxUSE_EXPAT_builtin!$COND_wxUSE_EXPAT_builtin$ac_delim
52297 COND_wxUSE_LIBJPEG_builtin!$COND_wxUSE_LIBJPEG_builtin$ac_delim
52298 COND_wxUSE_LIBPNG_builtin!$COND_wxUSE_LIBPNG_builtin$ac_delim
52299 COND_wxUSE_LIBTIFF_builtin!$COND_wxUSE_LIBTIFF_builtin$ac_delim
52300 COND_wxUSE_REGEX_builtin!$COND_wxUSE_REGEX_builtin$ac_delim
52301 COND_wxUSE_ZLIB_builtin!$COND_wxUSE_ZLIB_builtin$ac_delim
52302 DEREZ!$DEREZ$ac_delim
52303 SHARED!$SHARED$ac_delim
52304 WX_LIBRARY_BASENAME_NOGUI!$WX_LIBRARY_BASENAME_NOGUI$ac_delim
52305 WX_LIBRARY_BASENAME_GUI!$WX_LIBRARY_BASENAME_GUI$ac_delim
52306 USE_GUI!$USE_GUI$ac_delim
52307 AFMINSTALL!$AFMINSTALL$ac_delim
52308 WIN32INSTALL!$WIN32INSTALL$ac_delim
52309 TOOLKIT!$TOOLKIT$ac_delim
52310 TOOLKIT_DIR!$TOOLKIT_DIR$ac_delim
52311 TOOLCHAIN_NAME!$TOOLCHAIN_NAME$ac_delim
52312 _ACEOF
52313
52314   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
52315     break
52316   elif $ac_last_try; then
52317     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
52318 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
52319    { (exit 1); exit 1; }; }
52320   else
52321     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
52322   fi
52323 done
52324
52325 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
52326 if test -n "$ac_eof"; then
52327   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
52328   ac_eof=`expr $ac_eof + 1`
52329 fi
52330
52331 cat >>$CONFIG_STATUS <<_ACEOF
52332 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
52333 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
52334 _ACEOF
52335 sed '
52336 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
52337 s/^/s,@/; s/!/@,|#_!!_#|/
52338 :n
52339 t n
52340 s/'"$ac_delim"'$/,g/; t
52341 s/$/\\/; p
52342 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
52343 ' >>$CONFIG_STATUS <conf$$subs.sed
52344 rm -f conf$$subs.sed
52345 cat >>$CONFIG_STATUS <<_ACEOF
52346 CEOF$ac_eof
52347 _ACEOF
52348
52349
52350 ac_delim='%!_!# '
52351 for ac_last_try in false false false false false :; do
52352   cat >conf$$subs.sed <<_ACEOF
52353 TOOLCHAIN_FULLNAME!$TOOLCHAIN_FULLNAME$ac_delim
52354 cross_compiling!$cross_compiling$ac_delim
52355 WIDGET_SET!$WIDGET_SET$ac_delim
52356 WX_RELEASE!$WX_RELEASE$ac_delim
52357 WX_VERSION!$WX_VERSION$ac_delim
52358 WX_SUBVERSION!$WX_SUBVERSION$ac_delim
52359 WX_CHARTYPE!$WX_CHARTYPE$ac_delim
52360 WX_DEBUGTYPE!$WX_DEBUGTYPE$ac_delim
52361 WXCONFIG_CPPFLAGS!$WXCONFIG_CPPFLAGS$ac_delim
52362 WXCONFIG_CFLAGS!$WXCONFIG_CFLAGS$ac_delim
52363 WXCONFIG_CXXFLAGS!$WXCONFIG_CXXFLAGS$ac_delim
52364 WXCONFIG_LIBS!$WXCONFIG_LIBS$ac_delim
52365 WXCONFIG_RPATH!$WXCONFIG_RPATH$ac_delim
52366 WXCONFIG_LDFLAGS_GUI!$WXCONFIG_LDFLAGS_GUI$ac_delim
52367 WXCONFIG_RESFLAGS!$WXCONFIG_RESFLAGS$ac_delim
52368 GUIDIST!$GUIDIST$ac_delim
52369 DISTDIR!$DISTDIR$ac_delim
52370 SAMPLES_SUBDIRS!$SAMPLES_SUBDIRS$ac_delim
52371 LDFLAGS_GL!$LDFLAGS_GL$ac_delim
52372 OPENGL_LIBS!$OPENGL_LIBS$ac_delim
52373 DMALLOC_LIBS!$DMALLOC_LIBS$ac_delim
52374 WX_VERSION_TAG!$WX_VERSION_TAG$ac_delim
52375 RESCOMP!$RESCOMP$ac_delim
52376 RESFLAGS!$RESFLAGS$ac_delim
52377 RESPROGRAMOBJ!$RESPROGRAMOBJ$ac_delim
52378 WX_RESOURCES_MACOSX_ASCII!$WX_RESOURCES_MACOSX_ASCII$ac_delim
52379 WX_RESOURCES_MACOSX_DATA!$WX_RESOURCES_MACOSX_DATA$ac_delim
52380 LIBWXMACRES!$LIBWXMACRES$ac_delim
52381 POSTLINK_COMMAND!$POSTLINK_COMMAND$ac_delim
52382 MACSETFILE!$MACSETFILE$ac_delim
52383 GCC!$GCC$ac_delim
52384 DLLTOOL!$DLLTOOL$ac_delim
52385 CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
52386 LIBOBJS!$LIBOBJS$ac_delim
52387 LTLIBOBJS!$LTLIBOBJS$ac_delim
52388 _ACEOF
52389
52390   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 35; then
52391     break
52392   elif $ac_last_try; then
52393     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
52394 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
52395    { (exit 1); exit 1; }; }
52396   else
52397     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
52398   fi
52399 done
52400
52401 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
52402 if test -n "$ac_eof"; then
52403   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
52404   ac_eof=`expr $ac_eof + 1`
52405 fi
52406
52407 cat >>$CONFIG_STATUS <<_ACEOF
52408 cat >"\$tmp/subs-5.sed" <<\CEOF$ac_eof
52409 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
52410 _ACEOF
52411 sed '
52412 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
52413 s/^/s,@/; s/!/@,|#_!!_#|/
52414 :n
52415 t n
52416 s/'"$ac_delim"'$/,g/; t
52417 s/$/\\/; p
52418 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
52419 ' >>$CONFIG_STATUS <conf$$subs.sed
52420 rm -f conf$$subs.sed
52421 cat >>$CONFIG_STATUS <<_ACEOF
52422 :end
52423 s/|#_!!_#|//g
52424 CEOF$ac_eof
52425 _ACEOF
52426
52427
52428 # VPATH may cause trouble with some makes, so we remove $(srcdir),
52429 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
52430 # trailing colons and then remove the whole line if VPATH becomes empty
52431 # (actually we leave an empty line to preserve line numbers).
52432 if test "x$srcdir" = x.; then
52433   ac_vpsub='/^[  ]*VPATH[        ]*=/{
52434 s/:*\$(srcdir):*/:/
52435 s/:*\${srcdir}:*/:/
52436 s/:*@srcdir@:*/:/
52437 s/^\([^=]*=[     ]*\):*/\1/
52438 s/:*$//
52439 s/^[^=]*=[       ]*$//
52440 }'
52441 fi
52442
52443 cat >>$CONFIG_STATUS <<\_ACEOF
52444 fi # test -n "$CONFIG_FILES"
52445
52446
52447 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
52448 do
52449   case $ac_tag in
52450   :[FHLC]) ac_mode=$ac_tag; continue;;
52451   esac
52452   case $ac_mode$ac_tag in
52453   :[FHL]*:*);;
52454   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
52455 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
52456    { (exit 1); exit 1; }; };;
52457   :[FH]-) ac_tag=-:-;;
52458   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
52459   esac
52460   ac_save_IFS=$IFS
52461   IFS=:
52462   set x $ac_tag
52463   IFS=$ac_save_IFS
52464   shift
52465   ac_file=$1
52466   shift
52467
52468   case $ac_mode in
52469   :L) ac_source=$1;;
52470   :[FH])
52471     ac_file_inputs=
52472     for ac_f
52473     do
52474       case $ac_f in
52475       -) ac_f="$tmp/stdin";;
52476       *) # Look for the file first in the build tree, then in the source tree
52477          # (if the path is not absolute).  The absolute path cannot be DOS-style,
52478          # because $ac_f cannot contain `:'.
52479          test -f "$ac_f" ||
52480            case $ac_f in
52481            [\\/$]*) false;;
52482            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
52483            esac ||
52484            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
52485 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
52486    { (exit 1); exit 1; }; };;
52487       esac
52488       ac_file_inputs="$ac_file_inputs $ac_f"
52489     done
52490
52491     # Let's still pretend it is `configure' which instantiates (i.e., don't
52492     # use $as_me), people would be surprised to read:
52493     #    /* config.h.  Generated by config.status.  */
52494     configure_input="Generated from "`IFS=:
52495           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
52496     if test x"$ac_file" != x-; then
52497       configure_input="$ac_file.  $configure_input"
52498       { echo "$as_me:$LINENO: creating $ac_file" >&5
52499 echo "$as_me: creating $ac_file" >&6;}
52500     fi
52501
52502     case $ac_tag in
52503     *:-:* | *:-) cat >"$tmp/stdin";;
52504     esac
52505     ;;
52506   esac
52507
52508   ac_dir=`$as_dirname -- "$ac_file" ||
52509 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52510          X"$ac_file" : 'X\(//\)[^/]' \| \
52511          X"$ac_file" : 'X\(//\)$' \| \
52512          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
52513 echo X"$ac_file" |
52514     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
52515             s//\1/
52516             q
52517           }
52518           /^X\(\/\/\)[^/].*/{
52519             s//\1/
52520             q
52521           }
52522           /^X\(\/\/\)$/{
52523             s//\1/
52524             q
52525           }
52526           /^X\(\/\).*/{
52527             s//\1/
52528             q
52529           }
52530           s/.*/./; q'`
52531   { as_dir="$ac_dir"
52532   case $as_dir in #(
52533   -*) as_dir=./$as_dir;;
52534   esac
52535   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
52536     as_dirs=
52537     while :; do
52538       case $as_dir in #(
52539       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
52540       *) as_qdir=$as_dir;;
52541       esac
52542       as_dirs="'$as_qdir' $as_dirs"
52543       as_dir=`$as_dirname -- "$as_dir" ||
52544 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52545          X"$as_dir" : 'X\(//\)[^/]' \| \
52546          X"$as_dir" : 'X\(//\)$' \| \
52547          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
52548 echo X"$as_dir" |
52549     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
52550             s//\1/
52551             q
52552           }
52553           /^X\(\/\/\)[^/].*/{
52554             s//\1/
52555             q
52556           }
52557           /^X\(\/\/\)$/{
52558             s//\1/
52559             q
52560           }
52561           /^X\(\/\).*/{
52562             s//\1/
52563             q
52564           }
52565           s/.*/./; q'`
52566       test -d "$as_dir" && break
52567     done
52568     test -z "$as_dirs" || eval "mkdir $as_dirs"
52569   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
52570 echo "$as_me: error: cannot create directory $as_dir" >&2;}
52571    { (exit 1); exit 1; }; }; }
52572   ac_builddir=.
52573
52574 case "$ac_dir" in
52575 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
52576 *)
52577   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52578   # A ".." for each directory in $ac_dir_suffix.
52579   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
52580   case $ac_top_builddir_sub in
52581   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
52582   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
52583   esac ;;
52584 esac
52585 ac_abs_top_builddir=$ac_pwd
52586 ac_abs_builddir=$ac_pwd$ac_dir_suffix
52587 # for backward compatibility:
52588 ac_top_builddir=$ac_top_build_prefix
52589
52590 case $srcdir in
52591   .)  # We are building in place.
52592     ac_srcdir=.
52593     ac_top_srcdir=$ac_top_builddir_sub
52594     ac_abs_top_srcdir=$ac_pwd ;;
52595   [\\/]* | ?:[\\/]* )  # Absolute name.
52596     ac_srcdir=$srcdir$ac_dir_suffix;
52597     ac_top_srcdir=$srcdir
52598     ac_abs_top_srcdir=$srcdir ;;
52599   *) # Relative name.
52600     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
52601     ac_top_srcdir=$ac_top_build_prefix$srcdir
52602     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
52603 esac
52604 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
52605
52606
52607   case $ac_mode in
52608   :F)
52609   #
52610   # CONFIG_FILE
52611   #
52612
52613   case $INSTALL in
52614   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
52615   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
52616   esac
52617 _ACEOF
52618
52619 cat >>$CONFIG_STATUS <<\_ACEOF
52620 # If the template does not know about datarootdir, expand it.
52621 # FIXME: This hack should be removed a few years after 2.60.
52622 ac_datarootdir_hack=; ac_datarootdir_seen=
52623
52624 case `sed -n '/datarootdir/ {
52625   p
52626   q
52627 }
52628 /@datadir@/p
52629 /@docdir@/p
52630 /@infodir@/p
52631 /@localedir@/p
52632 /@mandir@/p
52633 ' $ac_file_inputs` in
52634 *datarootdir*) ac_datarootdir_seen=yes;;
52635 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
52636   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
52637 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
52638 _ACEOF
52639 cat >>$CONFIG_STATUS <<_ACEOF
52640   ac_datarootdir_hack='
52641   s&@datadir@&$datadir&g
52642   s&@docdir@&$docdir&g
52643   s&@infodir@&$infodir&g
52644   s&@localedir@&$localedir&g
52645   s&@mandir@&$mandir&g
52646     s&\\\${datarootdir}&$datarootdir&g' ;;
52647 esac
52648 _ACEOF
52649
52650 # Neutralize VPATH when `$srcdir' = `.'.
52651 # Shell code in configure.ac might set extrasub.
52652 # FIXME: do we really want to maintain this feature?
52653 cat >>$CONFIG_STATUS <<_ACEOF
52654   sed "$ac_vpsub
52655 $extrasub
52656 _ACEOF
52657 cat >>$CONFIG_STATUS <<\_ACEOF
52658 :t
52659 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
52660 s&@configure_input@&$configure_input&;t t
52661 s&@top_builddir@&$ac_top_builddir_sub&;t t
52662 s&@srcdir@&$ac_srcdir&;t t
52663 s&@abs_srcdir@&$ac_abs_srcdir&;t t
52664 s&@top_srcdir@&$ac_top_srcdir&;t t
52665 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
52666 s&@builddir@&$ac_builddir&;t t
52667 s&@abs_builddir@&$ac_abs_builddir&;t t
52668 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
52669 s&@INSTALL@&$ac_INSTALL&;t t
52670 $ac_datarootdir_hack
52671 " $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
52672
52673 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
52674   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
52675   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
52676   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
52677 which seems to be undefined.  Please make sure it is defined." >&5
52678 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
52679 which seems to be undefined.  Please make sure it is defined." >&2;}
52680
52681   rm -f "$tmp/stdin"
52682   case $ac_file in
52683   -) cat "$tmp/out"; rm -f "$tmp/out";;
52684   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
52685   esac
52686  ;;
52687   :H)
52688   #
52689   # CONFIG_HEADER
52690   #
52691 _ACEOF
52692
52693 # Transform confdefs.h into a sed script `conftest.defines', that
52694 # substitutes the proper values into config.h.in to produce config.h.
52695 rm -f conftest.defines conftest.tail
52696 # First, append a space to every undef/define line, to ease matching.
52697 echo 's/$/ /' >conftest.defines
52698 # Then, protect against being on the right side of a sed subst, or in
52699 # an unquoted here document, in config.status.  If some macros were
52700 # called several times there might be several #defines for the same
52701 # symbol, which is useless.  But do not sort them, since the last
52702 # AC_DEFINE must be honored.
52703 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
52704 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
52705 # NAME is the cpp macro being defined, VALUE is the value it is being given.
52706 # PARAMS is the parameter list in the macro definition--in most cases, it's
52707 # just an empty string.
52708 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
52709 ac_dB='\\)[      (].*,\\1define\\2'
52710 ac_dC=' '
52711 ac_dD=' ,'
52712
52713 uniq confdefs.h |
52714   sed -n '
52715         t rset
52716         :rset
52717         s/^[     ]*#[    ]*define[       ][      ]*//
52718         t ok
52719         d
52720         :ok
52721         s/[\\&,]/\\&/g
52722         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
52723         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
52724   ' >>conftest.defines
52725
52726 # Remove the space that was appended to ease matching.
52727 # Then replace #undef with comments.  This is necessary, for
52728 # example, in the case of _POSIX_SOURCE, which is predefined and required
52729 # on some systems where configure will not decide to define it.
52730 # (The regexp can be short, since the line contains either #define or #undef.)
52731 echo 's/ $//
52732 s,^[     #]*u.*,/* & */,' >>conftest.defines
52733
52734 # Break up conftest.defines:
52735 ac_max_sed_lines=50
52736
52737 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
52738 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
52739 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
52740 # et cetera.
52741 ac_in='$ac_file_inputs'
52742 ac_out='"$tmp/out1"'
52743 ac_nxt='"$tmp/out2"'
52744
52745 while :
52746 do
52747   # Write a here document:
52748     cat >>$CONFIG_STATUS <<_ACEOF
52749     # First, check the format of the line:
52750     cat >"\$tmp/defines.sed" <<\\CEOF
52751 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
52752 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
52753 b
52754 :def
52755 _ACEOF
52756   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
52757   echo 'CEOF
52758     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
52759   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
52760   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
52761   grep . conftest.tail >/dev/null || break
52762   rm -f conftest.defines
52763   mv conftest.tail conftest.defines
52764 done
52765 rm -f conftest.defines conftest.tail
52766
52767 echo "ac_result=$ac_in" >>$CONFIG_STATUS
52768 cat >>$CONFIG_STATUS <<\_ACEOF
52769   if test x"$ac_file" != x-; then
52770     echo "/* $configure_input  */" >"$tmp/config.h"
52771     cat "$ac_result" >>"$tmp/config.h"
52772     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
52773       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
52774 echo "$as_me: $ac_file is unchanged" >&6;}
52775     else
52776       rm -f $ac_file
52777       mv "$tmp/config.h" $ac_file
52778     fi
52779   else
52780     echo "/* $configure_input  */"
52781     cat "$ac_result"
52782   fi
52783   rm -f "$tmp/out12"
52784  ;;
52785
52786   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
52787 echo "$as_me: executing $ac_file commands" >&6;}
52788  ;;
52789   esac
52790
52791
52792   case $ac_file$ac_mode in
52793     "rcdefs.h":C)
52794             mkdir -p $outdir &&
52795             $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
52796          ;;
52797     "lib/wx/config/${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME}  ;;
52798     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}  ;;
52799     "utils/ifacecheck/rungccxml.sh":F)  chmod +x utils/ifacecheck/rungccxml.sh  ;;
52800     "wx-config":C)  rm -f wx-config
52801                      ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
52802                     ;;
52803
52804   esac
52805 done # for ac_tag
52806
52807
52808 { (exit 0); exit 0; }
52809 _ACEOF
52810 chmod +x $CONFIG_STATUS
52811 ac_clean_files=$ac_clean_files_save
52812
52813
52814 # configure is writing to config.log, and then calls config.status.
52815 # config.status does its own redirection, appending to config.log.
52816 # Unfortunately, on DOS this fails, as config.log is still kept open
52817 # by configure, so config.status won't be able to write to it; its
52818 # output is simply discarded.  So we exec the FD to /dev/null,
52819 # effectively closing config.log, so it can be properly (re)opened and
52820 # appended to by config.status.  When coming back to configure, we
52821 # need to make the FD available again.
52822 if test "$no_create" != yes; then
52823   ac_cs_success=:
52824   ac_config_status_args=
52825   test "$silent" = yes &&
52826     ac_config_status_args="$ac_config_status_args --quiet"
52827   exec 5>/dev/null
52828   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
52829   exec 5>>config.log
52830   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
52831   # would make configure fail if this is the last instruction.
52832   $ac_cs_success || { (exit 1); exit 1; }
52833 fi
52834
52835 #
52836 # CONFIG_SUBDIRS section.
52837 #
52838 if test "$no_recursion" != yes; then
52839
52840   # Remove --cache-file and --srcdir arguments so they do not pile up.
52841   ac_sub_configure_args=
52842   ac_prev=
52843   eval "set x $ac_configure_args"
52844   shift
52845   for ac_arg
52846   do
52847     if test -n "$ac_prev"; then
52848       ac_prev=
52849       continue
52850     fi
52851     case $ac_arg in
52852     -cache-file | --cache-file | --cache-fil | --cache-fi \
52853     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
52854       ac_prev=cache_file ;;
52855     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
52856     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
52857     | --c=*)
52858       ;;
52859     --config-cache | -C)
52860       ;;
52861     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
52862       ac_prev=srcdir ;;
52863     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
52864       ;;
52865     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
52866       ac_prev=prefix ;;
52867     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
52868       ;;
52869     *)
52870       case $ac_arg in
52871       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
52872       esac
52873       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
52874     esac
52875   done
52876
52877   # Always prepend --prefix to ensure using the same prefix
52878   # in subdir configurations.
52879   ac_arg="--prefix=$prefix"
52880   case $ac_arg in
52881   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
52882   esac
52883   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
52884
52885   # Pass --silent
52886   if test "$silent" = yes; then
52887     ac_sub_configure_args="--silent $ac_sub_configure_args"
52888   fi
52889
52890   ac_popdir=`pwd`
52891   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
52892
52893     # Do not complain, so a configure script can configure whichever
52894     # parts of a large source tree are present.
52895     test -d "$srcdir/$ac_dir" || continue
52896
52897     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
52898     echo "$as_me:$LINENO: $ac_msg" >&5
52899     echo "$ac_msg" >&6
52900     { as_dir="$ac_dir"
52901   case $as_dir in #(
52902   -*) as_dir=./$as_dir;;
52903   esac
52904   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
52905     as_dirs=
52906     while :; do
52907       case $as_dir in #(
52908       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
52909       *) as_qdir=$as_dir;;
52910       esac
52911       as_dirs="'$as_qdir' $as_dirs"
52912       as_dir=`$as_dirname -- "$as_dir" ||
52913 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52914          X"$as_dir" : 'X\(//\)[^/]' \| \
52915          X"$as_dir" : 'X\(//\)$' \| \
52916          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
52917 echo X"$as_dir" |
52918     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
52919             s//\1/
52920             q
52921           }
52922           /^X\(\/\/\)[^/].*/{
52923             s//\1/
52924             q
52925           }
52926           /^X\(\/\/\)$/{
52927             s//\1/
52928             q
52929           }
52930           /^X\(\/\).*/{
52931             s//\1/
52932             q
52933           }
52934           s/.*/./; q'`
52935       test -d "$as_dir" && break
52936     done
52937     test -z "$as_dirs" || eval "mkdir $as_dirs"
52938   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
52939 echo "$as_me: error: cannot create directory $as_dir" >&2;}
52940    { (exit 1); exit 1; }; }; }
52941     ac_builddir=.
52942
52943 case "$ac_dir" in
52944 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
52945 *)
52946   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52947   # A ".." for each directory in $ac_dir_suffix.
52948   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
52949   case $ac_top_builddir_sub in
52950   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
52951   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
52952   esac ;;
52953 esac
52954 ac_abs_top_builddir=$ac_pwd
52955 ac_abs_builddir=$ac_pwd$ac_dir_suffix
52956 # for backward compatibility:
52957 ac_top_builddir=$ac_top_build_prefix
52958
52959 case $srcdir in
52960   .)  # We are building in place.
52961     ac_srcdir=.
52962     ac_top_srcdir=$ac_top_builddir_sub
52963     ac_abs_top_srcdir=$ac_pwd ;;
52964   [\\/]* | ?:[\\/]* )  # Absolute name.
52965     ac_srcdir=$srcdir$ac_dir_suffix;
52966     ac_top_srcdir=$srcdir
52967     ac_abs_top_srcdir=$srcdir ;;
52968   *) # Relative name.
52969     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
52970     ac_top_srcdir=$ac_top_build_prefix$srcdir
52971     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
52972 esac
52973 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
52974
52975
52976     cd "$ac_dir"
52977
52978     # Check for guested configure; otherwise get Cygnus style configure.
52979     if test -f "$ac_srcdir/configure.gnu"; then
52980       ac_sub_configure=$ac_srcdir/configure.gnu
52981     elif test -f "$ac_srcdir/configure"; then
52982       ac_sub_configure=$ac_srcdir/configure
52983     elif test -f "$ac_srcdir/configure.in"; then
52984       # This should be Cygnus configure.
52985       ac_sub_configure=$ac_aux_dir/configure
52986     else
52987       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
52988 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
52989       ac_sub_configure=
52990     fi
52991
52992     # The recursion is here.
52993     if test -n "$ac_sub_configure"; then
52994       # Make the cache file name correct relative to the subdirectory.
52995       case $cache_file in
52996       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
52997       *) # Relative name.
52998         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
52999       esac
53000
53001       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
53002 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
53003       # The eval makes quoting arguments work.
53004       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
53005            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
53006         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
53007 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
53008    { (exit 1); exit 1; }; }
53009     fi
53010
53011     cd "$ac_popdir"
53012   done
53013 fi
53014
53015
53016 echo
53017 echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
53018 echo ""
53019 echo "  Which GUI toolkit should wxWidgets use?                 ${TOOLKIT_DESC}"
53020 echo "  Should wxWidgets be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
53021
53022 echo "  Should wxWidgets be compiled in debug mode?             ${wxUSE_DEBUG:-no}"
53023 echo "  Should wxWidgets be linked as a shared library?         ${wxUSE_SHARED:-no}"
53024 echo $ECHO_N "  Should wxWidgets support Unicode?                       ${wxUSE_UNICODE:-no}$ECHO_C"
53025 if test "$wxUSE_UNICODE" = "yes"; then
53026     if test "$wxUSE_UNICODE_UTF8" = "yes"; then
53027         echo " (using UTF-8)"
53028     else
53029         echo " (using wchar_t)"
53030     fi
53031 else
53032     echo
53033 fi
53034
53035 echo "  What level of wxWidgets compatibility should be enabled?"
53036 echo "                                       wxWidgets 2.6      ${WXWIN_COMPATIBILITY_2_6:-no}"
53037 echo "                                       wxWidgets 2.8      ${WXWIN_COMPATIBILITY_2_8:-yes}"
53038
53039 echo "  Which libraries should wxWidgets use?"
53040 echo "                                       STL                ${wxUSE_STL}"
53041 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
53042 echo "                                       png                ${wxUSE_LIBPNG-none}"
53043 echo "                                       regex              ${wxUSE_REGEX}"
53044 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
53045 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
53046 echo "                                       xpm                ${wxUSE_LIBXPM-none}"
53047 fi
53048 echo "                                       zlib               ${wxUSE_ZLIB}"
53049 echo "                                       expat              ${wxUSE_EXPAT}"
53050 echo "                                       libmspack          ${wxUSE_LIBMSPACK}"
53051 echo "                                       sdl                ${wxUSE_LIBSDL}"
53052
53053 echo ""
53054