minor change: use a "positive" logic: use shouldSucceed instead of shouldFail and...
[wxWidgets.git] / configure
1 #! /bin/sh
2 # From configure.in Id.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for wxWidgets 2.9.1.
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.1'
579 PACKAGE_STRING='wxWidgets 2.9.1'
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 OSX_SW_VERS
680 subdirs
681 PKG_CONFIG
682 GTK_CFLAGS
683 GTK_LIBS
684 GTK_CONFIG
685 DIRECTFB_CFLAGS
686 DIRECTFB_LIBS
687 XMKMF
688 X_CFLAGS
689 X_PRE_LIBS
690 X_LIBS
691 X_EXTRA_LIBS
692 PANGOX_CFLAGS
693 PANGOX_LIBS
694 PANGOFT2_CFLAGS
695 PANGOFT2_LIBS
696 PANGOXFT_CFLAGS
697 PANGOXFT_LIBS
698 CFLAGS_VISIBILITY
699 CXXFLAGS_VISIBILITY
700 LIBICONV
701 GXX_VERSION
702 SDL_CONFIG
703 SDL_CFLAGS
704 SDL_LIBS
705 GTKPRINT_CFLAGS
706 GTKPRINT_LIBS
707 LIBGNOMEPRINTUI_CFLAGS
708 LIBGNOMEPRINTUI_LIBS
709 GNOMEVFS_CFLAGS
710 GNOMEVFS_LIBS
711 HILDON_CFLAGS
712 HILDON_LIBS
713 HILDON2_CFLAGS
714 HILDON2_LIBS
715 PYTHON
716 COND_PYTHON
717 CAIRO_CFLAGS
718 CAIRO_LIBS
719 GST_CFLAGS
720 GST_LIBS
721 ALL_WX_LIBS
722 BUILT_WX_LIBS
723 STD_BASE_LIBS
724 STD_GUI_LIBS
725 wxUSE_ZLIB
726 wxUSE_REGEX
727 wxUSE_EXPAT
728 wxUSE_LIBJPEG
729 wxUSE_LIBPNG
730 wxUSE_LIBTIFF
731 VENDOR
732 OFFICIAL_BUILD
733 WX_FLAVOUR
734 WX_LIB_FLAVOUR
735 WXUNIV
736 MONOLITHIC
737 USE_PLUGINS
738 CXXWARNINGS
739 EXTRALIBS
740 EXTRALIBS_XML
741 EXTRALIBS_HTML
742 EXTRALIBS_MEDIA
743 EXTRALIBS_GUI
744 EXTRALIBS_OPENGL
745 EXTRALIBS_SDL
746 EXTRALIBS_STC
747 WITH_PLUGIN_SDL
748 EXTRALIBS_GTKPRINT
749 EXTRALIBS_GNOMEPRINT
750 EXTRALIBS_GNOMEVFS
751 EXTRALIBS_HILDON
752 UNICODE
753 DEBUG_INFO
754 DEBUG_FLAG
755 TOOLKIT_LOWERCASE
756 TOOLKIT_VERSION
757 DYLIB_RPATH_INSTALL
758 DYLIB_RPATH_POSTLINK
759 SAMPLES_RPATH_FLAG
760 HEADER_PAD_OPTION
761 HOST_SUFFIX
762 CPPUNIT_CFLAGS
763 CPPUNIT_LIBS
764 RANLIB
765 INSTALL_PROGRAM
766 INSTALL_SCRIPT
767 INSTALL_DATA
768 LN_S
769 SET_MAKE
770 MAKE_SET
771 AROPTIONS
772 STRIP
773 NM
774 INSTALL_DIR
775 LDFLAGS_GUI
776 IF_GNU_MAKE
777 PLATFORM_UNIX
778 PLATFORM_WIN32
779 PLATFORM_MSDOS
780 PLATFORM_MAC
781 PLATFORM_MACOS
782 PLATFORM_MACOSX
783 PLATFORM_OS2
784 PLATFORM_BEOS
785 SO_SUFFIX
786 SO_SUFFIX_MODULE
787 DLLIMP_SUFFIX
788 LIBPREFIX
789 LIBEXT
790 DLLPREFIX
791 DLLPREFIX_MODULE
792 dlldir
793 AIX_CXX_LD
794 SHARED_LD_CC
795 SHARED_LD_CXX
796 SHARED_LD_MODULE_CC
797 SHARED_LD_MODULE_CXX
798 PIC_FLAG
799 WINDOWS_IMPLIB
800 USE_SOVERSION
801 USE_SOVERLINUX
802 USE_SOVERSOLARIS
803 USE_SOVERCYGWIN
804 USE_MACVERSION
805 USE_SOTWOSYMLINKS
806 SONAME_FLAG
807 DEPS_TRACKING
808 BK_DEPS
809 WINDRES
810 REZ
811 SETFILE
812 OBJCXXFLAGS
813 GCC_PCH
814 ICC_PCH
815 ICC_PCH_CREATE_SWITCH
816 ICC_PCH_USE_SWITCH
817 BK_MAKE_PCH
818 COND_BUILD_DEBUG
819 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT
820 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT
821 COND_BUILD_DEBUG_UNICODE_0
822 COND_BUILD_DEBUG_UNICODE_1
823 COND_BUILD_RELEASE
824 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT
825 COND_BUILD_RELEASE_UNICODE_0
826 COND_BUILD_RELEASE_UNICODE_1
827 COND_BUILD_debug
828 COND_BUILD_debug_DEBUG_FLAG_default
829 COND_BUILD_debug_DEBUG_INFO_default
830 COND_BUILD_debug_UNICODE_0
831 COND_BUILD_debug_UNICODE_1
832 COND_BUILD_release
833 COND_BUILD_release_DEBUG_INFO_default
834 COND_BUILD_release_UNICODE_0
835 COND_BUILD_release_UNICODE_1
836 COND_DEBUG_FLAG_0
837 COND_DEBUG_FLAG_1
838 COND_DEBUG_INFO_0
839 COND_DEBUG_INFO_1
840 COND_DEPS_TRACKING_0
841 COND_DEPS_TRACKING_1
842 COND_GCC_PCH_1
843 COND_ICC_PCH_1
844 COND_MONOLITHIC_0
845 COND_MONOLITHIC_0_SHARED_0
846 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1
847 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1
848 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1
849 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1
850 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1
851 COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1
852 COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1
853 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1
854 COND_MONOLITHIC_0_SHARED_0_USE_STC_1
855 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1
856 COND_MONOLITHIC_0_SHARED_1
857 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1
858 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1
859 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1
860 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1
861 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1
862 COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1
863 COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1
864 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1
865 COND_MONOLITHIC_0_SHARED_1_USE_STC_1
866 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1
867 COND_MONOLITHIC_0_USE_AUI_1
868 COND_MONOLITHIC_0_USE_GUI_1
869 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1
870 COND_MONOLITHIC_0_USE_HTML_1
871 COND_MONOLITHIC_0_USE_MEDIA_1
872 COND_MONOLITHIC_0_USE_PROPGRID_1
873 COND_MONOLITHIC_0_USE_QA_1
874 COND_MONOLITHIC_0_USE_RIBBON_1
875 COND_MONOLITHIC_0_USE_RICHTEXT_1
876 COND_MONOLITHIC_0_USE_STC_1
877 COND_MONOLITHIC_0_USE_XRC_1
878 COND_MONOLITHIC_1
879 COND_MONOLITHIC_1_SHARED_0
880 COND_MONOLITHIC_1_SHARED_1
881 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1
882 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1
883 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1
884 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1
885 COND_PLATFORM_MACOSX_1
886 COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0
887 COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0
888 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1
889 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0
890 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1
891 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0
892 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1
893 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0
894 COND_PLATFORM_MACOSX_1_USE_GUI_1
895 COND_PLATFORM_MACOSX_1_USE_OPENGL_1
896 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1
897 COND_PLATFORM_MACOS_1
898 COND_PLATFORM_MAC_0
899 COND_PLATFORM_MAC_1
900 COND_PLATFORM_MSDOS_0
901 COND_PLATFORM_MSDOS_1
902 COND_PLATFORM_OS2_1
903 COND_PLATFORM_UNIX_0
904 COND_PLATFORM_UNIX_1
905 COND_PLATFORM_UNIX_1_TOOLKIT_MGL
906 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1
907 COND_PLATFORM_UNIX_1_USE_GUI_1
908 COND_PLATFORM_UNIX_1_USE_PLUGINS_0
909 COND_PLATFORM_WIN32_0
910 COND_PLATFORM_WIN32_1
911 COND_PLATFORM_WIN32_1_SHARED_0
912 COND_SHARED_0
913 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0
914 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0
915 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0
916 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1
917 COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin
918 COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin
919 COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin
920 COND_SHARED_0_USE_STC_1
921 COND_SHARED_0_wxUSE_EXPAT_builtin
922 COND_SHARED_0_wxUSE_REGEX_builtin
923 COND_SHARED_0_wxUSE_ZLIB_builtin
924 COND_SHARED_1
925 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1
926 COND_TOOLKIT_
927 COND_TOOLKIT_COCOA
928 COND_TOOLKIT_COCOA_USE_GUI_1
929 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0
930 COND_TOOLKIT_DFB
931 COND_TOOLKIT_DFB_USE_GUI_1
932 COND_TOOLKIT_GTK
933 COND_TOOLKIT_GTK_TOOLKIT_VERSION_
934 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2
935 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1
936 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0
937 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1
938 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0
939 COND_TOOLKIT_GTK_USE_GUI_1
940 COND_TOOLKIT_MAC
941 COND_TOOLKIT_MGL
942 COND_TOOLKIT_MGL_USE_GUI_1
943 COND_TOOLKIT_MOTIF
944 COND_TOOLKIT_MOTIF_USE_GUI_1
945 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0
946 COND_TOOLKIT_MSW
947 COND_TOOLKIT_MSW_USE_GUI_1
948 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0
949 COND_TOOLKIT_MSW_WXUNIV_0
950 COND_TOOLKIT_OSX_CARBON
951 COND_TOOLKIT_OSX_CARBON_USE_GUI_1
952 COND_TOOLKIT_OSX_COCOA
953 COND_TOOLKIT_OSX_COCOA_USE_GUI_1
954 COND_TOOLKIT_OSX_IPHONE
955 COND_TOOLKIT_OSX_IPHONE_USE_GUI_1
956 COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0
957 COND_TOOLKIT_PM
958 COND_TOOLKIT_PM_USE_GUI_1
959 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0
960 COND_TOOLKIT_WINCE
961 COND_TOOLKIT_WINCE_USE_GUI_1
962 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0
963 COND_TOOLKIT_WINCE_WXUNIV_0
964 COND_TOOLKIT_X11
965 COND_TOOLKIT_X11_USE_GUI_1
966 COND_UNICODE_1
967 COND_USE_CAIRO_1
968 COND_USE_EXCEPTIONS_0
969 COND_USE_EXCEPTIONS_1
970 COND_USE_GUI_0
971 COND_USE_GUI_1
972 COND_USE_GUI_1_USE_OPENGL_1
973 COND_USE_GUI_1_WXUNIV_0
974 COND_USE_GUI_1_WXUNIV_1
975 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN
976 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN
977 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN
978 COND_USE_GUI_1_wxUSE_LIBJPEG_builtin
979 COND_USE_GUI_1_wxUSE_LIBPNG_builtin
980 COND_USE_GUI_1_wxUSE_LIBTIFF_builtin
981 COND_USE_OPENGL_1
982 COND_USE_PCH_1
983 COND_USE_PLUGINS_0
984 COND_USE_RTTI_0
985 COND_USE_RTTI_1
986 COND_USE_SOTWOSYMLINKS_1
987 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1
988 COND_USE_SOVERLINUX_1
989 COND_USE_SOVERSION_0
990 COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1
991 COND_USE_SOVERSOLARIS_1
992 COND_USE_STC_1
993 COND_USE_THREADS_0
994 COND_USE_THREADS_1
995 COND_USE_XRC_1
996 COND_WINDOWS_IMPLIB_1
997 COND_WITH_PLUGIN_SDL_1
998 COND_WXUNIV_0
999 COND_WXUNIV_1
1000 COND_WXUSE_EXPAT_BUILTIN
1001 COND_WXUSE_LIBJPEG_BUILTIN
1002 COND_WXUSE_LIBPNG_BUILTIN
1003 COND_WXUSE_LIBTIFF_BUILTIN
1004 COND_WXUSE_REGEX_BUILTIN
1005 COND_WXUSE_ZLIB_BUILTIN
1006 COND_wxUSE_EXPAT_builtin
1007 COND_wxUSE_LIBJPEG_builtin
1008 COND_wxUSE_LIBPNG_builtin
1009 COND_wxUSE_LIBTIFF_builtin
1010 COND_wxUSE_REGEX_builtin
1011 COND_wxUSE_ZLIB_builtin
1012 DEREZ
1013 SHARED
1014 WX_LIBRARY_BASENAME_NOGUI
1015 WX_LIBRARY_BASENAME_GUI
1016 USE_GUI
1017 AFMINSTALL
1018 WIN32INSTALL
1019 TOOLKIT
1020 TOOLKIT_DIR
1021 TOOLCHAIN_NAME
1022 TOOLCHAIN_FULLNAME
1023 cross_compiling
1024 WIDGET_SET
1025 WX_RELEASE
1026 WX_VERSION
1027 WX_SUBVERSION
1028 WX_CHARTYPE
1029 WXCONFIG_CPPFLAGS
1030 WXCONFIG_CFLAGS
1031 WXCONFIG_CXXFLAGS
1032 WXCONFIG_LIBS
1033 WXCONFIG_RPATH
1034 WXCONFIG_LDFLAGS
1035 WXCONFIG_LDFLAGS_GUI
1036 WXCONFIG_RESFLAGS
1037 GUIDIST
1038 DISTDIR
1039 SAMPLES_SUBDIRS
1040 LDFLAGS_GL
1041 OPENGL_LIBS
1042 DMALLOC_LIBS
1043 WX_VERSION_TAG
1044 RESCOMP
1045 RESFLAGS
1046 RESPROGRAMOBJ
1047 WX_RESOURCES_MACOSX_ASCII
1048 WX_RESOURCES_MACOSX_DATA
1049 LIBWXMACRES
1050 POSTLINK_COMMAND
1051 MACSETFILE
1052 GCC
1053 DLLTOOL
1054 CPPUNIT_CONFIG
1055 LIBOBJS
1056 LTLIBOBJS'
1057 ac_subst_files=''
1058       ac_precious_vars='build_alias
1059 host_alias
1060 target_alias
1061 CC
1062 CFLAGS
1063 LDFLAGS
1064 LIBS
1065 CPPFLAGS
1066 CPP
1067 CXX
1068 CXXFLAGS
1069 CCC
1070 PKG_CONFIG
1071 DIRECTFB_CFLAGS
1072 DIRECTFB_LIBS
1073 XMKMF
1074 PANGOX_CFLAGS
1075 PANGOX_LIBS
1076 PANGOFT2_CFLAGS
1077 PANGOFT2_LIBS
1078 PANGOXFT_CFLAGS
1079 PANGOXFT_LIBS
1080 GTKPRINT_CFLAGS
1081 GTKPRINT_LIBS
1082 LIBGNOMEPRINTUI_CFLAGS
1083 LIBGNOMEPRINTUI_LIBS
1084 GNOMEVFS_CFLAGS
1085 GNOMEVFS_LIBS
1086 HILDON_CFLAGS
1087 HILDON_LIBS
1088 HILDON2_CFLAGS
1089 HILDON2_LIBS
1090 CAIRO_CFLAGS
1091 CAIRO_LIBS
1092 GST_CFLAGS
1093 GST_LIBS'
1094 ac_subdirs_all='src/tiff
1095 src/expat'
1096
1097 # Initialize some variables set by options.
1098 ac_init_help=
1099 ac_init_version=false
1100 # The variables have the same names as the options, with
1101 # dashes changed to underlines.
1102 cache_file=/dev/null
1103 exec_prefix=NONE
1104 no_create=
1105 no_recursion=
1106 prefix=NONE
1107 program_prefix=NONE
1108 program_suffix=NONE
1109 program_transform_name=s,x,x,
1110 silent=
1111 site=
1112 srcdir=
1113 verbose=
1114 x_includes=NONE
1115 x_libraries=NONE
1116
1117 # Installation directory options.
1118 # These are left unexpanded so users can "make install exec_prefix=/foo"
1119 # and all the variables that are supposed to be based on exec_prefix
1120 # by default will actually change.
1121 # Use braces instead of parens because sh, perl, etc. also accept them.
1122 # (The list follows the same order as the GNU Coding Standards.)
1123 bindir='${exec_prefix}/bin'
1124 sbindir='${exec_prefix}/sbin'
1125 libexecdir='${exec_prefix}/libexec'
1126 datarootdir='${prefix}/share'
1127 datadir='${datarootdir}'
1128 sysconfdir='${prefix}/etc'
1129 sharedstatedir='${prefix}/com'
1130 localstatedir='${prefix}/var'
1131 includedir='${prefix}/include'
1132 oldincludedir='/usr/include'
1133 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1134 infodir='${datarootdir}/info'
1135 htmldir='${docdir}'
1136 dvidir='${docdir}'
1137 pdfdir='${docdir}'
1138 psdir='${docdir}'
1139 libdir='${exec_prefix}/lib'
1140 localedir='${datarootdir}/locale'
1141 mandir='${datarootdir}/man'
1142
1143 ac_prev=
1144 ac_dashdash=
1145 for ac_option
1146 do
1147   # If the previous option needs an argument, assign it.
1148   if test -n "$ac_prev"; then
1149     eval $ac_prev=\$ac_option
1150     ac_prev=
1151     continue
1152   fi
1153
1154   case $ac_option in
1155   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1156   *)    ac_optarg=yes ;;
1157   esac
1158
1159   # Accept the important Cygnus configure options, so we can diagnose typos.
1160
1161   case $ac_dashdash$ac_option in
1162   --)
1163     ac_dashdash=yes ;;
1164
1165   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1166     ac_prev=bindir ;;
1167   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1168     bindir=$ac_optarg ;;
1169
1170   -build | --build | --buil | --bui | --bu)
1171     ac_prev=build_alias ;;
1172   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1173     build_alias=$ac_optarg ;;
1174
1175   -cache-file | --cache-file | --cache-fil | --cache-fi \
1176   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1177     ac_prev=cache_file ;;
1178   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1179   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1180     cache_file=$ac_optarg ;;
1181
1182   --config-cache | -C)
1183     cache_file=config.cache ;;
1184
1185   -datadir | --datadir | --datadi | --datad)
1186     ac_prev=datadir ;;
1187   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1188     datadir=$ac_optarg ;;
1189
1190   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1191   | --dataroo | --dataro | --datar)
1192     ac_prev=datarootdir ;;
1193   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1194   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1195     datarootdir=$ac_optarg ;;
1196
1197   -disable-* | --disable-*)
1198     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1199     # Reject names that are not valid shell variable names.
1200     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1201       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1202    { (exit 1); exit 1; }; }
1203     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1204     eval enable_$ac_feature=no ;;
1205
1206   -docdir | --docdir | --docdi | --doc | --do)
1207     ac_prev=docdir ;;
1208   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1209     docdir=$ac_optarg ;;
1210
1211   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1212     ac_prev=dvidir ;;
1213   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1214     dvidir=$ac_optarg ;;
1215
1216   -enable-* | --enable-*)
1217     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1218     # Reject names that are not valid shell variable names.
1219     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1220       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1221    { (exit 1); exit 1; }; }
1222     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1223     eval enable_$ac_feature=\$ac_optarg ;;
1224
1225   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1226   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1227   | --exec | --exe | --ex)
1228     ac_prev=exec_prefix ;;
1229   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1230   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1231   | --exec=* | --exe=* | --ex=*)
1232     exec_prefix=$ac_optarg ;;
1233
1234   -gas | --gas | --ga | --g)
1235     # Obsolete; use --with-gas.
1236     with_gas=yes ;;
1237
1238   -help | --help | --hel | --he | -h)
1239     ac_init_help=long ;;
1240   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1241     ac_init_help=recursive ;;
1242   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1243     ac_init_help=short ;;
1244
1245   -host | --host | --hos | --ho)
1246     ac_prev=host_alias ;;
1247   -host=* | --host=* | --hos=* | --ho=*)
1248     host_alias=$ac_optarg ;;
1249
1250   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1251     ac_prev=htmldir ;;
1252   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1253   | --ht=*)
1254     htmldir=$ac_optarg ;;
1255
1256   -includedir | --includedir | --includedi | --included | --include \
1257   | --includ | --inclu | --incl | --inc)
1258     ac_prev=includedir ;;
1259   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1260   | --includ=* | --inclu=* | --incl=* | --inc=*)
1261     includedir=$ac_optarg ;;
1262
1263   -infodir | --infodir | --infodi | --infod | --info | --inf)
1264     ac_prev=infodir ;;
1265   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1266     infodir=$ac_optarg ;;
1267
1268   -libdir | --libdir | --libdi | --libd)
1269     ac_prev=libdir ;;
1270   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1271     libdir=$ac_optarg ;;
1272
1273   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1274   | --libexe | --libex | --libe)
1275     ac_prev=libexecdir ;;
1276   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1277   | --libexe=* | --libex=* | --libe=*)
1278     libexecdir=$ac_optarg ;;
1279
1280   -localedir | --localedir | --localedi | --localed | --locale)
1281     ac_prev=localedir ;;
1282   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1283     localedir=$ac_optarg ;;
1284
1285   -localstatedir | --localstatedir | --localstatedi | --localstated \
1286   | --localstate | --localstat | --localsta | --localst | --locals)
1287     ac_prev=localstatedir ;;
1288   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1289   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1290     localstatedir=$ac_optarg ;;
1291
1292   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1293     ac_prev=mandir ;;
1294   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1295     mandir=$ac_optarg ;;
1296
1297   -nfp | --nfp | --nf)
1298     # Obsolete; use --without-fp.
1299     with_fp=no ;;
1300
1301   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1302   | --no-cr | --no-c | -n)
1303     no_create=yes ;;
1304
1305   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1306   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1307     no_recursion=yes ;;
1308
1309   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1310   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1311   | --oldin | --oldi | --old | --ol | --o)
1312     ac_prev=oldincludedir ;;
1313   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1314   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1315   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1316     oldincludedir=$ac_optarg ;;
1317
1318   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1319     ac_prev=prefix ;;
1320   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1321     prefix=$ac_optarg ;;
1322
1323   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1324   | --program-pre | --program-pr | --program-p)
1325     ac_prev=program_prefix ;;
1326   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1327   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1328     program_prefix=$ac_optarg ;;
1329
1330   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1331   | --program-suf | --program-su | --program-s)
1332     ac_prev=program_suffix ;;
1333   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1334   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1335     program_suffix=$ac_optarg ;;
1336
1337   -program-transform-name | --program-transform-name \
1338   | --program-transform-nam | --program-transform-na \
1339   | --program-transform-n | --program-transform- \
1340   | --program-transform | --program-transfor \
1341   | --program-transfo | --program-transf \
1342   | --program-trans | --program-tran \
1343   | --progr-tra | --program-tr | --program-t)
1344     ac_prev=program_transform_name ;;
1345   -program-transform-name=* | --program-transform-name=* \
1346   | --program-transform-nam=* | --program-transform-na=* \
1347   | --program-transform-n=* | --program-transform-=* \
1348   | --program-transform=* | --program-transfor=* \
1349   | --program-transfo=* | --program-transf=* \
1350   | --program-trans=* | --program-tran=* \
1351   | --progr-tra=* | --program-tr=* | --program-t=*)
1352     program_transform_name=$ac_optarg ;;
1353
1354   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1355     ac_prev=pdfdir ;;
1356   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1357     pdfdir=$ac_optarg ;;
1358
1359   -psdir | --psdir | --psdi | --psd | --ps)
1360     ac_prev=psdir ;;
1361   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1362     psdir=$ac_optarg ;;
1363
1364   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1365   | -silent | --silent | --silen | --sile | --sil)
1366     silent=yes ;;
1367
1368   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1369     ac_prev=sbindir ;;
1370   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1371   | --sbi=* | --sb=*)
1372     sbindir=$ac_optarg ;;
1373
1374   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1375   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1376   | --sharedst | --shareds | --shared | --share | --shar \
1377   | --sha | --sh)
1378     ac_prev=sharedstatedir ;;
1379   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1380   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1381   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1382   | --sha=* | --sh=*)
1383     sharedstatedir=$ac_optarg ;;
1384
1385   -site | --site | --sit)
1386     ac_prev=site ;;
1387   -site=* | --site=* | --sit=*)
1388     site=$ac_optarg ;;
1389
1390   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1391     ac_prev=srcdir ;;
1392   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1393     srcdir=$ac_optarg ;;
1394
1395   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1396   | --syscon | --sysco | --sysc | --sys | --sy)
1397     ac_prev=sysconfdir ;;
1398   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1399   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1400     sysconfdir=$ac_optarg ;;
1401
1402   -target | --target | --targe | --targ | --tar | --ta | --t)
1403     ac_prev=target_alias ;;
1404   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1405     target_alias=$ac_optarg ;;
1406
1407   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1408     verbose=yes ;;
1409
1410   -version | --version | --versio | --versi | --vers | -V)
1411     ac_init_version=: ;;
1412
1413   -with-* | --with-*)
1414     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1415     # Reject names that are not valid shell variable names.
1416     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1417       { echo "$as_me: error: invalid package name: $ac_package" >&2
1418    { (exit 1); exit 1; }; }
1419     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1420     eval with_$ac_package=\$ac_optarg ;;
1421
1422   -without-* | --without-*)
1423     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1424     # Reject names that are not valid shell variable names.
1425     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1426       { echo "$as_me: error: invalid package name: $ac_package" >&2
1427    { (exit 1); exit 1; }; }
1428     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1429     eval with_$ac_package=no ;;
1430
1431   --x)
1432     # Obsolete; use --with-x.
1433     with_x=yes ;;
1434
1435   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1436   | --x-incl | --x-inc | --x-in | --x-i)
1437     ac_prev=x_includes ;;
1438   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1439   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1440     x_includes=$ac_optarg ;;
1441
1442   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1443   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1444     ac_prev=x_libraries ;;
1445   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1446   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1447     x_libraries=$ac_optarg ;;
1448
1449   -*) { echo "$as_me: error: unrecognized option: $ac_option
1450 Try \`$0 --help' for more information." >&2
1451    { (exit 1); exit 1; }; }
1452     ;;
1453
1454   *=*)
1455     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1456     # Reject names that are not valid shell variable names.
1457     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1458       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1459    { (exit 1); exit 1; }; }
1460     eval $ac_envvar=\$ac_optarg
1461     export $ac_envvar ;;
1462
1463   *)
1464     # FIXME: should be removed in autoconf 3.0.
1465     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1466     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1467       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1468     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1469     ;;
1470
1471   esac
1472 done
1473
1474 if test -n "$ac_prev"; then
1475   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1476   { echo "$as_me: error: missing argument to $ac_option" >&2
1477    { (exit 1); exit 1; }; }
1478 fi
1479
1480 # Be sure to have absolute directory names.
1481 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1482                 datadir sysconfdir sharedstatedir localstatedir includedir \
1483                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1484                 libdir localedir mandir
1485 do
1486   eval ac_val=\$$ac_var
1487   case $ac_val in
1488     [\\/$]* | ?:[\\/]* )  continue;;
1489     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1490   esac
1491   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1492    { (exit 1); exit 1; }; }
1493 done
1494
1495 # There might be people who depend on the old broken behavior: `$host'
1496 # used to hold the argument of --host etc.
1497 # FIXME: To remove some day.
1498 build=$build_alias
1499 host=$host_alias
1500 target=$target_alias
1501
1502 # FIXME: To remove some day.
1503 if test "x$host_alias" != x; then
1504   if test "x$build_alias" = x; then
1505     cross_compiling=maybe
1506     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1507     If a cross compiler is detected then cross compile mode will be used." >&2
1508   elif test "x$build_alias" != "x$host_alias"; then
1509     cross_compiling=yes
1510   fi
1511 fi
1512
1513 ac_tool_prefix=
1514 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1515
1516 test "$silent" = yes && exec 6>/dev/null
1517
1518
1519 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1520 ac_ls_di=`ls -di .` &&
1521 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1522   { echo "$as_me: error: Working directory cannot be determined" >&2
1523    { (exit 1); exit 1; }; }
1524 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1525   { echo "$as_me: error: pwd does not report name of working directory" >&2
1526    { (exit 1); exit 1; }; }
1527
1528
1529 # Find the source files, if location was not specified.
1530 if test -z "$srcdir"; then
1531   ac_srcdir_defaulted=yes
1532   # Try the directory containing this script, then the parent directory.
1533   ac_confdir=`$as_dirname -- "$0" ||
1534 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1535          X"$0" : 'X\(//\)[^/]' \| \
1536          X"$0" : 'X\(//\)$' \| \
1537          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1538 echo X"$0" |
1539     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1540             s//\1/
1541             q
1542           }
1543           /^X\(\/\/\)[^/].*/{
1544             s//\1/
1545             q
1546           }
1547           /^X\(\/\/\)$/{
1548             s//\1/
1549             q
1550           }
1551           /^X\(\/\).*/{
1552             s//\1/
1553             q
1554           }
1555           s/.*/./; q'`
1556   srcdir=$ac_confdir
1557   if test ! -r "$srcdir/$ac_unique_file"; then
1558     srcdir=..
1559   fi
1560 else
1561   ac_srcdir_defaulted=no
1562 fi
1563 if test ! -r "$srcdir/$ac_unique_file"; then
1564   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1565   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1566    { (exit 1); exit 1; }; }
1567 fi
1568 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1569 ac_abs_confdir=`(
1570         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1571    { (exit 1); exit 1; }; }
1572         pwd)`
1573 # When building in place, set srcdir=.
1574 if test "$ac_abs_confdir" = "$ac_pwd"; then
1575   srcdir=.
1576 fi
1577 # Remove unnecessary trailing slashes from srcdir.
1578 # Double slashes in file names in object file debugging info
1579 # mess up M-x gdb in Emacs.
1580 case $srcdir in
1581 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1582 esac
1583 for ac_var in $ac_precious_vars; do
1584   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1585   eval ac_env_${ac_var}_value=\$${ac_var}
1586   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1587   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1588 done
1589
1590 #
1591 # Report the --help message.
1592 #
1593 if test "$ac_init_help" = "long"; then
1594   # Omit some internal or obsolete options to make the list less imposing.
1595   # This message is too long to be a string in the A/UX 3.1 sh.
1596   cat <<_ACEOF
1597 \`configure' configures wxWidgets 2.9.1 to adapt to many kinds of systems.
1598
1599 Usage: $0 [OPTION]... [VAR=VALUE]...
1600
1601 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1602 VAR=VALUE.  See below for descriptions of some of the useful variables.
1603
1604 Defaults for the options are specified in brackets.
1605
1606 Configuration:
1607   -h, --help              display this help and exit
1608       --help=short        display options specific to this package
1609       --help=recursive    display the short help of all the included packages
1610   -V, --version           display version information and exit
1611   -q, --quiet, --silent   do not print \`checking...' messages
1612       --cache-file=FILE   cache test results in FILE [disabled]
1613   -C, --config-cache      alias for \`--cache-file=config.cache'
1614   -n, --no-create         do not create output files
1615       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1616
1617 Installation directories:
1618   --prefix=PREFIX         install architecture-independent files in PREFIX
1619                           [$ac_default_prefix]
1620   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1621                           [PREFIX]
1622
1623 By default, \`make install' will install all the files in
1624 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1625 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1626 for instance \`--prefix=\$HOME'.
1627
1628 For better control, use the options below.
1629
1630 Fine tuning of the installation directories:
1631   --bindir=DIR           user executables [EPREFIX/bin]
1632   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1633   --libexecdir=DIR       program executables [EPREFIX/libexec]
1634   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1635   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1636   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1637   --libdir=DIR           object code libraries [EPREFIX/lib]
1638   --includedir=DIR       C header files [PREFIX/include]
1639   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1640   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1641   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1642   --infodir=DIR          info documentation [DATAROOTDIR/info]
1643   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1644   --mandir=DIR           man documentation [DATAROOTDIR/man]
1645   --docdir=DIR           documentation root [DATAROOTDIR/doc/wxwidgets]
1646   --htmldir=DIR          html documentation [DOCDIR]
1647   --dvidir=DIR           dvi documentation [DOCDIR]
1648   --pdfdir=DIR           pdf documentation [DOCDIR]
1649   --psdir=DIR            ps documentation [DOCDIR]
1650 _ACEOF
1651
1652   cat <<\_ACEOF
1653
1654 X features:
1655   --x-includes=DIR    X include files are in DIR
1656   --x-libraries=DIR   X library files are in DIR
1657
1658 System types:
1659   --build=BUILD     configure for building on BUILD [guessed]
1660   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1661 _ACEOF
1662 fi
1663
1664 if test -n "$ac_init_help"; then
1665   case $ac_init_help in
1666      short | recursive ) echo "Configuration of wxWidgets 2.9.1:";;
1667    esac
1668   cat <<\_ACEOF
1669
1670 Optional Features:
1671   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1672   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1673   --disable-gui           don't build GUI parts of the library
1674   --enable-monolithic     build wxWidgets as single library
1675   --enable-plugins        build parts of wxWidgets as loadable components
1676   --enable-official_build official build of wxWidgets (win32 DLL only)
1677   --enable-vendor=VENDOR  vendor name (win32 DLL only)
1678   --disable-all-features  disable all optional features to build minimal library
1679   --enable-universal      use wxWidgets GUI controls instead of native ones
1680   --enable-nanox          use NanoX
1681   --disable-gtk2          use GTK+ 1.2 instead of 2.0
1682   --enable-gpe            use GNOME PDA Environment features if possible
1683   --enable-debug          build library for debugging
1684   --disable-debug_flag    disable all debugging support
1685   --enable-debug_info     generate debug information
1686   --enable-debug_gdb      create code with extra GDB debugging information
1687   --enable-debug_cntxt    obsolete, don't use: use wxDebugContext
1688   --enable-mem_tracing    obsolete, don't use: create code with memory tracing
1689   --disable-shared        create static library instead of shared
1690   --enable-stl            use STL for containers
1691   --enable-std_iostreams  use standard C++ stream classes
1692   --enable-std_string     use standard C++ string classes
1693   --disable-unicode       compile without Unicode support
1694   --enable-mslu           use MS Layer for Unicode on Windows 9x (Win32 only)
1695   --enable-utf8           use UTF-8 representation for strings (Unix only)
1696   --enable-utf8only       only support UTF-8 locales in UTF-8 build (Unix only)
1697   --enable-extended_rtti  use extended RTTI (XTI)
1698   --enable-omf            use OMF object format
1699   --disable-optimise      compile without optimisations
1700   --enable-profile        create code with profiling information
1701   --enable-no_rtti        create code without RTTI information
1702   --enable-no_exceptions  create code without C++ exceptions handling
1703   --enable-permissive     compile code disregarding strict ANSI
1704   --enable-no_deps        create code without dependency information
1705   --disable-vararg_macros don't use vararg macros, even if they are supported
1706   --enable-universal_binary  create Mac PowerPC and Intel Universal binary
1707   --enable-compat26       enable wxWidgets 2.6 compatibility
1708   --disable-compat28      disable wxWidgets 2.8 compatibility
1709   --disable-rpath         disable use of rpath for uninstalled builds
1710   --enable-objc_uniquifying enable Objective-C class name uniquifying
1711   --disable-visibility    disable use of ELF symbols visibility even if supported
1712   --disable-tls           disable use of compiler TLS support
1713   --enable-intl           use internationalization system
1714   --enable-xlocale        use x-locale support (requires wxLocale)
1715   --enable-config         use wxConfig (and derived) classes
1716   --enable-protocols      use wxProtocol and derived classes
1717   --enable-ftp            use wxFTP (requires wxProtocol
1718   --enable-http           use wxHTTP (requires wxProtocol
1719   --enable-fileproto      use wxFileProto class (requires wxProtocol
1720   --enable-sockets        use socket/network classes
1721   --enable-ipv6           enable IPv6 support in wxSocket
1722   --enable-ole            use OLE classes (Win32 only)
1723   --enable-dataobj        use data object classes
1724   --enable-ipc            use interprocess communication (wxSocket etc.)
1725   --enable-baseevtloop    use event loop in console programs too
1726   --enable-epollloop      use wxEpollDispatcher class (Linux only)
1727   --enable-selectloop     use wxSelectDispatcher class
1728   --enable-any            use wxAny class
1729   --enable-apple_ieee     use the Apple IEEE codec
1730   --enable-arcstream      use wxArchive streams
1731   --enable-base64         use base64 encoding/decoding functions
1732   --enable-backtrace      use wxStackWalker class for getting backtraces
1733   --enable-catch_segvs    catch signals in wxApp::OnFatalException (Unix only)
1734   --enable-cmdline        use wxCmdLineParser class
1735   --enable-datetime       use wxDateTime class
1736   --enable-debugreport    use wxDebugReport class
1737   --enable-dialupman      use dialup network classes
1738   --enable-dynlib         use wxLibrary class for DLL loading
1739   --enable-dynamicloader  use (new) wxDynamicLibrary class
1740   --enable-exceptions     build exception-safe library
1741   --enable-ffile          use wxFFile class
1742   --enable-file           use wxFile class
1743   --enable-filehistory    use wxFileHistory class
1744   --enable-filesystem     use virtual file systems classes
1745   --enable-fontenum       use wxFontEnumerator class
1746   --enable-fontmap        use font encodings conversion classes
1747   --enable-fs_archive     use virtual archive filesystems
1748   --enable-fs_inet        use virtual HTTP/FTP filesystems
1749   --enable-fs_zip         now replaced by fs_archive
1750   --enable-fswatcher      use wxFileSystemWatcher class
1751   --enable-geometry       use geometry class
1752   --enable-log            use logging system
1753   --enable-longlong       use wxLongLong class
1754   --enable-mimetype       use wxMimeTypesManager
1755   --enable-printfposparam use wxVsnprintf() which supports positional parameters
1756   --enable-snglinst       use wxSingleInstanceChecker class
1757   --enable-sound          use wxSound class
1758   --enable-stdpaths       use wxStandardPaths class
1759   --enable-stopwatch      use wxStopWatch class
1760   --enable-streams        use wxStream etc classes
1761   --enable-sysoptions     use wxSystemOptions
1762   --enable-tarstream      use wxTar streams
1763   --enable-textbuf        use wxTextBuffer class
1764   --enable-textfile       use wxTextFile class
1765   --enable-timer          use wxTimer class
1766   --enable-variant        use wxVariant class
1767   --enable-zipstream      use wxZip streams
1768   --enable-url            use wxURL class
1769   --enable-protocol       use wxProtocol class
1770   --enable-protocol-http  HTTP support in wxProtocol
1771   --enable-protocol-ftp   FTP support in wxProtocol
1772   --enable-protocol-file  FILE support in wxProtocol
1773   --enable-threads        use threads
1774   --enable-iniconf        use wxIniConfig (Win32 only)
1775   --enable-regkey         use wxRegKey class (Win32 only)
1776   --enable-docview        use document view architecture
1777   --enable-help           use help subsystem
1778   --enable-mshtmlhelp     use MS HTML Help (win32)
1779   --enable-html           use wxHTML sub-library
1780   --enable-htmlhelp       use wxHTML-based help
1781   --enable-xrc            use XRC resources sub-library
1782   --enable-aui            use AUI docking library
1783   --enable-propgrid       use wxPropertyGrid library
1784   --enable-ribbon         use wxRibbon library
1785   --enable-stc            use wxStyledTextCtrl library
1786   --enable-constraints    use layout-constraints system
1787   --enable-loggui         use standard GUI logger
1788   --enable-logwin         use wxLogWindow
1789   --enable-logdialog      use wxLogDialog
1790   --enable-mdi            use multiple document interface architecture
1791   --enable-mdidoc         use docview architecture with MDI
1792   --enable-mediactrl      use wxMediaCtrl class
1793   --enable-gstreamer8     force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
1794   --enable-webkit         use wxWebKitCtrl (Mac)
1795   --enable-richtext       use wxRichTextCtrl
1796   --enable-postscript     use wxPostscriptDC device context (default for gtk+)
1797   --enable-printarch      use printing architecture
1798   --enable-svg            use wxSVGFileDC device context
1799   --enable-graphics_ctx   use graphics context 2D drawing API
1800   --enable-clipboard      use wxClipboard class
1801   --enable-dnd            use Drag'n'Drop classes
1802   --enable-metafile       use win32 metafiles
1803   --disable-controls      disable compilation of all standard controls
1804   --enable-accel          use accelerators
1805   --enable-animatectrl    use wxAnimationCtrl class
1806   --enable-bmpbutton      use wxBitmapButton class
1807   --enable-bmpcombobox    use wxBitmapComboBox class
1808   --enable-button         use wxButton class
1809   --enable-calendar       use wxCalendarCtrl class
1810   --enable-caret          use wxCaret class
1811   --enable-checkbox       use wxCheckBox class
1812   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class
1813   --enable-choice         use wxChoice class
1814   --enable-choicebook     use wxChoicebook class
1815   --enable-collpane       use wxCollapsiblePane class
1816   --enable-colourpicker   use wxColourPickerCtrl class
1817   --enable-combobox       use wxComboBox class
1818   --enable-comboctrl      use wxComboCtrl class
1819   --enable-dataviewctrl   use wxDataViewCtrl class
1820   --enable-datepick       use wxDatePickerCtrl class
1821   --enable-detect_sm      use code to detect X11 session manager
1822   --enable-dirpicker      use wxDirPickerCtrl class
1823   --enable-display        use wxDisplay class
1824   --enable-editablebox    use wxEditableListBox class
1825   --enable-filectrl       use wxFileCtrl class
1826   --enable-filepicker     use wxFilePickerCtrl class
1827   --enable-fontpicker     use wxFontPickerCtrl class
1828   --enable-gauge          use wxGauge class
1829   --enable-grid           use wxGrid class
1830   --enable-headerctrl     use wxHeaderCtrl class
1831   --enable-hyperlink      use wxHyperlinkCtrl class
1832   --enable-imaglist       use wxImageList class
1833   --enable-infobar        use wxInfoBar class
1834   --enable-listbook       use wxListbook class
1835   --enable-listbox        use wxListBox class
1836   --enable-listctrl       use wxListCtrl class
1837   --enable-notebook       use wxNotebook class
1838   --enable-notifmsg       use wxNotificationMessage class
1839   --enable-odcombobox     use wxOwnerDrawnComboBox class
1840   --enable-popupwin       use wxPopUpWindow class
1841   --enable-radiobox       use wxRadioBox class
1842   --enable-radiobtn       use wxRadioButton class
1843   --enable-rearrangectrl  use wxRearrangeList/Ctrl/Dialog
1844   --enable-sash           use wxSashWindow class
1845   --enable-scrollbar      use wxScrollBar class and scrollable windows
1846   --enable-searchctrl     use wxSearchCtrl class
1847   --enable-slider         use wxSlider class
1848   --enable-spinbtn        use wxSpinButton class
1849   --enable-spinctrl       use wxSpinCtrl class
1850   --enable-splitter       use wxSplitterWindow class
1851   --enable-statbmp        use wxStaticBitmap class
1852   --enable-statbox        use wxStaticBox class
1853   --enable-statline       use wxStaticLine class
1854   --enable-stattext       use wxStaticText class
1855   --enable-statusbar      use wxStatusBar class
1856   --enable-taskbaricon    use wxTaskBarIcon class
1857   --enable-tbarnative     use native wxToolBar class
1858   --enable-textctrl       use wxTextCtrl class
1859   --enable-tipwindow      use wxTipWindow class
1860   --enable-togglebtn      use wxToggleButton class
1861   --enable-toolbar        use wxToolBar class
1862   --enable-toolbook       use wxToolbook class
1863   --enable-treebook       use wxTreebook class
1864   --enable-treectrl       use wxTreeCtrl class
1865   --enable-commondlg      use all common dialogs
1866   --enable-aboutdlg       use wxAboutBox
1867   --enable-choicedlg      use wxChoiceDialog
1868   --enable-coldlg         use wxColourDialog
1869   --enable-filedlg        use wxFileDialog
1870   --enable-finddlg        use wxFindReplaceDialog
1871   --enable-fontdlg        use wxFontDialog
1872   --enable-dirdlg         use wxDirDialog
1873   --enable-msgdlg         use wxMessageDialog
1874   --enable-numberdlg      use wxNumberEntryDialog
1875   --enable-splash         use wxSplashScreen
1876   --enable-textdlg        use wxTextDialog
1877   --enable-tipdlg         use startup tips
1878   --enable-progressdlg    use wxProgressDialog
1879   --enable-wizarddlg      use wxWizard
1880   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes
1881   --enable-miniframe      use wxMiniFrame class
1882   --enable-tooltips       use wxToolTip class
1883   --enable-splines        use spline drawing code
1884   --enable-mousewheel     use mousewheel
1885   --enable-validators     use wxValidator and derived classes
1886   --enable-busyinfo       use wxBusyInfo
1887   --enable-joystick       use wxJoystick
1888   --enable-metafiles      use wxMetaFile (Win32 only)
1889   --enable-dragimage      use wxDragImage
1890   --enable-accessibility  enable accessibility support
1891   --enable-uiactionsim    use wxUIActionSimulator (experimental)
1892   --enable-palette        use wxPalette class
1893   --enable-image          use wxImage class
1894   --enable-gif            use gif images (GIF file format)
1895   --enable-pcx            use pcx images (PCX file format)
1896   --enable-tga            use tga images (TGA file format)
1897   --enable-iff            use iff images (IFF file format)
1898   --enable-pnm            use pnm images (PNM file format)
1899   --enable-xpm            use xpm images (XPM file format)
1900   --enable-ico_cur        use Windows ICO and CUR formats
1901   --enable-dccache        cache temporary wxDC objects (Win32 only)
1902   --enable-ps-in-msw      use PS printing in wxMSW (Win32 only)
1903   --enable-ownerdrawn     use owner drawn controls (Win32 and OS/2 only)
1904   --enable-uxtheme        enable support for Windows XP themed look (Win32 only)
1905   --enable-wxdib          use wxDIB class (Win32 only)
1906   --enable-autoidman      use automatic ids management
1907   --disable-largefile     omit support for large files
1908   --disable-gtktest       do not try to compile and run a test GTK+ program
1909   --disable-gtktest       Do not try to compile and run a test GTK program
1910   --disable-sdltest       Do not try to compile and run a test SDL program
1911   --enable-omf            use OMF object format (OS/2)
1912   --disable-dependency-tracking
1913                           don't use dependency tracking even if the compiler
1914                           can
1915   --disable-precomp-headers
1916                           don't use precompiled headers even if compiler can
1917
1918 Optional Packages:
1919   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1920   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1921   --without-subdirs       don't generate makefiles for samples/demos/...
1922   --with-flavour=NAME     specify a name to identify this build
1923   --with-themes=all|list  use only the specified comma-separated list of wxUniversal themes
1924   --with-gtk[=VERSION]    use GTK+, VERSION can be 2 (default), 1 or "any"
1925   --with-motif            use Motif/Lesstif
1926   --with-osx_carbon       use Mac OS X (Carbon)
1927   --with-osx_cocoa        use Mac OS X (Cocoa)
1928   --with-osx_iphone       use iPhone OS X port
1929   --with-osx              use Mac OS X (default port, currently Carbon)
1930   --with-carbon           same as --with-osx_carbon
1931   --with-cocoa            same as --with-osx_cocoa
1932   --with-iphone           same as --with-osx_iphone
1933   --with-mac              same as --with-osx
1934   --with-old_cocoa        use old, deprecated, Cocoa port
1935   --with-wine             use Wine
1936   --with-msw              use MS-Windows
1937   --with-pm               use OS/2 Presentation Manager
1938   --with-mgl              use SciTech MGL
1939   --with-directfb         use DirectFB
1940   --with-microwin         use MicroWindows
1941   --with-x11              use X11
1942   --with-libpng           use libpng (PNG image format)
1943   --with-libjpeg          use libjpeg (JPEG file format)
1944   --with-libtiff          use libtiff (TIFF file format)
1945   --with-libxpm           use libxpm (XPM file format)
1946   --with-libiconv         use libiconv (character conversion)
1947   --with-libmspack        use libmspack (CHM help files loading)
1948   --without-gtkprint      don't use GTK printing support
1949   --without-gnomeprint    don't use GNOME printing libraries
1950   --with-gnomevfs         use GNOME VFS for associating MIME types
1951   --with-hildon           use Hildon framework for Nokia 770/800/810
1952   --with-opengl           use OpenGL (or Mesa)
1953   --with-dmalloc          use dmalloc library (http://dmalloc.com/)
1954   --with-sdl              use SDL for audio on Unix
1955   --with-regex            enable support for wxRegEx class
1956   --with-zlib             use zlib for LZW compression
1957   --with-expat            enable XML support using expat parser
1958   --with-macosx-sdk=PATH  use an OS X SDK at PATH
1959   --with-macosx-version-min=VER   build binaries which require at least this OS X version
1960   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1961   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1962   --with-x                use the X Window System
1963   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1964   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1965   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1966   --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)
1967   --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)
1968
1969 Some influential environment variables:
1970   CC          C compiler command
1971   CFLAGS      C compiler flags
1972   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1973               nonstandard directory <lib dir>
1974   LIBS        libraries to pass to the linker, e.g. -l<library>
1975   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1976               you have headers in a nonstandard directory <include dir>
1977   CPP         C preprocessor
1978   CXX         C++ compiler command
1979   CXXFLAGS    C++ compiler flags
1980   PKG_CONFIG  path to pkg-config utility
1981   DIRECTFB_CFLAGS
1982               C compiler flags for DIRECTFB, overriding pkg-config
1983   DIRECTFB_LIBS
1984               linker flags for DIRECTFB, overriding pkg-config
1985   XMKMF       Path to xmkmf, Makefile generator for X Window System
1986   PANGOX_CFLAGS
1987               C compiler flags for PANGOX, overriding pkg-config
1988   PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
1989   PANGOFT2_CFLAGS
1990               C compiler flags for PANGOFT2, overriding pkg-config
1991   PANGOFT2_LIBS
1992               linker flags for PANGOFT2, overriding pkg-config
1993   PANGOXFT_CFLAGS
1994               C compiler flags for PANGOXFT, overriding pkg-config
1995   PANGOXFT_LIBS
1996               linker flags for PANGOXFT, overriding pkg-config
1997   GTKPRINT_CFLAGS
1998               C compiler flags for GTKPRINT, overriding pkg-config
1999   GTKPRINT_LIBS
2000               linker flags for GTKPRINT, overriding pkg-config
2001   LIBGNOMEPRINTUI_CFLAGS
2002               C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
2003   LIBGNOMEPRINTUI_LIBS
2004               linker flags for LIBGNOMEPRINTUI, overriding pkg-config
2005   GNOMEVFS_CFLAGS
2006               C compiler flags for GNOMEVFS, overriding pkg-config
2007   GNOMEVFS_LIBS
2008               linker flags for GNOMEVFS, overriding pkg-config
2009   HILDON_CFLAGS
2010               C compiler flags for HILDON, overriding pkg-config
2011   HILDON_LIBS linker flags for HILDON, overriding pkg-config
2012   HILDON2_CFLAGS
2013               C compiler flags for HILDON2, overriding pkg-config
2014   HILDON2_LIBS
2015               linker flags for HILDON2, overriding pkg-config
2016   CAIRO_CFLAGS
2017               C compiler flags for CAIRO, overriding pkg-config
2018   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
2019   GST_CFLAGS  C compiler flags for GST, overriding pkg-config
2020   GST_LIBS    linker flags for GST, overriding pkg-config
2021
2022 Use these variables to override the choices made by `configure' or to help
2023 it to find libraries and programs with nonstandard names/locations.
2024
2025 Report bugs to <wx-dev@lists.wxwidgets.org>.
2026 _ACEOF
2027 ac_status=$?
2028 fi
2029
2030 if test "$ac_init_help" = "recursive"; then
2031   # If there are subdirs, report their specific --help.
2032   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2033     test -d "$ac_dir" || continue
2034     ac_builddir=.
2035
2036 case "$ac_dir" in
2037 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2038 *)
2039   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2040   # A ".." for each directory in $ac_dir_suffix.
2041   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
2042   case $ac_top_builddir_sub in
2043   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2044   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2045   esac ;;
2046 esac
2047 ac_abs_top_builddir=$ac_pwd
2048 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2049 # for backward compatibility:
2050 ac_top_builddir=$ac_top_build_prefix
2051
2052 case $srcdir in
2053   .)  # We are building in place.
2054     ac_srcdir=.
2055     ac_top_srcdir=$ac_top_builddir_sub
2056     ac_abs_top_srcdir=$ac_pwd ;;
2057   [\\/]* | ?:[\\/]* )  # Absolute name.
2058     ac_srcdir=$srcdir$ac_dir_suffix;
2059     ac_top_srcdir=$srcdir
2060     ac_abs_top_srcdir=$srcdir ;;
2061   *) # Relative name.
2062     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2063     ac_top_srcdir=$ac_top_build_prefix$srcdir
2064     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2065 esac
2066 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2067
2068     cd "$ac_dir" || { ac_status=$?; continue; }
2069     # Check for guested configure.
2070     if test -f "$ac_srcdir/configure.gnu"; then
2071       echo &&
2072       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2073     elif test -f "$ac_srcdir/configure"; then
2074       echo &&
2075       $SHELL "$ac_srcdir/configure" --help=recursive
2076     else
2077       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2078     fi || ac_status=$?
2079     cd "$ac_pwd" || { ac_status=$?; break; }
2080   done
2081 fi
2082
2083 test -n "$ac_init_help" && exit $ac_status
2084 if $ac_init_version; then
2085   cat <<\_ACEOF
2086 wxWidgets configure 2.9.1
2087 generated by GNU Autoconf 2.61
2088
2089 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2090 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
2091 This configure script is free software; the Free Software Foundation
2092 gives unlimited permission to copy, distribute and modify it.
2093 _ACEOF
2094   exit
2095 fi
2096 cat >config.log <<_ACEOF
2097 This file contains any messages produced by compilers while
2098 running configure, to aid debugging if configure makes a mistake.
2099
2100 It was created by wxWidgets $as_me 2.9.1, which was
2101 generated by GNU Autoconf 2.61.  Invocation command line was
2102
2103   $ $0 $@
2104
2105 _ACEOF
2106 exec 5>>config.log
2107 {
2108 cat <<_ASUNAME
2109 ## --------- ##
2110 ## Platform. ##
2111 ## --------- ##
2112
2113 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2114 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2115 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2116 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2117 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2118
2119 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2120 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2121
2122 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2123 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2124 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2125 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2126 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2127 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2128 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2129
2130 _ASUNAME
2131
2132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2133 for as_dir in $PATH
2134 do
2135   IFS=$as_save_IFS
2136   test -z "$as_dir" && as_dir=.
2137   echo "PATH: $as_dir"
2138 done
2139 IFS=$as_save_IFS
2140
2141 } >&5
2142
2143 cat >&5 <<_ACEOF
2144
2145
2146 ## ----------- ##
2147 ## Core tests. ##
2148 ## ----------- ##
2149
2150 _ACEOF
2151
2152
2153 # Keep a trace of the command line.
2154 # Strip out --no-create and --no-recursion so they do not pile up.
2155 # Strip out --silent because we don't want to record it for future runs.
2156 # Also quote any args containing shell meta-characters.
2157 # Make two passes to allow for proper duplicate-argument suppression.
2158 ac_configure_args=
2159 ac_configure_args0=
2160 ac_configure_args1=
2161 ac_must_keep_next=false
2162 for ac_pass in 1 2
2163 do
2164   for ac_arg
2165   do
2166     case $ac_arg in
2167     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2168     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2169     | -silent | --silent | --silen | --sile | --sil)
2170       continue ;;
2171     *\'*)
2172       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2173     esac
2174     case $ac_pass in
2175     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2176     2)
2177       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2178       if test $ac_must_keep_next = true; then
2179         ac_must_keep_next=false # Got value, back to normal.
2180       else
2181         case $ac_arg in
2182           *=* | --config-cache | -C | -disable-* | --disable-* \
2183           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2184           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2185           | -with-* | --with-* | -without-* | --without-* | --x)
2186             case "$ac_configure_args0 " in
2187               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2188             esac
2189             ;;
2190           -* ) ac_must_keep_next=true ;;
2191         esac
2192       fi
2193       ac_configure_args="$ac_configure_args '$ac_arg'"
2194       ;;
2195     esac
2196   done
2197 done
2198 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2199 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2200
2201 # When interrupted or exit'd, cleanup temporary files, and complete
2202 # config.log.  We remove comments because anyway the quotes in there
2203 # would cause problems or look ugly.
2204 # WARNING: Use '\'' to represent an apostrophe within the trap.
2205 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2206 trap 'exit_status=$?
2207   # Save into config.log some information that might help in debugging.
2208   {
2209     echo
2210
2211     cat <<\_ASBOX
2212 ## ---------------- ##
2213 ## Cache variables. ##
2214 ## ---------------- ##
2215 _ASBOX
2216     echo
2217     # The following way of writing the cache mishandles newlines in values,
2218 (
2219   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2220     eval ac_val=\$$ac_var
2221     case $ac_val in #(
2222     *${as_nl}*)
2223       case $ac_var in #(
2224       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2225 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2226       esac
2227       case $ac_var in #(
2228       _ | IFS | as_nl) ;; #(
2229       *) $as_unset $ac_var ;;
2230       esac ;;
2231     esac
2232   done
2233   (set) 2>&1 |
2234     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2235     *${as_nl}ac_space=\ *)
2236       sed -n \
2237         "s/'\''/'\''\\\\'\'''\''/g;
2238           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2239       ;; #(
2240     *)
2241       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2242       ;;
2243     esac |
2244     sort
2245 )
2246     echo
2247
2248     cat <<\_ASBOX
2249 ## ----------------- ##
2250 ## Output variables. ##
2251 ## ----------------- ##
2252 _ASBOX
2253     echo
2254     for ac_var in $ac_subst_vars
2255     do
2256       eval ac_val=\$$ac_var
2257       case $ac_val in
2258       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2259       esac
2260       echo "$ac_var='\''$ac_val'\''"
2261     done | sort
2262     echo
2263
2264     if test -n "$ac_subst_files"; then
2265       cat <<\_ASBOX
2266 ## ------------------- ##
2267 ## File substitutions. ##
2268 ## ------------------- ##
2269 _ASBOX
2270       echo
2271       for ac_var in $ac_subst_files
2272       do
2273         eval ac_val=\$$ac_var
2274         case $ac_val in
2275         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2276         esac
2277         echo "$ac_var='\''$ac_val'\''"
2278       done | sort
2279       echo
2280     fi
2281
2282     if test -s confdefs.h; then
2283       cat <<\_ASBOX
2284 ## ----------- ##
2285 ## confdefs.h. ##
2286 ## ----------- ##
2287 _ASBOX
2288       echo
2289       cat confdefs.h
2290       echo
2291     fi
2292     test "$ac_signal" != 0 &&
2293       echo "$as_me: caught signal $ac_signal"
2294     echo "$as_me: exit $exit_status"
2295   } >&5
2296   rm -f core *.core core.conftest.* &&
2297     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2298     exit $exit_status
2299 ' 0
2300 for ac_signal in 1 2 13 15; do
2301   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2302 done
2303 ac_signal=0
2304
2305 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2306 rm -f -r conftest* confdefs.h
2307
2308 # Predefined preprocessor variables.
2309
2310 cat >>confdefs.h <<_ACEOF
2311 #define PACKAGE_NAME "$PACKAGE_NAME"
2312 _ACEOF
2313
2314
2315 cat >>confdefs.h <<_ACEOF
2316 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2317 _ACEOF
2318
2319
2320 cat >>confdefs.h <<_ACEOF
2321 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2322 _ACEOF
2323
2324
2325 cat >>confdefs.h <<_ACEOF
2326 #define PACKAGE_STRING "$PACKAGE_STRING"
2327 _ACEOF
2328
2329
2330 cat >>confdefs.h <<_ACEOF
2331 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2332 _ACEOF
2333
2334
2335 # Let the site file select an alternate cache file if it wants to.
2336 # Prefer explicitly selected file to automatically selected ones.
2337 if test -n "$CONFIG_SITE"; then
2338   set x "$CONFIG_SITE"
2339 elif test "x$prefix" != xNONE; then
2340   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2341 else
2342   set x "$ac_default_prefix/share/config.site" \
2343         "$ac_default_prefix/etc/config.site"
2344 fi
2345 shift
2346 for ac_site_file
2347 do
2348   if test -r "$ac_site_file"; then
2349     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2350 echo "$as_me: loading site script $ac_site_file" >&6;}
2351     sed 's/^/| /' "$ac_site_file" >&5
2352     . "$ac_site_file"
2353   fi
2354 done
2355
2356 if test -r "$cache_file"; then
2357   # Some versions of bash will fail to source /dev/null (special
2358   # files actually), so we avoid doing that.
2359   if test -f "$cache_file"; then
2360     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2361 echo "$as_me: loading cache $cache_file" >&6;}
2362     case $cache_file in
2363       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2364       *)                      . "./$cache_file";;
2365     esac
2366   fi
2367 else
2368   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2369 echo "$as_me: creating cache $cache_file" >&6;}
2370   >$cache_file
2371 fi
2372
2373 # Check that the precious variables saved in the cache have kept the same
2374 # value.
2375 ac_cache_corrupted=false
2376 for ac_var in $ac_precious_vars; do
2377   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2378   eval ac_new_set=\$ac_env_${ac_var}_set
2379   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2380   eval ac_new_val=\$ac_env_${ac_var}_value
2381   case $ac_old_set,$ac_new_set in
2382     set,)
2383       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2384 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2385       ac_cache_corrupted=: ;;
2386     ,set)
2387       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2388 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2389       ac_cache_corrupted=: ;;
2390     ,);;
2391     *)
2392       if test "x$ac_old_val" != "x$ac_new_val"; then
2393         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2394 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2395         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2396 echo "$as_me:   former value:  $ac_old_val" >&2;}
2397         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2398 echo "$as_me:   current value: $ac_new_val" >&2;}
2399         ac_cache_corrupted=:
2400       fi;;
2401   esac
2402   # Pass precious variables to config.status.
2403   if test "$ac_new_set" = set; then
2404     case $ac_new_val in
2405     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2406     *) ac_arg=$ac_var=$ac_new_val ;;
2407     esac
2408     case " $ac_configure_args " in
2409       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2410       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2411     esac
2412   fi
2413 done
2414 if $ac_cache_corrupted; then
2415   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2416 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2417   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2418 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2419    { (exit 1); exit 1; }; }
2420 fi
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446 ac_ext=c
2447 ac_cpp='$CPP $CPPFLAGS'
2448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2451
2452
2453
2454
2455
2456 ac_aux_dir=
2457 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2458   if test -f "$ac_dir/install-sh"; then
2459     ac_aux_dir=$ac_dir
2460     ac_install_sh="$ac_aux_dir/install-sh -c"
2461     break
2462   elif test -f "$ac_dir/install.sh"; then
2463     ac_aux_dir=$ac_dir
2464     ac_install_sh="$ac_aux_dir/install.sh -c"
2465     break
2466   elif test -f "$ac_dir/shtool"; then
2467     ac_aux_dir=$ac_dir
2468     ac_install_sh="$ac_aux_dir/shtool install -c"
2469     break
2470   fi
2471 done
2472 if test -z "$ac_aux_dir"; then
2473   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2474 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2475    { (exit 1); exit 1; }; }
2476 fi
2477
2478 # These three variables are undocumented and unsupported,
2479 # and are intended to be withdrawn in a future Autoconf release.
2480 # They can cause serious problems if a builder's source tree is in a directory
2481 # whose full name contains unusual characters.
2482 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2483 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2484 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2485
2486
2487 # Make sure we can run config.sub.
2488 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2489   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2490 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2491    { (exit 1); exit 1; }; }
2492
2493 { echo "$as_me:$LINENO: checking build system type" >&5
2494 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2495 if test "${ac_cv_build+set}" = set; then
2496   echo $ECHO_N "(cached) $ECHO_C" >&6
2497 else
2498   ac_build_alias=$build_alias
2499 test "x$ac_build_alias" = x &&
2500   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2501 test "x$ac_build_alias" = x &&
2502   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2503 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2504    { (exit 1); exit 1; }; }
2505 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2506   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2507 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2508    { (exit 1); exit 1; }; }
2509
2510 fi
2511 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2512 echo "${ECHO_T}$ac_cv_build" >&6; }
2513 case $ac_cv_build in
2514 *-*-*) ;;
2515 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2516 echo "$as_me: error: invalid value of canonical build" >&2;}
2517    { (exit 1); exit 1; }; };;
2518 esac
2519 build=$ac_cv_build
2520 ac_save_IFS=$IFS; IFS='-'
2521 set x $ac_cv_build
2522 shift
2523 build_cpu=$1
2524 build_vendor=$2
2525 shift; shift
2526 # Remember, the first character of IFS is used to create $*,
2527 # except with old shells:
2528 build_os=$*
2529 IFS=$ac_save_IFS
2530 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2531
2532
2533 { echo "$as_me:$LINENO: checking host system type" >&5
2534 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2535 if test "${ac_cv_host+set}" = set; then
2536   echo $ECHO_N "(cached) $ECHO_C" >&6
2537 else
2538   if test "x$host_alias" = x; then
2539   ac_cv_host=$ac_cv_build
2540 else
2541   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2542     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2543 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2544    { (exit 1); exit 1; }; }
2545 fi
2546
2547 fi
2548 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2549 echo "${ECHO_T}$ac_cv_host" >&6; }
2550 case $ac_cv_host in
2551 *-*-*) ;;
2552 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2553 echo "$as_me: error: invalid value of canonical host" >&2;}
2554    { (exit 1); exit 1; }; };;
2555 esac
2556 host=$ac_cv_host
2557 ac_save_IFS=$IFS; IFS='-'
2558 set x $ac_cv_host
2559 shift
2560 host_cpu=$1
2561 host_vendor=$2
2562 shift; shift
2563 # Remember, the first character of IFS is used to create $*,
2564 # except with old shells:
2565 host_os=$*
2566 IFS=$ac_save_IFS
2567 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2568
2569
2570
2571 if test "$cross_compiling" != "no"; then
2572     HOST_PREFIX="${host_alias}-"
2573     HOST_SUFFIX="-$host_alias"
2574 else
2575     HOST_PREFIX=
2576     HOST_SUFFIX=
2577 fi
2578
2579
2580 wx_major_version_number=2
2581 wx_minor_version_number=9
2582 wx_release_number=1
2583 wx_subrelease_number=0
2584
2585 WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
2586 WX_VERSION=$WX_RELEASE.$wx_release_number
2587 WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
2588
2589 WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
2590
2591
2592 wx_top_builddir="`pwd`"
2593
2594
2595
2596
2597 USE_UNIX=1
2598 USE_OS2=0
2599 USE_WIN32=0
2600 USE_DOS=0
2601 USE_BEOS=0
2602 USE_MAC=0
2603
2604 USE_AIX=
2605 USE_BSD=                            USE_DARWIN=                         USE_FREEBSD=
2606 USE_GNU=                            USE_HPUX=
2607 USE_LINUX=
2608 USE_NETBSD=
2609 USE_OPENBSD=
2610 USE_OSF=                            USE_SGI=
2611 USE_SOLARIS=                        USE_SUN=                            USE_SUNOS=                          USE_SVR4=                           USE_SYSV=                           USE_VMS=
2612 USE_ULTRIX=
2613 USE_UNIXWARE=
2614
2615 USE_ALPHA=
2616
2617 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
2618
2619 ALL_TOOLKITS="COCOA GTK OSX_CARBON OSX_COCOA OSX_IPHONE MGL MICROWIN MOTIF MSW PM X11 DFB"
2620
2621 DEFAULT_wxUSE_OLD_COCOA=0
2622 DEFAULT_wxUSE_GTK=0
2623 DEFAULT_wxUSE_OSX_CARBON=0
2624 DEFAULT_wxUSE_OSX_COCOA=0
2625 DEFAULT_wxUSE_OSX_IPHONE=0
2626 DEFAULT_wxUSE_MGL=0
2627 DEFAULT_wxUSE_MICROWIN=0
2628 DEFAULT_wxUSE_MOTIF=0
2629 DEFAULT_wxUSE_MSW=0
2630 DEFAULT_wxUSE_PM=0
2631 DEFAULT_wxUSE_X11=0
2632 DEFAULT_wxUSE_DFB=0
2633
2634 DEFAULT_DEFAULT_wxUSE_OLD_COCOA=0
2635 DEFAULT_DEFAULT_wxUSE_GTK=0
2636 DEFAULT_DEFAULT_wxUSE_OSX_CARBON=0
2637 DEFAULT_DEFAULT_wxUSE_OSX_COCOA=0
2638 DEFAULT_DEFAULT_wxUSE_OSX_IPHONE=0
2639 DEFAULT_DEFAULT_wxUSE_MGL=0
2640 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
2641 DEFAULT_DEFAULT_wxUSE_MOTIF=0
2642 DEFAULT_DEFAULT_wxUSE_MSW=0
2643 DEFAULT_DEFAULT_wxUSE_PM=0
2644 DEFAULT_DEFAULT_wxUSE_X11=0
2645 DEFAULT_DEFAULT_wxUSE_DFB=0
2646
2647 PROGRAM_EXT=
2648 SAMPLES_RPATH_FLAG=
2649 DYLIB_RPATH_INSTALL=
2650 DYLIB_RPATH_POSTLINK=
2651
2652 DEFAULT_STD_FLAG=yes
2653
2654 case "${host}" in
2655   *-hp-hpux* )
2656     USE_HPUX=1
2657     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2658     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2659     cat >>confdefs.h <<\_ACEOF
2660 #define __HPUX__ 1
2661 _ACEOF
2662
2663
2664             CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
2665   ;;
2666   *-*-linux* )
2667     USE_LINUX=1
2668     cat >>confdefs.h <<\_ACEOF
2669 #define __LINUX__ 1
2670 _ACEOF
2671
2672     TMP=`uname -m`
2673     if test "x$TMP" = "xalpha"; then
2674       USE_ALPHA=1
2675       cat >>confdefs.h <<\_ACEOF
2676 #define __ALPHA__ 1
2677 _ACEOF
2678
2679     fi
2680     DEFAULT_DEFAULT_wxUSE_GTK=1
2681   ;;
2682   *-*-gnu* | *-*-k*bsd*-gnu )
2683     USE_GNU=1
2684     TMP=`uname -m`
2685     if test "x$TMP" = "xalpha"; then
2686       USE_ALPHA=1
2687       cat >>confdefs.h <<\_ACEOF
2688 #define __ALPHA__ 1
2689 _ACEOF
2690
2691     fi
2692     DEFAULT_DEFAULT_wxUSE_GTK=1
2693   ;;
2694   *-*-irix5* | *-*-irix6* )
2695     USE_SGI=1
2696     USE_SVR4=1
2697     cat >>confdefs.h <<\_ACEOF
2698 #define __SGI__ 1
2699 _ACEOF
2700
2701     cat >>confdefs.h <<\_ACEOF
2702 #define __SVR4__ 1
2703 _ACEOF
2704
2705     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2706   ;;
2707   *-*-qnx*)
2708     USE_QNX=1
2709     cat >>confdefs.h <<\_ACEOF
2710 #define __QNX__ 1
2711 _ACEOF
2712
2713     DEFAULT_DEFAULT_wxUSE_X11=1
2714   ;;
2715   *-*-solaris2* )
2716     USE_SUN=1
2717     USE_SOLARIS=1
2718     USE_SVR4=1
2719     cat >>confdefs.h <<\_ACEOF
2720 #define __SUN__ 1
2721 _ACEOF
2722
2723     cat >>confdefs.h <<\_ACEOF
2724 #define __SOLARIS__ 1
2725 _ACEOF
2726
2727     cat >>confdefs.h <<\_ACEOF
2728 #define __SVR4__ 1
2729 _ACEOF
2730
2731     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2732     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2733   ;;
2734   *-*-sunos4* )
2735     USE_SUN=1
2736     USE_SUNOS=1
2737     USE_BSD=1
2738     cat >>confdefs.h <<\_ACEOF
2739 #define __SUN__ 1
2740 _ACEOF
2741
2742     cat >>confdefs.h <<\_ACEOF
2743 #define __SUNOS__ 1
2744 _ACEOF
2745
2746     cat >>confdefs.h <<\_ACEOF
2747 #define __BSD__ 1
2748 _ACEOF
2749
2750     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2751   ;;
2752   *-*-freebsd*)
2753     USE_BSD=1
2754     USE_FREEBSD=1
2755     cat >>confdefs.h <<\_ACEOF
2756 #define __FREEBSD__ 1
2757 _ACEOF
2758
2759     cat >>confdefs.h <<\_ACEOF
2760 #define __BSD__ 1
2761 _ACEOF
2762
2763     DEFAULT_DEFAULT_wxUSE_GTK=1
2764   ;;
2765   *-*-openbsd*|*-*-mirbsd*)
2766     USE_BSD=1
2767     USE_OPENBSD=1
2768     cat >>confdefs.h <<\_ACEOF
2769 #define __OPENBSD__ 1
2770 _ACEOF
2771
2772     cat >>confdefs.h <<\_ACEOF
2773 #define __BSD__ 1
2774 _ACEOF
2775
2776     DEFAULT_DEFAULT_wxUSE_GTK=1
2777   ;;
2778   *-*-netbsd*)
2779     USE_BSD=1
2780     USE_NETBSD=1
2781     cat >>confdefs.h <<\_ACEOF
2782 #define __NETBSD__ 1
2783 _ACEOF
2784
2785     cat >>confdefs.h <<\_ACEOF
2786 #define __BSD__ 1
2787 _ACEOF
2788
2789     DEFAULT_DEFAULT_wxUSE_GTK=1
2790     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2791
2792             CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
2793   ;;
2794   *-*-osf* )
2795     USE_ALPHA=1
2796     USE_OSF=1
2797     cat >>confdefs.h <<\_ACEOF
2798 #define __ALPHA__ 1
2799 _ACEOF
2800
2801     cat >>confdefs.h <<\_ACEOF
2802 #define __OSF__ 1
2803 _ACEOF
2804
2805     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2806     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2807   ;;
2808   *-*-dgux5* )
2809     USE_ALPHA=1
2810     USE_SVR4=1
2811     cat >>confdefs.h <<\_ACEOF
2812 #define __ALPHA__ 1
2813 _ACEOF
2814
2815     cat >>confdefs.h <<\_ACEOF
2816 #define __SVR4__ 1
2817 _ACEOF
2818
2819     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2820   ;;
2821   *-*-sysv5* )
2822     USE_SYSV=1
2823     USE_SVR4=1
2824     cat >>confdefs.h <<\_ACEOF
2825 #define __SYSV__ 1
2826 _ACEOF
2827
2828     cat >>confdefs.h <<\_ACEOF
2829 #define __SVR4__ 1
2830 _ACEOF
2831
2832     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2833   ;;
2834   *-*-aix* )
2835     USE_AIX=1
2836     USE_SYSV=1
2837     USE_SVR4=1
2838     cat >>confdefs.h <<\_ACEOF
2839 #define __AIX__ 1
2840 _ACEOF
2841
2842     cat >>confdefs.h <<\_ACEOF
2843 #define __SYSV__ 1
2844 _ACEOF
2845
2846     cat >>confdefs.h <<\_ACEOF
2847 #define __SVR4__ 1
2848 _ACEOF
2849
2850     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2851   ;;
2852
2853   *-*-*UnixWare*)
2854     USE_SYSV=1
2855     USE_SVR4=1
2856     USE_UNIXWARE=1
2857     cat >>confdefs.h <<\_ACEOF
2858 #define __UNIXWARE__ 1
2859 _ACEOF
2860
2861   ;;
2862
2863   *-*-cygwin* | *-*-mingw32* )
2864                 PROGRAM_EXT=".exe"
2865     DEFAULT_DEFAULT_wxUSE_MSW=1
2866   ;;
2867
2868   *-pc-msdosdjgpp )
2869     USE_UNIX=0
2870     USE_DOS=1
2871     cat >>confdefs.h <<\_ACEOF
2872 #define __DOS__ 1
2873 _ACEOF
2874
2875     PROGRAM_EXT=".exe"
2876     DEFAULT_DEFAULT_wxUSE_MGL=1
2877   ;;
2878
2879   *-pc-os2_emx | *-pc-os2-emx )
2880     cat >>confdefs.h <<\_ACEOF
2881 #define __EMX__ 1
2882 _ACEOF
2883
2884     USE_OS2=1
2885     cat >>confdefs.h <<\_ACEOF
2886 #define __OS2__ 1
2887 _ACEOF
2888
2889     PROGRAM_EXT=".exe"
2890     DEFAULT_DEFAULT_wxUSE_PM=1
2891         CXX=gcc
2892     LDFLAGS="$LDFLAGS -Zcrtdll"
2893                         ac_executable_extensions=".exe"
2894     export ac_executable_extensions
2895             ac_save_IFS="$IFS"
2896     IFS='\\'
2897     ac_TEMP_PATH=
2898     for ac_dir in $PATH; do
2899       IFS=$ac_save_IFS
2900       if test -z "$ac_TEMP_PATH"; then
2901         ac_TEMP_PATH="$ac_dir"
2902       else
2903         ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2904       fi
2905     done
2906     export PATH="$ac_TEMP_PATH"
2907     unset ac_TEMP_PATH
2908     DEFAULT_STD_FLAG=no
2909   ;;
2910
2911   arm-apple-darwin*)
2912         USE_BSD=1
2913     USE_DARWIN=1
2914     cat >>confdefs.h <<\_ACEOF
2915 #define __BSD__ 1
2916 _ACEOF
2917
2918     cat >>confdefs.h <<\_ACEOF
2919 #define __DARWIN__ 1
2920 _ACEOF
2921
2922     DEFAULT_DEFAULT_wxUSE_OSX_IPHONE=1
2923   ;;
2924
2925   *-*-darwin* )
2926         USE_BSD=1
2927     USE_DARWIN=1
2928     cat >>confdefs.h <<\_ACEOF
2929 #define __BSD__ 1
2930 _ACEOF
2931
2932     cat >>confdefs.h <<\_ACEOF
2933 #define __DARWIN__ 1
2934 _ACEOF
2935
2936     cat >>confdefs.h <<\_ACEOF
2937 #define TARGET_CARBON 1
2938 _ACEOF
2939
2940     DEFAULT_DEFAULT_wxUSE_OSX_CARBON=1
2941   ;;
2942
2943   *-*-beos* )
2944         USE_BEOS=1
2945     cat >>confdefs.h <<\_ACEOF
2946 #define __BEOS__ 1
2947 _ACEOF
2948
2949   ;;
2950
2951   *)
2952     { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2953 echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2954     { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2955 echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
2956
2957     DEFAULT_DEFAULT_wxUSE_X11=1
2958     DEFAULT_wxUSE_SHARED=no
2959 esac
2960
2961
2962
2963 DEFAULT_wxUSE_ALL_FEATURES=yes
2964
2965 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2966 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
2967
2968 DEFAULT_wxUSE_DMALLOC=no
2969 DEFAULT_wxUSE_LIBGNOMEVFS=no
2970 DEFAULT_wxUSE_LIBHILDON=no
2971 DEFAULT_wxUSE_LIBHILDON2=no
2972 DEFAULT_wxUSE_LIBMSPACK=no
2973 DEFAULT_wxUSE_LIBSDL=no
2974
2975 DEFAULT_wxUSE_ACCESSIBILITY=no
2976 DEFAULT_wxUSE_IPV6=no
2977 DEFAULT_wxUSE_GSTREAMER8=no
2978 DEFAULT_wxUSE_UIACTIONSIMULATOR=no
2979
2980 DEFAULT_wxUSE_UNICODE_UTF8=auto
2981 DEFAULT_wxUSE_OPENGL=auto
2982 DEFAULT_wxUSE_MEDIACTRL=auto
2983 DEFAULT_wxUSE_COMPILER_TLS=auto
2984
2985 DEFAULT_wxUSE_UNICODE_UTF8_LOCALE=no
2986
2987 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
2988
2989 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2990
2991 DEFAULT_wxUSE_GTK2=yes
2992
2993 DEFAULT_wxUSE_OBJC_UNIQUIFYING=no
2994
2995
2996
2997
2998
2999           enablestring=disable
3000           defaultval=
3001           if test -z "$defaultval"; then
3002               if test x"$enablestring" = xdisable; then
3003                   defaultval=yes
3004               else
3005                   defaultval=no
3006               fi
3007           fi
3008
3009           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
3010 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6; }
3011           # Check whether --enable-gui was given.
3012 if test "${enable_gui+set}" = set; then
3013   enableval=$enable_gui;
3014                           if test "$enableval" = yes; then
3015                             wx_cv_use_gui='wxUSE_GUI=yes'
3016                           else
3017                             wx_cv_use_gui='wxUSE_GUI=no'
3018                           fi
3019
3020 else
3021
3022                           wx_cv_use_gui='wxUSE_GUI=${'DEFAULT_wxUSE_GUI":-$defaultval}"
3023
3024 fi
3025
3026
3027           eval "$wx_cv_use_gui"
3028
3029           if test x"$enablestring" = xdisable; then
3030             if test $wxUSE_GUI = no; then
3031               result=yes
3032             else
3033               result=no
3034             fi
3035           else
3036             result=$wxUSE_GUI
3037           fi
3038
3039           { echo "$as_me:$LINENO: result: $result" >&5
3040 echo "${ECHO_T}$result" >&6; }
3041
3042
3043           enablestring=
3044           defaultval=
3045           if test -z "$defaultval"; then
3046               if test x"$enablestring" = xdisable; then
3047                   defaultval=yes
3048               else
3049                   defaultval=no
3050               fi
3051           fi
3052
3053           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
3054 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6; }
3055           # Check whether --enable-monolithic was given.
3056 if test "${enable_monolithic+set}" = set; then
3057   enableval=$enable_monolithic;
3058                           if test "$enableval" = yes; then
3059                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
3060                           else
3061                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=no'
3062                           fi
3063
3064 else
3065
3066                           wx_cv_use_monolithic='wxUSE_MONOLITHIC=${'DEFAULT_wxUSE_MONOLITHIC":-$defaultval}"
3067
3068 fi
3069
3070
3071           eval "$wx_cv_use_monolithic"
3072
3073           if test x"$enablestring" = xdisable; then
3074             if test $wxUSE_MONOLITHIC = no; then
3075               result=yes
3076             else
3077               result=no
3078             fi
3079           else
3080             result=$wxUSE_MONOLITHIC
3081           fi
3082
3083           { echo "$as_me:$LINENO: result: $result" >&5
3084 echo "${ECHO_T}$result" >&6; }
3085
3086
3087           enablestring=
3088           defaultval=
3089           if test -z "$defaultval"; then
3090               if test x"$enablestring" = xdisable; then
3091                   defaultval=yes
3092               else
3093                   defaultval=no
3094               fi
3095           fi
3096
3097           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
3098 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6; }
3099           # Check whether --enable-plugins was given.
3100 if test "${enable_plugins+set}" = set; then
3101   enableval=$enable_plugins;
3102                           if test "$enableval" = yes; then
3103                             wx_cv_use_plugins='wxUSE_PLUGINS=yes'
3104                           else
3105                             wx_cv_use_plugins='wxUSE_PLUGINS=no'
3106                           fi
3107
3108 else
3109
3110                           wx_cv_use_plugins='wxUSE_PLUGINS=${'DEFAULT_wxUSE_PLUGINS":-$defaultval}"
3111
3112 fi
3113
3114
3115           eval "$wx_cv_use_plugins"
3116
3117           if test x"$enablestring" = xdisable; then
3118             if test $wxUSE_PLUGINS = no; then
3119               result=yes
3120             else
3121               result=no
3122             fi
3123           else
3124             result=$wxUSE_PLUGINS
3125           fi
3126
3127           { echo "$as_me:$LINENO: result: $result" >&5
3128 echo "${ECHO_T}$result" >&6; }
3129
3130
3131           withstring=without
3132           defaultval=$wxUSE_ALL_FEATURES
3133           if test -z "$defaultval"; then
3134               if test x"$withstring" = xwithout; then
3135                   defaultval=yes
3136               else
3137                   defaultval=no
3138               fi
3139           fi
3140           { echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
3141 echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6; }
3142
3143 # Check whether --with-subdirs was given.
3144 if test "${with_subdirs+set}" = set; then
3145   withval=$with_subdirs;
3146                         if test "$withval" = yes; then
3147                           wx_cv_use_subdirs='wxWITH_SUBDIRS=yes'
3148                         else
3149                           wx_cv_use_subdirs='wxWITH_SUBDIRS=no'
3150                         fi
3151
3152 else
3153
3154                         wx_cv_use_subdirs='wxWITH_SUBDIRS=${'DEFAULT_wxWITH_SUBDIRS":-$defaultval}"
3155
3156 fi
3157
3158
3159           eval "$wx_cv_use_subdirs"
3160
3161           if test x"$withstring" = xwithout; then
3162             if test $wxWITH_SUBDIRS = yes; then
3163               result=no
3164             else
3165               result=yes
3166             fi
3167           else
3168             result=$wxWITH_SUBDIRS
3169           fi
3170
3171           { echo "$as_me:$LINENO: result: $result" >&5
3172 echo "${ECHO_T}$result" >&6; }
3173
3174
3175 # Check whether --with-flavour was given.
3176 if test "${with_flavour+set}" = set; then
3177   withval=$with_flavour; WX_FLAVOUR="$withval"
3178 fi
3179
3180
3181           enablestring=
3182           defaultval=
3183           if test -z "$defaultval"; then
3184               if test x"$enablestring" = xdisable; then
3185                   defaultval=yes
3186               else
3187                   defaultval=no
3188               fi
3189           fi
3190
3191           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
3192 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6; }
3193           # Check whether --enable-official_build was given.
3194 if test "${enable_official_build+set}" = set; then
3195   enableval=$enable_official_build;
3196                           if test "$enableval" = yes; then
3197                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
3198                           else
3199                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
3200                           fi
3201
3202 else
3203
3204                           wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=${'DEFAULT_wxUSE_OFFICIAL_BUILD":-$defaultval}"
3205
3206 fi
3207
3208
3209           eval "$wx_cv_use_official_build"
3210
3211           if test x"$enablestring" = xdisable; then
3212             if test $wxUSE_OFFICIAL_BUILD = no; then
3213               result=yes
3214             else
3215               result=no
3216             fi
3217           else
3218             result=$wxUSE_OFFICIAL_BUILD
3219           fi
3220
3221           { echo "$as_me:$LINENO: result: $result" >&5
3222 echo "${ECHO_T}$result" >&6; }
3223
3224 # Check whether --enable-vendor was given.
3225 if test "${enable_vendor+set}" = set; then
3226   enableval=$enable_vendor; VENDOR="$enableval"
3227 fi
3228
3229 if test "x$VENDOR" = "x"; then
3230     VENDOR="custom"
3231 fi
3232
3233
3234           enablestring=disable
3235           defaultval=
3236           if test -z "$defaultval"; then
3237               if test x"$enablestring" = xdisable; then
3238                   defaultval=yes
3239               else
3240                   defaultval=no
3241               fi
3242           fi
3243
3244           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-all-features" >&5
3245 echo $ECHO_N "checking for --${enablestring:-enable}-all-features... $ECHO_C" >&6; }
3246           # Check whether --enable-all-features was given.
3247 if test "${enable_all_features+set}" = set; then
3248   enableval=$enable_all_features;
3249                           if test "$enableval" = yes; then
3250                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=yes'
3251                           else
3252                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=no'
3253                           fi
3254
3255 else
3256
3257                           wx_cv_use_all_features='wxUSE_ALL_FEATURES=${'DEFAULT_wxUSE_ALL_FEATURES":-$defaultval}"
3258
3259 fi
3260
3261
3262           eval "$wx_cv_use_all_features"
3263
3264           if test x"$enablestring" = xdisable; then
3265             if test $wxUSE_ALL_FEATURES = no; then
3266               result=yes
3267             else
3268               result=no
3269             fi
3270           else
3271             result=$wxUSE_ALL_FEATURES
3272           fi
3273
3274           { echo "$as_me:$LINENO: result: $result" >&5
3275 echo "${ECHO_T}$result" >&6; }
3276
3277
3278 if test "$wxUSE_ALL_FEATURES" = "no"; then
3279                     DEFAULT_wxUSE_MEDIACTRL=no
3280 fi
3281
3282
3283 if test "$wxUSE_GUI" = "yes"; then
3284
3285
3286           enablestring=
3287           defaultval=
3288           if test -z "$defaultval"; then
3289               if test x"$enablestring" = xdisable; then
3290                   defaultval=yes
3291               else
3292                   defaultval=no
3293               fi
3294           fi
3295
3296           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
3297 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6; }
3298           # Check whether --enable-universal was given.
3299 if test "${enable_universal+set}" = set; then
3300   enableval=$enable_universal;
3301                           if test "$enableval" = yes; then
3302                             wx_cv_use_universal='wxUSE_UNIVERSAL=yes'
3303                           else
3304                             wx_cv_use_universal='wxUSE_UNIVERSAL=no'
3305                           fi
3306
3307 else
3308
3309                           wx_cv_use_universal='wxUSE_UNIVERSAL=${'DEFAULT_wxUSE_UNIVERSAL":-$defaultval}"
3310
3311 fi
3312
3313
3314           eval "$wx_cv_use_universal"
3315
3316           if test x"$enablestring" = xdisable; then
3317             if test $wxUSE_UNIVERSAL = no; then
3318               result=yes
3319             else
3320               result=no
3321             fi
3322           else
3323             result=$wxUSE_UNIVERSAL
3324           fi
3325
3326           { echo "$as_me:$LINENO: result: $result" >&5
3327 echo "${ECHO_T}$result" >&6; }
3328
3329 if test "$wxUSE_UNIVERSAL" = "yes"; then
3330
3331 # Check whether --with-themes was given.
3332 if test "${with_themes+set}" = set; then
3333   withval=$with_themes; wxUNIV_THEMES="$withval"
3334 fi
3335
3336 fi
3337
3338
3339 # Check whether --with-gtk was given.
3340 if test "${with_gtk+set}" = set; then
3341   withval=$with_gtk; wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
3342 fi
3343
3344
3345 # Check whether --with-motif was given.
3346 if test "${with_motif+set}" = set; then
3347   withval=$with_motif; wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
3348 fi
3349
3350
3351 # Check whether --with-osx_carbon was given.
3352 if test "${with_osx_carbon+set}" = set; then
3353   withval=$with_osx_carbon; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3354 fi
3355
3356
3357 # Check whether --with-osx_cocoa was given.
3358 if test "${with_osx_cocoa+set}" = set; then
3359   withval=$with_osx_cocoa; wxUSE_OSX_COCOA="$withval" CACHE_OSX_COCOA=1 TOOLKIT_GIVEN=1
3360 fi
3361
3362
3363 # Check whether --with-osx_iphone was given.
3364 if test "${with_osx_iphone+set}" = set; then
3365   withval=$with_osx_iphone; wxUSE_OSX_IPHONE="$withval" CACHE_OSX_IPHONE=1 TOOLKIT_GIVEN=1
3366 fi
3367
3368
3369 # Check whether --with-osx was given.
3370 if test "${with_osx+set}" = set; then
3371   withval=$with_osx; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3372 fi
3373
3374
3375 # Check whether --with-carbon was given.
3376 if test "${with_carbon+set}" = set; then
3377   withval=$with_carbon; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3378 fi
3379
3380
3381 # Check whether --with-cocoa was given.
3382 if test "${with_cocoa+set}" = set; then
3383   withval=$with_cocoa; wxUSE_OSX_COCOA="$withval" CACHE_OSX_COCOA=1 TOOLKIT_GIVEN=1
3384 fi
3385
3386
3387 # Check whether --with-iphone was given.
3388 if test "${with_iphone+set}" = set; then
3389   withval=$with_iphone; wxUSE_OSX_IPHONE="$withval" CACHE_OSX_IPHONE=1 TOOLKIT_GIVEN=1
3390 fi
3391
3392
3393 # Check whether --with-mac was given.
3394 if test "${with_mac+set}" = set; then
3395   withval=$with_mac; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3396 fi
3397
3398
3399 # Check whether --with-old_cocoa was given.
3400 if test "${with_old_cocoa+set}" = set; then
3401   withval=$with_old_cocoa; wxUSE_OLD_COCOA="$withval" CACHE_OLD_COCOA=1 TOOLKIT_GIVEN=1
3402 fi
3403
3404
3405 # Check whether --with-wine was given.
3406 if test "${with_wine+set}" = set; then
3407   withval=$with_wine; wxUSE_WINE="$withval" CACHE_WINE=1
3408 fi
3409
3410
3411 # Check whether --with-msw was given.
3412 if test "${with_msw+set}" = set; then
3413   withval=$with_msw; wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
3414 fi
3415
3416
3417 # Check whether --with-pm was given.
3418 if test "${with_pm+set}" = set; then
3419   withval=$with_pm; wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
3420 fi
3421
3422
3423 # Check whether --with-mgl was given.
3424 if test "${with_mgl+set}" = set; then
3425   withval=$with_mgl; wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
3426 fi
3427
3428
3429 # Check whether --with-directfb was given.
3430 if test "${with_directfb+set}" = set; then
3431   withval=$with_directfb; wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
3432 fi
3433
3434
3435 # Check whether --with-microwin was given.
3436 if test "${with_microwin+set}" = set; then
3437   withval=$with_microwin; wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
3438 fi
3439
3440
3441 # Check whether --with-x11 was given.
3442 if test "${with_x11+set}" = set; then
3443   withval=$with_x11; wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
3444 fi
3445
3446
3447           enablestring=
3448           defaultval=
3449           if test -z "$defaultval"; then
3450               if test x"$enablestring" = xdisable; then
3451                   defaultval=yes
3452               else
3453                   defaultval=no
3454               fi
3455           fi
3456
3457           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
3458 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6; }
3459           # Check whether --enable-nanox was given.
3460 if test "${enable_nanox+set}" = set; then
3461   enableval=$enable_nanox;
3462                           if test "$enableval" = yes; then
3463                             wx_cv_use_nanox='wxUSE_NANOX=yes'
3464                           else
3465                             wx_cv_use_nanox='wxUSE_NANOX=no'
3466                           fi
3467
3468 else
3469
3470                           wx_cv_use_nanox='wxUSE_NANOX=${'DEFAULT_wxUSE_NANOX":-$defaultval}"
3471
3472 fi
3473
3474
3475           eval "$wx_cv_use_nanox"
3476
3477           if test x"$enablestring" = xdisable; then
3478             if test $wxUSE_NANOX = no; then
3479               result=yes
3480             else
3481               result=no
3482             fi
3483           else
3484             result=$wxUSE_NANOX
3485           fi
3486
3487           { echo "$as_me:$LINENO: result: $result" >&5
3488 echo "${ECHO_T}$result" >&6; }
3489
3490
3491 # Check whether --enable-gtk2 was given.
3492 if test "${enable_gtk2+set}" = set; then
3493   enableval=$enable_gtk2; wxUSE_GTK2="$enableval"
3494 fi
3495
3496
3497           enablestring=
3498           defaultval=
3499           if test -z "$defaultval"; then
3500               if test x"$enablestring" = xdisable; then
3501                   defaultval=yes
3502               else
3503                   defaultval=no
3504               fi
3505           fi
3506
3507           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
3508 echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6; }
3509           # Check whether --enable-gpe was given.
3510 if test "${enable_gpe+set}" = set; then
3511   enableval=$enable_gpe;
3512                           if test "$enableval" = yes; then
3513                             wx_cv_use_gpe='wxUSE_GPE=yes'
3514                           else
3515                             wx_cv_use_gpe='wxUSE_GPE=no'
3516                           fi
3517
3518 else
3519
3520                           wx_cv_use_gpe='wxUSE_GPE=${'DEFAULT_wxUSE_GPE":-$defaultval}"
3521
3522 fi
3523
3524
3525           eval "$wx_cv_use_gpe"
3526
3527           if test x"$enablestring" = xdisable; then
3528             if test $wxUSE_GPE = no; then
3529               result=yes
3530             else
3531               result=no
3532             fi
3533           else
3534             result=$wxUSE_GPE
3535           fi
3536
3537           { echo "$as_me:$LINENO: result: $result" >&5
3538 echo "${ECHO_T}$result" >&6; }
3539
3540
3541
3542 { echo "$as_me:$LINENO: checking for toolkit" >&5
3543 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6; }
3544
3545
3546
3547 # In Wine, we need to default to MSW, not GTK or MOTIF
3548 if test "$wxUSE_WINE" = "yes"; then
3549     DEFAULT_DEFAULT_wxUSE_GTK=0
3550     DEFAULT_DEFAULT_wxUSE_MOTIF=0
3551     DEFAULT_DEFAULT_wxUSE_MSW=1
3552     wxUSE_SHARED=no
3553     CC=${CC:-winegcc}
3554     CXX=${CXX:-wineg++}
3555 fi
3556
3557
3558 if test "$wxUSE_GUI" = "yes"; then
3559
3560     if test "$USE_BEOS" = 1; then
3561         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
3562 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
3563    { (exit 1); exit 1; }; }
3564     fi
3565
3566     if test "$TOOLKIT_GIVEN" = 1; then
3567             for toolkit in $ALL_TOOLKITS; do
3568         var=wxUSE_$toolkit
3569         eval "value=\$${var}"
3570         if test "x$value" = "xno"; then
3571           eval "$var=0"
3572         elif test "x$value" != "x"; then
3573           eval "$var=1"
3574         fi
3575
3576         if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
3577           eval "wx${toolkit}_VERSION=$value"
3578         fi
3579       done
3580     else
3581             for toolkit in $ALL_TOOLKITS; do
3582         var=DEFAULT_DEFAULT_wxUSE_$toolkit
3583         eval "wxUSE_$toolkit=\$${var}"
3584       done
3585     fi
3586
3587             NUM_TOOLKITS=`expr ${wxUSE_OLD_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_OSX_CARBON:-0} \
3588                   + ${wxUSE_OSX_COCOA:-0} + ${wxUSE_OSX_IPHONE:-0} + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} \
3589                   + ${wxUSE_MICROWIN:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
3590
3591         case "${host}" in
3592       *-pc-os2_emx | *-pc-os2-emx )
3593         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3594     esac
3595
3596     case "$NUM_TOOLKITS" in
3597       1)
3598       ;;
3599       0)
3600         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
3601 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
3602    { (exit 1); exit 1; }; }
3603       ;;
3604       *)
3605         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit" >&5
3606 echo "$as_me: error: Please specify at most one toolkit" >&2;}
3607    { (exit 1); exit 1; }; }
3608     esac
3609
3610     # to be removed when --disable-gtk2 isn't needed
3611     if test "x$wxUSE_GTK2" = "xyes"; then
3612         wxGTK_VERSION=2
3613         wxUSE_GTK1=0
3614     elif test "x$wxUSE_GTK2" = "xno"; then
3615         wxGTK_VERSION=1
3616         wxUSE_GTK1=1
3617     fi
3618
3619     for toolkit in $ALL_TOOLKITS; do
3620         var=wxUSE_$toolkit
3621         eval "value=\$${var}"
3622         if test "$value" = 1; then
3623           toolkit_echo=`echo $toolkit | tr '[A-Z]' '[a-z]'`
3624           { echo "$as_me:$LINENO: result: $toolkit_echo" >&5
3625 echo "${ECHO_T}$toolkit_echo" >&6; }
3626         fi
3627     done
3628 else
3629     if test "x$host_alias" != "x"; then
3630         { echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
3631 echo "${ECHO_T}base ($host_alias hosted) only" >&6; }
3632     else
3633         { echo "$as_me:$LINENO: result: base only" >&5
3634 echo "${ECHO_T}base only" >&6; }
3635     fi
3636 fi
3637
3638 wxUSE_MAC=0
3639 if test "$wxUSE_OSX_CARBON" = 1 \
3640        -o "$wxUSE_OSX_COCOA" = 1 \
3641        -o "$wxUSE_OSX_IPHONE" = 1; then
3642     wxUSE_MAC=1
3643 fi
3644
3645
3646
3647           { echo "$as_me:$LINENO: checking for --with-libpng" >&5
3648 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6; }
3649
3650 # Check whether --with-libpng was given.
3651 if test "${with_libpng+set}" = set; then
3652   withval=$with_libpng;
3653                         if test "$withval" = yes; then
3654                           wx_cv_use_libpng='wxUSE_LIBPNG=yes'
3655                         elif test "$withval" = no; then
3656                           wx_cv_use_libpng='wxUSE_LIBPNG=no'
3657                         elif test "$withval" = sys; then
3658                           wx_cv_use_libpng='wxUSE_LIBPNG=sys'
3659                         elif test "$withval" = builtin; then
3660                           wx_cv_use_libpng='wxUSE_LIBPNG=builtin'
3661                         else
3662                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3663 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3664    { (exit 1); exit 1; }; }
3665                         fi
3666
3667 else
3668
3669                         wx_cv_use_libpng='wxUSE_LIBPNG=${'DEFAULT_wxUSE_LIBPNG":-$wxUSE_ALL_FEATURES}"
3670
3671 fi
3672
3673
3674           eval "$wx_cv_use_libpng"
3675
3676           if test "$wxUSE_LIBPNG" = yes; then
3677             { echo "$as_me:$LINENO: result: yes" >&5
3678 echo "${ECHO_T}yes" >&6; }
3679           elif test "$wxUSE_LIBPNG" = no; then
3680             { echo "$as_me:$LINENO: result: no" >&5
3681 echo "${ECHO_T}no" >&6; }
3682           elif test "$wxUSE_LIBPNG" = sys; then
3683             { echo "$as_me:$LINENO: result: system version" >&5
3684 echo "${ECHO_T}system version" >&6; }
3685           elif test "$wxUSE_LIBPNG" = builtin; then
3686             { echo "$as_me:$LINENO: result: builtin version" >&5
3687 echo "${ECHO_T}builtin version" >&6; }
3688           else
3689             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3690 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3691    { (exit 1); exit 1; }; }
3692           fi
3693
3694
3695           { echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3696 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6; }
3697
3698 # Check whether --with-libjpeg was given.
3699 if test "${with_libjpeg+set}" = set; then
3700   withval=$with_libjpeg;
3701                         if test "$withval" = yes; then
3702                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3703                         elif test "$withval" = no; then
3704                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3705                         elif test "$withval" = sys; then
3706                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3707                         elif test "$withval" = builtin; then
3708                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3709                         else
3710                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3711 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3712    { (exit 1); exit 1; }; }
3713                         fi
3714
3715 else
3716
3717                         wx_cv_use_libjpeg='wxUSE_LIBJPEG=${'DEFAULT_wxUSE_LIBJPEG":-$wxUSE_ALL_FEATURES}"
3718
3719 fi
3720
3721
3722           eval "$wx_cv_use_libjpeg"
3723
3724           if test "$wxUSE_LIBJPEG" = yes; then
3725             { echo "$as_me:$LINENO: result: yes" >&5
3726 echo "${ECHO_T}yes" >&6; }
3727           elif test "$wxUSE_LIBJPEG" = no; then
3728             { echo "$as_me:$LINENO: result: no" >&5
3729 echo "${ECHO_T}no" >&6; }
3730           elif test "$wxUSE_LIBJPEG" = sys; then
3731             { echo "$as_me:$LINENO: result: system version" >&5
3732 echo "${ECHO_T}system version" >&6; }
3733           elif test "$wxUSE_LIBJPEG" = builtin; then
3734             { echo "$as_me:$LINENO: result: builtin version" >&5
3735 echo "${ECHO_T}builtin version" >&6; }
3736           else
3737             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3738 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3739    { (exit 1); exit 1; }; }
3740           fi
3741
3742
3743           { echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3744 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6; }
3745
3746 # Check whether --with-libtiff was given.
3747 if test "${with_libtiff+set}" = set; then
3748   withval=$with_libtiff;
3749                         if test "$withval" = yes; then
3750                           wx_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3751                         elif test "$withval" = no; then
3752                           wx_cv_use_libtiff='wxUSE_LIBTIFF=no'
3753                         elif test "$withval" = sys; then
3754                           wx_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3755                         elif test "$withval" = builtin; then
3756                           wx_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3757                         else
3758                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3759 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3760    { (exit 1); exit 1; }; }
3761                         fi
3762
3763 else
3764
3765                         wx_cv_use_libtiff='wxUSE_LIBTIFF=${'DEFAULT_wxUSE_LIBTIFF":-$wxUSE_ALL_FEATURES}"
3766
3767 fi
3768
3769
3770           eval "$wx_cv_use_libtiff"
3771
3772           if test "$wxUSE_LIBTIFF" = yes; then
3773             { echo "$as_me:$LINENO: result: yes" >&5
3774 echo "${ECHO_T}yes" >&6; }
3775           elif test "$wxUSE_LIBTIFF" = no; then
3776             { echo "$as_me:$LINENO: result: no" >&5
3777 echo "${ECHO_T}no" >&6; }
3778           elif test "$wxUSE_LIBTIFF" = sys; then
3779             { echo "$as_me:$LINENO: result: system version" >&5
3780 echo "${ECHO_T}system version" >&6; }
3781           elif test "$wxUSE_LIBTIFF" = builtin; then
3782             { echo "$as_me:$LINENO: result: builtin version" >&5
3783 echo "${ECHO_T}builtin version" >&6; }
3784           else
3785             { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3786 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3787    { (exit 1); exit 1; }; }
3788           fi
3789
3790
3791           { echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3792 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6; }
3793
3794 # Check whether --with-libxpm was given.
3795 if test "${with_libxpm+set}" = set; then
3796   withval=$with_libxpm;
3797                         if test "$withval" = yes; then
3798                           wx_cv_use_libxpm='wxUSE_LIBXPM=yes'
3799                         elif test "$withval" = no; then
3800                           wx_cv_use_libxpm='wxUSE_LIBXPM=no'
3801                         elif test "$withval" = sys; then
3802                           wx_cv_use_libxpm='wxUSE_LIBXPM=sys'
3803                         elif test "$withval" = builtin; then
3804                           wx_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3805                         else
3806                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3807 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3808    { (exit 1); exit 1; }; }
3809                         fi
3810
3811 else
3812
3813                         wx_cv_use_libxpm='wxUSE_LIBXPM=${'DEFAULT_wxUSE_LIBXPM":-$wxUSE_ALL_FEATURES}"
3814
3815 fi
3816
3817
3818           eval "$wx_cv_use_libxpm"
3819
3820           if test "$wxUSE_LIBXPM" = yes; then
3821             { echo "$as_me:$LINENO: result: yes" >&5
3822 echo "${ECHO_T}yes" >&6; }
3823           elif test "$wxUSE_LIBXPM" = no; then
3824             { echo "$as_me:$LINENO: result: no" >&5
3825 echo "${ECHO_T}no" >&6; }
3826           elif test "$wxUSE_LIBXPM" = sys; then
3827             { echo "$as_me:$LINENO: result: system version" >&5
3828 echo "${ECHO_T}system version" >&6; }
3829           elif test "$wxUSE_LIBXPM" = builtin; then
3830             { echo "$as_me:$LINENO: result: builtin version" >&5
3831 echo "${ECHO_T}builtin version" >&6; }
3832           else
3833             { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3834 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3835    { (exit 1); exit 1; }; }
3836           fi
3837
3838
3839           withstring=
3840           defaultval=$wxUSE_ALL_FEATURES
3841           if test -z "$defaultval"; then
3842               if test x"$withstring" = xwithout; then
3843                   defaultval=yes
3844               else
3845                   defaultval=no
3846               fi
3847           fi
3848           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libiconv" >&5
3849 echo $ECHO_N "checking for --${withstring:-with}-libiconv... $ECHO_C" >&6; }
3850
3851 # Check whether --with-libiconv was given.
3852 if test "${with_libiconv+set}" = set; then
3853   withval=$with_libiconv;
3854                         if test "$withval" = yes; then
3855                           wx_cv_use_libiconv='wxUSE_LIBICONV=yes'
3856                         else
3857                           wx_cv_use_libiconv='wxUSE_LIBICONV=no'
3858                         fi
3859
3860 else
3861
3862                         wx_cv_use_libiconv='wxUSE_LIBICONV=${'DEFAULT_wxUSE_LIBICONV":-$defaultval}"
3863
3864 fi
3865
3866
3867           eval "$wx_cv_use_libiconv"
3868
3869           if test x"$withstring" = xwithout; then
3870             if test $wxUSE_LIBICONV = yes; then
3871               result=no
3872             else
3873               result=yes
3874             fi
3875           else
3876             result=$wxUSE_LIBICONV
3877           fi
3878
3879           { echo "$as_me:$LINENO: result: $result" >&5
3880 echo "${ECHO_T}$result" >&6; }
3881
3882
3883           withstring=
3884           defaultval=$wxUSE_ALL_FEATURES
3885           if test -z "$defaultval"; then
3886               if test x"$withstring" = xwithout; then
3887                   defaultval=yes
3888               else
3889                   defaultval=no
3890               fi
3891           fi
3892           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3893 echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6; }
3894
3895 # Check whether --with-libmspack was given.
3896 if test "${with_libmspack+set}" = set; then
3897   withval=$with_libmspack;
3898                         if test "$withval" = yes; then
3899                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3900                         else
3901                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3902                         fi
3903
3904 else
3905
3906                         wx_cv_use_libmspack='wxUSE_LIBMSPACK=${'DEFAULT_wxUSE_LIBMSPACK":-$defaultval}"
3907
3908 fi
3909
3910
3911           eval "$wx_cv_use_libmspack"
3912
3913           if test x"$withstring" = xwithout; then
3914             if test $wxUSE_LIBMSPACK = yes; then
3915               result=no
3916             else
3917               result=yes
3918             fi
3919           else
3920             result=$wxUSE_LIBMSPACK
3921           fi
3922
3923           { echo "$as_me:$LINENO: result: $result" >&5
3924 echo "${ECHO_T}$result" >&6; }
3925
3926
3927           withstring=without
3928           defaultval=$wxUSE_ALL_FEATURES
3929           if test -z "$defaultval"; then
3930               if test x"$withstring" = xwithout; then
3931                   defaultval=yes
3932               else
3933                   defaultval=no
3934               fi
3935           fi
3936           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gtkprint" >&5
3937 echo $ECHO_N "checking for --${withstring:-with}-gtkprint... $ECHO_C" >&6; }
3938
3939 # Check whether --with-gtkprint was given.
3940 if test "${with_gtkprint+set}" = set; then
3941   withval=$with_gtkprint;
3942                         if test "$withval" = yes; then
3943                           wx_cv_use_gtkprint='wxUSE_GTKPRINT=yes'
3944                         else
3945                           wx_cv_use_gtkprint='wxUSE_GTKPRINT=no'
3946                         fi
3947
3948 else
3949
3950                         wx_cv_use_gtkprint='wxUSE_GTKPRINT=${'DEFAULT_wxUSE_GTKPRINT":-$defaultval}"
3951
3952 fi
3953
3954
3955           eval "$wx_cv_use_gtkprint"
3956
3957           if test x"$withstring" = xwithout; then
3958             if test $wxUSE_GTKPRINT = yes; then
3959               result=no
3960             else
3961               result=yes
3962             fi
3963           else
3964             result=$wxUSE_GTKPRINT
3965           fi
3966
3967           { echo "$as_me:$LINENO: result: $result" >&5
3968 echo "${ECHO_T}$result" >&6; }
3969
3970
3971           withstring=without
3972           defaultval=$wxUSE_ALL_FEATURES
3973           if test -z "$defaultval"; then
3974               if test x"$withstring" = xwithout; then
3975                   defaultval=yes
3976               else
3977                   defaultval=no
3978               fi
3979           fi
3980           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3981 echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6; }
3982
3983 # Check whether --with-gnomeprint was given.
3984 if test "${with_gnomeprint+set}" = set; then
3985   withval=$with_gnomeprint;
3986                         if test "$withval" = yes; then
3987                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3988                         else
3989                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3990                         fi
3991
3992 else
3993
3994                         wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=${'DEFAULT_wxUSE_LIBGNOMEPRINT":-$defaultval}"
3995
3996 fi
3997
3998
3999           eval "$wx_cv_use_gnomeprint"
4000
4001           if test x"$withstring" = xwithout; then
4002             if test $wxUSE_LIBGNOMEPRINT = yes; then
4003               result=no
4004             else
4005               result=yes
4006             fi
4007           else
4008             result=$wxUSE_LIBGNOMEPRINT
4009           fi
4010
4011           { echo "$as_me:$LINENO: result: $result" >&5
4012 echo "${ECHO_T}$result" >&6; }
4013
4014
4015           withstring=
4016           defaultval=$wxUSE_ALL_FEATURES
4017           if test -z "$defaultval"; then
4018               if test x"$withstring" = xwithout; then
4019                   defaultval=yes
4020               else
4021                   defaultval=no
4022               fi
4023           fi
4024           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
4025 echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6; }
4026
4027 # Check whether --with-gnomevfs was given.
4028 if test "${with_gnomevfs+set}" = set; then
4029   withval=$with_gnomevfs;
4030                         if test "$withval" = yes; then
4031                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
4032                         else
4033                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
4034                         fi
4035
4036 else
4037
4038                         wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=${'DEFAULT_wxUSE_LIBGNOMEVFS":-$defaultval}"
4039
4040 fi
4041
4042
4043           eval "$wx_cv_use_gnomevfs"
4044
4045           if test x"$withstring" = xwithout; then
4046             if test $wxUSE_LIBGNOMEVFS = yes; then
4047               result=no
4048             else
4049               result=yes
4050             fi
4051           else
4052             result=$wxUSE_LIBGNOMEVFS
4053           fi
4054
4055           { echo "$as_me:$LINENO: result: $result" >&5
4056 echo "${ECHO_T}$result" >&6; }
4057
4058
4059           withstring=
4060           defaultval=$wxUSE_ALL_FEATURES
4061           if test -z "$defaultval"; then
4062               if test x"$withstring" = xwithout; then
4063                   defaultval=yes
4064               else
4065                   defaultval=no
4066               fi
4067           fi
4068           { echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
4069 echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6; }
4070
4071 # Check whether --with-hildon was given.
4072 if test "${with_hildon+set}" = set; then
4073   withval=$with_hildon;
4074                         if test "$withval" = yes; then
4075                           wx_cv_use_hildon='wxUSE_LIBHILDON=yes'
4076                         else
4077                           wx_cv_use_hildon='wxUSE_LIBHILDON=no'
4078                         fi
4079
4080 else
4081
4082                         wx_cv_use_hildon='wxUSE_LIBHILDON=${'DEFAULT_wxUSE_LIBHILDON":-$defaultval}"
4083
4084 fi
4085
4086
4087           eval "$wx_cv_use_hildon"
4088
4089           if test x"$withstring" = xwithout; then
4090             if test $wxUSE_LIBHILDON = yes; then
4091               result=no
4092             else
4093               result=yes
4094             fi
4095           else
4096             result=$wxUSE_LIBHILDON
4097           fi
4098
4099           { echo "$as_me:$LINENO: result: $result" >&5
4100 echo "${ECHO_T}$result" >&6; }
4101
4102
4103           withstring=
4104           defaultval=$wxUSE_ALL_FEATURES
4105           if test -z "$defaultval"; then
4106               if test x"$withstring" = xwithout; then
4107                   defaultval=yes
4108               else
4109                   defaultval=no
4110               fi
4111           fi
4112           { echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
4113 echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6; }
4114
4115 # Check whether --with-opengl was given.
4116 if test "${with_opengl+set}" = set; then
4117   withval=$with_opengl;
4118                         if test "$withval" = yes; then
4119                           wx_cv_use_opengl='wxUSE_OPENGL=yes'
4120                         else
4121                           wx_cv_use_opengl='wxUSE_OPENGL=no'
4122                         fi
4123
4124 else
4125
4126                         wx_cv_use_opengl='wxUSE_OPENGL=${'DEFAULT_wxUSE_OPENGL":-$defaultval}"
4127
4128 fi
4129
4130
4131           eval "$wx_cv_use_opengl"
4132
4133           if test x"$withstring" = xwithout; then
4134             if test $wxUSE_OPENGL = yes; then
4135               result=no
4136             else
4137               result=yes
4138             fi
4139           else
4140             result=$wxUSE_OPENGL
4141           fi
4142
4143           { echo "$as_me:$LINENO: result: $result" >&5
4144 echo "${ECHO_T}$result" >&6; }
4145
4146
4147 fi
4148
4149
4150           withstring=
4151           defaultval=$wxUSE_ALL_FEATURES
4152           if test -z "$defaultval"; then
4153               if test x"$withstring" = xwithout; then
4154                   defaultval=yes
4155               else
4156                   defaultval=no
4157               fi
4158           fi
4159           { echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
4160 echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6; }
4161
4162 # Check whether --with-dmalloc was given.
4163 if test "${with_dmalloc+set}" = set; then
4164   withval=$with_dmalloc;
4165                         if test "$withval" = yes; then
4166                           wx_cv_use_dmalloc='wxUSE_DMALLOC=yes'
4167                         else
4168                           wx_cv_use_dmalloc='wxUSE_DMALLOC=no'
4169                         fi
4170
4171 else
4172
4173                         wx_cv_use_dmalloc='wxUSE_DMALLOC=${'DEFAULT_wxUSE_DMALLOC":-$defaultval}"
4174
4175 fi
4176
4177
4178           eval "$wx_cv_use_dmalloc"
4179
4180           if test x"$withstring" = xwithout; then
4181             if test $wxUSE_DMALLOC = yes; then
4182               result=no
4183             else
4184               result=yes
4185             fi
4186           else
4187             result=$wxUSE_DMALLOC
4188           fi
4189
4190           { echo "$as_me:$LINENO: result: $result" >&5
4191 echo "${ECHO_T}$result" >&6; }
4192
4193
4194           withstring=
4195           defaultval=$wxUSE_ALL_FEATURES
4196           if test -z "$defaultval"; then
4197               if test x"$withstring" = xwithout; then
4198                   defaultval=yes
4199               else
4200                   defaultval=no
4201               fi
4202           fi
4203           { echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
4204 echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6; }
4205
4206 # Check whether --with-sdl was given.
4207 if test "${with_sdl+set}" = set; then
4208   withval=$with_sdl;
4209                         if test "$withval" = yes; then
4210                           wx_cv_use_sdl='wxUSE_LIBSDL=yes'
4211                         else
4212                           wx_cv_use_sdl='wxUSE_LIBSDL=no'
4213                         fi
4214
4215 else
4216
4217                         wx_cv_use_sdl='wxUSE_LIBSDL=${'DEFAULT_wxUSE_LIBSDL":-$defaultval}"
4218
4219 fi
4220
4221
4222           eval "$wx_cv_use_sdl"
4223
4224           if test x"$withstring" = xwithout; then
4225             if test $wxUSE_LIBSDL = yes; then
4226               result=no
4227             else
4228               result=yes
4229             fi
4230           else
4231             result=$wxUSE_LIBSDL
4232           fi
4233
4234           { echo "$as_me:$LINENO: result: $result" >&5
4235 echo "${ECHO_T}$result" >&6; }
4236
4237
4238           { echo "$as_me:$LINENO: checking for --with-regex" >&5
4239 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6; }
4240
4241 # Check whether --with-regex was given.
4242 if test "${with_regex+set}" = set; then
4243   withval=$with_regex;
4244                         if test "$withval" = yes; then
4245                           wx_cv_use_regex='wxUSE_REGEX=yes'
4246                         elif test "$withval" = no; then
4247                           wx_cv_use_regex='wxUSE_REGEX=no'
4248                         elif test "$withval" = sys; then
4249                           wx_cv_use_regex='wxUSE_REGEX=sys'
4250                         elif test "$withval" = builtin; then
4251                           wx_cv_use_regex='wxUSE_REGEX=builtin'
4252                         else
4253                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4254 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4255    { (exit 1); exit 1; }; }
4256                         fi
4257
4258 else
4259
4260                         wx_cv_use_regex='wxUSE_REGEX=${'DEFAULT_wxUSE_REGEX":-$wxUSE_ALL_FEATURES}"
4261
4262 fi
4263
4264
4265           eval "$wx_cv_use_regex"
4266
4267           if test "$wxUSE_REGEX" = yes; then
4268             { echo "$as_me:$LINENO: result: yes" >&5
4269 echo "${ECHO_T}yes" >&6; }
4270           elif test "$wxUSE_REGEX" = no; then
4271             { echo "$as_me:$LINENO: result: no" >&5
4272 echo "${ECHO_T}no" >&6; }
4273           elif test "$wxUSE_REGEX" = sys; then
4274             { echo "$as_me:$LINENO: result: system version" >&5
4275 echo "${ECHO_T}system version" >&6; }
4276           elif test "$wxUSE_REGEX" = builtin; then
4277             { echo "$as_me:$LINENO: result: builtin version" >&5
4278 echo "${ECHO_T}builtin version" >&6; }
4279           else
4280             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4281 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4282    { (exit 1); exit 1; }; }
4283           fi
4284
4285
4286           { echo "$as_me:$LINENO: checking for --with-zlib" >&5
4287 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6; }
4288
4289 # Check whether --with-zlib was given.
4290 if test "${with_zlib+set}" = set; then
4291   withval=$with_zlib;
4292                         if test "$withval" = yes; then
4293                           wx_cv_use_zlib='wxUSE_ZLIB=yes'
4294                         elif test "$withval" = no; then
4295                           wx_cv_use_zlib='wxUSE_ZLIB=no'
4296                         elif test "$withval" = sys; then
4297                           wx_cv_use_zlib='wxUSE_ZLIB=sys'
4298                         elif test "$withval" = builtin; then
4299                           wx_cv_use_zlib='wxUSE_ZLIB=builtin'
4300                         else
4301                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4302 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4303    { (exit 1); exit 1; }; }
4304                         fi
4305
4306 else
4307
4308                         wx_cv_use_zlib='wxUSE_ZLIB=${'DEFAULT_wxUSE_ZLIB":-$wxUSE_ALL_FEATURES}"
4309
4310 fi
4311
4312
4313           eval "$wx_cv_use_zlib"
4314
4315           if test "$wxUSE_ZLIB" = yes; then
4316             { echo "$as_me:$LINENO: result: yes" >&5
4317 echo "${ECHO_T}yes" >&6; }
4318           elif test "$wxUSE_ZLIB" = no; then
4319             { echo "$as_me:$LINENO: result: no" >&5
4320 echo "${ECHO_T}no" >&6; }
4321           elif test "$wxUSE_ZLIB" = sys; then
4322             { echo "$as_me:$LINENO: result: system version" >&5
4323 echo "${ECHO_T}system version" >&6; }
4324           elif test "$wxUSE_ZLIB" = builtin; then
4325             { echo "$as_me:$LINENO: result: builtin version" >&5
4326 echo "${ECHO_T}builtin version" >&6; }
4327           else
4328             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4329 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4330    { (exit 1); exit 1; }; }
4331           fi
4332
4333
4334           { echo "$as_me:$LINENO: checking for --with-expat" >&5
4335 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6; }
4336
4337 # Check whether --with-expat was given.
4338 if test "${with_expat+set}" = set; then
4339   withval=$with_expat;
4340                         if test "$withval" = yes; then
4341                           wx_cv_use_expat='wxUSE_EXPAT=yes'
4342                         elif test "$withval" = no; then
4343                           wx_cv_use_expat='wxUSE_EXPAT=no'
4344                         elif test "$withval" = sys; then
4345                           wx_cv_use_expat='wxUSE_EXPAT=sys'
4346                         elif test "$withval" = builtin; then
4347                           wx_cv_use_expat='wxUSE_EXPAT=builtin'
4348                         else
4349                           { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4350 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4351    { (exit 1); exit 1; }; }
4352                         fi
4353
4354 else
4355
4356                         wx_cv_use_expat='wxUSE_EXPAT=${'DEFAULT_wxUSE_EXPAT":-$wxUSE_ALL_FEATURES}"
4357
4358 fi
4359
4360
4361           eval "$wx_cv_use_expat"
4362
4363           if test "$wxUSE_EXPAT" = yes; then
4364             { echo "$as_me:$LINENO: result: yes" >&5
4365 echo "${ECHO_T}yes" >&6; }
4366           elif test "$wxUSE_EXPAT" = no; then
4367             { echo "$as_me:$LINENO: result: no" >&5
4368 echo "${ECHO_T}no" >&6; }
4369           elif test "$wxUSE_EXPAT" = sys; then
4370             { echo "$as_me:$LINENO: result: system version" >&5
4371 echo "${ECHO_T}system version" >&6; }
4372           elif test "$wxUSE_EXPAT" = builtin; then
4373             { echo "$as_me:$LINENO: result: builtin version" >&5
4374 echo "${ECHO_T}builtin version" >&6; }
4375           else
4376             { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4377 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4378    { (exit 1); exit 1; }; }
4379           fi
4380
4381
4382 { echo "$as_me:$LINENO: checking for --with-macosx-sdk" >&5
4383 echo $ECHO_N "checking for --with-macosx-sdk... $ECHO_C" >&6; }
4384
4385 # Check whether --with-macosx-sdk was given.
4386 if test "${with_macosx_sdk+set}" = set; then
4387   withval=$with_macosx_sdk;
4388         wxUSE_MACOSX_SDK=$withval
4389         wx_cv_use_macosx_sdk="wxUSE_MACOSX_SDK=$withval"
4390
4391 fi
4392
4393 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_SDK" >&5
4394 echo "${ECHO_T}$wxUSE_MACOSX_SDK" >&6; }
4395
4396 { echo "$as_me:$LINENO: checking for --with-macosx-version-min" >&5
4397 echo $ECHO_N "checking for --with-macosx-version-min... $ECHO_C" >&6; }
4398
4399 # Check whether --with-macosx-version-min was given.
4400 if test "${with_macosx_version_min+set}" = set; then
4401   withval=$with_macosx_version_min;
4402         wxUSE_MACOSX_VERSION_MIN=$withval
4403         wx_cv_use_macosx_version_min="wxUSE_MACOSX_VERSION_MIN=$withval"
4404
4405 fi
4406
4407 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
4408 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
4409
4410
4411 { echo "$as_me:$LINENO: checking for --enable-debug" >&5
4412 echo $ECHO_N "checking for --enable-debug... $ECHO_C" >&6; }
4413 # Check whether --enable-debug was given.
4414 if test "${enable_debug+set}" = set; then
4415   enableval=$enable_debug;
4416         if test "$enableval" = yes; then
4417             wxUSE_DEBUG=yes
4418         elif test "$enableval" = no; then
4419             wxUSE_DEBUG=no
4420         elif test "$enableval" = max; then
4421             wxUSE_DEBUG=yes
4422             WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -DwxDEBUG_LEVEL=2"
4423         else
4424             { { echo "$as_me:$LINENO: error: Invalid --enable-debug value, must be yes, no or max" >&5
4425 echo "$as_me: error: Invalid --enable-debug value, must be yes, no or max" >&2;}
4426    { (exit 1); exit 1; }; }
4427         fi
4428
4429 else
4430   wxUSE_DEBUG=default
4431
4432 fi
4433
4434
4435 case "$wxUSE_DEBUG" in
4436     yes)
4437                         DEFAULT_wxUSE_DEBUG_FLAG=yes
4438         DEFAULT_wxUSE_DEBUG_INFO=yes
4439
4440                         DEFAULT_wxUSE_OPTIMISE=no
4441         ;;
4442
4443     no)
4444                         DEFAULT_wxUSE_DEBUG_FLAG=no
4445         DEFAULT_wxUSE_DEBUG_INFO=no
4446         ;;
4447
4448     default)
4449                         DEFAULT_wxUSE_DEBUG_FLAG=yes
4450         DEFAULT_wxUSE_DEBUG_INFO=no
4451         ;;
4452 esac
4453
4454
4455           enablestring=disable
4456           defaultval=
4457           if test -z "$defaultval"; then
4458               if test x"$enablestring" = xdisable; then
4459                   defaultval=yes
4460               else
4461                   defaultval=no
4462               fi
4463           fi
4464
4465           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
4466 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6; }
4467           # Check whether --enable-debug_flag was given.
4468 if test "${enable_debug_flag+set}" = set; then
4469   enableval=$enable_debug_flag;
4470                           if test "$enableval" = yes; then
4471                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
4472                           else
4473                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
4474                           fi
4475
4476 else
4477
4478                           wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=${'DEFAULT_wxUSE_DEBUG_FLAG":-$defaultval}"
4479
4480 fi
4481
4482
4483           eval "$wx_cv_use_debug_flag"
4484
4485           if test x"$enablestring" = xdisable; then
4486             if test $wxUSE_DEBUG_FLAG = no; then
4487               result=yes
4488             else
4489               result=no
4490             fi
4491           else
4492             result=$wxUSE_DEBUG_FLAG
4493           fi
4494
4495           { echo "$as_me:$LINENO: result: $result" >&5
4496 echo "${ECHO_T}$result" >&6; }
4497
4498
4499           enablestring=
4500           defaultval=
4501           if test -z "$defaultval"; then
4502               if test x"$enablestring" = xdisable; then
4503                   defaultval=yes
4504               else
4505                   defaultval=no
4506               fi
4507           fi
4508
4509           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
4510 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6; }
4511           # Check whether --enable-debug_info was given.
4512 if test "${enable_debug_info+set}" = set; then
4513   enableval=$enable_debug_info;
4514                           if test "$enableval" = yes; then
4515                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
4516                           else
4517                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
4518                           fi
4519
4520 else
4521
4522                           wx_cv_use_debug_info='wxUSE_DEBUG_INFO=${'DEFAULT_wxUSE_DEBUG_INFO":-$defaultval}"
4523
4524 fi
4525
4526
4527           eval "$wx_cv_use_debug_info"
4528
4529           if test x"$enablestring" = xdisable; then
4530             if test $wxUSE_DEBUG_INFO = no; then
4531               result=yes
4532             else
4533               result=no
4534             fi
4535           else
4536             result=$wxUSE_DEBUG_INFO
4537           fi
4538
4539           { echo "$as_me:$LINENO: result: $result" >&5
4540 echo "${ECHO_T}$result" >&6; }
4541
4542
4543
4544
4545           enablestring=
4546           defaultval=
4547           if test -z "$defaultval"; then
4548               if test x"$enablestring" = xdisable; then
4549                   defaultval=yes
4550               else
4551                   defaultval=no
4552               fi
4553           fi
4554
4555           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
4556 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6; }
4557           # Check whether --enable-debug_gdb was given.
4558 if test "${enable_debug_gdb+set}" = set; then
4559   enableval=$enable_debug_gdb;
4560                           if test "$enableval" = yes; then
4561                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
4562                           else
4563                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
4564                           fi
4565
4566 else
4567
4568                           wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=${'DEFAULT_wxUSE_DEBUG_GDB":-$defaultval}"
4569
4570 fi
4571
4572
4573           eval "$wx_cv_use_debug_gdb"
4574
4575           if test x"$enablestring" = xdisable; then
4576             if test $wxUSE_DEBUG_GDB = no; then
4577               result=yes
4578             else
4579               result=no
4580             fi
4581           else
4582             result=$wxUSE_DEBUG_GDB
4583           fi
4584
4585           { echo "$as_me:$LINENO: result: $result" >&5
4586 echo "${ECHO_T}$result" >&6; }
4587
4588
4589           enablestring=
4590           defaultval=
4591           if test -z "$defaultval"; then
4592               if test x"$enablestring" = xdisable; then
4593                   defaultval=yes
4594               else
4595                   defaultval=no
4596               fi
4597           fi
4598
4599           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
4600 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6; }
4601           # Check whether --enable-debug_cntxt was given.
4602 if test "${enable_debug_cntxt+set}" = set; then
4603   enableval=$enable_debug_cntxt;
4604                           if test "$enableval" = yes; then
4605                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
4606                           else
4607                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
4608                           fi
4609
4610 else
4611
4612                           wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=${'DEFAULT_wxUSE_DEBUG_CONTEXT":-$defaultval}"
4613
4614 fi
4615
4616
4617           eval "$wx_cv_use_debug_cntxt"
4618
4619           if test x"$enablestring" = xdisable; then
4620             if test $wxUSE_DEBUG_CONTEXT = no; then
4621               result=yes
4622             else
4623               result=no
4624             fi
4625           else
4626             result=$wxUSE_DEBUG_CONTEXT
4627           fi
4628
4629           { echo "$as_me:$LINENO: result: $result" >&5
4630 echo "${ECHO_T}$result" >&6; }
4631
4632
4633           enablestring=
4634           defaultval=
4635           if test -z "$defaultval"; then
4636               if test x"$enablestring" = xdisable; then
4637                   defaultval=yes
4638               else
4639                   defaultval=no
4640               fi
4641           fi
4642
4643           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
4644 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6; }
4645           # Check whether --enable-mem_tracing was given.
4646 if test "${enable_mem_tracing+set}" = set; then
4647   enableval=$enable_mem_tracing;
4648                           if test "$enableval" = yes; then
4649                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
4650                           else
4651                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
4652                           fi
4653
4654 else
4655
4656                           wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=${'DEFAULT_wxUSE_MEM_TRACING":-$defaultval}"
4657
4658 fi
4659
4660
4661           eval "$wx_cv_use_mem_tracing"
4662
4663           if test x"$enablestring" = xdisable; then
4664             if test $wxUSE_MEM_TRACING = no; then
4665               result=yes
4666             else
4667               result=no
4668             fi
4669           else
4670             result=$wxUSE_MEM_TRACING
4671           fi
4672
4673           { echo "$as_me:$LINENO: result: $result" >&5
4674 echo "${ECHO_T}$result" >&6; }
4675
4676
4677
4678
4679           enablestring=disable
4680           defaultval=
4681           if test -z "$defaultval"; then
4682               if test x"$enablestring" = xdisable; then
4683                   defaultval=yes
4684               else
4685                   defaultval=no
4686               fi
4687           fi
4688
4689           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
4690 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6; }
4691           # Check whether --enable-shared was given.
4692 if test "${enable_shared+set}" = set; then
4693   enableval=$enable_shared;
4694                           if test "$enableval" = yes; then
4695                             wx_cv_use_shared='wxUSE_SHARED=yes'
4696                           else
4697                             wx_cv_use_shared='wxUSE_SHARED=no'
4698                           fi
4699
4700 else
4701
4702                           wx_cv_use_shared='wxUSE_SHARED=${'DEFAULT_wxUSE_SHARED":-$defaultval}"
4703
4704 fi
4705
4706
4707           eval "$wx_cv_use_shared"
4708
4709           if test x"$enablestring" = xdisable; then
4710             if test $wxUSE_SHARED = no; then
4711               result=yes
4712             else
4713               result=no
4714             fi
4715           else
4716             result=$wxUSE_SHARED
4717           fi
4718
4719           { echo "$as_me:$LINENO: result: $result" >&5
4720 echo "${ECHO_T}$result" >&6; }
4721
4722
4723           enablestring=
4724           defaultval=
4725           if test -z "$defaultval"; then
4726               if test x"$enablestring" = xdisable; then
4727                   defaultval=yes
4728               else
4729                   defaultval=no
4730               fi
4731           fi
4732
4733           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
4734 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6; }
4735           # Check whether --enable-stl was given.
4736 if test "${enable_stl+set}" = set; then
4737   enableval=$enable_stl;
4738                           if test "$enableval" = yes; then
4739                             wx_cv_use_stl='wxUSE_STL=yes'
4740                           else
4741                             wx_cv_use_stl='wxUSE_STL=no'
4742                           fi
4743
4744 else
4745
4746                           wx_cv_use_stl='wxUSE_STL=${'DEFAULT_wxUSE_STL":-$defaultval}"
4747
4748 fi
4749
4750
4751           eval "$wx_cv_use_stl"
4752
4753           if test x"$enablestring" = xdisable; then
4754             if test $wxUSE_STL = no; then
4755               result=yes
4756             else
4757               result=no
4758             fi
4759           else
4760             result=$wxUSE_STL
4761           fi
4762
4763           { echo "$as_me:$LINENO: result: $result" >&5
4764 echo "${ECHO_T}$result" >&6; }
4765
4766
4767           enablestring=
4768           defaultval=
4769           if test -z "$defaultval"; then
4770               if test x"$enablestring" = xdisable; then
4771                   defaultval=yes
4772               else
4773                   defaultval=no
4774               fi
4775           fi
4776
4777           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
4778 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6; }
4779           # Check whether --enable-std_iostreams was given.
4780 if test "${enable_std_iostreams+set}" = set; then
4781   enableval=$enable_std_iostreams;
4782                           if test "$enableval" = yes; then
4783                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4784                           else
4785                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4786                           fi
4787
4788 else
4789
4790                           wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=${'DEFAULT_wxUSE_STD_IOSTREAM":-$defaultval}"
4791
4792 fi
4793
4794
4795           eval "$wx_cv_use_std_iostreams"
4796
4797           if test x"$enablestring" = xdisable; then
4798             if test $wxUSE_STD_IOSTREAM = no; then
4799               result=yes
4800             else
4801               result=no
4802             fi
4803           else
4804             result=$wxUSE_STD_IOSTREAM
4805           fi
4806
4807           { echo "$as_me:$LINENO: result: $result" >&5
4808 echo "${ECHO_T}$result" >&6; }
4809
4810
4811           enablestring=
4812           defaultval=
4813           if test -z "$defaultval"; then
4814               if test x"$enablestring" = xdisable; then
4815                   defaultval=yes
4816               else
4817                   defaultval=no
4818               fi
4819           fi
4820
4821           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
4822 echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6; }
4823           # Check whether --enable-std_string was given.
4824 if test "${enable_std_string+set}" = set; then
4825   enableval=$enable_std_string;
4826                           if test "$enableval" = yes; then
4827                             wx_cv_use_std_string='wxUSE_STD_STRING=yes'
4828                           else
4829                             wx_cv_use_std_string='wxUSE_STD_STRING=no'
4830                           fi
4831
4832 else
4833
4834                           wx_cv_use_std_string='wxUSE_STD_STRING=${'DEFAULT_wxUSE_STD_STRING":-$defaultval}"
4835
4836 fi
4837
4838
4839           eval "$wx_cv_use_std_string"
4840
4841           if test x"$enablestring" = xdisable; then
4842             if test $wxUSE_STD_STRING = no; then
4843               result=yes
4844             else
4845               result=no
4846             fi
4847           else
4848             result=$wxUSE_STD_STRING
4849           fi
4850
4851           { echo "$as_me:$LINENO: result: $result" >&5
4852 echo "${ECHO_T}$result" >&6; }
4853
4854
4855           enablestring=disable
4856           defaultval=
4857           if test -z "$defaultval"; then
4858               if test x"$enablestring" = xdisable; then
4859                   defaultval=yes
4860               else
4861                   defaultval=no
4862               fi
4863           fi
4864
4865           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
4866 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6; }
4867           # Check whether --enable-unicode was given.
4868 if test "${enable_unicode+set}" = set; then
4869   enableval=$enable_unicode;
4870                           if test "$enableval" = yes; then
4871                             wx_cv_use_unicode='wxUSE_UNICODE=yes'
4872                           else
4873                             wx_cv_use_unicode='wxUSE_UNICODE=no'
4874                           fi
4875
4876 else
4877
4878                           wx_cv_use_unicode='wxUSE_UNICODE=${'DEFAULT_wxUSE_UNICODE":-$defaultval}"
4879
4880 fi
4881
4882
4883           eval "$wx_cv_use_unicode"
4884
4885           if test x"$enablestring" = xdisable; then
4886             if test $wxUSE_UNICODE = no; then
4887               result=yes
4888             else
4889               result=no
4890             fi
4891           else
4892             result=$wxUSE_UNICODE
4893           fi
4894
4895           { echo "$as_me:$LINENO: result: $result" >&5
4896 echo "${ECHO_T}$result" >&6; }
4897
4898
4899           enablestring=
4900           defaultval=
4901           if test -z "$defaultval"; then
4902               if test x"$enablestring" = xdisable; then
4903                   defaultval=yes
4904               else
4905                   defaultval=no
4906               fi
4907           fi
4908
4909           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
4910 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6; }
4911           # Check whether --enable-mslu was given.
4912 if test "${enable_mslu+set}" = set; then
4913   enableval=$enable_mslu;
4914                           if test "$enableval" = yes; then
4915                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4916                           else
4917                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4918                           fi
4919
4920 else
4921
4922                           wx_cv_use_mslu='wxUSE_UNICODE_MSLU=${'DEFAULT_wxUSE_UNICODE_MSLU":-$defaultval}"
4923
4924 fi
4925
4926
4927           eval "$wx_cv_use_mslu"
4928
4929           if test x"$enablestring" = xdisable; then
4930             if test $wxUSE_UNICODE_MSLU = no; then
4931               result=yes
4932             else
4933               result=no
4934             fi
4935           else
4936             result=$wxUSE_UNICODE_MSLU
4937           fi
4938
4939           { echo "$as_me:$LINENO: result: $result" >&5
4940 echo "${ECHO_T}$result" >&6; }
4941
4942
4943           enablestring=
4944           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8" >&5
4945 echo $ECHO_N "checking for --${enablestring:-enable}-utf8... $ECHO_C" >&6; }
4946           # Check whether --enable-utf8 was given.
4947 if test "${enable_utf8+set}" = set; then
4948   enableval=$enable_utf8;
4949                           wx_cv_use_utf8="wxUSE_UNICODE_UTF8='$enableval'"
4950
4951 else
4952
4953                           wx_cv_use_utf8='wxUSE_UNICODE_UTF8='$DEFAULT_wxUSE_UNICODE_UTF8
4954
4955 fi
4956
4957
4958           eval "$wx_cv_use_utf8"
4959
4960           { echo "$as_me:$LINENO: result: $wxUSE_UNICODE_UTF8" >&5
4961 echo "${ECHO_T}$wxUSE_UNICODE_UTF8" >&6; }
4962
4963
4964           enablestring=
4965           defaultval=
4966           if test -z "$defaultval"; then
4967               if test x"$enablestring" = xdisable; then
4968                   defaultval=yes
4969               else
4970                   defaultval=no
4971               fi
4972           fi
4973
4974           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8only" >&5
4975 echo $ECHO_N "checking for --${enablestring:-enable}-utf8only... $ECHO_C" >&6; }
4976           # Check whether --enable-utf8only was given.
4977 if test "${enable_utf8only+set}" = set; then
4978   enableval=$enable_utf8only;
4979                           if test "$enableval" = yes; then
4980                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=yes'
4981                           else
4982                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=no'
4983                           fi
4984
4985 else
4986
4987                           wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=${'DEFAULT_wxUSE_UNICODE_UTF8_LOCALE":-$defaultval}"
4988
4989 fi
4990
4991
4992           eval "$wx_cv_use_utf8only"
4993
4994           if test x"$enablestring" = xdisable; then
4995             if test $wxUSE_UNICODE_UTF8_LOCALE = no; then
4996               result=yes
4997             else
4998               result=no
4999             fi
5000           else
5001             result=$wxUSE_UNICODE_UTF8_LOCALE
5002           fi
5003
5004           { echo "$as_me:$LINENO: result: $result" >&5
5005 echo "${ECHO_T}$result" >&6; }
5006
5007
5008           enablestring=
5009           defaultval=
5010           if test -z "$defaultval"; then
5011               if test x"$enablestring" = xdisable; then
5012                   defaultval=yes
5013               else
5014                   defaultval=no
5015               fi
5016           fi
5017
5018           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-extended_rtti" >&5
5019 echo $ECHO_N "checking for --${enablestring:-enable}-extended_rtti... $ECHO_C" >&6; }
5020           # Check whether --enable-extended_rtti was given.
5021 if test "${enable_extended_rtti+set}" = set; then
5022   enableval=$enable_extended_rtti;
5023                           if test "$enableval" = yes; then
5024                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=yes'
5025                           else
5026                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=no'
5027                           fi
5028
5029 else
5030
5031                           wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=${'DEFAULT_wxUSE_EXTENDED_RTTI":-$defaultval}"
5032
5033 fi
5034
5035
5036           eval "$wx_cv_use_extended_rtti"
5037
5038           if test x"$enablestring" = xdisable; then
5039             if test $wxUSE_EXTENDED_RTTI = no; then
5040               result=yes
5041             else
5042               result=no
5043             fi
5044           else
5045             result=$wxUSE_EXTENDED_RTTI
5046           fi
5047
5048           { echo "$as_me:$LINENO: result: $result" >&5
5049 echo "${ECHO_T}$result" >&6; }
5050
5051 if test "$USE_OS2" = 1; then
5052     DEFAULT_wxUSE_OMF=no
5053
5054           enablestring=
5055           defaultval=
5056           if test -z "$defaultval"; then
5057               if test x"$enablestring" = xdisable; then
5058                   defaultval=yes
5059               else
5060                   defaultval=no
5061               fi
5062           fi
5063
5064           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
5065 echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6; }
5066           # Check whether --enable-omf was given.
5067 if test "${enable_omf+set}" = set; then
5068   enableval=$enable_omf;
5069                           if test "$enableval" = yes; then
5070                             wx_cv_use_omf='wxUSE_OMF=yes'
5071                           else
5072                             wx_cv_use_omf='wxUSE_OMF=no'
5073                           fi
5074
5075 else
5076
5077                           wx_cv_use_omf='wxUSE_OMF=${'DEFAULT_wxUSE_OMF":-$defaultval}"
5078
5079 fi
5080
5081
5082           eval "$wx_cv_use_omf"
5083
5084           if test x"$enablestring" = xdisable; then
5085             if test $wxUSE_OMF = no; then
5086               result=yes
5087             else
5088               result=no
5089             fi
5090           else
5091             result=$wxUSE_OMF
5092           fi
5093
5094           { echo "$as_me:$LINENO: result: $result" >&5
5095 echo "${ECHO_T}$result" >&6; }
5096
5097 fi
5098
5099
5100           enablestring=disable
5101           defaultval=
5102           if test -z "$defaultval"; then
5103               if test x"$enablestring" = xdisable; then
5104                   defaultval=yes
5105               else
5106                   defaultval=no
5107               fi
5108           fi
5109
5110           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
5111 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6; }
5112           # Check whether --enable-optimise was given.
5113 if test "${enable_optimise+set}" = set; then
5114   enableval=$enable_optimise;
5115                           if test "$enableval" = yes; then
5116                             wx_cv_use_optimise='wxUSE_OPTIMISE=yes'
5117                           else
5118                             wx_cv_use_optimise='wxUSE_OPTIMISE=no'
5119                           fi
5120
5121 else
5122
5123                           wx_cv_use_optimise='wxUSE_OPTIMISE=${'DEFAULT_wxUSE_OPTIMISE":-$defaultval}"
5124
5125 fi
5126
5127
5128           eval "$wx_cv_use_optimise"
5129
5130           if test x"$enablestring" = xdisable; then
5131             if test $wxUSE_OPTIMISE = no; then
5132               result=yes
5133             else
5134               result=no
5135             fi
5136           else
5137             result=$wxUSE_OPTIMISE
5138           fi
5139
5140           { echo "$as_me:$LINENO: result: $result" >&5
5141 echo "${ECHO_T}$result" >&6; }
5142
5143
5144
5145           enablestring=
5146           defaultval=
5147           if test -z "$defaultval"; then
5148               if test x"$enablestring" = xdisable; then
5149                   defaultval=yes
5150               else
5151                   defaultval=no
5152               fi
5153           fi
5154
5155           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
5156 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6; }
5157           # Check whether --enable-profile was given.
5158 if test "${enable_profile+set}" = set; then
5159   enableval=$enable_profile;
5160                           if test "$enableval" = yes; then
5161                             wx_cv_use_profile='wxUSE_PROFILE=yes'
5162                           else
5163                             wx_cv_use_profile='wxUSE_PROFILE=no'
5164                           fi
5165
5166 else
5167
5168                           wx_cv_use_profile='wxUSE_PROFILE=${'DEFAULT_wxUSE_PROFILE":-$defaultval}"
5169
5170 fi
5171
5172
5173           eval "$wx_cv_use_profile"
5174
5175           if test x"$enablestring" = xdisable; then
5176             if test $wxUSE_PROFILE = no; then
5177               result=yes
5178             else
5179               result=no
5180             fi
5181           else
5182             result=$wxUSE_PROFILE
5183           fi
5184
5185           { echo "$as_me:$LINENO: result: $result" >&5
5186 echo "${ECHO_T}$result" >&6; }
5187
5188
5189           enablestring=
5190           defaultval=
5191           if test -z "$defaultval"; then
5192               if test x"$enablestring" = xdisable; then
5193                   defaultval=yes
5194               else
5195                   defaultval=no
5196               fi
5197           fi
5198
5199           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
5200 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6; }
5201           # Check whether --enable-no_rtti was given.
5202 if test "${enable_no_rtti+set}" = set; then
5203   enableval=$enable_no_rtti;
5204                           if test "$enableval" = yes; then
5205                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
5206                           else
5207                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=no'
5208                           fi
5209
5210 else
5211
5212                           wx_cv_use_no_rtti='wxUSE_NO_RTTI=${'DEFAULT_wxUSE_NO_RTTI":-$defaultval}"
5213
5214 fi
5215
5216
5217           eval "$wx_cv_use_no_rtti"
5218
5219           if test x"$enablestring" = xdisable; then
5220             if test $wxUSE_NO_RTTI = no; then
5221               result=yes
5222             else
5223               result=no
5224             fi
5225           else
5226             result=$wxUSE_NO_RTTI
5227           fi
5228
5229           { echo "$as_me:$LINENO: result: $result" >&5
5230 echo "${ECHO_T}$result" >&6; }
5231
5232
5233           enablestring=
5234           defaultval=
5235           if test -z "$defaultval"; then
5236               if test x"$enablestring" = xdisable; then
5237                   defaultval=yes
5238               else
5239                   defaultval=no
5240               fi
5241           fi
5242
5243           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
5244 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6; }
5245           # Check whether --enable-no_exceptions was given.
5246 if test "${enable_no_exceptions+set}" = set; then
5247   enableval=$enable_no_exceptions;
5248                           if test "$enableval" = yes; then
5249                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
5250                           else
5251                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
5252                           fi
5253
5254 else
5255
5256                           wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=${'DEFAULT_wxUSE_NO_EXCEPTIONS":-$defaultval}"
5257
5258 fi
5259
5260
5261           eval "$wx_cv_use_no_exceptions"
5262
5263           if test x"$enablestring" = xdisable; then
5264             if test $wxUSE_NO_EXCEPTIONS = no; then
5265               result=yes
5266             else
5267               result=no
5268             fi
5269           else
5270             result=$wxUSE_NO_EXCEPTIONS
5271           fi
5272
5273           { echo "$as_me:$LINENO: result: $result" >&5
5274 echo "${ECHO_T}$result" >&6; }
5275
5276
5277           enablestring=
5278           defaultval=
5279           if test -z "$defaultval"; then
5280               if test x"$enablestring" = xdisable; then
5281                   defaultval=yes
5282               else
5283                   defaultval=no
5284               fi
5285           fi
5286
5287           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
5288 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6; }
5289           # Check whether --enable-permissive was given.
5290 if test "${enable_permissive+set}" = set; then
5291   enableval=$enable_permissive;
5292                           if test "$enableval" = yes; then
5293                             wx_cv_use_permissive='wxUSE_PERMISSIVE=yes'
5294                           else
5295                             wx_cv_use_permissive='wxUSE_PERMISSIVE=no'
5296                           fi
5297
5298 else
5299
5300                           wx_cv_use_permissive='wxUSE_PERMISSIVE=${'DEFAULT_wxUSE_PERMISSIVE":-$defaultval}"
5301
5302 fi
5303
5304
5305           eval "$wx_cv_use_permissive"
5306
5307           if test x"$enablestring" = xdisable; then
5308             if test $wxUSE_PERMISSIVE = no; then
5309               result=yes
5310             else
5311               result=no
5312             fi
5313           else
5314             result=$wxUSE_PERMISSIVE
5315           fi
5316
5317           { echo "$as_me:$LINENO: result: $result" >&5
5318 echo "${ECHO_T}$result" >&6; }
5319
5320
5321           enablestring=
5322           defaultval=
5323           if test -z "$defaultval"; then
5324               if test x"$enablestring" = xdisable; then
5325                   defaultval=yes
5326               else
5327                   defaultval=no
5328               fi
5329           fi
5330
5331           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
5332 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6; }
5333           # Check whether --enable-no_deps was given.
5334 if test "${enable_no_deps+set}" = set; then
5335   enableval=$enable_no_deps;
5336                           if test "$enableval" = yes; then
5337                             wx_cv_use_no_deps='wxUSE_NO_DEPS=yes'
5338                           else
5339                             wx_cv_use_no_deps='wxUSE_NO_DEPS=no'
5340                           fi
5341
5342 else
5343
5344                           wx_cv_use_no_deps='wxUSE_NO_DEPS=${'DEFAULT_wxUSE_NO_DEPS":-$defaultval}"
5345
5346 fi
5347
5348
5349           eval "$wx_cv_use_no_deps"
5350
5351           if test x"$enablestring" = xdisable; then
5352             if test $wxUSE_NO_DEPS = no; then
5353               result=yes
5354             else
5355               result=no
5356             fi
5357           else
5358             result=$wxUSE_NO_DEPS
5359           fi
5360
5361           { echo "$as_me:$LINENO: result: $result" >&5
5362 echo "${ECHO_T}$result" >&6; }
5363
5364
5365           enablestring=disable
5366           defaultval=
5367           if test -z "$defaultval"; then
5368               if test x"$enablestring" = xdisable; then
5369                   defaultval=yes
5370               else
5371                   defaultval=no
5372               fi
5373           fi
5374
5375           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-vararg_macros" >&5
5376 echo $ECHO_N "checking for --${enablestring:-enable}-vararg_macros... $ECHO_C" >&6; }
5377           # Check whether --enable-vararg_macros was given.
5378 if test "${enable_vararg_macros+set}" = set; then
5379   enableval=$enable_vararg_macros;
5380                           if test "$enableval" = yes; then
5381                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=yes'
5382                           else
5383                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=no'
5384                           fi
5385
5386 else
5387
5388                           wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=${'DEFAULT_wxUSE_VARARG_MACROS":-$defaultval}"
5389
5390 fi
5391
5392
5393           eval "$wx_cv_use_vararg_macros"
5394
5395           if test x"$enablestring" = xdisable; then
5396             if test $wxUSE_VARARG_MACROS = no; then
5397               result=yes
5398             else
5399               result=no
5400             fi
5401           else
5402             result=$wxUSE_VARARG_MACROS
5403           fi
5404
5405           { echo "$as_me:$LINENO: result: $result" >&5
5406 echo "${ECHO_T}$result" >&6; }
5407
5408
5409           enablestring=
5410           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
5411 echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6; }
5412           # Check whether --enable-universal_binary was given.
5413 if test "${enable_universal_binary+set}" = set; then
5414   enableval=$enable_universal_binary;
5415                           wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
5416
5417 else
5418
5419                           wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
5420
5421 fi
5422
5423
5424           eval "$wx_cv_use_universal_binary"
5425
5426           { echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
5427 echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6; }
5428
5429
5430
5431           enablestring=
5432           defaultval=
5433           if test -z "$defaultval"; then
5434               if test x"$enablestring" = xdisable; then
5435                   defaultval=yes
5436               else
5437                   defaultval=no
5438               fi
5439           fi
5440
5441           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
5442 echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6; }
5443           # Check whether --enable-compat26 was given.
5444 if test "${enable_compat26+set}" = set; then
5445   enableval=$enable_compat26;
5446                           if test "$enableval" = yes; then
5447                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
5448                           else
5449                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
5450                           fi
5451
5452 else
5453
5454                           wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=${'DEFAULT_WXWIN_COMPATIBILITY_2_6":-$defaultval}"
5455
5456 fi
5457
5458
5459           eval "$wx_cv_use_compat26"
5460
5461           if test x"$enablestring" = xdisable; then
5462             if test $WXWIN_COMPATIBILITY_2_6 = no; then
5463               result=yes
5464             else
5465               result=no
5466             fi
5467           else
5468             result=$WXWIN_COMPATIBILITY_2_6
5469           fi
5470
5471           { echo "$as_me:$LINENO: result: $result" >&5
5472 echo "${ECHO_T}$result" >&6; }
5473
5474
5475           enablestring=disable
5476           defaultval=
5477           if test -z "$defaultval"; then
5478               if test x"$enablestring" = xdisable; then
5479                   defaultval=yes
5480               else
5481                   defaultval=no
5482               fi
5483           fi
5484
5485           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat28" >&5
5486 echo $ECHO_N "checking for --${enablestring:-enable}-compat28... $ECHO_C" >&6; }
5487           # Check whether --enable-compat28 was given.
5488 if test "${enable_compat28+set}" = set; then
5489   enableval=$enable_compat28;
5490                           if test "$enableval" = yes; then
5491                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=yes'
5492                           else
5493                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=no'
5494                           fi
5495
5496 else
5497
5498                           wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=${'DEFAULT_WXWIN_COMPATIBILITY_2_8":-$defaultval}"
5499
5500 fi
5501
5502
5503           eval "$wx_cv_use_compat28"
5504
5505           if test x"$enablestring" = xdisable; then
5506             if test $WXWIN_COMPATIBILITY_2_8 = no; then
5507               result=yes
5508             else
5509               result=no
5510             fi
5511           else
5512             result=$WXWIN_COMPATIBILITY_2_8
5513           fi
5514
5515           { echo "$as_me:$LINENO: result: $result" >&5
5516 echo "${ECHO_T}$result" >&6; }
5517
5518
5519
5520           enablestring=disable
5521           defaultval=
5522           if test -z "$defaultval"; then
5523               if test x"$enablestring" = xdisable; then
5524                   defaultval=yes
5525               else
5526                   defaultval=no
5527               fi
5528           fi
5529
5530           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
5531 echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6; }
5532           # Check whether --enable-rpath was given.
5533 if test "${enable_rpath+set}" = set; then
5534   enableval=$enable_rpath;
5535                           if test "$enableval" = yes; then
5536                             wx_cv_use_rpath='wxUSE_RPATH=yes'
5537                           else
5538                             wx_cv_use_rpath='wxUSE_RPATH=no'
5539                           fi
5540
5541 else
5542
5543                           wx_cv_use_rpath='wxUSE_RPATH=${'DEFAULT_wxUSE_RPATH":-$defaultval}"
5544
5545 fi
5546
5547
5548           eval "$wx_cv_use_rpath"
5549
5550           if test x"$enablestring" = xdisable; then
5551             if test $wxUSE_RPATH = no; then
5552               result=yes
5553             else
5554               result=no
5555             fi
5556           else
5557             result=$wxUSE_RPATH
5558           fi
5559
5560           { echo "$as_me:$LINENO: result: $result" >&5
5561 echo "${ECHO_T}$result" >&6; }
5562
5563
5564
5565           enablestring=
5566           defaultval=
5567           if test -z "$defaultval"; then
5568               if test x"$enablestring" = xdisable; then
5569                   defaultval=yes
5570               else
5571                   defaultval=no
5572               fi
5573           fi
5574
5575           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-objc_uniquifying" >&5
5576 echo $ECHO_N "checking for --${enablestring:-enable}-objc_uniquifying... $ECHO_C" >&6; }
5577           # Check whether --enable-objc_uniquifying was given.
5578 if test "${enable_objc_uniquifying+set}" = set; then
5579   enableval=$enable_objc_uniquifying;
5580                           if test "$enableval" = yes; then
5581                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=yes'
5582                           else
5583                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=no'
5584                           fi
5585
5586 else
5587
5588                           wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=${'DEFAULT_wxUSE_OBJC_UNIQUIFYING":-$defaultval}"
5589
5590 fi
5591
5592
5593           eval "$wx_cv_use_objc_uniquifying"
5594
5595           if test x"$enablestring" = xdisable; then
5596             if test $wxUSE_OBJC_UNIQUIFYING = no; then
5597               result=yes
5598             else
5599               result=no
5600             fi
5601           else
5602             result=$wxUSE_OBJC_UNIQUIFYING
5603           fi
5604
5605           { echo "$as_me:$LINENO: result: $result" >&5
5606 echo "${ECHO_T}$result" >&6; }
5607
5608
5609
5610           enablestring=disable
5611           defaultval=
5612           if test -z "$defaultval"; then
5613               if test x"$enablestring" = xdisable; then
5614                   defaultval=yes
5615               else
5616                   defaultval=no
5617               fi
5618           fi
5619
5620           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-visibility" >&5
5621 echo $ECHO_N "checking for --${enablestring:-enable}-visibility... $ECHO_C" >&6; }
5622           # Check whether --enable-visibility was given.
5623 if test "${enable_visibility+set}" = set; then
5624   enableval=$enable_visibility;
5625                           if test "$enableval" = yes; then
5626                             wx_cv_use_visibility='wxUSE_VISIBILITY=yes'
5627                           else
5628                             wx_cv_use_visibility='wxUSE_VISIBILITY=no'
5629                           fi
5630
5631 else
5632
5633                           wx_cv_use_visibility='wxUSE_VISIBILITY=${'DEFAULT_wxUSE_VISIBILITY":-$defaultval}"
5634
5635 fi
5636
5637
5638           eval "$wx_cv_use_visibility"
5639
5640           if test x"$enablestring" = xdisable; then
5641             if test $wxUSE_VISIBILITY = no; then
5642               result=yes
5643             else
5644               result=no
5645             fi
5646           else
5647             result=$wxUSE_VISIBILITY
5648           fi
5649
5650           { echo "$as_me:$LINENO: result: $result" >&5
5651 echo "${ECHO_T}$result" >&6; }
5652
5653
5654           enablestring=disable
5655           defaultval=
5656           if test -z "$defaultval"; then
5657               if test x"$enablestring" = xdisable; then
5658                   defaultval=yes
5659               else
5660                   defaultval=no
5661               fi
5662           fi
5663
5664           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tls" >&5
5665 echo $ECHO_N "checking for --${enablestring:-enable}-tls... $ECHO_C" >&6; }
5666           # Check whether --enable-tls was given.
5667 if test "${enable_tls+set}" = set; then
5668   enableval=$enable_tls;
5669                           if test "$enableval" = yes; then
5670                             wx_cv_use_tls='wxUSE_COMPILER_TLS=yes'
5671                           else
5672                             wx_cv_use_tls='wxUSE_COMPILER_TLS=no'
5673                           fi
5674
5675 else
5676
5677                           wx_cv_use_tls='wxUSE_COMPILER_TLS=${'DEFAULT_wxUSE_COMPILER_TLS":-$defaultval}"
5678
5679 fi
5680
5681
5682           eval "$wx_cv_use_tls"
5683
5684           if test x"$enablestring" = xdisable; then
5685             if test $wxUSE_COMPILER_TLS = no; then
5686               result=yes
5687             else
5688               result=no
5689             fi
5690           else
5691             result=$wxUSE_COMPILER_TLS
5692           fi
5693
5694           { echo "$as_me:$LINENO: result: $result" >&5
5695 echo "${ECHO_T}$result" >&6; }
5696
5697
5698
5699
5700           enablestring=
5701           defaultval=$wxUSE_ALL_FEATURES
5702           if test -z "$defaultval"; then
5703               if test x"$enablestring" = xdisable; then
5704                   defaultval=yes
5705               else
5706                   defaultval=no
5707               fi
5708           fi
5709
5710           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
5711 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6; }
5712           # Check whether --enable-intl was given.
5713 if test "${enable_intl+set}" = set; then
5714   enableval=$enable_intl;
5715                           if test "$enableval" = yes; then
5716                             wx_cv_use_intl='wxUSE_INTL=yes'
5717                           else
5718                             wx_cv_use_intl='wxUSE_INTL=no'
5719                           fi
5720
5721 else
5722
5723                           wx_cv_use_intl='wxUSE_INTL=${'DEFAULT_wxUSE_INTL":-$defaultval}"
5724
5725 fi
5726
5727
5728           eval "$wx_cv_use_intl"
5729
5730           if test x"$enablestring" = xdisable; then
5731             if test $wxUSE_INTL = no; then
5732               result=yes
5733             else
5734               result=no
5735             fi
5736           else
5737             result=$wxUSE_INTL
5738           fi
5739
5740           { echo "$as_me:$LINENO: result: $result" >&5
5741 echo "${ECHO_T}$result" >&6; }
5742
5743
5744           enablestring=
5745           defaultval=$wxUSE_ALL_FEATURES
5746           if test -z "$defaultval"; then
5747               if test x"$enablestring" = xdisable; then
5748                   defaultval=yes
5749               else
5750                   defaultval=no
5751               fi
5752           fi
5753
5754           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xlocale" >&5
5755 echo $ECHO_N "checking for --${enablestring:-enable}-xlocale... $ECHO_C" >&6; }
5756           # Check whether --enable-xlocale was given.
5757 if test "${enable_xlocale+set}" = set; then
5758   enableval=$enable_xlocale;
5759                           if test "$enableval" = yes; then
5760                             wx_cv_use_xlocale='wxUSE_XLOCALE=yes'
5761                           else
5762                             wx_cv_use_xlocale='wxUSE_XLOCALE=no'
5763                           fi
5764
5765 else
5766
5767                           wx_cv_use_xlocale='wxUSE_XLOCALE=${'DEFAULT_wxUSE_XLOCALE":-$defaultval}"
5768
5769 fi
5770
5771
5772           eval "$wx_cv_use_xlocale"
5773
5774           if test x"$enablestring" = xdisable; then
5775             if test $wxUSE_XLOCALE = no; then
5776               result=yes
5777             else
5778               result=no
5779             fi
5780           else
5781             result=$wxUSE_XLOCALE
5782           fi
5783
5784           { echo "$as_me:$LINENO: result: $result" >&5
5785 echo "${ECHO_T}$result" >&6; }
5786
5787
5788           enablestring=
5789           defaultval=$wxUSE_ALL_FEATURES
5790           if test -z "$defaultval"; then
5791               if test x"$enablestring" = xdisable; then
5792                   defaultval=yes
5793               else
5794                   defaultval=no
5795               fi
5796           fi
5797
5798           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
5799 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6; }
5800           # Check whether --enable-config was given.
5801 if test "${enable_config+set}" = set; then
5802   enableval=$enable_config;
5803                           if test "$enableval" = yes; then
5804                             wx_cv_use_config='wxUSE_CONFIG=yes'
5805                           else
5806                             wx_cv_use_config='wxUSE_CONFIG=no'
5807                           fi
5808
5809 else
5810
5811                           wx_cv_use_config='wxUSE_CONFIG=${'DEFAULT_wxUSE_CONFIG":-$defaultval}"
5812
5813 fi
5814
5815
5816           eval "$wx_cv_use_config"
5817
5818           if test x"$enablestring" = xdisable; then
5819             if test $wxUSE_CONFIG = no; then
5820               result=yes
5821             else
5822               result=no
5823             fi
5824           else
5825             result=$wxUSE_CONFIG
5826           fi
5827
5828           { echo "$as_me:$LINENO: result: $result" >&5
5829 echo "${ECHO_T}$result" >&6; }
5830
5831
5832
5833           enablestring=
5834           defaultval=$wxUSE_ALL_FEATURES
5835           if test -z "$defaultval"; then
5836               if test x"$enablestring" = xdisable; then
5837                   defaultval=yes
5838               else
5839                   defaultval=no
5840               fi
5841           fi
5842
5843           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
5844 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6; }
5845           # Check whether --enable-protocols was given.
5846 if test "${enable_protocols+set}" = set; then
5847   enableval=$enable_protocols;
5848                           if test "$enableval" = yes; then
5849                             wx_cv_use_protocols='wxUSE_PROTOCOL=yes'
5850                           else
5851                             wx_cv_use_protocols='wxUSE_PROTOCOL=no'
5852                           fi
5853
5854 else
5855
5856                           wx_cv_use_protocols='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
5857
5858 fi
5859
5860
5861           eval "$wx_cv_use_protocols"
5862
5863           if test x"$enablestring" = xdisable; then
5864             if test $wxUSE_PROTOCOL = no; then
5865               result=yes
5866             else
5867               result=no
5868             fi
5869           else
5870             result=$wxUSE_PROTOCOL
5871           fi
5872
5873           { echo "$as_me:$LINENO: result: $result" >&5
5874 echo "${ECHO_T}$result" >&6; }
5875
5876
5877           enablestring=
5878           defaultval=$wxUSE_ALL_FEATURES
5879           if test -z "$defaultval"; then
5880               if test x"$enablestring" = xdisable; then
5881                   defaultval=yes
5882               else
5883                   defaultval=no
5884               fi
5885           fi
5886
5887           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
5888 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6; }
5889           # Check whether --enable-ftp was given.
5890 if test "${enable_ftp+set}" = set; then
5891   enableval=$enable_ftp;
5892                           if test "$enableval" = yes; then
5893                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
5894                           else
5895                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
5896                           fi
5897
5898 else
5899
5900                           wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
5901
5902 fi
5903
5904
5905           eval "$wx_cv_use_ftp"
5906
5907           if test x"$enablestring" = xdisable; then
5908             if test $wxUSE_PROTOCOL_FTP = no; then
5909               result=yes
5910             else
5911               result=no
5912             fi
5913           else
5914             result=$wxUSE_PROTOCOL_FTP
5915           fi
5916
5917           { echo "$as_me:$LINENO: result: $result" >&5
5918 echo "${ECHO_T}$result" >&6; }
5919
5920
5921           enablestring=
5922           defaultval=$wxUSE_ALL_FEATURES
5923           if test -z "$defaultval"; then
5924               if test x"$enablestring" = xdisable; then
5925                   defaultval=yes
5926               else
5927                   defaultval=no
5928               fi
5929           fi
5930
5931           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
5932 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6; }
5933           # Check whether --enable-http was given.
5934 if test "${enable_http+set}" = set; then
5935   enableval=$enable_http;
5936                           if test "$enableval" = yes; then
5937                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
5938                           else
5939                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
5940                           fi
5941
5942 else
5943
5944                           wx_cv_use_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
5945
5946 fi
5947
5948
5949           eval "$wx_cv_use_http"
5950
5951           if test x"$enablestring" = xdisable; then
5952             if test $wxUSE_PROTOCOL_HTTP = no; then
5953               result=yes
5954             else
5955               result=no
5956             fi
5957           else
5958             result=$wxUSE_PROTOCOL_HTTP
5959           fi
5960
5961           { echo "$as_me:$LINENO: result: $result" >&5
5962 echo "${ECHO_T}$result" >&6; }
5963
5964
5965           enablestring=
5966           defaultval=$wxUSE_ALL_FEATURES
5967           if test -z "$defaultval"; then
5968               if test x"$enablestring" = xdisable; then
5969                   defaultval=yes
5970               else
5971                   defaultval=no
5972               fi
5973           fi
5974
5975           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
5976 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6; }
5977           # Check whether --enable-fileproto was given.
5978 if test "${enable_fileproto+set}" = set; then
5979   enableval=$enable_fileproto;
5980                           if test "$enableval" = yes; then
5981                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
5982                           else
5983                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
5984                           fi
5985
5986 else
5987
5988                           wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
5989
5990 fi
5991
5992
5993           eval "$wx_cv_use_fileproto"
5994
5995           if test x"$enablestring" = xdisable; then
5996             if test $wxUSE_PROTOCOL_FILE = no; then
5997               result=yes
5998             else
5999               result=no
6000             fi
6001           else
6002             result=$wxUSE_PROTOCOL_FILE
6003           fi
6004
6005           { echo "$as_me:$LINENO: result: $result" >&5
6006 echo "${ECHO_T}$result" >&6; }
6007
6008
6009           enablestring=
6010           defaultval=$wxUSE_ALL_FEATURES
6011           if test -z "$defaultval"; then
6012               if test x"$enablestring" = xdisable; then
6013                   defaultval=yes
6014               else
6015                   defaultval=no
6016               fi
6017           fi
6018
6019           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
6020 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6; }
6021           # Check whether --enable-sockets was given.
6022 if test "${enable_sockets+set}" = set; then
6023   enableval=$enable_sockets;
6024                           if test "$enableval" = yes; then
6025                             wx_cv_use_sockets='wxUSE_SOCKETS=yes'
6026                           else
6027                             wx_cv_use_sockets='wxUSE_SOCKETS=no'
6028                           fi
6029
6030 else
6031
6032                           wx_cv_use_sockets='wxUSE_SOCKETS=${'DEFAULT_wxUSE_SOCKETS":-$defaultval}"
6033
6034 fi
6035
6036
6037           eval "$wx_cv_use_sockets"
6038
6039           if test x"$enablestring" = xdisable; then
6040             if test $wxUSE_SOCKETS = no; then
6041               result=yes
6042             else
6043               result=no
6044             fi
6045           else
6046             result=$wxUSE_SOCKETS
6047           fi
6048
6049           { echo "$as_me:$LINENO: result: $result" >&5
6050 echo "${ECHO_T}$result" >&6; }
6051
6052
6053           enablestring=
6054           defaultval=$wxUSE_ALL_FEATURES
6055           if test -z "$defaultval"; then
6056               if test x"$enablestring" = xdisable; then
6057                   defaultval=yes
6058               else
6059                   defaultval=no
6060               fi
6061           fi
6062
6063           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipv6" >&5
6064 echo $ECHO_N "checking for --${enablestring:-enable}-ipv6... $ECHO_C" >&6; }
6065           # Check whether --enable-ipv6 was given.
6066 if test "${enable_ipv6+set}" = set; then
6067   enableval=$enable_ipv6;
6068                           if test "$enableval" = yes; then
6069                             wx_cv_use_ipv6='wxUSE_IPV6=yes'
6070                           else
6071                             wx_cv_use_ipv6='wxUSE_IPV6=no'
6072                           fi
6073
6074 else
6075
6076                           wx_cv_use_ipv6='wxUSE_IPV6=${'DEFAULT_wxUSE_IPV6":-$defaultval}"
6077
6078 fi
6079
6080
6081           eval "$wx_cv_use_ipv6"
6082
6083           if test x"$enablestring" = xdisable; then
6084             if test $wxUSE_IPV6 = no; then
6085               result=yes
6086             else
6087               result=no
6088             fi
6089           else
6090             result=$wxUSE_IPV6
6091           fi
6092
6093           { echo "$as_me:$LINENO: result: $result" >&5
6094 echo "${ECHO_T}$result" >&6; }
6095
6096
6097           enablestring=
6098           defaultval=$wxUSE_ALL_FEATURES
6099           if test -z "$defaultval"; then
6100               if test x"$enablestring" = xdisable; then
6101                   defaultval=yes
6102               else
6103                   defaultval=no
6104               fi
6105           fi
6106
6107           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
6108 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6; }
6109           # Check whether --enable-ole was given.
6110 if test "${enable_ole+set}" = set; then
6111   enableval=$enable_ole;
6112                           if test "$enableval" = yes; then
6113                             wx_cv_use_ole='wxUSE_OLE=yes'
6114                           else
6115                             wx_cv_use_ole='wxUSE_OLE=no'
6116                           fi
6117
6118 else
6119
6120                           wx_cv_use_ole='wxUSE_OLE=${'DEFAULT_wxUSE_OLE":-$defaultval}"
6121
6122 fi
6123
6124
6125           eval "$wx_cv_use_ole"
6126
6127           if test x"$enablestring" = xdisable; then
6128             if test $wxUSE_OLE = no; then
6129               result=yes
6130             else
6131               result=no
6132             fi
6133           else
6134             result=$wxUSE_OLE
6135           fi
6136
6137           { echo "$as_me:$LINENO: result: $result" >&5
6138 echo "${ECHO_T}$result" >&6; }
6139
6140
6141           enablestring=
6142           defaultval=$wxUSE_ALL_FEATURES
6143           if test -z "$defaultval"; then
6144               if test x"$enablestring" = xdisable; then
6145                   defaultval=yes
6146               else
6147                   defaultval=no
6148               fi
6149           fi
6150
6151           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
6152 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6; }
6153           # Check whether --enable-dataobj was given.
6154 if test "${enable_dataobj+set}" = set; then
6155   enableval=$enable_dataobj;
6156                           if test "$enableval" = yes; then
6157                             wx_cv_use_dataobj='wxUSE_DATAOBJ=yes'
6158                           else
6159                             wx_cv_use_dataobj='wxUSE_DATAOBJ=no'
6160                           fi
6161
6162 else
6163
6164                           wx_cv_use_dataobj='wxUSE_DATAOBJ=${'DEFAULT_wxUSE_DATAOBJ":-$defaultval}"
6165
6166 fi
6167
6168
6169           eval "$wx_cv_use_dataobj"
6170
6171           if test x"$enablestring" = xdisable; then
6172             if test $wxUSE_DATAOBJ = no; then
6173               result=yes
6174             else
6175               result=no
6176             fi
6177           else
6178             result=$wxUSE_DATAOBJ
6179           fi
6180
6181           { echo "$as_me:$LINENO: result: $result" >&5
6182 echo "${ECHO_T}$result" >&6; }
6183
6184
6185
6186           enablestring=
6187           defaultval=$wxUSE_ALL_FEATURES
6188           if test -z "$defaultval"; then
6189               if test x"$enablestring" = xdisable; then
6190                   defaultval=yes
6191               else
6192                   defaultval=no
6193               fi
6194           fi
6195
6196           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
6197 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6; }
6198           # Check whether --enable-ipc was given.
6199 if test "${enable_ipc+set}" = set; then
6200   enableval=$enable_ipc;
6201                           if test "$enableval" = yes; then
6202                             wx_cv_use_ipc='wxUSE_IPC=yes'
6203                           else
6204                             wx_cv_use_ipc='wxUSE_IPC=no'
6205                           fi
6206
6207 else
6208
6209                           wx_cv_use_ipc='wxUSE_IPC=${'DEFAULT_wxUSE_IPC":-$defaultval}"
6210
6211 fi
6212
6213
6214           eval "$wx_cv_use_ipc"
6215
6216           if test x"$enablestring" = xdisable; then
6217             if test $wxUSE_IPC = no; then
6218               result=yes
6219             else
6220               result=no
6221             fi
6222           else
6223             result=$wxUSE_IPC
6224           fi
6225
6226           { echo "$as_me:$LINENO: result: $result" >&5
6227 echo "${ECHO_T}$result" >&6; }
6228
6229
6230
6231           enablestring=
6232           defaultval=$wxUSE_ALL_FEATURES
6233           if test -z "$defaultval"; then
6234               if test x"$enablestring" = xdisable; then
6235                   defaultval=yes
6236               else
6237                   defaultval=no
6238               fi
6239           fi
6240
6241           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-baseevtloop" >&5
6242 echo $ECHO_N "checking for --${enablestring:-enable}-baseevtloop... $ECHO_C" >&6; }
6243           # Check whether --enable-baseevtloop was given.
6244 if test "${enable_baseevtloop+set}" = set; then
6245   enableval=$enable_baseevtloop;
6246                           if test "$enableval" = yes; then
6247                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=yes'
6248                           else
6249                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=no'
6250                           fi
6251
6252 else
6253
6254                           wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=${'DEFAULT_wxUSE_CONSOLE_EVENTLOOP":-$defaultval}"
6255
6256 fi
6257
6258
6259           eval "$wx_cv_use_baseevtloop"
6260
6261           if test x"$enablestring" = xdisable; then
6262             if test $wxUSE_CONSOLE_EVENTLOOP = no; then
6263               result=yes
6264             else
6265               result=no
6266             fi
6267           else
6268             result=$wxUSE_CONSOLE_EVENTLOOP
6269           fi
6270
6271           { echo "$as_me:$LINENO: result: $result" >&5
6272 echo "${ECHO_T}$result" >&6; }
6273
6274
6275           enablestring=
6276           defaultval=$wxUSE_ALL_FEATURES
6277           if test -z "$defaultval"; then
6278               if test x"$enablestring" = xdisable; then
6279                   defaultval=yes
6280               else
6281                   defaultval=no
6282               fi
6283           fi
6284
6285           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-epollloop" >&5
6286 echo $ECHO_N "checking for --${enablestring:-enable}-epollloop... $ECHO_C" >&6; }
6287           # Check whether --enable-epollloop was given.
6288 if test "${enable_epollloop+set}" = set; then
6289   enableval=$enable_epollloop;
6290                           if test "$enableval" = yes; then
6291                             wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=yes'
6292                           else
6293                             wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=no'
6294                           fi
6295
6296 else
6297
6298                           wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=${'DEFAULT_wxUSE_EPOLL_DISPATCHER":-$defaultval}"
6299
6300 fi
6301
6302
6303           eval "$wx_cv_use_epollloop"
6304
6305           if test x"$enablestring" = xdisable; then
6306             if test $wxUSE_EPOLL_DISPATCHER = no; then
6307               result=yes
6308             else
6309               result=no
6310             fi
6311           else
6312             result=$wxUSE_EPOLL_DISPATCHER
6313           fi
6314
6315           { echo "$as_me:$LINENO: result: $result" >&5
6316 echo "${ECHO_T}$result" >&6; }
6317
6318
6319           enablestring=
6320           defaultval=$wxUSE_ALL_FEATURES
6321           if test -z "$defaultval"; then
6322               if test x"$enablestring" = xdisable; then
6323                   defaultval=yes
6324               else
6325                   defaultval=no
6326               fi
6327           fi
6328
6329           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-selectloop" >&5
6330 echo $ECHO_N "checking for --${enablestring:-enable}-selectloop... $ECHO_C" >&6; }
6331           # Check whether --enable-selectloop was given.
6332 if test "${enable_selectloop+set}" = set; then
6333   enableval=$enable_selectloop;
6334                           if test "$enableval" = yes; then
6335                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=yes'
6336                           else
6337                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=no'
6338                           fi
6339
6340 else
6341
6342                           wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=${'DEFAULT_wxUSE_SELECT_DISPATCHER":-$defaultval}"
6343
6344 fi
6345
6346
6347           eval "$wx_cv_use_selectloop"
6348
6349           if test x"$enablestring" = xdisable; then
6350             if test $wxUSE_SELECT_DISPATCHER = no; then
6351               result=yes
6352             else
6353               result=no
6354             fi
6355           else
6356             result=$wxUSE_SELECT_DISPATCHER
6357           fi
6358
6359           { echo "$as_me:$LINENO: result: $result" >&5
6360 echo "${ECHO_T}$result" >&6; }
6361
6362
6363
6364           enablestring=
6365           defaultval=$wxUSE_ALL_FEATURES
6366           if test -z "$defaultval"; then
6367               if test x"$enablestring" = xdisable; then
6368                   defaultval=yes
6369               else
6370                   defaultval=no
6371               fi
6372           fi
6373
6374           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-any" >&5
6375 echo $ECHO_N "checking for --${enablestring:-enable}-any... $ECHO_C" >&6; }
6376           # Check whether --enable-any was given.
6377 if test "${enable_any+set}" = set; then
6378   enableval=$enable_any;
6379                           if test "$enableval" = yes; then
6380                             wx_cv_use_any='wxUSE_ANY=yes'
6381                           else
6382                             wx_cv_use_any='wxUSE_ANY=no'
6383                           fi
6384
6385 else
6386
6387                           wx_cv_use_any='wxUSE_ANY=${'DEFAULT_wxUSE_ANY":-$defaultval}"
6388
6389 fi
6390
6391
6392           eval "$wx_cv_use_any"
6393
6394           if test x"$enablestring" = xdisable; then
6395             if test $wxUSE_ANY = no; then
6396               result=yes
6397             else
6398               result=no
6399             fi
6400           else
6401             result=$wxUSE_ANY
6402           fi
6403
6404           { echo "$as_me:$LINENO: result: $result" >&5
6405 echo "${ECHO_T}$result" >&6; }
6406
6407
6408           enablestring=
6409           defaultval=$wxUSE_ALL_FEATURES
6410           if test -z "$defaultval"; then
6411               if test x"$enablestring" = xdisable; then
6412                   defaultval=yes
6413               else
6414                   defaultval=no
6415               fi
6416           fi
6417
6418           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
6419 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6; }
6420           # Check whether --enable-apple_ieee was given.
6421 if test "${enable_apple_ieee+set}" = set; then
6422   enableval=$enable_apple_ieee;
6423                           if test "$enableval" = yes; then
6424                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
6425                           else
6426                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
6427                           fi
6428
6429 else
6430
6431                           wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=${'DEFAULT_wxUSE_APPLE_IEEE":-$defaultval}"
6432
6433 fi
6434
6435
6436           eval "$wx_cv_use_apple_ieee"
6437
6438           if test x"$enablestring" = xdisable; then
6439             if test $wxUSE_APPLE_IEEE = no; then
6440               result=yes
6441             else
6442               result=no
6443             fi
6444           else
6445             result=$wxUSE_APPLE_IEEE
6446           fi
6447
6448           { echo "$as_me:$LINENO: result: $result" >&5
6449 echo "${ECHO_T}$result" >&6; }
6450
6451
6452           enablestring=
6453           defaultval=$wxUSE_ALL_FEATURES
6454           if test -z "$defaultval"; then
6455               if test x"$enablestring" = xdisable; then
6456                   defaultval=yes
6457               else
6458                   defaultval=no
6459               fi
6460           fi
6461
6462           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
6463 echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6; }
6464           # Check whether --enable-arcstream was given.
6465 if test "${enable_arcstream+set}" = set; then
6466   enableval=$enable_arcstream;
6467                           if test "$enableval" = yes; then
6468                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
6469                           else
6470                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
6471                           fi
6472
6473 else
6474
6475                           wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=${'DEFAULT_wxUSE_ARCHIVE_STREAMS":-$defaultval}"
6476
6477 fi
6478
6479
6480           eval "$wx_cv_use_arcstream"
6481
6482           if test x"$enablestring" = xdisable; then
6483             if test $wxUSE_ARCHIVE_STREAMS = no; then
6484               result=yes
6485             else
6486               result=no
6487             fi
6488           else
6489             result=$wxUSE_ARCHIVE_STREAMS
6490           fi
6491
6492           { echo "$as_me:$LINENO: result: $result" >&5
6493 echo "${ECHO_T}$result" >&6; }
6494
6495
6496           enablestring=
6497           defaultval=$wxUSE_ALL_FEATURES
6498           if test -z "$defaultval"; then
6499               if test x"$enablestring" = xdisable; then
6500                   defaultval=yes
6501               else
6502                   defaultval=no
6503               fi
6504           fi
6505
6506           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-base64" >&5
6507 echo $ECHO_N "checking for --${enablestring:-enable}-base64... $ECHO_C" >&6; }
6508           # Check whether --enable-base64 was given.
6509 if test "${enable_base64+set}" = set; then
6510   enableval=$enable_base64;
6511                           if test "$enableval" = yes; then
6512                             wx_cv_use_base64='wxUSE_BASE64=yes'
6513                           else
6514                             wx_cv_use_base64='wxUSE_BASE64=no'
6515                           fi
6516
6517 else
6518
6519                           wx_cv_use_base64='wxUSE_BASE64=${'DEFAULT_wxUSE_BASE64":-$defaultval}"
6520
6521 fi
6522
6523
6524           eval "$wx_cv_use_base64"
6525
6526           if test x"$enablestring" = xdisable; then
6527             if test $wxUSE_BASE64 = no; then
6528               result=yes
6529             else
6530               result=no
6531             fi
6532           else
6533             result=$wxUSE_BASE64
6534           fi
6535
6536           { echo "$as_me:$LINENO: result: $result" >&5
6537 echo "${ECHO_T}$result" >&6; }
6538
6539
6540           enablestring=
6541           defaultval=$wxUSE_ALL_FEATURES
6542           if test -z "$defaultval"; then
6543               if test x"$enablestring" = xdisable; then
6544                   defaultval=yes
6545               else
6546                   defaultval=no
6547               fi
6548           fi
6549
6550           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
6551 echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6; }
6552           # Check whether --enable-backtrace was given.
6553 if test "${enable_backtrace+set}" = set; then
6554   enableval=$enable_backtrace;
6555                           if test "$enableval" = yes; then
6556                             wx_cv_use_backtrace='wxUSE_STACKWALKER=yes'
6557                           else
6558                             wx_cv_use_backtrace='wxUSE_STACKWALKER=no'
6559                           fi
6560
6561 else
6562
6563                           wx_cv_use_backtrace='wxUSE_STACKWALKER=${'DEFAULT_wxUSE_STACKWALKER":-$defaultval}"
6564
6565 fi
6566
6567
6568           eval "$wx_cv_use_backtrace"
6569
6570           if test x"$enablestring" = xdisable; then
6571             if test $wxUSE_STACKWALKER = no; then
6572               result=yes
6573             else
6574               result=no
6575             fi
6576           else
6577             result=$wxUSE_STACKWALKER
6578           fi
6579
6580           { echo "$as_me:$LINENO: result: $result" >&5
6581 echo "${ECHO_T}$result" >&6; }
6582
6583
6584           enablestring=
6585           defaultval=$wxUSE_ALL_FEATURES
6586           if test -z "$defaultval"; then
6587               if test x"$enablestring" = xdisable; then
6588                   defaultval=yes
6589               else
6590                   defaultval=no
6591               fi
6592           fi
6593
6594           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
6595 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6; }
6596           # Check whether --enable-catch_segvs was given.
6597 if test "${enable_catch_segvs+set}" = set; then
6598   enableval=$enable_catch_segvs;
6599                           if test "$enableval" = yes; then
6600                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
6601                           else
6602                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
6603                           fi
6604
6605 else
6606
6607                           wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=${'DEFAULT_wxUSE_ON_FATAL_EXCEPTION":-$defaultval}"
6608
6609 fi
6610
6611
6612           eval "$wx_cv_use_catch_segvs"
6613
6614           if test x"$enablestring" = xdisable; then
6615             if test $wxUSE_ON_FATAL_EXCEPTION = no; then
6616               result=yes
6617             else
6618               result=no
6619             fi
6620           else
6621             result=$wxUSE_ON_FATAL_EXCEPTION
6622           fi
6623
6624           { echo "$as_me:$LINENO: result: $result" >&5
6625 echo "${ECHO_T}$result" >&6; }
6626
6627
6628           enablestring=
6629           defaultval=$wxUSE_ALL_FEATURES
6630           if test -z "$defaultval"; then
6631               if test x"$enablestring" = xdisable; then
6632                   defaultval=yes
6633               else
6634                   defaultval=no
6635               fi
6636           fi
6637
6638           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
6639 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6; }
6640           # Check whether --enable-cmdline was given.
6641 if test "${enable_cmdline+set}" = set; then
6642   enableval=$enable_cmdline;
6643                           if test "$enableval" = yes; then
6644                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
6645                           else
6646                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
6647                           fi
6648
6649 else
6650
6651                           wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=${'DEFAULT_wxUSE_CMDLINE_PARSER":-$defaultval}"
6652
6653 fi
6654
6655
6656           eval "$wx_cv_use_cmdline"
6657
6658           if test x"$enablestring" = xdisable; then
6659             if test $wxUSE_CMDLINE_PARSER = no; then
6660               result=yes
6661             else
6662               result=no
6663             fi
6664           else
6665             result=$wxUSE_CMDLINE_PARSER
6666           fi
6667
6668           { echo "$as_me:$LINENO: result: $result" >&5
6669 echo "${ECHO_T}$result" >&6; }
6670
6671
6672           enablestring=
6673           defaultval=$wxUSE_ALL_FEATURES
6674           if test -z "$defaultval"; then
6675               if test x"$enablestring" = xdisable; then
6676                   defaultval=yes
6677               else
6678                   defaultval=no
6679               fi
6680           fi
6681
6682           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
6683 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6; }
6684           # Check whether --enable-datetime was given.
6685 if test "${enable_datetime+set}" = set; then
6686   enableval=$enable_datetime;
6687                           if test "$enableval" = yes; then
6688                             wx_cv_use_datetime='wxUSE_DATETIME=yes'
6689                           else
6690                             wx_cv_use_datetime='wxUSE_DATETIME=no'
6691                           fi
6692
6693 else
6694
6695                           wx_cv_use_datetime='wxUSE_DATETIME=${'DEFAULT_wxUSE_DATETIME":-$defaultval}"
6696
6697 fi
6698
6699
6700           eval "$wx_cv_use_datetime"
6701
6702           if test x"$enablestring" = xdisable; then
6703             if test $wxUSE_DATETIME = no; then
6704               result=yes
6705             else
6706               result=no
6707             fi
6708           else
6709             result=$wxUSE_DATETIME
6710           fi
6711
6712           { echo "$as_me:$LINENO: result: $result" >&5
6713 echo "${ECHO_T}$result" >&6; }
6714
6715
6716           enablestring=
6717           defaultval=$wxUSE_ALL_FEATURES
6718           if test -z "$defaultval"; then
6719               if test x"$enablestring" = xdisable; then
6720                   defaultval=yes
6721               else
6722                   defaultval=no
6723               fi
6724           fi
6725
6726           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
6727 echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6; }
6728           # Check whether --enable-debugreport was given.
6729 if test "${enable_debugreport+set}" = set; then
6730   enableval=$enable_debugreport;
6731                           if test "$enableval" = yes; then
6732                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
6733                           else
6734                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
6735                           fi
6736
6737 else
6738
6739                           wx_cv_use_debugreport='wxUSE_DEBUGREPORT=${'DEFAULT_wxUSE_DEBUGREPORT":-$defaultval}"
6740
6741 fi
6742
6743
6744           eval "$wx_cv_use_debugreport"
6745
6746           if test x"$enablestring" = xdisable; then
6747             if test $wxUSE_DEBUGREPORT = no; then
6748               result=yes
6749             else
6750               result=no
6751             fi
6752           else
6753             result=$wxUSE_DEBUGREPORT
6754           fi
6755
6756           { echo "$as_me:$LINENO: result: $result" >&5
6757 echo "${ECHO_T}$result" >&6; }
6758
6759
6760           enablestring=
6761           defaultval=$wxUSE_ALL_FEATURES
6762           if test -z "$defaultval"; then
6763               if test x"$enablestring" = xdisable; then
6764                   defaultval=yes
6765               else
6766                   defaultval=no
6767               fi
6768           fi
6769
6770           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
6771 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6; }
6772           # Check whether --enable-dialupman was given.
6773 if test "${enable_dialupman+set}" = set; then
6774   enableval=$enable_dialupman;
6775                           if test "$enableval" = yes; then
6776                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
6777                           else
6778                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
6779                           fi
6780
6781 else
6782
6783                           wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=${'DEFAULT_wxUSE_DIALUP_MANAGER":-$defaultval}"
6784
6785 fi
6786
6787
6788           eval "$wx_cv_use_dialupman"
6789
6790           if test x"$enablestring" = xdisable; then
6791             if test $wxUSE_DIALUP_MANAGER = no; then
6792               result=yes
6793             else
6794               result=no
6795             fi
6796           else
6797             result=$wxUSE_DIALUP_MANAGER
6798           fi
6799
6800           { echo "$as_me:$LINENO: result: $result" >&5
6801 echo "${ECHO_T}$result" >&6; }
6802
6803
6804           enablestring=
6805           defaultval=$wxUSE_ALL_FEATURES
6806           if test -z "$defaultval"; then
6807               if test x"$enablestring" = xdisable; then
6808                   defaultval=yes
6809               else
6810                   defaultval=no
6811               fi
6812           fi
6813
6814           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
6815 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6; }
6816           # Check whether --enable-dynlib was given.
6817 if test "${enable_dynlib+set}" = set; then
6818   enableval=$enable_dynlib;
6819                           if test "$enableval" = yes; then
6820                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
6821                           else
6822                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
6823                           fi
6824
6825 else
6826
6827                           wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=${'DEFAULT_wxUSE_DYNLIB_CLASS":-$defaultval}"
6828
6829 fi
6830
6831
6832           eval "$wx_cv_use_dynlib"
6833
6834           if test x"$enablestring" = xdisable; then
6835             if test $wxUSE_DYNLIB_CLASS = no; then
6836               result=yes
6837             else
6838               result=no
6839             fi
6840           else
6841             result=$wxUSE_DYNLIB_CLASS
6842           fi
6843
6844           { echo "$as_me:$LINENO: result: $result" >&5
6845 echo "${ECHO_T}$result" >&6; }
6846
6847
6848           enablestring=
6849           defaultval=$wxUSE_ALL_FEATURES
6850           if test -z "$defaultval"; then
6851               if test x"$enablestring" = xdisable; then
6852                   defaultval=yes
6853               else
6854                   defaultval=no
6855               fi
6856           fi
6857
6858           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
6859 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6; }
6860           # Check whether --enable-dynamicloader was given.
6861 if test "${enable_dynamicloader+set}" = set; then
6862   enableval=$enable_dynamicloader;
6863                           if test "$enableval" = yes; then
6864                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
6865                           else
6866                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
6867                           fi
6868
6869 else
6870
6871                           wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=${'DEFAULT_wxUSE_DYNAMIC_LOADER":-$defaultval}"
6872
6873 fi
6874
6875
6876           eval "$wx_cv_use_dynamicloader"
6877
6878           if test x"$enablestring" = xdisable; then
6879             if test $wxUSE_DYNAMIC_LOADER = no; then
6880               result=yes
6881             else
6882               result=no
6883             fi
6884           else
6885             result=$wxUSE_DYNAMIC_LOADER
6886           fi
6887
6888           { echo "$as_me:$LINENO: result: $result" >&5
6889 echo "${ECHO_T}$result" >&6; }
6890
6891
6892           enablestring=
6893           defaultval=$wxUSE_ALL_FEATURES
6894           if test -z "$defaultval"; then
6895               if test x"$enablestring" = xdisable; then
6896                   defaultval=yes
6897               else
6898                   defaultval=no
6899               fi
6900           fi
6901
6902           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
6903 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6; }
6904           # Check whether --enable-exceptions was given.
6905 if test "${enable_exceptions+set}" = set; then
6906   enableval=$enable_exceptions;
6907                           if test "$enableval" = yes; then
6908                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
6909                           else
6910                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
6911                           fi
6912
6913 else
6914
6915                           wx_cv_use_exceptions='wxUSE_EXCEPTIONS=${'DEFAULT_wxUSE_EXCEPTIONS":-$defaultval}"
6916
6917 fi
6918
6919
6920           eval "$wx_cv_use_exceptions"
6921
6922           if test x"$enablestring" = xdisable; then
6923             if test $wxUSE_EXCEPTIONS = no; then
6924               result=yes
6925             else
6926               result=no
6927             fi
6928           else
6929             result=$wxUSE_EXCEPTIONS
6930           fi
6931
6932           { echo "$as_me:$LINENO: result: $result" >&5
6933 echo "${ECHO_T}$result" >&6; }
6934
6935
6936           enablestring=
6937           defaultval=$wxUSE_ALL_FEATURES
6938           if test -z "$defaultval"; then
6939               if test x"$enablestring" = xdisable; then
6940                   defaultval=yes
6941               else
6942                   defaultval=no
6943               fi
6944           fi
6945
6946           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
6947 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6; }
6948           # Check whether --enable-ffile was given.
6949 if test "${enable_ffile+set}" = set; then
6950   enableval=$enable_ffile;
6951                           if test "$enableval" = yes; then
6952                             wx_cv_use_ffile='wxUSE_FFILE=yes'
6953                           else
6954                             wx_cv_use_ffile='wxUSE_FFILE=no'
6955                           fi
6956
6957 else
6958
6959                           wx_cv_use_ffile='wxUSE_FFILE=${'DEFAULT_wxUSE_FFILE":-$defaultval}"
6960
6961 fi
6962
6963
6964           eval "$wx_cv_use_ffile"
6965
6966           if test x"$enablestring" = xdisable; then
6967             if test $wxUSE_FFILE = no; then
6968               result=yes
6969             else
6970               result=no
6971             fi
6972           else
6973             result=$wxUSE_FFILE
6974           fi
6975
6976           { echo "$as_me:$LINENO: result: $result" >&5
6977 echo "${ECHO_T}$result" >&6; }
6978
6979
6980           enablestring=
6981           defaultval=$wxUSE_ALL_FEATURES
6982           if test -z "$defaultval"; then
6983               if test x"$enablestring" = xdisable; then
6984                   defaultval=yes
6985               else
6986                   defaultval=no
6987               fi
6988           fi
6989
6990           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
6991 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6; }
6992           # Check whether --enable-file was given.
6993 if test "${enable_file+set}" = set; then
6994   enableval=$enable_file;
6995                           if test "$enableval" = yes; then
6996                             wx_cv_use_file='wxUSE_FILE=yes'
6997                           else
6998                             wx_cv_use_file='wxUSE_FILE=no'
6999                           fi
7000
7001 else
7002
7003                           wx_cv_use_file='wxUSE_FILE=${'DEFAULT_wxUSE_FILE":-$defaultval}"
7004
7005 fi
7006
7007
7008           eval "$wx_cv_use_file"
7009
7010           if test x"$enablestring" = xdisable; then
7011             if test $wxUSE_FILE = no; then
7012               result=yes
7013             else
7014               result=no
7015             fi
7016           else
7017             result=$wxUSE_FILE
7018           fi
7019
7020           { echo "$as_me:$LINENO: result: $result" >&5
7021 echo "${ECHO_T}$result" >&6; }
7022
7023
7024           enablestring=
7025           defaultval=$wxUSE_ALL_FEATURES
7026           if test -z "$defaultval"; then
7027               if test x"$enablestring" = xdisable; then
7028                   defaultval=yes
7029               else
7030                   defaultval=no
7031               fi
7032           fi
7033
7034           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filehistory" >&5
7035 echo $ECHO_N "checking for --${enablestring:-enable}-filehistory... $ECHO_C" >&6; }
7036           # Check whether --enable-filehistory was given.
7037 if test "${enable_filehistory+set}" = set; then
7038   enableval=$enable_filehistory;
7039                           if test "$enableval" = yes; then
7040                             wx_cv_use_filehistory='wxUSE_FILE_HISTORY=yes'
7041                           else
7042                             wx_cv_use_filehistory='wxUSE_FILE_HISTORY=no'
7043                           fi
7044
7045 else
7046
7047                           wx_cv_use_filehistory='wxUSE_FILE_HISTORY=${'DEFAULT_wxUSE_FILE_HISTORY":-$defaultval}"
7048
7049 fi
7050
7051
7052           eval "$wx_cv_use_filehistory"
7053
7054           if test x"$enablestring" = xdisable; then
7055             if test $wxUSE_FILE_HISTORY = no; then
7056               result=yes
7057             else
7058               result=no
7059             fi
7060           else
7061             result=$wxUSE_FILE_HISTORY
7062           fi
7063
7064           { echo "$as_me:$LINENO: result: $result" >&5
7065 echo "${ECHO_T}$result" >&6; }
7066
7067
7068           enablestring=
7069           defaultval=$wxUSE_ALL_FEATURES
7070           if test -z "$defaultval"; then
7071               if test x"$enablestring" = xdisable; then
7072                   defaultval=yes
7073               else
7074                   defaultval=no
7075               fi
7076           fi
7077
7078           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
7079 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6; }
7080           # Check whether --enable-filesystem was given.
7081 if test "${enable_filesystem+set}" = set; then
7082   enableval=$enable_filesystem;
7083                           if test "$enableval" = yes; then
7084                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
7085                           else
7086                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=no'
7087                           fi
7088
7089 else
7090
7091                           wx_cv_use_filesystem='wxUSE_FILESYSTEM=${'DEFAULT_wxUSE_FILESYSTEM":-$defaultval}"
7092
7093 fi
7094
7095
7096           eval "$wx_cv_use_filesystem"
7097
7098           if test x"$enablestring" = xdisable; then
7099             if test $wxUSE_FILESYSTEM = no; then
7100               result=yes
7101             else
7102               result=no
7103             fi
7104           else
7105             result=$wxUSE_FILESYSTEM
7106           fi
7107
7108           { echo "$as_me:$LINENO: result: $result" >&5
7109 echo "${ECHO_T}$result" >&6; }
7110
7111
7112           enablestring=
7113           defaultval=$wxUSE_ALL_FEATURES
7114           if test -z "$defaultval"; then
7115               if test x"$enablestring" = xdisable; then
7116                   defaultval=yes
7117               else
7118                   defaultval=no
7119               fi
7120           fi
7121
7122           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontenum" >&5
7123 echo $ECHO_N "checking for --${enablestring:-enable}-fontenum... $ECHO_C" >&6; }
7124           # Check whether --enable-fontenum was given.
7125 if test "${enable_fontenum+set}" = set; then
7126   enableval=$enable_fontenum;
7127                           if test "$enableval" = yes; then
7128                             wx_cv_use_fontenum='wxUSE_FONTENUM=yes'
7129                           else
7130                             wx_cv_use_fontenum='wxUSE_FONTENUM=no'
7131                           fi
7132
7133 else
7134
7135                           wx_cv_use_fontenum='wxUSE_FONTENUM=${'DEFAULT_wxUSE_FONTENUM":-$defaultval}"
7136
7137 fi
7138
7139
7140           eval "$wx_cv_use_fontenum"
7141
7142           if test x"$enablestring" = xdisable; then
7143             if test $wxUSE_FONTENUM = no; then
7144               result=yes
7145             else
7146               result=no
7147             fi
7148           else
7149             result=$wxUSE_FONTENUM
7150           fi
7151
7152           { echo "$as_me:$LINENO: result: $result" >&5
7153 echo "${ECHO_T}$result" >&6; }
7154
7155
7156           enablestring=
7157           defaultval=$wxUSE_ALL_FEATURES
7158           if test -z "$defaultval"; then
7159               if test x"$enablestring" = xdisable; then
7160                   defaultval=yes
7161               else
7162                   defaultval=no
7163               fi
7164           fi
7165
7166           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
7167 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6; }
7168           # Check whether --enable-fontmap was given.
7169 if test "${enable_fontmap+set}" = set; then
7170   enableval=$enable_fontmap;
7171                           if test "$enableval" = yes; then
7172                             wx_cv_use_fontmap='wxUSE_FONTMAP=yes'
7173                           else
7174                             wx_cv_use_fontmap='wxUSE_FONTMAP=no'
7175                           fi
7176
7177 else
7178
7179                           wx_cv_use_fontmap='wxUSE_FONTMAP=${'DEFAULT_wxUSE_FONTMAP":-$defaultval}"
7180
7181 fi
7182
7183
7184           eval "$wx_cv_use_fontmap"
7185
7186           if test x"$enablestring" = xdisable; then
7187             if test $wxUSE_FONTMAP = no; then
7188               result=yes
7189             else
7190               result=no
7191             fi
7192           else
7193             result=$wxUSE_FONTMAP
7194           fi
7195
7196           { echo "$as_me:$LINENO: result: $result" >&5
7197 echo "${ECHO_T}$result" >&6; }
7198
7199
7200           enablestring=
7201           defaultval=$wxUSE_ALL_FEATURES
7202           if test -z "$defaultval"; then
7203               if test x"$enablestring" = xdisable; then
7204                   defaultval=yes
7205               else
7206                   defaultval=no
7207               fi
7208           fi
7209
7210           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_archive" >&5
7211 echo $ECHO_N "checking for --${enablestring:-enable}-fs_archive... $ECHO_C" >&6; }
7212           # Check whether --enable-fs_archive was given.
7213 if test "${enable_fs_archive+set}" = set; then
7214   enableval=$enable_fs_archive;
7215                           if test "$enableval" = yes; then
7216                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=yes'
7217                           else
7218                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=no'
7219                           fi
7220
7221 else
7222
7223                           wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=${'DEFAULT_wxUSE_FS_ARCHIVE":-$defaultval}"
7224
7225 fi
7226
7227
7228           eval "$wx_cv_use_fs_archive"
7229
7230           if test x"$enablestring" = xdisable; then
7231             if test $wxUSE_FS_ARCHIVE = no; then
7232               result=yes
7233             else
7234               result=no
7235             fi
7236           else
7237             result=$wxUSE_FS_ARCHIVE
7238           fi
7239
7240           { echo "$as_me:$LINENO: result: $result" >&5
7241 echo "${ECHO_T}$result" >&6; }
7242
7243
7244           enablestring=
7245           defaultval=$wxUSE_ALL_FEATURES
7246           if test -z "$defaultval"; then
7247               if test x"$enablestring" = xdisable; then
7248                   defaultval=yes
7249               else
7250                   defaultval=no
7251               fi
7252           fi
7253
7254           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
7255 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6; }
7256           # Check whether --enable-fs_inet was given.
7257 if test "${enable_fs_inet+set}" = set; then
7258   enableval=$enable_fs_inet;
7259                           if test "$enableval" = yes; then
7260                             wx_cv_use_fs_inet='wxUSE_FS_INET=yes'
7261                           else
7262                             wx_cv_use_fs_inet='wxUSE_FS_INET=no'
7263                           fi
7264
7265 else
7266
7267                           wx_cv_use_fs_inet='wxUSE_FS_INET=${'DEFAULT_wxUSE_FS_INET":-$defaultval}"
7268
7269 fi
7270
7271
7272           eval "$wx_cv_use_fs_inet"
7273
7274           if test x"$enablestring" = xdisable; then
7275             if test $wxUSE_FS_INET = no; then
7276               result=yes
7277             else
7278               result=no
7279             fi
7280           else
7281             result=$wxUSE_FS_INET
7282           fi
7283
7284           { echo "$as_me:$LINENO: result: $result" >&5
7285 echo "${ECHO_T}$result" >&6; }
7286
7287
7288           enablestring=
7289           defaultval=$wxUSE_ALL_FEATURES
7290           if test -z "$defaultval"; then
7291               if test x"$enablestring" = xdisable; then
7292                   defaultval=yes
7293               else
7294                   defaultval=no
7295               fi
7296           fi
7297
7298           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
7299 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6; }
7300           # Check whether --enable-fs_zip was given.
7301 if test "${enable_fs_zip+set}" = set; then
7302   enableval=$enable_fs_zip;
7303                           if test "$enableval" = yes; then
7304                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
7305                           else
7306                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=no'
7307                           fi
7308
7309 else
7310
7311                           wx_cv_use_fs_zip='wxUSE_FS_ZIP=${'DEFAULT_wxUSE_FS_ZIP":-$defaultval}"
7312
7313 fi
7314
7315
7316           eval "$wx_cv_use_fs_zip"
7317
7318           if test x"$enablestring" = xdisable; then
7319             if test $wxUSE_FS_ZIP = no; then
7320               result=yes
7321             else
7322               result=no
7323             fi
7324           else
7325             result=$wxUSE_FS_ZIP
7326           fi
7327
7328           { echo "$as_me:$LINENO: result: $result" >&5
7329 echo "${ECHO_T}$result" >&6; }
7330
7331
7332           enablestring=
7333           defaultval=$wxUSE_ALL_FEATURES
7334           if test -z "$defaultval"; then
7335               if test x"$enablestring" = xdisable; then
7336                   defaultval=yes
7337               else
7338                   defaultval=no
7339               fi
7340           fi
7341
7342           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fswatcher" >&5
7343 echo $ECHO_N "checking for --${enablestring:-enable}-fswatcher... $ECHO_C" >&6; }
7344           # Check whether --enable-fswatcher was given.
7345 if test "${enable_fswatcher+set}" = set; then
7346   enableval=$enable_fswatcher;
7347                           if test "$enableval" = yes; then
7348                             wx_cv_use_fswatcher='wxUSE_FSWATCHER=yes'
7349                           else
7350                             wx_cv_use_fswatcher='wxUSE_FSWATCHER=no'
7351                           fi
7352
7353 else
7354
7355                           wx_cv_use_fswatcher='wxUSE_FSWATCHER=${'DEFAULT_wxUSE_FSWATCHER":-$defaultval}"
7356
7357 fi
7358
7359
7360           eval "$wx_cv_use_fswatcher"
7361
7362           if test x"$enablestring" = xdisable; then
7363             if test $wxUSE_FSWATCHER = no; then
7364               result=yes
7365             else
7366               result=no
7367             fi
7368           else
7369             result=$wxUSE_FSWATCHER
7370           fi
7371
7372           { echo "$as_me:$LINENO: result: $result" >&5
7373 echo "${ECHO_T}$result" >&6; }
7374
7375
7376           enablestring=
7377           defaultval=$wxUSE_ALL_FEATURES
7378           if test -z "$defaultval"; then
7379               if test x"$enablestring" = xdisable; then
7380                   defaultval=yes
7381               else
7382                   defaultval=no
7383               fi
7384           fi
7385
7386           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
7387 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6; }
7388           # Check whether --enable-geometry was given.
7389 if test "${enable_geometry+set}" = set; then
7390   enableval=$enable_geometry;
7391                           if test "$enableval" = yes; then
7392                             wx_cv_use_geometry='wxUSE_GEOMETRY=yes'
7393                           else
7394                             wx_cv_use_geometry='wxUSE_GEOMETRY=no'
7395                           fi
7396
7397 else
7398
7399                           wx_cv_use_geometry='wxUSE_GEOMETRY=${'DEFAULT_wxUSE_GEOMETRY":-$defaultval}"
7400
7401 fi
7402
7403
7404           eval "$wx_cv_use_geometry"
7405
7406           if test x"$enablestring" = xdisable; then
7407             if test $wxUSE_GEOMETRY = no; then
7408               result=yes
7409             else
7410               result=no
7411             fi
7412           else
7413             result=$wxUSE_GEOMETRY
7414           fi
7415
7416           { echo "$as_me:$LINENO: result: $result" >&5
7417 echo "${ECHO_T}$result" >&6; }
7418
7419
7420           enablestring=
7421           defaultval=$wxUSE_ALL_FEATURES
7422           if test -z "$defaultval"; then
7423               if test x"$enablestring" = xdisable; then
7424                   defaultval=yes
7425               else
7426                   defaultval=no
7427               fi
7428           fi
7429
7430           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
7431 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6; }
7432           # Check whether --enable-log was given.
7433 if test "${enable_log+set}" = set; then
7434   enableval=$enable_log;
7435                           if test "$enableval" = yes; then
7436                             wx_cv_use_log='wxUSE_LOG=yes'
7437                           else
7438                             wx_cv_use_log='wxUSE_LOG=no'
7439                           fi
7440
7441 else
7442
7443                           wx_cv_use_log='wxUSE_LOG=${'DEFAULT_wxUSE_LOG":-$defaultval}"
7444
7445 fi
7446
7447
7448           eval "$wx_cv_use_log"
7449
7450           if test x"$enablestring" = xdisable; then
7451             if test $wxUSE_LOG = no; then
7452               result=yes
7453             else
7454               result=no
7455             fi
7456           else
7457             result=$wxUSE_LOG
7458           fi
7459
7460           { echo "$as_me:$LINENO: result: $result" >&5
7461 echo "${ECHO_T}$result" >&6; }
7462
7463
7464           enablestring=
7465           defaultval=$wxUSE_ALL_FEATURES
7466           if test -z "$defaultval"; then
7467               if test x"$enablestring" = xdisable; then
7468                   defaultval=yes
7469               else
7470                   defaultval=no
7471               fi
7472           fi
7473
7474           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
7475 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6; }
7476           # Check whether --enable-longlong was given.
7477 if test "${enable_longlong+set}" = set; then
7478   enableval=$enable_longlong;
7479                           if test "$enableval" = yes; then
7480                             wx_cv_use_longlong='wxUSE_LONGLONG=yes'
7481                           else
7482                             wx_cv_use_longlong='wxUSE_LONGLONG=no'
7483                           fi
7484
7485 else
7486
7487                           wx_cv_use_longlong='wxUSE_LONGLONG=${'DEFAULT_wxUSE_LONGLONG":-$defaultval}"
7488
7489 fi
7490
7491
7492           eval "$wx_cv_use_longlong"
7493
7494           if test x"$enablestring" = xdisable; then
7495             if test $wxUSE_LONGLONG = no; then
7496               result=yes
7497             else
7498               result=no
7499             fi
7500           else
7501             result=$wxUSE_LONGLONG
7502           fi
7503
7504           { echo "$as_me:$LINENO: result: $result" >&5
7505 echo "${ECHO_T}$result" >&6; }
7506
7507
7508           enablestring=
7509           defaultval=$wxUSE_ALL_FEATURES
7510           if test -z "$defaultval"; then
7511               if test x"$enablestring" = xdisable; then
7512                   defaultval=yes
7513               else
7514                   defaultval=no
7515               fi
7516           fi
7517
7518           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
7519 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6; }
7520           # Check whether --enable-mimetype was given.
7521 if test "${enable_mimetype+set}" = set; then
7522   enableval=$enable_mimetype;
7523                           if test "$enableval" = yes; then
7524                             wx_cv_use_mimetype='wxUSE_MIMETYPE=yes'
7525                           else
7526                             wx_cv_use_mimetype='wxUSE_MIMETYPE=no'
7527                           fi
7528
7529 else
7530
7531                           wx_cv_use_mimetype='wxUSE_MIMETYPE=${'DEFAULT_wxUSE_MIMETYPE":-$defaultval}"
7532
7533 fi
7534
7535
7536           eval "$wx_cv_use_mimetype"
7537
7538           if test x"$enablestring" = xdisable; then
7539             if test $wxUSE_MIMETYPE = no; then
7540               result=yes
7541             else
7542               result=no
7543             fi
7544           else
7545             result=$wxUSE_MIMETYPE
7546           fi
7547
7548           { echo "$as_me:$LINENO: result: $result" >&5
7549 echo "${ECHO_T}$result" >&6; }
7550
7551
7552           enablestring=
7553           defaultval=$wxUSE_ALL_FEATURES
7554           if test -z "$defaultval"; then
7555               if test x"$enablestring" = xdisable; then
7556                   defaultval=yes
7557               else
7558                   defaultval=no
7559               fi
7560           fi
7561
7562           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
7563 echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6; }
7564           # Check whether --enable-printfposparam was given.
7565 if test "${enable_printfposparam+set}" = set; then
7566   enableval=$enable_printfposparam;
7567                           if test "$enableval" = yes; then
7568                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
7569                           else
7570                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
7571                           fi
7572
7573 else
7574
7575                           wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=${'DEFAULT_wxUSE_PRINTF_POS_PARAMS":-$defaultval}"
7576
7577 fi
7578
7579
7580           eval "$wx_cv_use_printfposparam"
7581
7582           if test x"$enablestring" = xdisable; then
7583             if test $wxUSE_PRINTF_POS_PARAMS = no; then
7584               result=yes
7585             else
7586               result=no
7587             fi
7588           else
7589             result=$wxUSE_PRINTF_POS_PARAMS
7590           fi
7591
7592           { echo "$as_me:$LINENO: result: $result" >&5
7593 echo "${ECHO_T}$result" >&6; }
7594
7595
7596           enablestring=
7597           defaultval=$wxUSE_ALL_FEATURES
7598           if test -z "$defaultval"; then
7599               if test x"$enablestring" = xdisable; then
7600                   defaultval=yes
7601               else
7602                   defaultval=no
7603               fi
7604           fi
7605
7606           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
7607 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6; }
7608           # Check whether --enable-snglinst was given.
7609 if test "${enable_snglinst+set}" = set; then
7610   enableval=$enable_snglinst;
7611                           if test "$enableval" = yes; then
7612                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
7613                           else
7614                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
7615                           fi
7616
7617 else
7618
7619                           wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=${'DEFAULT_wxUSE_SNGLINST_CHECKER":-$defaultval}"
7620
7621 fi
7622
7623
7624           eval "$wx_cv_use_snglinst"
7625
7626           if test x"$enablestring" = xdisable; then
7627             if test $wxUSE_SNGLINST_CHECKER = no; then
7628               result=yes
7629             else
7630               result=no
7631             fi
7632           else
7633             result=$wxUSE_SNGLINST_CHECKER
7634           fi
7635
7636           { echo "$as_me:$LINENO: result: $result" >&5
7637 echo "${ECHO_T}$result" >&6; }
7638
7639
7640           enablestring=
7641           defaultval=$wxUSE_ALL_FEATURES
7642           if test -z "$defaultval"; then
7643               if test x"$enablestring" = xdisable; then
7644                   defaultval=yes
7645               else
7646                   defaultval=no
7647               fi
7648           fi
7649
7650           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
7651 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6; }
7652           # Check whether --enable-sound was given.
7653 if test "${enable_sound+set}" = set; then
7654   enableval=$enable_sound;
7655                           if test "$enableval" = yes; then
7656                             wx_cv_use_sound='wxUSE_SOUND=yes'
7657                           else
7658                             wx_cv_use_sound='wxUSE_SOUND=no'
7659                           fi
7660
7661 else
7662
7663                           wx_cv_use_sound='wxUSE_SOUND=${'DEFAULT_wxUSE_SOUND":-$defaultval}"
7664
7665 fi
7666
7667
7668           eval "$wx_cv_use_sound"
7669
7670           if test x"$enablestring" = xdisable; then
7671             if test $wxUSE_SOUND = no; then
7672               result=yes
7673             else
7674               result=no
7675             fi
7676           else
7677             result=$wxUSE_SOUND
7678           fi
7679
7680           { echo "$as_me:$LINENO: result: $result" >&5
7681 echo "${ECHO_T}$result" >&6; }
7682
7683
7684           enablestring=
7685           defaultval=$wxUSE_ALL_FEATURES
7686           if test -z "$defaultval"; then
7687               if test x"$enablestring" = xdisable; then
7688                   defaultval=yes
7689               else
7690                   defaultval=no
7691               fi
7692           fi
7693
7694           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
7695 echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6; }
7696           # Check whether --enable-stdpaths was given.
7697 if test "${enable_stdpaths+set}" = set; then
7698   enableval=$enable_stdpaths;
7699                           if test "$enableval" = yes; then
7700                             wx_cv_use_stdpaths='wxUSE_STDPATHS=yes'
7701                           else
7702                             wx_cv_use_stdpaths='wxUSE_STDPATHS=no'
7703                           fi
7704
7705 else
7706
7707                           wx_cv_use_stdpaths='wxUSE_STDPATHS=${'DEFAULT_wxUSE_STDPATHS":-$defaultval}"
7708
7709 fi
7710
7711
7712           eval "$wx_cv_use_stdpaths"
7713
7714           if test x"$enablestring" = xdisable; then
7715             if test $wxUSE_STDPATHS = no; then
7716               result=yes
7717             else
7718               result=no
7719             fi
7720           else
7721             result=$wxUSE_STDPATHS
7722           fi
7723
7724           { echo "$as_me:$LINENO: result: $result" >&5
7725 echo "${ECHO_T}$result" >&6; }
7726
7727
7728           enablestring=
7729           defaultval=$wxUSE_ALL_FEATURES
7730           if test -z "$defaultval"; then
7731               if test x"$enablestring" = xdisable; then
7732                   defaultval=yes
7733               else
7734                   defaultval=no
7735               fi
7736           fi
7737
7738           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
7739 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6; }
7740           # Check whether --enable-stopwatch was given.
7741 if test "${enable_stopwatch+set}" = set; then
7742   enableval=$enable_stopwatch;
7743                           if test "$enableval" = yes; then
7744                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
7745                           else
7746                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=no'
7747                           fi
7748
7749 else
7750
7751                           wx_cv_use_stopwatch='wxUSE_STOPWATCH=${'DEFAULT_wxUSE_STOPWATCH":-$defaultval}"
7752
7753 fi
7754
7755
7756           eval "$wx_cv_use_stopwatch"
7757
7758           if test x"$enablestring" = xdisable; then
7759             if test $wxUSE_STOPWATCH = no; then
7760               result=yes
7761             else
7762               result=no
7763             fi
7764           else
7765             result=$wxUSE_STOPWATCH
7766           fi
7767
7768           { echo "$as_me:$LINENO: result: $result" >&5
7769 echo "${ECHO_T}$result" >&6; }
7770
7771
7772           enablestring=
7773           defaultval=$wxUSE_ALL_FEATURES
7774           if test -z "$defaultval"; then
7775               if test x"$enablestring" = xdisable; then
7776                   defaultval=yes
7777               else
7778                   defaultval=no
7779               fi
7780           fi
7781
7782           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
7783 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6; }
7784           # Check whether --enable-streams was given.
7785 if test "${enable_streams+set}" = set; then
7786   enableval=$enable_streams;
7787                           if test "$enableval" = yes; then
7788                             wx_cv_use_streams='wxUSE_STREAMS=yes'
7789                           else
7790                             wx_cv_use_streams='wxUSE_STREAMS=no'
7791                           fi
7792
7793 else
7794
7795                           wx_cv_use_streams='wxUSE_STREAMS=${'DEFAULT_wxUSE_STREAMS":-$defaultval}"
7796
7797 fi
7798
7799
7800           eval "$wx_cv_use_streams"
7801
7802           if test x"$enablestring" = xdisable; then
7803             if test $wxUSE_STREAMS = no; then
7804               result=yes
7805             else
7806               result=no
7807             fi
7808           else
7809             result=$wxUSE_STREAMS
7810           fi
7811
7812           { echo "$as_me:$LINENO: result: $result" >&5
7813 echo "${ECHO_T}$result" >&6; }
7814
7815
7816           enablestring=
7817           defaultval=$wxUSE_ALL_FEATURES
7818           if test -z "$defaultval"; then
7819               if test x"$enablestring" = xdisable; then
7820                   defaultval=yes
7821               else
7822                   defaultval=no
7823               fi
7824           fi
7825
7826           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sysoptions" >&5
7827 echo $ECHO_N "checking for --${enablestring:-enable}-sysoptions... $ECHO_C" >&6; }
7828           # Check whether --enable-sysoptions was given.
7829 if test "${enable_sysoptions+set}" = set; then
7830   enableval=$enable_sysoptions;
7831                           if test "$enableval" = yes; then
7832                             wx_cv_use_sysoptions='wxUSE_SYSTEM_OPTIONS=yes'
7833                           else
7834                             wx_cv_use_sysoptions='wxUSE_SYSTEM_OPTIONS=no'
7835                           fi
7836
7837 else
7838
7839                           wx_cv_use_sysoptions='wxUSE_SYSTEM_OPTIONS=${'DEFAULT_wxUSE_SYSTEM_OPTIONS":-$defaultval}"
7840
7841 fi
7842
7843
7844           eval "$wx_cv_use_sysoptions"
7845
7846           if test x"$enablestring" = xdisable; then
7847             if test $wxUSE_SYSTEM_OPTIONS = no; then
7848               result=yes
7849             else
7850               result=no
7851             fi
7852           else
7853             result=$wxUSE_SYSTEM_OPTIONS
7854           fi
7855
7856           { echo "$as_me:$LINENO: result: $result" >&5
7857 echo "${ECHO_T}$result" >&6; }
7858
7859
7860           enablestring=
7861           defaultval=$wxUSE_ALL_FEATURES
7862           if test -z "$defaultval"; then
7863               if test x"$enablestring" = xdisable; then
7864                   defaultval=yes
7865               else
7866                   defaultval=no
7867               fi
7868           fi
7869
7870           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tarstream" >&5
7871 echo $ECHO_N "checking for --${enablestring:-enable}-tarstream... $ECHO_C" >&6; }
7872           # Check whether --enable-tarstream was given.
7873 if test "${enable_tarstream+set}" = set; then
7874   enableval=$enable_tarstream;
7875                           if test "$enableval" = yes; then
7876                             wx_cv_use_tarstream='wxUSE_TARSTREAM=yes'
7877                           else
7878                             wx_cv_use_tarstream='wxUSE_TARSTREAM=no'
7879                           fi
7880
7881 else
7882
7883                           wx_cv_use_tarstream='wxUSE_TARSTREAM=${'DEFAULT_wxUSE_TARSTREAM":-$defaultval}"
7884
7885 fi
7886
7887
7888           eval "$wx_cv_use_tarstream"
7889
7890           if test x"$enablestring" = xdisable; then
7891             if test $wxUSE_TARSTREAM = no; then
7892               result=yes
7893             else
7894               result=no
7895             fi
7896           else
7897             result=$wxUSE_TARSTREAM
7898           fi
7899
7900           { echo "$as_me:$LINENO: result: $result" >&5
7901 echo "${ECHO_T}$result" >&6; }
7902
7903
7904           enablestring=
7905           defaultval=$wxUSE_ALL_FEATURES
7906           if test -z "$defaultval"; then
7907               if test x"$enablestring" = xdisable; then
7908                   defaultval=yes
7909               else
7910                   defaultval=no
7911               fi
7912           fi
7913
7914           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
7915 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6; }
7916           # Check whether --enable-textbuf was given.
7917 if test "${enable_textbuf+set}" = set; then
7918   enableval=$enable_textbuf;
7919                           if test "$enableval" = yes; then
7920                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
7921                           else
7922                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
7923                           fi
7924
7925 else
7926
7927                           wx_cv_use_textbuf='wxUSE_TEXTBUFFER=${'DEFAULT_wxUSE_TEXTBUFFER":-$defaultval}"
7928
7929 fi
7930
7931
7932           eval "$wx_cv_use_textbuf"
7933
7934           if test x"$enablestring" = xdisable; then
7935             if test $wxUSE_TEXTBUFFER = no; then
7936               result=yes
7937             else
7938               result=no
7939             fi
7940           else
7941             result=$wxUSE_TEXTBUFFER
7942           fi
7943
7944           { echo "$as_me:$LINENO: result: $result" >&5
7945 echo "${ECHO_T}$result" >&6; }
7946
7947
7948           enablestring=
7949           defaultval=$wxUSE_ALL_FEATURES
7950           if test -z "$defaultval"; then
7951               if test x"$enablestring" = xdisable; then
7952                   defaultval=yes
7953               else
7954                   defaultval=no
7955               fi
7956           fi
7957
7958           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
7959 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6; }
7960           # Check whether --enable-textfile was given.
7961 if test "${enable_textfile+set}" = set; then
7962   enableval=$enable_textfile;
7963                           if test "$enableval" = yes; then
7964                             wx_cv_use_textfile='wxUSE_TEXTFILE=yes'
7965                           else
7966                             wx_cv_use_textfile='wxUSE_TEXTFILE=no'
7967                           fi
7968
7969 else
7970
7971                           wx_cv_use_textfile='wxUSE_TEXTFILE=${'DEFAULT_wxUSE_TEXTFILE":-$defaultval}"
7972
7973 fi
7974
7975
7976           eval "$wx_cv_use_textfile"
7977
7978           if test x"$enablestring" = xdisable; then
7979             if test $wxUSE_TEXTFILE = no; then
7980               result=yes
7981             else
7982               result=no
7983             fi
7984           else
7985             result=$wxUSE_TEXTFILE
7986           fi
7987
7988           { echo "$as_me:$LINENO: result: $result" >&5
7989 echo "${ECHO_T}$result" >&6; }
7990
7991
7992           enablestring=
7993           defaultval=$wxUSE_ALL_FEATURES
7994           if test -z "$defaultval"; then
7995               if test x"$enablestring" = xdisable; then
7996                   defaultval=yes
7997               else
7998                   defaultval=no
7999               fi
8000           fi
8001
8002           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
8003 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6; }
8004           # Check whether --enable-timer was given.
8005 if test "${enable_timer+set}" = set; then
8006   enableval=$enable_timer;
8007                           if test "$enableval" = yes; then
8008                             wx_cv_use_timer='wxUSE_TIMER=yes'
8009                           else
8010                             wx_cv_use_timer='wxUSE_TIMER=no'
8011                           fi
8012
8013 else
8014
8015                           wx_cv_use_timer='wxUSE_TIMER=${'DEFAULT_wxUSE_TIMER":-$defaultval}"
8016
8017 fi
8018
8019
8020           eval "$wx_cv_use_timer"
8021
8022           if test x"$enablestring" = xdisable; then
8023             if test $wxUSE_TIMER = no; then
8024               result=yes
8025             else
8026               result=no
8027             fi
8028           else
8029             result=$wxUSE_TIMER
8030           fi
8031
8032           { echo "$as_me:$LINENO: result: $result" >&5
8033 echo "${ECHO_T}$result" >&6; }
8034
8035
8036           enablestring=
8037           defaultval=$wxUSE_ALL_FEATURES
8038           if test -z "$defaultval"; then
8039               if test x"$enablestring" = xdisable; then
8040                   defaultval=yes
8041               else
8042                   defaultval=no
8043               fi
8044           fi
8045
8046           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5
8047 echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6; }
8048           # Check whether --enable-variant was given.
8049 if test "${enable_variant+set}" = set; then
8050   enableval=$enable_variant;
8051                           if test "$enableval" = yes; then
8052                             wx_cv_use_variant='wxUSE_VARIANT=yes'
8053                           else
8054                             wx_cv_use_variant='wxUSE_VARIANT=no'
8055                           fi
8056
8057 else
8058
8059                           wx_cv_use_variant='wxUSE_VARIANT=${'DEFAULT_wxUSE_VARIANT":-$defaultval}"
8060
8061 fi
8062
8063
8064           eval "$wx_cv_use_variant"
8065
8066           if test x"$enablestring" = xdisable; then
8067             if test $wxUSE_VARIANT = no; then
8068               result=yes
8069             else
8070               result=no
8071             fi
8072           else
8073             result=$wxUSE_VARIANT
8074           fi
8075
8076           { echo "$as_me:$LINENO: result: $result" >&5
8077 echo "${ECHO_T}$result" >&6; }
8078
8079
8080           enablestring=
8081           defaultval=$wxUSE_ALL_FEATURES
8082           if test -z "$defaultval"; then
8083               if test x"$enablestring" = xdisable; then
8084                   defaultval=yes
8085               else
8086                   defaultval=no
8087               fi
8088           fi
8089
8090           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
8091 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6; }
8092           # Check whether --enable-zipstream was given.
8093 if test "${enable_zipstream+set}" = set; then
8094   enableval=$enable_zipstream;
8095                           if test "$enableval" = yes; then
8096                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
8097                           else
8098                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
8099                           fi
8100
8101 else
8102
8103                           wx_cv_use_zipstream='wxUSE_ZIPSTREAM=${'DEFAULT_wxUSE_ZIPSTREAM":-$defaultval}"
8104
8105 fi
8106
8107
8108           eval "$wx_cv_use_zipstream"
8109
8110           if test x"$enablestring" = xdisable; then
8111             if test $wxUSE_ZIPSTREAM = no; then
8112               result=yes
8113             else
8114               result=no
8115             fi
8116           else
8117             result=$wxUSE_ZIPSTREAM
8118           fi
8119
8120           { echo "$as_me:$LINENO: result: $result" >&5
8121 echo "${ECHO_T}$result" >&6; }
8122
8123
8124
8125           enablestring=
8126           defaultval=$wxUSE_ALL_FEATURES
8127           if test -z "$defaultval"; then
8128               if test x"$enablestring" = xdisable; then
8129                   defaultval=yes
8130               else
8131                   defaultval=no
8132               fi
8133           fi
8134
8135           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
8136 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6; }
8137           # Check whether --enable-url was given.
8138 if test "${enable_url+set}" = set; then
8139   enableval=$enable_url;
8140                           if test "$enableval" = yes; then
8141                             wx_cv_use_url='wxUSE_URL=yes'
8142                           else
8143                             wx_cv_use_url='wxUSE_URL=no'
8144                           fi
8145
8146 else
8147
8148                           wx_cv_use_url='wxUSE_URL=${'DEFAULT_wxUSE_URL":-$defaultval}"
8149
8150 fi
8151
8152
8153           eval "$wx_cv_use_url"
8154
8155           if test x"$enablestring" = xdisable; then
8156             if test $wxUSE_URL = no; then
8157               result=yes
8158             else
8159               result=no
8160             fi
8161           else
8162             result=$wxUSE_URL
8163           fi
8164
8165           { echo "$as_me:$LINENO: result: $result" >&5
8166 echo "${ECHO_T}$result" >&6; }
8167
8168
8169           enablestring=
8170           defaultval=$wxUSE_ALL_FEATURES
8171           if test -z "$defaultval"; then
8172               if test x"$enablestring" = xdisable; then
8173                   defaultval=yes
8174               else
8175                   defaultval=no
8176               fi
8177           fi
8178
8179           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
8180 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6; }
8181           # Check whether --enable-protocol was given.
8182 if test "${enable_protocol+set}" = set; then
8183   enableval=$enable_protocol;
8184                           if test "$enableval" = yes; then
8185                             wx_cv_use_protocol='wxUSE_PROTOCOL=yes'
8186                           else
8187                             wx_cv_use_protocol='wxUSE_PROTOCOL=no'
8188                           fi
8189
8190 else
8191
8192                           wx_cv_use_protocol='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
8193
8194 fi
8195
8196
8197           eval "$wx_cv_use_protocol"
8198
8199           if test x"$enablestring" = xdisable; then
8200             if test $wxUSE_PROTOCOL = no; then
8201               result=yes
8202             else
8203               result=no
8204             fi
8205           else
8206             result=$wxUSE_PROTOCOL
8207           fi
8208
8209           { echo "$as_me:$LINENO: result: $result" >&5
8210 echo "${ECHO_T}$result" >&6; }
8211
8212
8213           enablestring=
8214           defaultval=$wxUSE_ALL_FEATURES
8215           if test -z "$defaultval"; then
8216               if test x"$enablestring" = xdisable; then
8217                   defaultval=yes
8218               else
8219                   defaultval=no
8220               fi
8221           fi
8222
8223           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
8224 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6; }
8225           # Check whether --enable-protocol_http was given.
8226 if test "${enable_protocol_http+set}" = set; then
8227   enableval=$enable_protocol_http;
8228                           if test "$enableval" = yes; then
8229                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
8230                           else
8231                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
8232                           fi
8233
8234 else
8235
8236                           wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
8237
8238 fi
8239
8240
8241           eval "$wx_cv_use_protocol_http"
8242
8243           if test x"$enablestring" = xdisable; then
8244             if test $wxUSE_PROTOCOL_HTTP = no; then
8245               result=yes
8246             else
8247               result=no
8248             fi
8249           else
8250             result=$wxUSE_PROTOCOL_HTTP
8251           fi
8252
8253           { echo "$as_me:$LINENO: result: $result" >&5
8254 echo "${ECHO_T}$result" >&6; }
8255
8256
8257           enablestring=
8258           defaultval=$wxUSE_ALL_FEATURES
8259           if test -z "$defaultval"; then
8260               if test x"$enablestring" = xdisable; then
8261                   defaultval=yes
8262               else
8263                   defaultval=no
8264               fi
8265           fi
8266
8267           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
8268 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6; }
8269           # Check whether --enable-protocol_ftp was given.
8270 if test "${enable_protocol_ftp+set}" = set; then
8271   enableval=$enable_protocol_ftp;
8272                           if test "$enableval" = yes; then
8273                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
8274                           else
8275                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
8276                           fi
8277
8278 else
8279
8280                           wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
8281
8282 fi
8283
8284
8285           eval "$wx_cv_use_protocol_ftp"
8286
8287           if test x"$enablestring" = xdisable; then
8288             if test $wxUSE_PROTOCOL_FTP = no; then
8289               result=yes
8290             else
8291               result=no
8292             fi
8293           else
8294             result=$wxUSE_PROTOCOL_FTP
8295           fi
8296
8297           { echo "$as_me:$LINENO: result: $result" >&5
8298 echo "${ECHO_T}$result" >&6; }
8299
8300
8301           enablestring=
8302           defaultval=$wxUSE_ALL_FEATURES
8303           if test -z "$defaultval"; then
8304               if test x"$enablestring" = xdisable; then
8305                   defaultval=yes
8306               else
8307                   defaultval=no
8308               fi
8309           fi
8310
8311           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
8312 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6; }
8313           # Check whether --enable-protocol_file was given.
8314 if test "${enable_protocol_file+set}" = set; then
8315   enableval=$enable_protocol_file;
8316                           if test "$enableval" = yes; then
8317                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
8318                           else
8319                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
8320                           fi
8321
8322 else
8323
8324                           wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
8325
8326 fi
8327
8328
8329           eval "$wx_cv_use_protocol_file"
8330
8331           if test x"$enablestring" = xdisable; then
8332             if test $wxUSE_PROTOCOL_FILE = no; then
8333               result=yes
8334             else
8335               result=no
8336             fi
8337           else
8338             result=$wxUSE_PROTOCOL_FILE
8339           fi
8340
8341           { echo "$as_me:$LINENO: result: $result" >&5
8342 echo "${ECHO_T}$result" >&6; }
8343
8344
8345
8346           enablestring=
8347           defaultval=$wxUSE_ALL_FEATURES
8348           if test -z "$defaultval"; then
8349               if test x"$enablestring" = xdisable; then
8350                   defaultval=yes
8351               else
8352                   defaultval=no
8353               fi
8354           fi
8355
8356           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
8357 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6; }
8358           # Check whether --enable-threads was given.
8359 if test "${enable_threads+set}" = set; then
8360   enableval=$enable_threads;
8361                           if test "$enableval" = yes; then
8362                             wx_cv_use_threads='wxUSE_THREADS=yes'
8363                           else
8364                             wx_cv_use_threads='wxUSE_THREADS=no'
8365                           fi
8366
8367 else
8368
8369                           wx_cv_use_threads='wxUSE_THREADS=${'DEFAULT_wxUSE_THREADS":-$defaultval}"
8370
8371 fi
8372
8373
8374           eval "$wx_cv_use_threads"
8375
8376           if test x"$enablestring" = xdisable; then
8377             if test $wxUSE_THREADS = no; then
8378               result=yes
8379             else
8380               result=no
8381             fi
8382           else
8383             result=$wxUSE_THREADS
8384           fi
8385
8386           { echo "$as_me:$LINENO: result: $result" >&5
8387 echo "${ECHO_T}$result" >&6; }
8388
8389
8390
8391           enablestring=
8392           defaultval=
8393           if test -z "$defaultval"; then
8394               if test x"$enablestring" = xdisable; then
8395                   defaultval=yes
8396               else
8397                   defaultval=no
8398               fi
8399           fi
8400
8401           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iniconf" >&5
8402 echo $ECHO_N "checking for --${enablestring:-enable}-iniconf... $ECHO_C" >&6; }
8403           # Check whether --enable-iniconf was given.
8404 if test "${enable_iniconf+set}" = set; then
8405   enableval=$enable_iniconf;
8406                           if test "$enableval" = yes; then
8407                             wx_cv_use_iniconf='wxUSE_INICONF=yes'
8408                           else
8409                             wx_cv_use_iniconf='wxUSE_INICONF=no'
8410                           fi
8411
8412 else
8413
8414                           wx_cv_use_iniconf='wxUSE_INICONF=${'DEFAULT_wxUSE_INICONF":-$defaultval}"
8415
8416 fi
8417
8418
8419           eval "$wx_cv_use_iniconf"
8420
8421           if test x"$enablestring" = xdisable; then
8422             if test $wxUSE_INICONF = no; then
8423               result=yes
8424             else
8425               result=no
8426             fi
8427           else
8428             result=$wxUSE_INICONF
8429           fi
8430
8431           { echo "$as_me:$LINENO: result: $result" >&5
8432 echo "${ECHO_T}$result" >&6; }
8433
8434
8435           enablestring=
8436           defaultval=$wxUSE_ALL_FEATURES
8437           if test -z "$defaultval"; then
8438               if test x"$enablestring" = xdisable; then
8439                   defaultval=yes
8440               else
8441                   defaultval=no
8442               fi
8443           fi
8444
8445           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-regkey" >&5
8446 echo $ECHO_N "checking for --${enablestring:-enable}-regkey... $ECHO_C" >&6; }
8447           # Check whether --enable-regkey was given.
8448 if test "${enable_regkey+set}" = set; then
8449   enableval=$enable_regkey;
8450                           if test "$enableval" = yes; then
8451                             wx_cv_use_regkey='wxUSE_REGKEY=yes'
8452                           else
8453                             wx_cv_use_regkey='wxUSE_REGKEY=no'
8454                           fi
8455
8456 else
8457
8458                           wx_cv_use_regkey='wxUSE_REGKEY=${'DEFAULT_wxUSE_REGKEY":-$defaultval}"
8459
8460 fi
8461
8462
8463           eval "$wx_cv_use_regkey"
8464
8465           if test x"$enablestring" = xdisable; then
8466             if test $wxUSE_REGKEY = no; then
8467               result=yes
8468             else
8469               result=no
8470             fi
8471           else
8472             result=$wxUSE_REGKEY
8473           fi
8474
8475           { echo "$as_me:$LINENO: result: $result" >&5
8476 echo "${ECHO_T}$result" >&6; }
8477
8478
8479 if test "$wxUSE_GUI" = "yes"; then
8480
8481
8482
8483           enablestring=
8484           defaultval=$wxUSE_ALL_FEATURES
8485           if test -z "$defaultval"; then
8486               if test x"$enablestring" = xdisable; then
8487                   defaultval=yes
8488               else
8489                   defaultval=no
8490               fi
8491           fi
8492
8493           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
8494 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6; }
8495           # Check whether --enable-docview was given.
8496 if test "${enable_docview+set}" = set; then
8497   enableval=$enable_docview;
8498                           if test "$enableval" = yes; then
8499                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
8500                           else
8501                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
8502                           fi
8503
8504 else
8505
8506                           wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=${'DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE":-$defaultval}"
8507
8508 fi
8509
8510
8511           eval "$wx_cv_use_docview"
8512
8513           if test x"$enablestring" = xdisable; then
8514             if test $wxUSE_DOC_VIEW_ARCHITECTURE = no; then
8515               result=yes
8516             else
8517               result=no
8518             fi
8519           else
8520             result=$wxUSE_DOC_VIEW_ARCHITECTURE
8521           fi
8522
8523           { echo "$as_me:$LINENO: result: $result" >&5
8524 echo "${ECHO_T}$result" >&6; }
8525
8526
8527           enablestring=
8528           defaultval=$wxUSE_ALL_FEATURES
8529           if test -z "$defaultval"; then
8530               if test x"$enablestring" = xdisable; then
8531                   defaultval=yes
8532               else
8533                   defaultval=no
8534               fi
8535           fi
8536
8537           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
8538 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6; }
8539           # Check whether --enable-help was given.
8540 if test "${enable_help+set}" = set; then
8541   enableval=$enable_help;
8542                           if test "$enableval" = yes; then
8543                             wx_cv_use_help='wxUSE_HELP=yes'
8544                           else
8545                             wx_cv_use_help='wxUSE_HELP=no'
8546                           fi
8547
8548 else
8549
8550                           wx_cv_use_help='wxUSE_HELP=${'DEFAULT_wxUSE_HELP":-$defaultval}"
8551
8552 fi
8553
8554
8555           eval "$wx_cv_use_help"
8556
8557           if test x"$enablestring" = xdisable; then
8558             if test $wxUSE_HELP = no; then
8559               result=yes
8560             else
8561               result=no
8562             fi
8563           else
8564             result=$wxUSE_HELP
8565           fi
8566
8567           { echo "$as_me:$LINENO: result: $result" >&5
8568 echo "${ECHO_T}$result" >&6; }
8569
8570
8571           enablestring=
8572           defaultval=$wxUSE_ALL_FEATURES
8573           if test -z "$defaultval"; then
8574               if test x"$enablestring" = xdisable; then
8575                   defaultval=yes
8576               else
8577                   defaultval=no
8578               fi
8579           fi
8580
8581           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
8582 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6; }
8583           # Check whether --enable-mshtmlhelp was given.
8584 if test "${enable_mshtmlhelp+set}" = set; then
8585   enableval=$enable_mshtmlhelp;
8586                           if test "$enableval" = yes; then
8587                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
8588                           else
8589                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
8590                           fi
8591
8592 else
8593
8594                           wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=${'DEFAULT_wxUSE_MS_HTML_HELP":-$defaultval}"
8595
8596 fi
8597
8598
8599           eval "$wx_cv_use_mshtmlhelp"
8600
8601           if test x"$enablestring" = xdisable; then
8602             if test $wxUSE_MS_HTML_HELP = no; then
8603               result=yes
8604             else
8605               result=no
8606             fi
8607           else
8608             result=$wxUSE_MS_HTML_HELP
8609           fi
8610
8611           { echo "$as_me:$LINENO: result: $result" >&5
8612 echo "${ECHO_T}$result" >&6; }
8613
8614
8615           enablestring=
8616           defaultval=$wxUSE_ALL_FEATURES
8617           if test -z "$defaultval"; then
8618               if test x"$enablestring" = xdisable; then
8619                   defaultval=yes
8620               else
8621                   defaultval=no
8622               fi
8623           fi
8624
8625           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
8626 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6; }
8627           # Check whether --enable-html was given.
8628 if test "${enable_html+set}" = set; then
8629   enableval=$enable_html;
8630                           if test "$enableval" = yes; then
8631                             wx_cv_use_html='wxUSE_HTML=yes'
8632                           else
8633                             wx_cv_use_html='wxUSE_HTML=no'
8634                           fi
8635
8636 else
8637
8638                           wx_cv_use_html='wxUSE_HTML=${'DEFAULT_wxUSE_HTML":-$defaultval}"
8639
8640 fi
8641
8642
8643           eval "$wx_cv_use_html"
8644
8645           if test x"$enablestring" = xdisable; then
8646             if test $wxUSE_HTML = no; then
8647               result=yes
8648             else
8649               result=no
8650             fi
8651           else
8652             result=$wxUSE_HTML
8653           fi
8654
8655           { echo "$as_me:$LINENO: result: $result" >&5
8656 echo "${ECHO_T}$result" >&6; }
8657
8658
8659           enablestring=
8660           defaultval=$wxUSE_ALL_FEATURES
8661           if test -z "$defaultval"; then
8662               if test x"$enablestring" = xdisable; then
8663                   defaultval=yes
8664               else
8665                   defaultval=no
8666               fi
8667           fi
8668
8669           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
8670 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6; }
8671           # Check whether --enable-htmlhelp was given.
8672 if test "${enable_htmlhelp+set}" = set; then
8673   enableval=$enable_htmlhelp;
8674                           if test "$enableval" = yes; then
8675                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
8676                           else
8677                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
8678                           fi
8679
8680 else
8681
8682                           wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=${'DEFAULT_wxUSE_WXHTML_HELP":-$defaultval}"
8683
8684 fi
8685
8686
8687           eval "$wx_cv_use_htmlhelp"
8688
8689           if test x"$enablestring" = xdisable; then
8690             if test $wxUSE_WXHTML_HELP = no; then
8691               result=yes
8692             else
8693               result=no
8694             fi
8695           else
8696             result=$wxUSE_WXHTML_HELP
8697           fi
8698
8699           { echo "$as_me:$LINENO: result: $result" >&5
8700 echo "${ECHO_T}$result" >&6; }
8701
8702
8703           enablestring=
8704           defaultval=$wxUSE_ALL_FEATURES
8705           if test -z "$defaultval"; then
8706               if test x"$enablestring" = xdisable; then
8707                   defaultval=yes
8708               else
8709                   defaultval=no
8710               fi
8711           fi
8712
8713           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
8714 echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6; }
8715           # Check whether --enable-xrc was given.
8716 if test "${enable_xrc+set}" = set; then
8717   enableval=$enable_xrc;
8718                           if test "$enableval" = yes; then
8719                             wx_cv_use_xrc='wxUSE_XRC=yes'
8720                           else
8721                             wx_cv_use_xrc='wxUSE_XRC=no'
8722                           fi
8723
8724 else
8725
8726                           wx_cv_use_xrc='wxUSE_XRC=${'DEFAULT_wxUSE_XRC":-$defaultval}"
8727
8728 fi
8729
8730
8731           eval "$wx_cv_use_xrc"
8732
8733           if test x"$enablestring" = xdisable; then
8734             if test $wxUSE_XRC = no; then
8735               result=yes
8736             else
8737               result=no
8738             fi
8739           else
8740             result=$wxUSE_XRC
8741           fi
8742
8743           { echo "$as_me:$LINENO: result: $result" >&5
8744 echo "${ECHO_T}$result" >&6; }
8745
8746
8747           enablestring=
8748           defaultval=$wxUSE_ALL_FEATURES
8749           if test -z "$defaultval"; then
8750               if test x"$enablestring" = xdisable; then
8751                   defaultval=yes
8752               else
8753                   defaultval=no
8754               fi
8755           fi
8756
8757           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
8758 echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6; }
8759           # Check whether --enable-aui was given.
8760 if test "${enable_aui+set}" = set; then
8761   enableval=$enable_aui;
8762                           if test "$enableval" = yes; then
8763                             wx_cv_use_aui='wxUSE_AUI=yes'
8764                           else
8765                             wx_cv_use_aui='wxUSE_AUI=no'
8766                           fi
8767
8768 else
8769
8770                           wx_cv_use_aui='wxUSE_AUI=${'DEFAULT_wxUSE_AUI":-$defaultval}"
8771
8772 fi
8773
8774
8775           eval "$wx_cv_use_aui"
8776
8777           if test x"$enablestring" = xdisable; then
8778             if test $wxUSE_AUI = no; then
8779               result=yes
8780             else
8781               result=no
8782             fi
8783           else
8784             result=$wxUSE_AUI
8785           fi
8786
8787           { echo "$as_me:$LINENO: result: $result" >&5
8788 echo "${ECHO_T}$result" >&6; }
8789
8790
8791           enablestring=
8792           defaultval=$wxUSE_ALL_FEATURES
8793           if test -z "$defaultval"; then
8794               if test x"$enablestring" = xdisable; then
8795                   defaultval=yes
8796               else
8797                   defaultval=no
8798               fi
8799           fi
8800
8801           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-propgrid" >&5
8802 echo $ECHO_N "checking for --${enablestring:-enable}-propgrid... $ECHO_C" >&6; }
8803           # Check whether --enable-propgrid was given.
8804 if test "${enable_propgrid+set}" = set; then
8805   enableval=$enable_propgrid;
8806                           if test "$enableval" = yes; then
8807                             wx_cv_use_propgrid='wxUSE_PROPGRID=yes'
8808                           else
8809                             wx_cv_use_propgrid='wxUSE_PROPGRID=no'
8810                           fi
8811
8812 else
8813
8814                           wx_cv_use_propgrid='wxUSE_PROPGRID=${'DEFAULT_wxUSE_PROPGRID":-$defaultval}"
8815
8816 fi
8817
8818
8819           eval "$wx_cv_use_propgrid"
8820
8821           if test x"$enablestring" = xdisable; then
8822             if test $wxUSE_PROPGRID = no; then
8823               result=yes
8824             else
8825               result=no
8826             fi
8827           else
8828             result=$wxUSE_PROPGRID
8829           fi
8830
8831           { echo "$as_me:$LINENO: result: $result" >&5
8832 echo "${ECHO_T}$result" >&6; }
8833
8834
8835           enablestring=
8836           defaultval=$wxUSE_ALL_FEATURES
8837           if test -z "$defaultval"; then
8838               if test x"$enablestring" = xdisable; then
8839                   defaultval=yes
8840               else
8841                   defaultval=no
8842               fi
8843           fi
8844
8845           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ribbon" >&5
8846 echo $ECHO_N "checking for --${enablestring:-enable}-ribbon... $ECHO_C" >&6; }
8847           # Check whether --enable-ribbon was given.
8848 if test "${enable_ribbon+set}" = set; then
8849   enableval=$enable_ribbon;
8850                           if test "$enableval" = yes; then
8851                             wx_cv_use_ribbon='wxUSE_RIBBON=yes'
8852                           else
8853                             wx_cv_use_ribbon='wxUSE_RIBBON=no'
8854                           fi
8855
8856 else
8857
8858                           wx_cv_use_ribbon='wxUSE_RIBBON=${'DEFAULT_wxUSE_RIBBON":-$defaultval}"
8859
8860 fi
8861
8862
8863           eval "$wx_cv_use_ribbon"
8864
8865           if test x"$enablestring" = xdisable; then
8866             if test $wxUSE_RIBBON = no; then
8867               result=yes
8868             else
8869               result=no
8870             fi
8871           else
8872             result=$wxUSE_RIBBON
8873           fi
8874
8875           { echo "$as_me:$LINENO: result: $result" >&5
8876 echo "${ECHO_T}$result" >&6; }
8877
8878
8879           enablestring=
8880           defaultval=$wxUSE_ALL_FEATURES
8881           if test -z "$defaultval"; then
8882               if test x"$enablestring" = xdisable; then
8883                   defaultval=yes
8884               else
8885                   defaultval=no
8886               fi
8887           fi
8888
8889           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stc" >&5
8890 echo $ECHO_N "checking for --${enablestring:-enable}-stc... $ECHO_C" >&6; }
8891           # Check whether --enable-stc was given.
8892 if test "${enable_stc+set}" = set; then
8893   enableval=$enable_stc;
8894                           if test "$enableval" = yes; then
8895                             wx_cv_use_stc='wxUSE_STC=yes'
8896                           else
8897                             wx_cv_use_stc='wxUSE_STC=no'
8898                           fi
8899
8900 else
8901
8902                           wx_cv_use_stc='wxUSE_STC=${'DEFAULT_wxUSE_STC":-$defaultval}"
8903
8904 fi
8905
8906
8907           eval "$wx_cv_use_stc"
8908
8909           if test x"$enablestring" = xdisable; then
8910             if test $wxUSE_STC = no; then
8911               result=yes
8912             else
8913               result=no
8914             fi
8915           else
8916             result=$wxUSE_STC
8917           fi
8918
8919           { echo "$as_me:$LINENO: result: $result" >&5
8920 echo "${ECHO_T}$result" >&6; }
8921
8922
8923           enablestring=
8924           defaultval=$wxUSE_ALL_FEATURES
8925           if test -z "$defaultval"; then
8926               if test x"$enablestring" = xdisable; then
8927                   defaultval=yes
8928               else
8929                   defaultval=no
8930               fi
8931           fi
8932
8933           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
8934 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6; }
8935           # Check whether --enable-constraints was given.
8936 if test "${enable_constraints+set}" = set; then
8937   enableval=$enable_constraints;
8938                           if test "$enableval" = yes; then
8939                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
8940                           else
8941                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=no'
8942                           fi
8943
8944 else
8945
8946                           wx_cv_use_constraints='wxUSE_CONSTRAINTS=${'DEFAULT_wxUSE_CONSTRAINTS":-$defaultval}"
8947
8948 fi
8949
8950
8951           eval "$wx_cv_use_constraints"
8952
8953           if test x"$enablestring" = xdisable; then
8954             if test $wxUSE_CONSTRAINTS = no; then
8955               result=yes
8956             else
8957               result=no
8958             fi
8959           else
8960             result=$wxUSE_CONSTRAINTS
8961           fi
8962
8963           { echo "$as_me:$LINENO: result: $result" >&5
8964 echo "${ECHO_T}$result" >&6; }
8965
8966
8967           enablestring=
8968           defaultval=$wxUSE_ALL_FEATURES
8969           if test -z "$defaultval"; then
8970               if test x"$enablestring" = xdisable; then
8971                   defaultval=yes
8972               else
8973                   defaultval=no
8974               fi
8975           fi
8976
8977           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
8978 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6; }
8979           # Check whether --enable-loggui was given.
8980 if test "${enable_loggui+set}" = set; then
8981   enableval=$enable_loggui;
8982                           if test "$enableval" = yes; then
8983                             wx_cv_use_loggui='wxUSE_LOGGUI=yes'
8984                           else
8985                             wx_cv_use_loggui='wxUSE_LOGGUI=no'
8986                           fi
8987
8988 else
8989
8990                           wx_cv_use_loggui='wxUSE_LOGGUI=${'DEFAULT_wxUSE_LOGGUI":-$defaultval}"
8991
8992 fi
8993
8994
8995           eval "$wx_cv_use_loggui"
8996
8997           if test x"$enablestring" = xdisable; then
8998             if test $wxUSE_LOGGUI = no; then
8999               result=yes
9000             else
9001               result=no
9002             fi
9003           else
9004             result=$wxUSE_LOGGUI
9005           fi
9006
9007           { echo "$as_me:$LINENO: result: $result" >&5
9008 echo "${ECHO_T}$result" >&6; }
9009
9010
9011           enablestring=
9012           defaultval=$wxUSE_ALL_FEATURES
9013           if test -z "$defaultval"; then
9014               if test x"$enablestring" = xdisable; then
9015                   defaultval=yes
9016               else
9017                   defaultval=no
9018               fi
9019           fi
9020
9021           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
9022 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6; }
9023           # Check whether --enable-logwin was given.
9024 if test "${enable_logwin+set}" = set; then
9025   enableval=$enable_logwin;
9026                           if test "$enableval" = yes; then
9027                             wx_cv_use_logwin='wxUSE_LOGWINDOW=yes'
9028                           else
9029                             wx_cv_use_logwin='wxUSE_LOGWINDOW=no'
9030                           fi
9031
9032 else
9033
9034                           wx_cv_use_logwin='wxUSE_LOGWINDOW=${'DEFAULT_wxUSE_LOGWINDOW":-$defaultval}"
9035
9036 fi
9037
9038
9039           eval "$wx_cv_use_logwin"
9040
9041           if test x"$enablestring" = xdisable; then
9042             if test $wxUSE_LOGWINDOW = no; then
9043               result=yes
9044             else
9045               result=no
9046             fi
9047           else
9048             result=$wxUSE_LOGWINDOW
9049           fi
9050
9051           { echo "$as_me:$LINENO: result: $result" >&5
9052 echo "${ECHO_T}$result" >&6; }
9053
9054
9055           enablestring=
9056           defaultval=$wxUSE_ALL_FEATURES
9057           if test -z "$defaultval"; then
9058               if test x"$enablestring" = xdisable; then
9059                   defaultval=yes
9060               else
9061                   defaultval=no
9062               fi
9063           fi
9064
9065           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
9066 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6; }
9067           # Check whether --enable-logdialog was given.
9068 if test "${enable_logdialog+set}" = set; then
9069   enableval=$enable_logdialog;
9070                           if test "$enableval" = yes; then
9071                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
9072                           else
9073                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=no'
9074                           fi
9075
9076 else
9077
9078                           wx_cv_use_logdialog='wxUSE_LOGDIALOG=${'DEFAULT_wxUSE_LOGDIALOG":-$defaultval}"
9079
9080 fi
9081
9082
9083           eval "$wx_cv_use_logdialog"
9084
9085           if test x"$enablestring" = xdisable; then
9086             if test $wxUSE_LOGDIALOG = no; then
9087               result=yes
9088             else
9089               result=no
9090             fi
9091           else
9092             result=$wxUSE_LOGDIALOG
9093           fi
9094
9095           { echo "$as_me:$LINENO: result: $result" >&5
9096 echo "${ECHO_T}$result" >&6; }
9097
9098
9099           enablestring=
9100           defaultval=$wxUSE_ALL_FEATURES
9101           if test -z "$defaultval"; then
9102               if test x"$enablestring" = xdisable; then
9103                   defaultval=yes
9104               else
9105                   defaultval=no
9106               fi
9107           fi
9108
9109           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
9110 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6; }
9111           # Check whether --enable-mdi was given.
9112 if test "${enable_mdi+set}" = set; then
9113   enableval=$enable_mdi;
9114                           if test "$enableval" = yes; then
9115                             wx_cv_use_mdi='wxUSE_MDI=yes'
9116                           else
9117                             wx_cv_use_mdi='wxUSE_MDI=no'
9118                           fi
9119
9120 else
9121
9122                           wx_cv_use_mdi='wxUSE_MDI=${'DEFAULT_wxUSE_MDI":-$defaultval}"
9123
9124 fi
9125
9126
9127           eval "$wx_cv_use_mdi"
9128
9129           if test x"$enablestring" = xdisable; then
9130             if test $wxUSE_MDI = no; then
9131               result=yes
9132             else
9133               result=no
9134             fi
9135           else
9136             result=$wxUSE_MDI
9137           fi
9138
9139           { echo "$as_me:$LINENO: result: $result" >&5
9140 echo "${ECHO_T}$result" >&6; }
9141
9142
9143           enablestring=
9144           defaultval=$wxUSE_ALL_FEATURES
9145           if test -z "$defaultval"; then
9146               if test x"$enablestring" = xdisable; then
9147                   defaultval=yes
9148               else
9149                   defaultval=no
9150               fi
9151           fi
9152
9153           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
9154 echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6; }
9155           # Check whether --enable-mdidoc was given.
9156 if test "${enable_mdidoc+set}" = set; then
9157   enableval=$enable_mdidoc;
9158                           if test "$enableval" = yes; then
9159                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
9160                           else
9161                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
9162                           fi
9163
9164 else
9165
9166                           wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=${'DEFAULT_wxUSE_MDI_ARCHITECTURE":-$defaultval}"
9167
9168 fi
9169
9170
9171           eval "$wx_cv_use_mdidoc"
9172
9173           if test x"$enablestring" = xdisable; then
9174             if test $wxUSE_MDI_ARCHITECTURE = no; then
9175               result=yes
9176             else
9177               result=no
9178             fi
9179           else
9180             result=$wxUSE_MDI_ARCHITECTURE
9181           fi
9182
9183           { echo "$as_me:$LINENO: result: $result" >&5
9184 echo "${ECHO_T}$result" >&6; }
9185
9186
9187           enablestring=
9188           defaultval=$wxUSE_ALL_FEATURES
9189           if test -z "$defaultval"; then
9190               if test x"$enablestring" = xdisable; then
9191                   defaultval=yes
9192               else
9193                   defaultval=no
9194               fi
9195           fi
9196
9197           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
9198 echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6; }
9199           # Check whether --enable-mediactrl was given.
9200 if test "${enable_mediactrl+set}" = set; then
9201   enableval=$enable_mediactrl;
9202                           if test "$enableval" = yes; then
9203                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
9204                           else
9205                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
9206                           fi
9207
9208 else
9209
9210                           wx_cv_use_mediactrl='wxUSE_MEDIACTRL=${'DEFAULT_wxUSE_MEDIACTRL":-$defaultval}"
9211
9212 fi
9213
9214
9215           eval "$wx_cv_use_mediactrl"
9216
9217           if test x"$enablestring" = xdisable; then
9218             if test $wxUSE_MEDIACTRL = no; then
9219               result=yes
9220             else
9221               result=no
9222             fi
9223           else
9224             result=$wxUSE_MEDIACTRL
9225           fi
9226
9227           { echo "$as_me:$LINENO: result: $result" >&5
9228 echo "${ECHO_T}$result" >&6; }
9229
9230
9231           enablestring=
9232           defaultval=$wxUSE_ALL_FEATURES
9233           if test -z "$defaultval"; then
9234               if test x"$enablestring" = xdisable; then
9235                   defaultval=yes
9236               else
9237                   defaultval=no
9238               fi
9239           fi
9240
9241           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
9242 echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6; }
9243           # Check whether --enable-gstreamer8 was given.
9244 if test "${enable_gstreamer8+set}" = set; then
9245   enableval=$enable_gstreamer8;
9246                           if test "$enableval" = yes; then
9247                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
9248                           else
9249                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
9250                           fi
9251
9252 else
9253
9254                           wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=${'DEFAULT_wxUSE_GSTREAMER8":-$defaultval}"
9255
9256 fi
9257
9258
9259           eval "$wx_cv_use_gstreamer8"
9260
9261           if test x"$enablestring" = xdisable; then
9262             if test $wxUSE_GSTREAMER8 = no; then
9263               result=yes
9264             else
9265               result=no
9266             fi
9267           else
9268             result=$wxUSE_GSTREAMER8
9269           fi
9270
9271           { echo "$as_me:$LINENO: result: $result" >&5
9272 echo "${ECHO_T}$result" >&6; }
9273
9274
9275           enablestring=
9276           defaultval=$wxUSE_ALL_FEATURES
9277           if test -z "$defaultval"; then
9278               if test x"$enablestring" = xdisable; then
9279                   defaultval=yes
9280               else
9281                   defaultval=no
9282               fi
9283           fi
9284
9285           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
9286 echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6; }
9287           # Check whether --enable-webkit was given.
9288 if test "${enable_webkit+set}" = set; then
9289   enableval=$enable_webkit;
9290                           if test "$enableval" = yes; then
9291                             wx_cv_use_webkit='wxUSE_WEBKIT=yes'
9292                           else
9293                             wx_cv_use_webkit='wxUSE_WEBKIT=no'
9294                           fi
9295
9296 else
9297
9298                           wx_cv_use_webkit='wxUSE_WEBKIT=${'DEFAULT_wxUSE_WEBKIT":-$defaultval}"
9299
9300 fi
9301
9302
9303           eval "$wx_cv_use_webkit"
9304
9305           if test x"$enablestring" = xdisable; then
9306             if test $wxUSE_WEBKIT = no; then
9307               result=yes
9308             else
9309               result=no
9310             fi
9311           else
9312             result=$wxUSE_WEBKIT
9313           fi
9314
9315           { echo "$as_me:$LINENO: result: $result" >&5
9316 echo "${ECHO_T}$result" >&6; }
9317
9318
9319           enablestring=
9320           defaultval=$wxUSE_ALL_FEATURES
9321           if test -z "$defaultval"; then
9322               if test x"$enablestring" = xdisable; then
9323                   defaultval=yes
9324               else
9325                   defaultval=no
9326               fi
9327           fi
9328
9329           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richtext" >&5
9330 echo $ECHO_N "checking for --${enablestring:-enable}-richtext... $ECHO_C" >&6; }
9331           # Check whether --enable-richtext was given.
9332 if test "${enable_richtext+set}" = set; then
9333   enableval=$enable_richtext;
9334                           if test "$enableval" = yes; then
9335                             wx_cv_use_richtext='wxUSE_RICHTEXT=yes'
9336                           else
9337                             wx_cv_use_richtext='wxUSE_RICHTEXT=no'
9338                           fi
9339
9340 else
9341
9342                           wx_cv_use_richtext='wxUSE_RICHTEXT=${'DEFAULT_wxUSE_RICHTEXT":-$defaultval}"
9343
9344 fi
9345
9346
9347           eval "$wx_cv_use_richtext"
9348
9349           if test x"$enablestring" = xdisable; then
9350             if test $wxUSE_RICHTEXT = no; then
9351               result=yes
9352             else
9353               result=no
9354             fi
9355           else
9356             result=$wxUSE_RICHTEXT
9357           fi
9358
9359           { echo "$as_me:$LINENO: result: $result" >&5
9360 echo "${ECHO_T}$result" >&6; }
9361
9362
9363           enablestring=
9364           defaultval=$wxUSE_ALL_FEATURES
9365           if test -z "$defaultval"; then
9366               if test x"$enablestring" = xdisable; then
9367                   defaultval=yes
9368               else
9369                   defaultval=no
9370               fi
9371           fi
9372
9373           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
9374 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6; }
9375           # Check whether --enable-postscript was given.
9376 if test "${enable_postscript+set}" = set; then
9377   enableval=$enable_postscript;
9378                           if test "$enableval" = yes; then
9379                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
9380                           else
9381                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=no'
9382                           fi
9383
9384 else
9385
9386                           wx_cv_use_postscript='wxUSE_POSTSCRIPT=${'DEFAULT_wxUSE_POSTSCRIPT":-$defaultval}"
9387
9388 fi
9389
9390
9391           eval "$wx_cv_use_postscript"
9392
9393           if test x"$enablestring" = xdisable; then
9394             if test $wxUSE_POSTSCRIPT = no; then
9395               result=yes
9396             else
9397               result=no
9398             fi
9399           else
9400             result=$wxUSE_POSTSCRIPT
9401           fi
9402
9403           { echo "$as_me:$LINENO: result: $result" >&5
9404 echo "${ECHO_T}$result" >&6; }
9405
9406
9407           enablestring=
9408           defaultval=$wxUSE_ALL_FEATURES
9409           if test -z "$defaultval"; then
9410               if test x"$enablestring" = xdisable; then
9411                   defaultval=yes
9412               else
9413                   defaultval=no
9414               fi
9415           fi
9416
9417           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
9418 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6; }
9419           # Check whether --enable-printarch was given.
9420 if test "${enable_printarch+set}" = set; then
9421   enableval=$enable_printarch;
9422                           if test "$enableval" = yes; then
9423                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
9424                           else
9425                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
9426                           fi
9427
9428 else
9429
9430                           wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=${'DEFAULT_wxUSE_PRINTING_ARCHITECTURE":-$defaultval}"
9431
9432 fi
9433
9434
9435           eval "$wx_cv_use_printarch"
9436
9437           if test x"$enablestring" = xdisable; then
9438             if test $wxUSE_PRINTING_ARCHITECTURE = no; then
9439               result=yes
9440             else
9441               result=no
9442             fi
9443           else
9444             result=$wxUSE_PRINTING_ARCHITECTURE
9445           fi
9446
9447           { echo "$as_me:$LINENO: result: $result" >&5
9448 echo "${ECHO_T}$result" >&6; }
9449
9450
9451           enablestring=
9452           defaultval=$wxUSE_ALL_FEATURES
9453           if test -z "$defaultval"; then
9454               if test x"$enablestring" = xdisable; then
9455                   defaultval=yes
9456               else
9457                   defaultval=no
9458               fi
9459           fi
9460
9461           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-svg" >&5
9462 echo $ECHO_N "checking for --${enablestring:-enable}-svg... $ECHO_C" >&6; }
9463           # Check whether --enable-svg was given.
9464 if test "${enable_svg+set}" = set; then
9465   enableval=$enable_svg;
9466                           if test "$enableval" = yes; then
9467                             wx_cv_use_svg='wxUSE_SVG=yes'
9468                           else
9469                             wx_cv_use_svg='wxUSE_SVG=no'
9470                           fi
9471
9472 else
9473
9474                           wx_cv_use_svg='wxUSE_SVG=${'DEFAULT_wxUSE_SVG":-$defaultval}"
9475
9476 fi
9477
9478
9479           eval "$wx_cv_use_svg"
9480
9481           if test x"$enablestring" = xdisable; then
9482             if test $wxUSE_SVG = no; then
9483               result=yes
9484             else
9485               result=no
9486             fi
9487           else
9488             result=$wxUSE_SVG
9489           fi
9490
9491           { echo "$as_me:$LINENO: result: $result" >&5
9492 echo "${ECHO_T}$result" >&6; }
9493
9494
9495 if test "$wxUSE_MAC" != 1; then
9496
9497           enablestring=
9498           defaultval=$wxUSE_ALL_FEATURES
9499           if test -z "$defaultval"; then
9500               if test x"$enablestring" = xdisable; then
9501                   defaultval=yes
9502               else
9503                   defaultval=no
9504               fi
9505           fi
9506
9507           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5
9508 echo $ECHO_N "checking for --${enablestring:-enable}-graphics_ctx... $ECHO_C" >&6; }
9509           # Check whether --enable-graphics_ctx was given.
9510 if test "${enable_graphics_ctx+set}" = set; then
9511   enableval=$enable_graphics_ctx;
9512                           if test "$enableval" = yes; then
9513                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes'
9514                           else
9515                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no'
9516                           fi
9517
9518 else
9519
9520                           wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=${'DEFAULT_wxUSE_GRAPHICS_CONTEXT":-$defaultval}"
9521
9522 fi
9523
9524
9525           eval "$wx_cv_use_graphics_ctx"
9526
9527           if test x"$enablestring" = xdisable; then
9528             if test $wxUSE_GRAPHICS_CONTEXT = no; then
9529               result=yes
9530             else
9531               result=no
9532             fi
9533           else
9534             result=$wxUSE_GRAPHICS_CONTEXT
9535           fi
9536
9537           { echo "$as_me:$LINENO: result: $result" >&5
9538 echo "${ECHO_T}$result" >&6; }
9539
9540 fi
9541
9542
9543
9544           enablestring=
9545           defaultval=$wxUSE_ALL_FEATURES
9546           if test -z "$defaultval"; then
9547               if test x"$enablestring" = xdisable; then
9548                   defaultval=yes
9549               else
9550                   defaultval=no
9551               fi
9552           fi
9553
9554           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
9555 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6; }
9556           # Check whether --enable-clipboard was given.
9557 if test "${enable_clipboard+set}" = set; then
9558   enableval=$enable_clipboard;
9559                           if test "$enableval" = yes; then
9560                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
9561                           else
9562                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=no'
9563                           fi
9564
9565 else
9566
9567                           wx_cv_use_clipboard='wxUSE_CLIPBOARD=${'DEFAULT_wxUSE_CLIPBOARD":-$defaultval}"
9568
9569 fi
9570
9571
9572           eval "$wx_cv_use_clipboard"
9573
9574           if test x"$enablestring" = xdisable; then
9575             if test $wxUSE_CLIPBOARD = no; then
9576               result=yes
9577             else
9578               result=no
9579             fi
9580           else
9581             result=$wxUSE_CLIPBOARD
9582           fi
9583
9584           { echo "$as_me:$LINENO: result: $result" >&5
9585 echo "${ECHO_T}$result" >&6; }
9586
9587
9588           enablestring=
9589           defaultval=$wxUSE_ALL_FEATURES
9590           if test -z "$defaultval"; then
9591               if test x"$enablestring" = xdisable; then
9592                   defaultval=yes
9593               else
9594                   defaultval=no
9595               fi
9596           fi
9597
9598           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
9599 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6; }
9600           # Check whether --enable-dnd was given.
9601 if test "${enable_dnd+set}" = set; then
9602   enableval=$enable_dnd;
9603                           if test "$enableval" = yes; then
9604                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
9605                           else
9606                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
9607                           fi
9608
9609 else
9610
9611                           wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=${'DEFAULT_wxUSE_DRAG_AND_DROP":-$defaultval}"
9612
9613 fi
9614
9615
9616           eval "$wx_cv_use_dnd"
9617
9618           if test x"$enablestring" = xdisable; then
9619             if test $wxUSE_DRAG_AND_DROP = no; then
9620               result=yes
9621             else
9622               result=no
9623             fi
9624           else
9625             result=$wxUSE_DRAG_AND_DROP
9626           fi
9627
9628           { echo "$as_me:$LINENO: result: $result" >&5
9629 echo "${ECHO_T}$result" >&6; }
9630
9631
9632           enablestring=
9633           defaultval=$wxUSE_ALL_FEATURES
9634           if test -z "$defaultval"; then
9635               if test x"$enablestring" = xdisable; then
9636                   defaultval=yes
9637               else
9638                   defaultval=no
9639               fi
9640           fi
9641
9642           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9643 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
9644           # Check whether --enable-metafile was given.
9645 if test "${enable_metafile+set}" = set; then
9646   enableval=$enable_metafile;
9647                           if test "$enableval" = yes; then
9648                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
9649                           else
9650                             wx_cv_use_metafile='wxUSE_METAFILE=no'
9651                           fi
9652
9653 else
9654
9655                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
9656
9657 fi
9658
9659
9660           eval "$wx_cv_use_metafile"
9661
9662           if test x"$enablestring" = xdisable; then
9663             if test $wxUSE_METAFILE = no; then
9664               result=yes
9665             else
9666               result=no
9667             fi
9668           else
9669             result=$wxUSE_METAFILE
9670           fi
9671
9672           { echo "$as_me:$LINENO: result: $result" >&5
9673 echo "${ECHO_T}$result" >&6; }
9674
9675
9676
9677 DEFAULT_wxUSE_CONTROLS=none
9678
9679           enablestring=disable
9680           defaultval=
9681           if test -z "$defaultval"; then
9682               if test x"$enablestring" = xdisable; then
9683                   defaultval=yes
9684               else
9685                   defaultval=no
9686               fi
9687           fi
9688
9689           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
9690 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6; }
9691           # Check whether --enable-controls was given.
9692 if test "${enable_controls+set}" = set; then
9693   enableval=$enable_controls;
9694                           if test "$enableval" = yes; then
9695                             wx_cv_use_controls='wxUSE_CONTROLS=yes'
9696                           else
9697                             wx_cv_use_controls='wxUSE_CONTROLS=no'
9698                           fi
9699
9700 else
9701
9702                           wx_cv_use_controls='wxUSE_CONTROLS=${'DEFAULT_wxUSE_CONTROLS":-$defaultval}"
9703
9704 fi
9705
9706
9707           eval "$wx_cv_use_controls"
9708
9709           if test x"$enablestring" = xdisable; then
9710             if test $wxUSE_CONTROLS = no; then
9711               result=yes
9712             else
9713               result=no
9714             fi
9715           else
9716             result=$wxUSE_CONTROLS
9717           fi
9718
9719           { echo "$as_me:$LINENO: result: $result" >&5
9720 echo "${ECHO_T}$result" >&6; }
9721
9722
9723 if test "$wxUSE_CONTROLS" = "no"; then
9724     DEFAULT_wxUSE_ACCEL=no
9725     DEFAULT_wxUSE_ANIMATIONCTRL=no
9726     DEFAULT_wxUSE_BMPBUTTON=no
9727     DEFAULT_wxUSE_BUTTON=no
9728     DEFAULT_wxUSE_CALCTRL=no
9729     DEFAULT_wxUSE_CARET=no
9730     DEFAULT_wxUSE_CHECKBOX=no
9731     DEFAULT_wxUSE_CHECKLISTBOX=no
9732     DEFAULT_wxUSE_CHOICE=no
9733     DEFAULT_wxUSE_CHOICEBOOK=no
9734     DEFAULT_wxUSE_COLLPANE=no
9735     DEFAULT_wxUSE_COLOURPICKERCTRL=no
9736     DEFAULT_wxUSE_COMBOBOX=no
9737     DEFAULT_wxUSE_COMBOBOX=no
9738     DEFAULT_wxUSE_DATAVIEWCTRL=no
9739     DEFAULT_wxUSE_DATEPICKCTRL=no
9740     DEFAULT_wxUSE_DETECT_SM=no
9741     DEFAULT_wxUSE_DIRPICKERCTRL=no
9742     DEFAULT_wxUSE_DISPLAY=no
9743     DEFAULT_wxUSE_FILECTRL=no
9744     DEFAULT_wxUSE_FILEPICKERCTRL=no
9745     DEFAULT_wxUSE_FONTPICKERCTRL=no
9746     DEFAULT_wxUSE_GAUGE=no
9747     DEFAULT_wxUSE_GRID=no
9748     DEFAULT_wxUSE_HEADERCTRL=no
9749     DEFAULT_wxUSE_HYPERLINKCTRL=no
9750     DEFAULT_wxUSE_IMAGLIST=no
9751     DEFAULT_wxUSE_LISTBOOK=no
9752     DEFAULT_wxUSE_LISTBOX=no
9753     DEFAULT_wxUSE_LISTCTRL=no
9754     DEFAULT_wxUSE_NOTEBOOK=no
9755     DEFAULT_wxUSE_POPUPWIN=no
9756     DEFAULT_wxUSE_RADIOBOX=no
9757     DEFAULT_wxUSE_RADIOBTN=no
9758     DEFAULT_wxUSE_REARRANGECTRL=no
9759     DEFAULT_wxUSE_SASH=no
9760     DEFAULT_wxUSE_SCROLLBAR=no
9761     DEFAULT_wxUSE_SEARCHCTRL=no
9762     DEFAULT_wxUSE_SLIDER=no
9763     DEFAULT_wxUSE_SPINBTN=no
9764     DEFAULT_wxUSE_SPINCTRL=no
9765     DEFAULT_wxUSE_SPLITTER=no
9766     DEFAULT_wxUSE_STATBMP=no
9767     DEFAULT_wxUSE_STATBOX=no
9768     DEFAULT_wxUSE_STATLINE=no
9769     DEFAULT_wxUSE_STATUSBAR=no
9770     DEFAULT_wxUSE_TIPWINDOW=no
9771     DEFAULT_wxUSE_TOGGLEBTN=no
9772     DEFAULT_wxUSE_TOOLBAR=no
9773     DEFAULT_wxUSE_TOOLBAR_NATIVE=no
9774     DEFAULT_wxUSE_TOOLBOOK=no
9775     DEFAULT_wxUSE_TOOLTIPS=no
9776     DEFAULT_wxUSE_TREEBOOK=no
9777     DEFAULT_wxUSE_TREECTRL=no
9778 fi
9779
9780
9781           enablestring=
9782           defaultval=$wxUSE_ALL_FEATURES
9783           if test -z "$defaultval"; then
9784               if test x"$enablestring" = xdisable; then
9785                   defaultval=yes
9786               else
9787                   defaultval=no
9788               fi
9789           fi
9790
9791           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
9792 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6; }
9793           # Check whether --enable-accel was given.
9794 if test "${enable_accel+set}" = set; then
9795   enableval=$enable_accel;
9796                           if test "$enableval" = yes; then
9797                             wx_cv_use_accel='wxUSE_ACCEL=yes'
9798                           else
9799                             wx_cv_use_accel='wxUSE_ACCEL=no'
9800                           fi
9801
9802 else
9803
9804                           wx_cv_use_accel='wxUSE_ACCEL=${'DEFAULT_wxUSE_ACCEL":-$defaultval}"
9805
9806 fi
9807
9808
9809           eval "$wx_cv_use_accel"
9810
9811           if test x"$enablestring" = xdisable; then
9812             if test $wxUSE_ACCEL = no; then
9813               result=yes
9814             else
9815               result=no
9816             fi
9817           else
9818             result=$wxUSE_ACCEL
9819           fi
9820
9821           { echo "$as_me:$LINENO: result: $result" >&5
9822 echo "${ECHO_T}$result" >&6; }
9823
9824
9825           enablestring=
9826           defaultval=$wxUSE_ALL_FEATURES
9827           if test -z "$defaultval"; then
9828               if test x"$enablestring" = xdisable; then
9829                   defaultval=yes
9830               else
9831                   defaultval=no
9832               fi
9833           fi
9834
9835           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-animatectrl" >&5
9836 echo $ECHO_N "checking for --${enablestring:-enable}-animatectrl... $ECHO_C" >&6; }
9837           # Check whether --enable-animatectrl was given.
9838 if test "${enable_animatectrl+set}" = set; then
9839   enableval=$enable_animatectrl;
9840                           if test "$enableval" = yes; then
9841                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=yes'
9842                           else
9843                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=no'
9844                           fi
9845
9846 else
9847
9848                           wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=${'DEFAULT_wxUSE_ANIMATIONCTRL":-$defaultval}"
9849
9850 fi
9851
9852
9853           eval "$wx_cv_use_animatectrl"
9854
9855           if test x"$enablestring" = xdisable; then
9856             if test $wxUSE_ANIMATIONCTRL = no; then
9857               result=yes
9858             else
9859               result=no
9860             fi
9861           else
9862             result=$wxUSE_ANIMATIONCTRL
9863           fi
9864
9865           { echo "$as_me:$LINENO: result: $result" >&5
9866 echo "${ECHO_T}$result" >&6; }
9867
9868
9869           enablestring=
9870           defaultval=$wxUSE_ALL_FEATURES
9871           if test -z "$defaultval"; then
9872               if test x"$enablestring" = xdisable; then
9873                   defaultval=yes
9874               else
9875                   defaultval=no
9876               fi
9877           fi
9878
9879           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
9880 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6; }
9881           # Check whether --enable-bmpbutton was given.
9882 if test "${enable_bmpbutton+set}" = set; then
9883   enableval=$enable_bmpbutton;
9884                           if test "$enableval" = yes; then
9885                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
9886                           else
9887                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
9888                           fi
9889
9890 else
9891
9892                           wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=${'DEFAULT_wxUSE_BMPBUTTON":-$defaultval}"
9893
9894 fi
9895
9896
9897           eval "$wx_cv_use_bmpbutton"
9898
9899           if test x"$enablestring" = xdisable; then
9900             if test $wxUSE_BMPBUTTON = no; then
9901               result=yes
9902             else
9903               result=no
9904             fi
9905           else
9906             result=$wxUSE_BMPBUTTON
9907           fi
9908
9909           { echo "$as_me:$LINENO: result: $result" >&5
9910 echo "${ECHO_T}$result" >&6; }
9911
9912
9913           enablestring=
9914           defaultval=$wxUSE_ALL_FEATURES
9915           if test -z "$defaultval"; then
9916               if test x"$enablestring" = xdisable; then
9917                   defaultval=yes
9918               else
9919                   defaultval=no
9920               fi
9921           fi
9922
9923           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
9924 echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6; }
9925           # Check whether --enable-bmpcombobox was given.
9926 if test "${enable_bmpcombobox+set}" = set; then
9927   enableval=$enable_bmpcombobox;
9928                           if test "$enableval" = yes; then
9929                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
9930                           else
9931                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
9932                           fi
9933
9934 else
9935
9936                           wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=${'DEFAULT_wxUSE_BITMAPCOMBOBOX":-$defaultval}"
9937
9938 fi
9939
9940
9941           eval "$wx_cv_use_bmpcombobox"
9942
9943           if test x"$enablestring" = xdisable; then
9944             if test $wxUSE_BITMAPCOMBOBOX = no; then
9945               result=yes
9946             else
9947               result=no
9948             fi
9949           else
9950             result=$wxUSE_BITMAPCOMBOBOX
9951           fi
9952
9953           { echo "$as_me:$LINENO: result: $result" >&5
9954 echo "${ECHO_T}$result" >&6; }
9955
9956
9957           enablestring=
9958           defaultval=$wxUSE_ALL_FEATURES
9959           if test -z "$defaultval"; then
9960               if test x"$enablestring" = xdisable; then
9961                   defaultval=yes
9962               else
9963                   defaultval=no
9964               fi
9965           fi
9966
9967           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
9968 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6; }
9969           # Check whether --enable-button was given.
9970 if test "${enable_button+set}" = set; then
9971   enableval=$enable_button;
9972                           if test "$enableval" = yes; then
9973                             wx_cv_use_button='wxUSE_BUTTON=yes'
9974                           else
9975                             wx_cv_use_button='wxUSE_BUTTON=no'
9976                           fi
9977
9978 else
9979
9980                           wx_cv_use_button='wxUSE_BUTTON=${'DEFAULT_wxUSE_BUTTON":-$defaultval}"
9981
9982 fi
9983
9984
9985           eval "$wx_cv_use_button"
9986
9987           if test x"$enablestring" = xdisable; then
9988             if test $wxUSE_BUTTON = no; then
9989               result=yes
9990             else
9991               result=no
9992             fi
9993           else
9994             result=$wxUSE_BUTTON
9995           fi
9996
9997           { echo "$as_me:$LINENO: result: $result" >&5
9998 echo "${ECHO_T}$result" >&6; }
9999
10000
10001           enablestring=
10002           defaultval=$wxUSE_ALL_FEATURES
10003           if test -z "$defaultval"; then
10004               if test x"$enablestring" = xdisable; then
10005                   defaultval=yes
10006               else
10007                   defaultval=no
10008               fi
10009           fi
10010
10011           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
10012 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6; }
10013           # Check whether --enable-calendar was given.
10014 if test "${enable_calendar+set}" = set; then
10015   enableval=$enable_calendar;
10016                           if test "$enableval" = yes; then
10017                             wx_cv_use_calendar='wxUSE_CALCTRL=yes'
10018                           else
10019                             wx_cv_use_calendar='wxUSE_CALCTRL=no'
10020                           fi
10021
10022 else
10023
10024                           wx_cv_use_calendar='wxUSE_CALCTRL=${'DEFAULT_wxUSE_CALCTRL":-$defaultval}"
10025
10026 fi
10027
10028
10029           eval "$wx_cv_use_calendar"
10030
10031           if test x"$enablestring" = xdisable; then
10032             if test $wxUSE_CALCTRL = no; then
10033               result=yes
10034             else
10035               result=no
10036             fi
10037           else
10038             result=$wxUSE_CALCTRL
10039           fi
10040
10041           { echo "$as_me:$LINENO: result: $result" >&5
10042 echo "${ECHO_T}$result" >&6; }
10043
10044
10045           enablestring=
10046           defaultval=$wxUSE_ALL_FEATURES
10047           if test -z "$defaultval"; then
10048               if test x"$enablestring" = xdisable; then
10049                   defaultval=yes
10050               else
10051                   defaultval=no
10052               fi
10053           fi
10054
10055           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
10056 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6; }
10057           # Check whether --enable-caret was given.
10058 if test "${enable_caret+set}" = set; then
10059   enableval=$enable_caret;
10060                           if test "$enableval" = yes; then
10061                             wx_cv_use_caret='wxUSE_CARET=yes'
10062                           else
10063                             wx_cv_use_caret='wxUSE_CARET=no'
10064                           fi
10065
10066 else
10067
10068                           wx_cv_use_caret='wxUSE_CARET=${'DEFAULT_wxUSE_CARET":-$defaultval}"
10069
10070 fi
10071
10072
10073           eval "$wx_cv_use_caret"
10074
10075           if test x"$enablestring" = xdisable; then
10076             if test $wxUSE_CARET = no; then
10077               result=yes
10078             else
10079               result=no
10080             fi
10081           else
10082             result=$wxUSE_CARET
10083           fi
10084
10085           { echo "$as_me:$LINENO: result: $result" >&5
10086 echo "${ECHO_T}$result" >&6; }
10087
10088
10089           enablestring=
10090           defaultval=$wxUSE_ALL_FEATURES
10091           if test -z "$defaultval"; then
10092               if test x"$enablestring" = xdisable; then
10093                   defaultval=yes
10094               else
10095                   defaultval=no
10096               fi
10097           fi
10098
10099           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
10100 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6; }
10101           # Check whether --enable-checkbox was given.
10102 if test "${enable_checkbox+set}" = set; then
10103   enableval=$enable_checkbox;
10104                           if test "$enableval" = yes; then
10105                             wx_cv_use_checkbox='wxUSE_CHECKBOX=yes'
10106                           else
10107                             wx_cv_use_checkbox='wxUSE_CHECKBOX=no'
10108                           fi
10109
10110 else
10111
10112                           wx_cv_use_checkbox='wxUSE_CHECKBOX=${'DEFAULT_wxUSE_CHECKBOX":-$defaultval}"
10113
10114 fi
10115
10116
10117           eval "$wx_cv_use_checkbox"
10118
10119           if test x"$enablestring" = xdisable; then
10120             if test $wxUSE_CHECKBOX = no; then
10121               result=yes
10122             else
10123               result=no
10124             fi
10125           else
10126             result=$wxUSE_CHECKBOX
10127           fi
10128
10129           { echo "$as_me:$LINENO: result: $result" >&5
10130 echo "${ECHO_T}$result" >&6; }
10131
10132
10133           enablestring=
10134           defaultval=$wxUSE_ALL_FEATURES
10135           if test -z "$defaultval"; then
10136               if test x"$enablestring" = xdisable; then
10137                   defaultval=yes
10138               else
10139                   defaultval=no
10140               fi
10141           fi
10142
10143           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
10144 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6; }
10145           # Check whether --enable-checklst was given.
10146 if test "${enable_checklst+set}" = set; then
10147   enableval=$enable_checklst;
10148                           if test "$enableval" = yes; then
10149                             wx_cv_use_checklst='wxUSE_CHECKLST=yes'
10150                           else
10151                             wx_cv_use_checklst='wxUSE_CHECKLST=no'
10152                           fi
10153
10154 else
10155
10156                           wx_cv_use_checklst='wxUSE_CHECKLST=${'DEFAULT_wxUSE_CHECKLST":-$defaultval}"
10157
10158 fi
10159
10160
10161           eval "$wx_cv_use_checklst"
10162
10163           if test x"$enablestring" = xdisable; then
10164             if test $wxUSE_CHECKLST = no; then
10165               result=yes
10166             else
10167               result=no
10168             fi
10169           else
10170             result=$wxUSE_CHECKLST
10171           fi
10172
10173           { echo "$as_me:$LINENO: result: $result" >&5
10174 echo "${ECHO_T}$result" >&6; }
10175
10176
10177           enablestring=
10178           defaultval=$wxUSE_ALL_FEATURES
10179           if test -z "$defaultval"; then
10180               if test x"$enablestring" = xdisable; then
10181                   defaultval=yes
10182               else
10183                   defaultval=no
10184               fi
10185           fi
10186
10187           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
10188 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6; }
10189           # Check whether --enable-choice was given.
10190 if test "${enable_choice+set}" = set; then
10191   enableval=$enable_choice;
10192                           if test "$enableval" = yes; then
10193                             wx_cv_use_choice='wxUSE_CHOICE=yes'
10194                           else
10195                             wx_cv_use_choice='wxUSE_CHOICE=no'
10196                           fi
10197
10198 else
10199
10200                           wx_cv_use_choice='wxUSE_CHOICE=${'DEFAULT_wxUSE_CHOICE":-$defaultval}"
10201
10202 fi
10203
10204
10205           eval "$wx_cv_use_choice"
10206
10207           if test x"$enablestring" = xdisable; then
10208             if test $wxUSE_CHOICE = no; then
10209               result=yes
10210             else
10211               result=no
10212             fi
10213           else
10214             result=$wxUSE_CHOICE
10215           fi
10216
10217           { echo "$as_me:$LINENO: result: $result" >&5
10218 echo "${ECHO_T}$result" >&6; }
10219
10220
10221           enablestring=
10222           defaultval=$wxUSE_ALL_FEATURES
10223           if test -z "$defaultval"; then
10224               if test x"$enablestring" = xdisable; then
10225                   defaultval=yes
10226               else
10227                   defaultval=no
10228               fi
10229           fi
10230
10231           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
10232 echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6; }
10233           # Check whether --enable-choicebook was given.
10234 if test "${enable_choicebook+set}" = set; then
10235   enableval=$enable_choicebook;
10236                           if test "$enableval" = yes; then
10237                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
10238                           else
10239                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
10240                           fi
10241
10242 else
10243
10244                           wx_cv_use_choicebook='wxUSE_CHOICEBOOK=${'DEFAULT_wxUSE_CHOICEBOOK":-$defaultval}"
10245
10246 fi
10247
10248
10249           eval "$wx_cv_use_choicebook"
10250
10251           if test x"$enablestring" = xdisable; then
10252             if test $wxUSE_CHOICEBOOK = no; then
10253               result=yes
10254             else
10255               result=no
10256             fi
10257           else
10258             result=$wxUSE_CHOICEBOOK
10259           fi
10260
10261           { echo "$as_me:$LINENO: result: $result" >&5
10262 echo "${ECHO_T}$result" >&6; }
10263
10264
10265           enablestring=
10266           defaultval=$wxUSE_ALL_FEATURES
10267           if test -z "$defaultval"; then
10268               if test x"$enablestring" = xdisable; then
10269                   defaultval=yes
10270               else
10271                   defaultval=no
10272               fi
10273           fi
10274
10275           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-collpane" >&5
10276 echo $ECHO_N "checking for --${enablestring:-enable}-collpane... $ECHO_C" >&6; }
10277           # Check whether --enable-collpane was given.
10278 if test "${enable_collpane+set}" = set; then
10279   enableval=$enable_collpane;
10280                           if test "$enableval" = yes; then
10281                             wx_cv_use_collpane='wxUSE_COLLPANE=yes'
10282                           else
10283                             wx_cv_use_collpane='wxUSE_COLLPANE=no'
10284                           fi
10285
10286 else
10287
10288                           wx_cv_use_collpane='wxUSE_COLLPANE=${'DEFAULT_wxUSE_COLLPANE":-$defaultval}"
10289
10290 fi
10291
10292
10293           eval "$wx_cv_use_collpane"
10294
10295           if test x"$enablestring" = xdisable; then
10296             if test $wxUSE_COLLPANE = no; then
10297               result=yes
10298             else
10299               result=no
10300             fi
10301           else
10302             result=$wxUSE_COLLPANE
10303           fi
10304
10305           { echo "$as_me:$LINENO: result: $result" >&5
10306 echo "${ECHO_T}$result" >&6; }
10307
10308
10309           enablestring=
10310           defaultval=$wxUSE_ALL_FEATURES
10311           if test -z "$defaultval"; then
10312               if test x"$enablestring" = xdisable; then
10313                   defaultval=yes
10314               else
10315                   defaultval=no
10316               fi
10317           fi
10318
10319           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
10320 echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6; }
10321           # Check whether --enable-colourpicker was given.
10322 if test "${enable_colourpicker+set}" = set; then
10323   enableval=$enable_colourpicker;
10324                           if test "$enableval" = yes; then
10325                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
10326                           else
10327                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
10328                           fi
10329
10330 else
10331
10332                           wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=${'DEFAULT_wxUSE_COLOURPICKERCTRL":-$defaultval}"
10333
10334 fi
10335
10336
10337           eval "$wx_cv_use_colourpicker"
10338
10339           if test x"$enablestring" = xdisable; then
10340             if test $wxUSE_COLOURPICKERCTRL = no; then
10341               result=yes
10342             else
10343               result=no
10344             fi
10345           else
10346             result=$wxUSE_COLOURPICKERCTRL
10347           fi
10348
10349           { echo "$as_me:$LINENO: result: $result" >&5
10350 echo "${ECHO_T}$result" >&6; }
10351
10352
10353           enablestring=
10354           defaultval=$wxUSE_ALL_FEATURES
10355           if test -z "$defaultval"; then
10356               if test x"$enablestring" = xdisable; then
10357                   defaultval=yes
10358               else
10359                   defaultval=no
10360               fi
10361           fi
10362
10363           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
10364 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6; }
10365           # Check whether --enable-combobox was given.
10366 if test "${enable_combobox+set}" = set; then
10367   enableval=$enable_combobox;
10368                           if test "$enableval" = yes; then
10369                             wx_cv_use_combobox='wxUSE_COMBOBOX=yes'
10370                           else
10371                             wx_cv_use_combobox='wxUSE_COMBOBOX=no'
10372                           fi
10373
10374 else
10375
10376                           wx_cv_use_combobox='wxUSE_COMBOBOX=${'DEFAULT_wxUSE_COMBOBOX":-$defaultval}"
10377
10378 fi
10379
10380
10381           eval "$wx_cv_use_combobox"
10382
10383           if test x"$enablestring" = xdisable; then
10384             if test $wxUSE_COMBOBOX = no; then
10385               result=yes
10386             else
10387               result=no
10388             fi
10389           else
10390             result=$wxUSE_COMBOBOX
10391           fi
10392
10393           { echo "$as_me:$LINENO: result: $result" >&5
10394 echo "${ECHO_T}$result" >&6; }
10395
10396
10397           enablestring=
10398           defaultval=$wxUSE_ALL_FEATURES
10399           if test -z "$defaultval"; then
10400               if test x"$enablestring" = xdisable; then
10401                   defaultval=yes
10402               else
10403                   defaultval=no
10404               fi
10405           fi
10406
10407           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
10408 echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6; }
10409           # Check whether --enable-comboctrl was given.
10410 if test "${enable_comboctrl+set}" = set; then
10411   enableval=$enable_comboctrl;
10412                           if test "$enableval" = yes; then
10413                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
10414                           else
10415                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
10416                           fi
10417
10418 else
10419
10420                           wx_cv_use_comboctrl='wxUSE_COMBOCTRL=${'DEFAULT_wxUSE_COMBOCTRL":-$defaultval}"
10421
10422 fi
10423
10424
10425           eval "$wx_cv_use_comboctrl"
10426
10427           if test x"$enablestring" = xdisable; then
10428             if test $wxUSE_COMBOCTRL = no; then
10429               result=yes
10430             else
10431               result=no
10432             fi
10433           else
10434             result=$wxUSE_COMBOCTRL
10435           fi
10436
10437           { echo "$as_me:$LINENO: result: $result" >&5
10438 echo "${ECHO_T}$result" >&6; }
10439
10440
10441           enablestring=
10442           defaultval=$wxUSE_ALL_FEATURES
10443           if test -z "$defaultval"; then
10444               if test x"$enablestring" = xdisable; then
10445                   defaultval=yes
10446               else
10447                   defaultval=no
10448               fi
10449           fi
10450
10451           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
10452 echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6; }
10453           # Check whether --enable-dataviewctrl was given.
10454 if test "${enable_dataviewctrl+set}" = set; then
10455   enableval=$enable_dataviewctrl;
10456                           if test "$enableval" = yes; then
10457                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
10458                           else
10459                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
10460                           fi
10461
10462 else
10463
10464                           wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=${'DEFAULT_wxUSE_DATAVIEWCTRL":-$defaultval}"
10465
10466 fi
10467
10468
10469           eval "$wx_cv_use_dataviewctrl"
10470
10471           if test x"$enablestring" = xdisable; then
10472             if test $wxUSE_DATAVIEWCTRL = no; then
10473               result=yes
10474             else
10475               result=no
10476             fi
10477           else
10478             result=$wxUSE_DATAVIEWCTRL
10479           fi
10480
10481           { echo "$as_me:$LINENO: result: $result" >&5
10482 echo "${ECHO_T}$result" >&6; }
10483
10484
10485           enablestring=
10486           defaultval=$wxUSE_ALL_FEATURES
10487           if test -z "$defaultval"; then
10488               if test x"$enablestring" = xdisable; then
10489                   defaultval=yes
10490               else
10491                   defaultval=no
10492               fi
10493           fi
10494
10495           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
10496 echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6; }
10497           # Check whether --enable-datepick was given.
10498 if test "${enable_datepick+set}" = set; then
10499   enableval=$enable_datepick;
10500                           if test "$enableval" = yes; then
10501                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
10502                           else
10503                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
10504                           fi
10505
10506 else
10507
10508                           wx_cv_use_datepick='wxUSE_DATEPICKCTRL=${'DEFAULT_wxUSE_DATEPICKCTRL":-$defaultval}"
10509
10510 fi
10511
10512
10513           eval "$wx_cv_use_datepick"
10514
10515           if test x"$enablestring" = xdisable; then
10516             if test $wxUSE_DATEPICKCTRL = no; then
10517               result=yes
10518             else
10519               result=no
10520             fi
10521           else
10522             result=$wxUSE_DATEPICKCTRL
10523           fi
10524
10525           { echo "$as_me:$LINENO: result: $result" >&5
10526 echo "${ECHO_T}$result" >&6; }
10527
10528
10529           enablestring=
10530           defaultval=$wxUSE_ALL_FEATURES
10531           if test -z "$defaultval"; then
10532               if test x"$enablestring" = xdisable; then
10533                   defaultval=yes
10534               else
10535                   defaultval=no
10536               fi
10537           fi
10538
10539           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-detect_sm" >&5
10540 echo $ECHO_N "checking for --${enablestring:-enable}-detect_sm... $ECHO_C" >&6; }
10541           # Check whether --enable-detect_sm was given.
10542 if test "${enable_detect_sm+set}" = set; then
10543   enableval=$enable_detect_sm;
10544                           if test "$enableval" = yes; then
10545                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=yes'
10546                           else
10547                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=no'
10548                           fi
10549
10550 else
10551
10552                           wx_cv_use_detect_sm='wxUSE_DETECT_SM=${'DEFAULT_wxUSE_DETECT_SM":-$defaultval}"
10553
10554 fi
10555
10556
10557           eval "$wx_cv_use_detect_sm"
10558
10559           if test x"$enablestring" = xdisable; then
10560             if test $wxUSE_DETECT_SM = no; then
10561               result=yes
10562             else
10563               result=no
10564             fi
10565           else
10566             result=$wxUSE_DETECT_SM
10567           fi
10568
10569           { echo "$as_me:$LINENO: result: $result" >&5
10570 echo "${ECHO_T}$result" >&6; }
10571
10572
10573           enablestring=
10574           defaultval=$wxUSE_ALL_FEATURES
10575           if test -z "$defaultval"; then
10576               if test x"$enablestring" = xdisable; then
10577                   defaultval=yes
10578               else
10579                   defaultval=no
10580               fi
10581           fi
10582
10583           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
10584 echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6; }
10585           # Check whether --enable-dirpicker was given.
10586 if test "${enable_dirpicker+set}" = set; then
10587   enableval=$enable_dirpicker;
10588                           if test "$enableval" = yes; then
10589                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
10590                           else
10591                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
10592                           fi
10593
10594 else
10595
10596                           wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=${'DEFAULT_wxUSE_DIRPICKERCTRL":-$defaultval}"
10597
10598 fi
10599
10600
10601           eval "$wx_cv_use_dirpicker"
10602
10603           if test x"$enablestring" = xdisable; then
10604             if test $wxUSE_DIRPICKERCTRL = no; then
10605               result=yes
10606             else
10607               result=no
10608             fi
10609           else
10610             result=$wxUSE_DIRPICKERCTRL
10611           fi
10612
10613           { echo "$as_me:$LINENO: result: $result" >&5
10614 echo "${ECHO_T}$result" >&6; }
10615
10616
10617           enablestring=
10618           defaultval=$wxUSE_ALL_FEATURES
10619           if test -z "$defaultval"; then
10620               if test x"$enablestring" = xdisable; then
10621                   defaultval=yes
10622               else
10623                   defaultval=no
10624               fi
10625           fi
10626
10627           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
10628 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6; }
10629           # Check whether --enable-display was given.
10630 if test "${enable_display+set}" = set; then
10631   enableval=$enable_display;
10632                           if test "$enableval" = yes; then
10633                             wx_cv_use_display='wxUSE_DISPLAY=yes'
10634                           else
10635                             wx_cv_use_display='wxUSE_DISPLAY=no'
10636                           fi
10637
10638 else
10639
10640                           wx_cv_use_display='wxUSE_DISPLAY=${'DEFAULT_wxUSE_DISPLAY":-$defaultval}"
10641
10642 fi
10643
10644
10645           eval "$wx_cv_use_display"
10646
10647           if test x"$enablestring" = xdisable; then
10648             if test $wxUSE_DISPLAY = no; then
10649               result=yes
10650             else
10651               result=no
10652             fi
10653           else
10654             result=$wxUSE_DISPLAY
10655           fi
10656
10657           { echo "$as_me:$LINENO: result: $result" >&5
10658 echo "${ECHO_T}$result" >&6; }
10659
10660
10661           enablestring=
10662           defaultval=$wxUSE_ALL_FEATURES
10663           if test -z "$defaultval"; then
10664               if test x"$enablestring" = xdisable; then
10665                   defaultval=yes
10666               else
10667                   defaultval=no
10668               fi
10669           fi
10670
10671           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-editablebox" >&5
10672 echo $ECHO_N "checking for --${enablestring:-enable}-editablebox... $ECHO_C" >&6; }
10673           # Check whether --enable-editablebox was given.
10674 if test "${enable_editablebox+set}" = set; then
10675   enableval=$enable_editablebox;
10676                           if test "$enableval" = yes; then
10677                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=yes'
10678                           else
10679                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=no'
10680                           fi
10681
10682 else
10683
10684                           wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=${'DEFAULT_wxUSE_EDITABLELISTBOX":-$defaultval}"
10685
10686 fi
10687
10688
10689           eval "$wx_cv_use_editablebox"
10690
10691           if test x"$enablestring" = xdisable; then
10692             if test $wxUSE_EDITABLELISTBOX = no; then
10693               result=yes
10694             else
10695               result=no
10696             fi
10697           else
10698             result=$wxUSE_EDITABLELISTBOX
10699           fi
10700
10701           { echo "$as_me:$LINENO: result: $result" >&5
10702 echo "${ECHO_T}$result" >&6; }
10703
10704
10705           enablestring=
10706           defaultval=$wxUSE_ALL_FEATURES
10707           if test -z "$defaultval"; then
10708               if test x"$enablestring" = xdisable; then
10709                   defaultval=yes
10710               else
10711                   defaultval=no
10712               fi
10713           fi
10714
10715           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filectrl" >&5
10716 echo $ECHO_N "checking for --${enablestring:-enable}-filectrl... $ECHO_C" >&6; }
10717           # Check whether --enable-filectrl was given.
10718 if test "${enable_filectrl+set}" = set; then
10719   enableval=$enable_filectrl;
10720                           if test "$enableval" = yes; then
10721                             wx_cv_use_filectrl='wxUSE_FILECTRL=yes'
10722                           else
10723                             wx_cv_use_filectrl='wxUSE_FILECTRL=no'
10724                           fi
10725
10726 else
10727
10728                           wx_cv_use_filectrl='wxUSE_FILECTRL=${'DEFAULT_wxUSE_FILECTRL":-$defaultval}"
10729
10730 fi
10731
10732
10733           eval "$wx_cv_use_filectrl"
10734
10735           if test x"$enablestring" = xdisable; then
10736             if test $wxUSE_FILECTRL = no; then
10737               result=yes
10738             else
10739               result=no
10740             fi
10741           else
10742             result=$wxUSE_FILECTRL
10743           fi
10744
10745           { echo "$as_me:$LINENO: result: $result" >&5
10746 echo "${ECHO_T}$result" >&6; }
10747
10748
10749           enablestring=
10750           defaultval=$wxUSE_ALL_FEATURES
10751           if test -z "$defaultval"; then
10752               if test x"$enablestring" = xdisable; then
10753                   defaultval=yes
10754               else
10755                   defaultval=no
10756               fi
10757           fi
10758
10759           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
10760 echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6; }
10761           # Check whether --enable-filepicker was given.
10762 if test "${enable_filepicker+set}" = set; then
10763   enableval=$enable_filepicker;
10764                           if test "$enableval" = yes; then
10765                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
10766                           else
10767                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
10768                           fi
10769
10770 else
10771
10772                           wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=${'DEFAULT_wxUSE_FILEPICKERCTRL":-$defaultval}"
10773
10774 fi
10775
10776
10777           eval "$wx_cv_use_filepicker"
10778
10779           if test x"$enablestring" = xdisable; then
10780             if test $wxUSE_FILEPICKERCTRL = no; then
10781               result=yes
10782             else
10783               result=no
10784             fi
10785           else
10786             result=$wxUSE_FILEPICKERCTRL
10787           fi
10788
10789           { echo "$as_me:$LINENO: result: $result" >&5
10790 echo "${ECHO_T}$result" >&6; }
10791
10792
10793           enablestring=
10794           defaultval=$wxUSE_ALL_FEATURES
10795           if test -z "$defaultval"; then
10796               if test x"$enablestring" = xdisable; then
10797                   defaultval=yes
10798               else
10799                   defaultval=no
10800               fi
10801           fi
10802
10803           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
10804 echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6; }
10805           # Check whether --enable-fontpicker was given.
10806 if test "${enable_fontpicker+set}" = set; then
10807   enableval=$enable_fontpicker;
10808                           if test "$enableval" = yes; then
10809                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
10810                           else
10811                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
10812                           fi
10813
10814 else
10815
10816                           wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=${'DEFAULT_wxUSE_FONTPICKERCTRL":-$defaultval}"
10817
10818 fi
10819
10820
10821           eval "$wx_cv_use_fontpicker"
10822
10823           if test x"$enablestring" = xdisable; then
10824             if test $wxUSE_FONTPICKERCTRL = no; then
10825               result=yes
10826             else
10827               result=no
10828             fi
10829           else
10830             result=$wxUSE_FONTPICKERCTRL
10831           fi
10832
10833           { echo "$as_me:$LINENO: result: $result" >&5
10834 echo "${ECHO_T}$result" >&6; }
10835
10836
10837           enablestring=
10838           defaultval=$wxUSE_ALL_FEATURES
10839           if test -z "$defaultval"; then
10840               if test x"$enablestring" = xdisable; then
10841                   defaultval=yes
10842               else
10843                   defaultval=no
10844               fi
10845           fi
10846
10847           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
10848 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6; }
10849           # Check whether --enable-gauge was given.
10850 if test "${enable_gauge+set}" = set; then
10851   enableval=$enable_gauge;
10852                           if test "$enableval" = yes; then
10853                             wx_cv_use_gauge='wxUSE_GAUGE=yes'
10854                           else
10855                             wx_cv_use_gauge='wxUSE_GAUGE=no'
10856                           fi
10857
10858 else
10859
10860                           wx_cv_use_gauge='wxUSE_GAUGE=${'DEFAULT_wxUSE_GAUGE":-$defaultval}"
10861
10862 fi
10863
10864
10865           eval "$wx_cv_use_gauge"
10866
10867           if test x"$enablestring" = xdisable; then
10868             if test $wxUSE_GAUGE = no; then
10869               result=yes
10870             else
10871               result=no
10872             fi
10873           else
10874             result=$wxUSE_GAUGE
10875           fi
10876
10877           { echo "$as_me:$LINENO: result: $result" >&5
10878 echo "${ECHO_T}$result" >&6; }
10879
10880
10881           enablestring=
10882           defaultval=$wxUSE_ALL_FEATURES
10883           if test -z "$defaultval"; then
10884               if test x"$enablestring" = xdisable; then
10885                   defaultval=yes
10886               else
10887                   defaultval=no
10888               fi
10889           fi
10890
10891           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
10892 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6; }
10893           # Check whether --enable-grid was given.
10894 if test "${enable_grid+set}" = set; then
10895   enableval=$enable_grid;
10896                           if test "$enableval" = yes; then
10897                             wx_cv_use_grid='wxUSE_GRID=yes'
10898                           else
10899                             wx_cv_use_grid='wxUSE_GRID=no'
10900                           fi
10901
10902 else
10903
10904                           wx_cv_use_grid='wxUSE_GRID=${'DEFAULT_wxUSE_GRID":-$defaultval}"
10905
10906 fi
10907
10908
10909           eval "$wx_cv_use_grid"
10910
10911           if test x"$enablestring" = xdisable; then
10912             if test $wxUSE_GRID = no; then
10913               result=yes
10914             else
10915               result=no
10916             fi
10917           else
10918             result=$wxUSE_GRID
10919           fi
10920
10921           { echo "$as_me:$LINENO: result: $result" >&5
10922 echo "${ECHO_T}$result" >&6; }
10923
10924
10925           enablestring=
10926           defaultval=$wxUSE_ALL_FEATURES
10927           if test -z "$defaultval"; then
10928               if test x"$enablestring" = xdisable; then
10929                   defaultval=yes
10930               else
10931                   defaultval=no
10932               fi
10933           fi
10934
10935           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-headerctrl" >&5
10936 echo $ECHO_N "checking for --${enablestring:-enable}-headerctrl... $ECHO_C" >&6; }
10937           # Check whether --enable-headerctrl was given.
10938 if test "${enable_headerctrl+set}" = set; then
10939   enableval=$enable_headerctrl;
10940                           if test "$enableval" = yes; then
10941                             wx_cv_use_headerctrl='wxUSE_HEADERCTRL=yes'
10942                           else
10943                             wx_cv_use_headerctrl='wxUSE_HEADERCTRL=no'
10944                           fi
10945
10946 else
10947
10948                           wx_cv_use_headerctrl='wxUSE_HEADERCTRL=${'DEFAULT_wxUSE_HEADERCTRL":-$defaultval}"
10949
10950 fi
10951
10952
10953           eval "$wx_cv_use_headerctrl"
10954
10955           if test x"$enablestring" = xdisable; then
10956             if test $wxUSE_HEADERCTRL = no; then
10957               result=yes
10958             else
10959               result=no
10960             fi
10961           else
10962             result=$wxUSE_HEADERCTRL
10963           fi
10964
10965           { echo "$as_me:$LINENO: result: $result" >&5
10966 echo "${ECHO_T}$result" >&6; }
10967
10968
10969           enablestring=
10970           defaultval=$wxUSE_ALL_FEATURES
10971           if test -z "$defaultval"; then
10972               if test x"$enablestring" = xdisable; then
10973                   defaultval=yes
10974               else
10975                   defaultval=no
10976               fi
10977           fi
10978
10979           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
10980 echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6; }
10981           # Check whether --enable-hyperlink was given.
10982 if test "${enable_hyperlink+set}" = set; then
10983   enableval=$enable_hyperlink;
10984                           if test "$enableval" = yes; then
10985                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
10986                           else
10987                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
10988                           fi
10989
10990 else
10991
10992                           wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=${'DEFAULT_wxUSE_HYPERLINKCTRL":-$defaultval}"
10993
10994 fi
10995
10996
10997           eval "$wx_cv_use_hyperlink"
10998
10999           if test x"$enablestring" = xdisable; then
11000             if test $wxUSE_HYPERLINKCTRL = no; then
11001               result=yes
11002             else
11003               result=no
11004             fi
11005           else
11006             result=$wxUSE_HYPERLINKCTRL
11007           fi
11008
11009           { echo "$as_me:$LINENO: result: $result" >&5
11010 echo "${ECHO_T}$result" >&6; }
11011
11012
11013           enablestring=
11014           defaultval=$wxUSE_ALL_FEATURES
11015           if test -z "$defaultval"; then
11016               if test x"$enablestring" = xdisable; then
11017                   defaultval=yes
11018               else
11019                   defaultval=no
11020               fi
11021           fi
11022
11023           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
11024 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6; }
11025           # Check whether --enable-imaglist was given.
11026 if test "${enable_imaglist+set}" = set; then
11027   enableval=$enable_imaglist;
11028                           if test "$enableval" = yes; then
11029                             wx_cv_use_imaglist='wxUSE_IMAGLIST=yes'
11030                           else
11031                             wx_cv_use_imaglist='wxUSE_IMAGLIST=no'
11032                           fi
11033
11034 else
11035
11036                           wx_cv_use_imaglist='wxUSE_IMAGLIST=${'DEFAULT_wxUSE_IMAGLIST":-$defaultval}"
11037
11038 fi
11039
11040
11041           eval "$wx_cv_use_imaglist"
11042
11043           if test x"$enablestring" = xdisable; then
11044             if test $wxUSE_IMAGLIST = no; then
11045               result=yes
11046             else
11047               result=no
11048             fi
11049           else
11050             result=$wxUSE_IMAGLIST
11051           fi
11052
11053           { echo "$as_me:$LINENO: result: $result" >&5
11054 echo "${ECHO_T}$result" >&6; }
11055
11056
11057           enablestring=
11058           defaultval=$wxUSE_ALL_FEATURES
11059           if test -z "$defaultval"; then
11060               if test x"$enablestring" = xdisable; then
11061                   defaultval=yes
11062               else
11063                   defaultval=no
11064               fi
11065           fi
11066
11067           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-infobar" >&5
11068 echo $ECHO_N "checking for --${enablestring:-enable}-infobar... $ECHO_C" >&6; }
11069           # Check whether --enable-infobar was given.
11070 if test "${enable_infobar+set}" = set; then
11071   enableval=$enable_infobar;
11072                           if test "$enableval" = yes; then
11073                             wx_cv_use_infobar='wxUSE_INFOBAR=yes'
11074                           else
11075                             wx_cv_use_infobar='wxUSE_INFOBAR=no'
11076                           fi
11077
11078 else
11079
11080                           wx_cv_use_infobar='wxUSE_INFOBAR=${'DEFAULT_wxUSE_INFOBAR":-$defaultval}"
11081
11082 fi
11083
11084
11085           eval "$wx_cv_use_infobar"
11086
11087           if test x"$enablestring" = xdisable; then
11088             if test $wxUSE_INFOBAR = no; then
11089               result=yes
11090             else
11091               result=no
11092             fi
11093           else
11094             result=$wxUSE_INFOBAR
11095           fi
11096
11097           { echo "$as_me:$LINENO: result: $result" >&5
11098 echo "${ECHO_T}$result" >&6; }
11099
11100
11101           enablestring=
11102           defaultval=$wxUSE_ALL_FEATURES
11103           if test -z "$defaultval"; then
11104               if test x"$enablestring" = xdisable; then
11105                   defaultval=yes
11106               else
11107                   defaultval=no
11108               fi
11109           fi
11110
11111           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
11112 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6; }
11113           # Check whether --enable-listbook was given.
11114 if test "${enable_listbook+set}" = set; then
11115   enableval=$enable_listbook;
11116                           if test "$enableval" = yes; then
11117                             wx_cv_use_listbook='wxUSE_LISTBOOK=yes'
11118                           else
11119                             wx_cv_use_listbook='wxUSE_LISTBOOK=no'
11120                           fi
11121
11122 else
11123
11124                           wx_cv_use_listbook='wxUSE_LISTBOOK=${'DEFAULT_wxUSE_LISTBOOK":-$defaultval}"
11125
11126 fi
11127
11128
11129           eval "$wx_cv_use_listbook"
11130
11131           if test x"$enablestring" = xdisable; then
11132             if test $wxUSE_LISTBOOK = no; then
11133               result=yes
11134             else
11135               result=no
11136             fi
11137           else
11138             result=$wxUSE_LISTBOOK
11139           fi
11140
11141           { echo "$as_me:$LINENO: result: $result" >&5
11142 echo "${ECHO_T}$result" >&6; }
11143
11144
11145           enablestring=
11146           defaultval=$wxUSE_ALL_FEATURES
11147           if test -z "$defaultval"; then
11148               if test x"$enablestring" = xdisable; then
11149                   defaultval=yes
11150               else
11151                   defaultval=no
11152               fi
11153           fi
11154
11155           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
11156 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6; }
11157           # Check whether --enable-listbox was given.
11158 if test "${enable_listbox+set}" = set; then
11159   enableval=$enable_listbox;
11160                           if test "$enableval" = yes; then
11161                             wx_cv_use_listbox='wxUSE_LISTBOX=yes'
11162                           else
11163                             wx_cv_use_listbox='wxUSE_LISTBOX=no'
11164                           fi
11165
11166 else
11167
11168                           wx_cv_use_listbox='wxUSE_LISTBOX=${'DEFAULT_wxUSE_LISTBOX":-$defaultval}"
11169
11170 fi
11171
11172
11173           eval "$wx_cv_use_listbox"
11174
11175           if test x"$enablestring" = xdisable; then
11176             if test $wxUSE_LISTBOX = no; then
11177               result=yes
11178             else
11179               result=no
11180             fi
11181           else
11182             result=$wxUSE_LISTBOX
11183           fi
11184
11185           { echo "$as_me:$LINENO: result: $result" >&5
11186 echo "${ECHO_T}$result" >&6; }
11187
11188
11189           enablestring=
11190           defaultval=$wxUSE_ALL_FEATURES
11191           if test -z "$defaultval"; then
11192               if test x"$enablestring" = xdisable; then
11193                   defaultval=yes
11194               else
11195                   defaultval=no
11196               fi
11197           fi
11198
11199           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
11200 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6; }
11201           # Check whether --enable-listctrl was given.
11202 if test "${enable_listctrl+set}" = set; then
11203   enableval=$enable_listctrl;
11204                           if test "$enableval" = yes; then
11205                             wx_cv_use_listctrl='wxUSE_LISTCTRL=yes'
11206                           else
11207                             wx_cv_use_listctrl='wxUSE_LISTCTRL=no'
11208                           fi
11209
11210 else
11211
11212                           wx_cv_use_listctrl='wxUSE_LISTCTRL=${'DEFAULT_wxUSE_LISTCTRL":-$defaultval}"
11213
11214 fi
11215
11216
11217           eval "$wx_cv_use_listctrl"
11218
11219           if test x"$enablestring" = xdisable; then
11220             if test $wxUSE_LISTCTRL = no; then
11221               result=yes
11222             else
11223               result=no
11224             fi
11225           else
11226             result=$wxUSE_LISTCTRL
11227           fi
11228
11229           { echo "$as_me:$LINENO: result: $result" >&5
11230 echo "${ECHO_T}$result" >&6; }
11231
11232
11233           enablestring=
11234           defaultval=$wxUSE_ALL_FEATURES
11235           if test -z "$defaultval"; then
11236               if test x"$enablestring" = xdisable; then
11237                   defaultval=yes
11238               else
11239                   defaultval=no
11240               fi
11241           fi
11242
11243           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
11244 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6; }
11245           # Check whether --enable-notebook was given.
11246 if test "${enable_notebook+set}" = set; then
11247   enableval=$enable_notebook;
11248                           if test "$enableval" = yes; then
11249                             wx_cv_use_notebook='wxUSE_NOTEBOOK=yes'
11250                           else
11251                             wx_cv_use_notebook='wxUSE_NOTEBOOK=no'
11252                           fi
11253
11254 else
11255
11256                           wx_cv_use_notebook='wxUSE_NOTEBOOK=${'DEFAULT_wxUSE_NOTEBOOK":-$defaultval}"
11257
11258 fi
11259
11260
11261           eval "$wx_cv_use_notebook"
11262
11263           if test x"$enablestring" = xdisable; then
11264             if test $wxUSE_NOTEBOOK = no; then
11265               result=yes
11266             else
11267               result=no
11268             fi
11269           else
11270             result=$wxUSE_NOTEBOOK
11271           fi
11272
11273           { echo "$as_me:$LINENO: result: $result" >&5
11274 echo "${ECHO_T}$result" >&6; }
11275
11276
11277           enablestring=
11278           defaultval=$wxUSE_ALL_FEATURES
11279           if test -z "$defaultval"; then
11280               if test x"$enablestring" = xdisable; then
11281                   defaultval=yes
11282               else
11283                   defaultval=no
11284               fi
11285           fi
11286
11287           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notifmsg" >&5
11288 echo $ECHO_N "checking for --${enablestring:-enable}-notifmsg... $ECHO_C" >&6; }
11289           # Check whether --enable-notifmsg was given.
11290 if test "${enable_notifmsg+set}" = set; then
11291   enableval=$enable_notifmsg;
11292                           if test "$enableval" = yes; then
11293                             wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=yes'
11294                           else
11295                             wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=no'
11296                           fi
11297
11298 else
11299
11300                           wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=${'DEFAULT_wxUSE_NOTIFICATION_MESSAGE":-$defaultval}"
11301
11302 fi
11303
11304
11305           eval "$wx_cv_use_notifmsg"
11306
11307           if test x"$enablestring" = xdisable; then
11308             if test $wxUSE_NOTIFICATION_MESSAGE = no; then
11309               result=yes
11310             else
11311               result=no
11312             fi
11313           else
11314             result=$wxUSE_NOTIFICATION_MESSAGE
11315           fi
11316
11317           { echo "$as_me:$LINENO: result: $result" >&5
11318 echo "${ECHO_T}$result" >&6; }
11319
11320
11321           enablestring=
11322           defaultval=$wxUSE_ALL_FEATURES
11323           if test -z "$defaultval"; then
11324               if test x"$enablestring" = xdisable; then
11325                   defaultval=yes
11326               else
11327                   defaultval=no
11328               fi
11329           fi
11330
11331           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
11332 echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6; }
11333           # Check whether --enable-odcombobox was given.
11334 if test "${enable_odcombobox+set}" = set; then
11335   enableval=$enable_odcombobox;
11336                           if test "$enableval" = yes; then
11337                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
11338                           else
11339                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
11340                           fi
11341
11342 else
11343
11344                           wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=${'DEFAULT_wxUSE_ODCOMBOBOX":-$defaultval}"
11345
11346 fi
11347
11348
11349           eval "$wx_cv_use_odcombobox"
11350
11351           if test x"$enablestring" = xdisable; then
11352             if test $wxUSE_ODCOMBOBOX = no; then
11353               result=yes
11354             else
11355               result=no
11356             fi
11357           else
11358             result=$wxUSE_ODCOMBOBOX
11359           fi
11360
11361           { echo "$as_me:$LINENO: result: $result" >&5
11362 echo "${ECHO_T}$result" >&6; }
11363
11364
11365           enablestring=
11366           defaultval=$wxUSE_ALL_FEATURES
11367           if test -z "$defaultval"; then
11368               if test x"$enablestring" = xdisable; then
11369                   defaultval=yes
11370               else
11371                   defaultval=no
11372               fi
11373           fi
11374
11375           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
11376 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6; }
11377           # Check whether --enable-popupwin was given.
11378 if test "${enable_popupwin+set}" = set; then
11379   enableval=$enable_popupwin;
11380                           if test "$enableval" = yes; then
11381                             wx_cv_use_popupwin='wxUSE_POPUPWIN=yes'
11382                           else
11383                             wx_cv_use_popupwin='wxUSE_POPUPWIN=no'
11384                           fi
11385
11386 else
11387
11388                           wx_cv_use_popupwin='wxUSE_POPUPWIN=${'DEFAULT_wxUSE_POPUPWIN":-$defaultval}"
11389
11390 fi
11391
11392
11393           eval "$wx_cv_use_popupwin"
11394
11395           if test x"$enablestring" = xdisable; then
11396             if test $wxUSE_POPUPWIN = no; then
11397               result=yes
11398             else
11399               result=no
11400             fi
11401           else
11402             result=$wxUSE_POPUPWIN
11403           fi
11404
11405           { echo "$as_me:$LINENO: result: $result" >&5
11406 echo "${ECHO_T}$result" >&6; }
11407
11408
11409           enablestring=
11410           defaultval=$wxUSE_ALL_FEATURES
11411           if test -z "$defaultval"; then
11412               if test x"$enablestring" = xdisable; then
11413                   defaultval=yes
11414               else
11415                   defaultval=no
11416               fi
11417           fi
11418
11419           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
11420 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6; }
11421           # Check whether --enable-radiobox was given.
11422 if test "${enable_radiobox+set}" = set; then
11423   enableval=$enable_radiobox;
11424                           if test "$enableval" = yes; then
11425                             wx_cv_use_radiobox='wxUSE_RADIOBOX=yes'
11426                           else
11427                             wx_cv_use_radiobox='wxUSE_RADIOBOX=no'
11428                           fi
11429
11430 else
11431
11432                           wx_cv_use_radiobox='wxUSE_RADIOBOX=${'DEFAULT_wxUSE_RADIOBOX":-$defaultval}"
11433
11434 fi
11435
11436
11437           eval "$wx_cv_use_radiobox"
11438
11439           if test x"$enablestring" = xdisable; then
11440             if test $wxUSE_RADIOBOX = no; then
11441               result=yes
11442             else
11443               result=no
11444             fi
11445           else
11446             result=$wxUSE_RADIOBOX
11447           fi
11448
11449           { echo "$as_me:$LINENO: result: $result" >&5
11450 echo "${ECHO_T}$result" >&6; }
11451
11452
11453           enablestring=
11454           defaultval=$wxUSE_ALL_FEATURES
11455           if test -z "$defaultval"; then
11456               if test x"$enablestring" = xdisable; then
11457                   defaultval=yes
11458               else
11459                   defaultval=no
11460               fi
11461           fi
11462
11463           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
11464 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6; }
11465           # Check whether --enable-radiobtn was given.
11466 if test "${enable_radiobtn+set}" = set; then
11467   enableval=$enable_radiobtn;
11468                           if test "$enableval" = yes; then
11469                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
11470                           else
11471                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=no'
11472                           fi
11473
11474 else
11475
11476                           wx_cv_use_radiobtn='wxUSE_RADIOBTN=${'DEFAULT_wxUSE_RADIOBTN":-$defaultval}"
11477
11478 fi
11479
11480
11481           eval "$wx_cv_use_radiobtn"
11482
11483           if test x"$enablestring" = xdisable; then
11484             if test $wxUSE_RADIOBTN = no; then
11485               result=yes
11486             else
11487               result=no
11488             fi
11489           else
11490             result=$wxUSE_RADIOBTN
11491           fi
11492
11493           { echo "$as_me:$LINENO: result: $result" >&5
11494 echo "${ECHO_T}$result" >&6; }
11495
11496
11497           enablestring=
11498           defaultval=$wxUSE_ALL_FEATURES
11499           if test -z "$defaultval"; then
11500               if test x"$enablestring" = xdisable; then
11501                   defaultval=yes
11502               else
11503                   defaultval=no
11504               fi
11505           fi
11506
11507           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rearrangectrl" >&5
11508 echo $ECHO_N "checking for --${enablestring:-enable}-rearrangectrl... $ECHO_C" >&6; }
11509           # Check whether --enable-rearrangectrl was given.
11510 if test "${enable_rearrangectrl+set}" = set; then
11511   enableval=$enable_rearrangectrl;
11512                           if test "$enableval" = yes; then
11513                             wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=yes'
11514                           else
11515                             wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=no'
11516                           fi
11517
11518 else
11519
11520                           wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=${'DEFAULT_wxUSE_REARRANGECTRL":-$defaultval}"
11521
11522 fi
11523
11524
11525           eval "$wx_cv_use_rearrangectrl"
11526
11527           if test x"$enablestring" = xdisable; then
11528             if test $wxUSE_REARRANGECTRL = no; then
11529               result=yes
11530             else
11531               result=no
11532             fi
11533           else
11534             result=$wxUSE_REARRANGECTRL
11535           fi
11536
11537           { echo "$as_me:$LINENO: result: $result" >&5
11538 echo "${ECHO_T}$result" >&6; }
11539
11540
11541           enablestring=
11542           defaultval=$wxUSE_ALL_FEATURES
11543           if test -z "$defaultval"; then
11544               if test x"$enablestring" = xdisable; then
11545                   defaultval=yes
11546               else
11547                   defaultval=no
11548               fi
11549           fi
11550
11551           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
11552 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6; }
11553           # Check whether --enable-sash was given.
11554 if test "${enable_sash+set}" = set; then
11555   enableval=$enable_sash;
11556                           if test "$enableval" = yes; then
11557                             wx_cv_use_sash='wxUSE_SASH=yes'
11558                           else
11559                             wx_cv_use_sash='wxUSE_SASH=no'
11560                           fi
11561
11562 else
11563
11564                           wx_cv_use_sash='wxUSE_SASH=${'DEFAULT_wxUSE_SASH":-$defaultval}"
11565
11566 fi
11567
11568
11569           eval "$wx_cv_use_sash"
11570
11571           if test x"$enablestring" = xdisable; then
11572             if test $wxUSE_SASH = no; then
11573               result=yes
11574             else
11575               result=no
11576             fi
11577           else
11578             result=$wxUSE_SASH
11579           fi
11580
11581           { echo "$as_me:$LINENO: result: $result" >&5
11582 echo "${ECHO_T}$result" >&6; }
11583
11584
11585           enablestring=
11586           defaultval=$wxUSE_ALL_FEATURES
11587           if test -z "$defaultval"; then
11588               if test x"$enablestring" = xdisable; then
11589                   defaultval=yes
11590               else
11591                   defaultval=no
11592               fi
11593           fi
11594
11595           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
11596 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6; }
11597           # Check whether --enable-scrollbar was given.
11598 if test "${enable_scrollbar+set}" = set; then
11599   enableval=$enable_scrollbar;
11600                           if test "$enableval" = yes; then
11601                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
11602                           else
11603                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
11604                           fi
11605
11606 else
11607
11608                           wx_cv_use_scrollbar='wxUSE_SCROLLBAR=${'DEFAULT_wxUSE_SCROLLBAR":-$defaultval}"
11609
11610 fi
11611
11612
11613           eval "$wx_cv_use_scrollbar"
11614
11615           if test x"$enablestring" = xdisable; then
11616             if test $wxUSE_SCROLLBAR = no; then
11617               result=yes
11618             else
11619               result=no
11620             fi
11621           else
11622             result=$wxUSE_SCROLLBAR
11623           fi
11624
11625           { echo "$as_me:$LINENO: result: $result" >&5
11626 echo "${ECHO_T}$result" >&6; }
11627
11628
11629           enablestring=
11630           defaultval=$wxUSE_ALL_FEATURES
11631           if test -z "$defaultval"; then
11632               if test x"$enablestring" = xdisable; then
11633                   defaultval=yes
11634               else
11635                   defaultval=no
11636               fi
11637           fi
11638
11639           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-searchctrl" >&5
11640 echo $ECHO_N "checking for --${enablestring:-enable}-searchctrl... $ECHO_C" >&6; }
11641           # Check whether --enable-searchctrl was given.
11642 if test "${enable_searchctrl+set}" = set; then
11643   enableval=$enable_searchctrl;
11644                           if test "$enableval" = yes; then
11645                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=yes'
11646                           else
11647                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=no'
11648                           fi
11649
11650 else
11651
11652                           wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=${'DEFAULT_wxUSE_SEARCHCTRL":-$defaultval}"
11653
11654 fi
11655
11656
11657           eval "$wx_cv_use_searchctrl"
11658
11659           if test x"$enablestring" = xdisable; then
11660             if test $wxUSE_SEARCHCTRL = no; then
11661               result=yes
11662             else
11663               result=no
11664             fi
11665           else
11666             result=$wxUSE_SEARCHCTRL
11667           fi
11668
11669           { echo "$as_me:$LINENO: result: $result" >&5
11670 echo "${ECHO_T}$result" >&6; }
11671
11672
11673           enablestring=
11674           defaultval=$wxUSE_ALL_FEATURES
11675           if test -z "$defaultval"; then
11676               if test x"$enablestring" = xdisable; then
11677                   defaultval=yes
11678               else
11679                   defaultval=no
11680               fi
11681           fi
11682
11683           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
11684 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6; }
11685           # Check whether --enable-slider was given.
11686 if test "${enable_slider+set}" = set; then
11687   enableval=$enable_slider;
11688                           if test "$enableval" = yes; then
11689                             wx_cv_use_slider='wxUSE_SLIDER=yes'
11690                           else
11691                             wx_cv_use_slider='wxUSE_SLIDER=no'
11692                           fi
11693
11694 else
11695
11696                           wx_cv_use_slider='wxUSE_SLIDER=${'DEFAULT_wxUSE_SLIDER":-$defaultval}"
11697
11698 fi
11699
11700
11701           eval "$wx_cv_use_slider"
11702
11703           if test x"$enablestring" = xdisable; then
11704             if test $wxUSE_SLIDER = no; then
11705               result=yes
11706             else
11707               result=no
11708             fi
11709           else
11710             result=$wxUSE_SLIDER
11711           fi
11712
11713           { echo "$as_me:$LINENO: result: $result" >&5
11714 echo "${ECHO_T}$result" >&6; }
11715
11716
11717           enablestring=
11718           defaultval=$wxUSE_ALL_FEATURES
11719           if test -z "$defaultval"; then
11720               if test x"$enablestring" = xdisable; then
11721                   defaultval=yes
11722               else
11723                   defaultval=no
11724               fi
11725           fi
11726
11727           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
11728 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6; }
11729           # Check whether --enable-spinbtn was given.
11730 if test "${enable_spinbtn+set}" = set; then
11731   enableval=$enable_spinbtn;
11732                           if test "$enableval" = yes; then
11733                             wx_cv_use_spinbtn='wxUSE_SPINBTN=yes'
11734                           else
11735                             wx_cv_use_spinbtn='wxUSE_SPINBTN=no'
11736                           fi
11737
11738 else
11739
11740                           wx_cv_use_spinbtn='wxUSE_SPINBTN=${'DEFAULT_wxUSE_SPINBTN":-$defaultval}"
11741
11742 fi
11743
11744
11745           eval "$wx_cv_use_spinbtn"
11746
11747           if test x"$enablestring" = xdisable; then
11748             if test $wxUSE_SPINBTN = no; then
11749               result=yes
11750             else
11751               result=no
11752             fi
11753           else
11754             result=$wxUSE_SPINBTN
11755           fi
11756
11757           { echo "$as_me:$LINENO: result: $result" >&5
11758 echo "${ECHO_T}$result" >&6; }
11759
11760
11761           enablestring=
11762           defaultval=$wxUSE_ALL_FEATURES
11763           if test -z "$defaultval"; then
11764               if test x"$enablestring" = xdisable; then
11765                   defaultval=yes
11766               else
11767                   defaultval=no
11768               fi
11769           fi
11770
11771           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
11772 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6; }
11773           # Check whether --enable-spinctrl was given.
11774 if test "${enable_spinctrl+set}" = set; then
11775   enableval=$enable_spinctrl;
11776                           if test "$enableval" = yes; then
11777                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
11778                           else
11779                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=no'
11780                           fi
11781
11782 else
11783
11784                           wx_cv_use_spinctrl='wxUSE_SPINCTRL=${'DEFAULT_wxUSE_SPINCTRL":-$defaultval}"
11785
11786 fi
11787
11788
11789           eval "$wx_cv_use_spinctrl"
11790
11791           if test x"$enablestring" = xdisable; then
11792             if test $wxUSE_SPINCTRL = no; then
11793               result=yes
11794             else
11795               result=no
11796             fi
11797           else
11798             result=$wxUSE_SPINCTRL
11799           fi
11800
11801           { echo "$as_me:$LINENO: result: $result" >&5
11802 echo "${ECHO_T}$result" >&6; }
11803
11804
11805           enablestring=
11806           defaultval=$wxUSE_ALL_FEATURES
11807           if test -z "$defaultval"; then
11808               if test x"$enablestring" = xdisable; then
11809                   defaultval=yes
11810               else
11811                   defaultval=no
11812               fi
11813           fi
11814
11815           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
11816 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6; }
11817           # Check whether --enable-splitter was given.
11818 if test "${enable_splitter+set}" = set; then
11819   enableval=$enable_splitter;
11820                           if test "$enableval" = yes; then
11821                             wx_cv_use_splitter='wxUSE_SPLITTER=yes'
11822                           else
11823                             wx_cv_use_splitter='wxUSE_SPLITTER=no'
11824                           fi
11825
11826 else
11827
11828                           wx_cv_use_splitter='wxUSE_SPLITTER=${'DEFAULT_wxUSE_SPLITTER":-$defaultval}"
11829
11830 fi
11831
11832
11833           eval "$wx_cv_use_splitter"
11834
11835           if test x"$enablestring" = xdisable; then
11836             if test $wxUSE_SPLITTER = no; then
11837               result=yes
11838             else
11839               result=no
11840             fi
11841           else
11842             result=$wxUSE_SPLITTER
11843           fi
11844
11845           { echo "$as_me:$LINENO: result: $result" >&5
11846 echo "${ECHO_T}$result" >&6; }
11847
11848
11849           enablestring=
11850           defaultval=$wxUSE_ALL_FEATURES
11851           if test -z "$defaultval"; then
11852               if test x"$enablestring" = xdisable; then
11853                   defaultval=yes
11854               else
11855                   defaultval=no
11856               fi
11857           fi
11858
11859           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
11860 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6; }
11861           # Check whether --enable-statbmp was given.
11862 if test "${enable_statbmp+set}" = set; then
11863   enableval=$enable_statbmp;
11864                           if test "$enableval" = yes; then
11865                             wx_cv_use_statbmp='wxUSE_STATBMP=yes'
11866                           else
11867                             wx_cv_use_statbmp='wxUSE_STATBMP=no'
11868                           fi
11869
11870 else
11871
11872                           wx_cv_use_statbmp='wxUSE_STATBMP=${'DEFAULT_wxUSE_STATBMP":-$defaultval}"
11873
11874 fi
11875
11876
11877           eval "$wx_cv_use_statbmp"
11878
11879           if test x"$enablestring" = xdisable; then
11880             if test $wxUSE_STATBMP = no; then
11881               result=yes
11882             else
11883               result=no
11884             fi
11885           else
11886             result=$wxUSE_STATBMP
11887           fi
11888
11889           { echo "$as_me:$LINENO: result: $result" >&5
11890 echo "${ECHO_T}$result" >&6; }
11891
11892
11893           enablestring=
11894           defaultval=$wxUSE_ALL_FEATURES
11895           if test -z "$defaultval"; then
11896               if test x"$enablestring" = xdisable; then
11897                   defaultval=yes
11898               else
11899                   defaultval=no
11900               fi
11901           fi
11902
11903           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
11904 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6; }
11905           # Check whether --enable-statbox was given.
11906 if test "${enable_statbox+set}" = set; then
11907   enableval=$enable_statbox;
11908                           if test "$enableval" = yes; then
11909                             wx_cv_use_statbox='wxUSE_STATBOX=yes'
11910                           else
11911                             wx_cv_use_statbox='wxUSE_STATBOX=no'
11912                           fi
11913
11914 else
11915
11916                           wx_cv_use_statbox='wxUSE_STATBOX=${'DEFAULT_wxUSE_STATBOX":-$defaultval}"
11917
11918 fi
11919
11920
11921           eval "$wx_cv_use_statbox"
11922
11923           if test x"$enablestring" = xdisable; then
11924             if test $wxUSE_STATBOX = no; then
11925               result=yes
11926             else
11927               result=no
11928             fi
11929           else
11930             result=$wxUSE_STATBOX
11931           fi
11932
11933           { echo "$as_me:$LINENO: result: $result" >&5
11934 echo "${ECHO_T}$result" >&6; }
11935
11936
11937           enablestring=
11938           defaultval=$wxUSE_ALL_FEATURES
11939           if test -z "$defaultval"; then
11940               if test x"$enablestring" = xdisable; then
11941                   defaultval=yes
11942               else
11943                   defaultval=no
11944               fi
11945           fi
11946
11947           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
11948 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6; }
11949           # Check whether --enable-statline was given.
11950 if test "${enable_statline+set}" = set; then
11951   enableval=$enable_statline;
11952                           if test "$enableval" = yes; then
11953                             wx_cv_use_statline='wxUSE_STATLINE=yes'
11954                           else
11955                             wx_cv_use_statline='wxUSE_STATLINE=no'
11956                           fi
11957
11958 else
11959
11960                           wx_cv_use_statline='wxUSE_STATLINE=${'DEFAULT_wxUSE_STATLINE":-$defaultval}"
11961
11962 fi
11963
11964
11965           eval "$wx_cv_use_statline"
11966
11967           if test x"$enablestring" = xdisable; then
11968             if test $wxUSE_STATLINE = no; then
11969               result=yes
11970             else
11971               result=no
11972             fi
11973           else
11974             result=$wxUSE_STATLINE
11975           fi
11976
11977           { echo "$as_me:$LINENO: result: $result" >&5
11978 echo "${ECHO_T}$result" >&6; }
11979
11980
11981           enablestring=
11982           defaultval=$wxUSE_ALL_FEATURES
11983           if test -z "$defaultval"; then
11984               if test x"$enablestring" = xdisable; then
11985                   defaultval=yes
11986               else
11987                   defaultval=no
11988               fi
11989           fi
11990
11991           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
11992 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6; }
11993           # Check whether --enable-stattext was given.
11994 if test "${enable_stattext+set}" = set; then
11995   enableval=$enable_stattext;
11996                           if test "$enableval" = yes; then
11997                             wx_cv_use_stattext='wxUSE_STATTEXT=yes'
11998                           else
11999                             wx_cv_use_stattext='wxUSE_STATTEXT=no'
12000                           fi
12001
12002 else
12003
12004                           wx_cv_use_stattext='wxUSE_STATTEXT=${'DEFAULT_wxUSE_STATTEXT":-$defaultval}"
12005
12006 fi
12007
12008
12009           eval "$wx_cv_use_stattext"
12010
12011           if test x"$enablestring" = xdisable; then
12012             if test $wxUSE_STATTEXT = no; then
12013               result=yes
12014             else
12015               result=no
12016             fi
12017           else
12018             result=$wxUSE_STATTEXT
12019           fi
12020
12021           { echo "$as_me:$LINENO: result: $result" >&5
12022 echo "${ECHO_T}$result" >&6; }
12023
12024
12025           enablestring=
12026           defaultval=$wxUSE_ALL_FEATURES
12027           if test -z "$defaultval"; then
12028               if test x"$enablestring" = xdisable; then
12029                   defaultval=yes
12030               else
12031                   defaultval=no
12032               fi
12033           fi
12034
12035           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
12036 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6; }
12037           # Check whether --enable-statusbar was given.
12038 if test "${enable_statusbar+set}" = set; then
12039   enableval=$enable_statusbar;
12040                           if test "$enableval" = yes; then
12041                             wx_cv_use_statusbar='wxUSE_STATUSBAR=yes'
12042                           else
12043                             wx_cv_use_statusbar='wxUSE_STATUSBAR=no'
12044                           fi
12045
12046 else
12047
12048                           wx_cv_use_statusbar='wxUSE_STATUSBAR=${'DEFAULT_wxUSE_STATUSBAR":-$defaultval}"
12049
12050 fi
12051
12052
12053           eval "$wx_cv_use_statusbar"
12054
12055           if test x"$enablestring" = xdisable; then
12056             if test $wxUSE_STATUSBAR = no; then
12057               result=yes
12058             else
12059               result=no
12060             fi
12061           else
12062             result=$wxUSE_STATUSBAR
12063           fi
12064
12065           { echo "$as_me:$LINENO: result: $result" >&5
12066 echo "${ECHO_T}$result" >&6; }
12067
12068
12069           enablestring=
12070           defaultval=$wxUSE_ALL_FEATURES
12071           if test -z "$defaultval"; then
12072               if test x"$enablestring" = xdisable; then
12073                   defaultval=yes
12074               else
12075                   defaultval=no
12076               fi
12077           fi
12078
12079           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-taskbaricon" >&5
12080 echo $ECHO_N "checking for --${enablestring:-enable}-taskbaricon... $ECHO_C" >&6; }
12081           # Check whether --enable-taskbaricon was given.
12082 if test "${enable_taskbaricon+set}" = set; then
12083   enableval=$enable_taskbaricon;
12084                           if test "$enableval" = yes; then
12085                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=yes'
12086                           else
12087                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=no'
12088                           fi
12089
12090 else
12091
12092                           wx_cv_use_taskbaricon='wxUSE_TASKBARICON=${'DEFAULT_wxUSE_TASKBARICON":-$defaultval}"
12093
12094 fi
12095
12096
12097           eval "$wx_cv_use_taskbaricon"
12098
12099           if test x"$enablestring" = xdisable; then
12100             if test $wxUSE_TASKBARICON = no; then
12101               result=yes
12102             else
12103               result=no
12104             fi
12105           else
12106             result=$wxUSE_TASKBARICON
12107           fi
12108
12109           { echo "$as_me:$LINENO: result: $result" >&5
12110 echo "${ECHO_T}$result" >&6; }
12111
12112
12113           enablestring=
12114           defaultval=$wxUSE_ALL_FEATURES
12115           if test -z "$defaultval"; then
12116               if test x"$enablestring" = xdisable; then
12117                   defaultval=yes
12118               else
12119                   defaultval=no
12120               fi
12121           fi
12122
12123           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
12124 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6; }
12125           # Check whether --enable-tbarnative was given.
12126 if test "${enable_tbarnative+set}" = set; then
12127   enableval=$enable_tbarnative;
12128                           if test "$enableval" = yes; then
12129                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
12130                           else
12131                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
12132                           fi
12133
12134 else
12135
12136                           wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=${'DEFAULT_wxUSE_TOOLBAR_NATIVE":-$defaultval}"
12137
12138 fi
12139
12140
12141           eval "$wx_cv_use_tbarnative"
12142
12143           if test x"$enablestring" = xdisable; then
12144             if test $wxUSE_TOOLBAR_NATIVE = no; then
12145               result=yes
12146             else
12147               result=no
12148             fi
12149           else
12150             result=$wxUSE_TOOLBAR_NATIVE
12151           fi
12152
12153           { echo "$as_me:$LINENO: result: $result" >&5
12154 echo "${ECHO_T}$result" >&6; }
12155
12156
12157           enablestring=
12158           defaultval=$wxUSE_ALL_FEATURES
12159           if test -z "$defaultval"; then
12160               if test x"$enablestring" = xdisable; then
12161                   defaultval=yes
12162               else
12163                   defaultval=no
12164               fi
12165           fi
12166
12167           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
12168 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6; }
12169           # Check whether --enable-textctrl was given.
12170 if test "${enable_textctrl+set}" = set; then
12171   enableval=$enable_textctrl;
12172                           if test "$enableval" = yes; then
12173                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
12174                           else
12175                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=no'
12176                           fi
12177
12178 else
12179
12180                           wx_cv_use_textctrl='wxUSE_TEXTCTRL=${'DEFAULT_wxUSE_TEXTCTRL":-$defaultval}"
12181
12182 fi
12183
12184
12185           eval "$wx_cv_use_textctrl"
12186
12187           if test x"$enablestring" = xdisable; then
12188             if test $wxUSE_TEXTCTRL = no; then
12189               result=yes
12190             else
12191               result=no
12192             fi
12193           else
12194             result=$wxUSE_TEXTCTRL
12195           fi
12196
12197           { echo "$as_me:$LINENO: result: $result" >&5
12198 echo "${ECHO_T}$result" >&6; }
12199
12200
12201           enablestring=
12202           defaultval=$wxUSE_ALL_FEATURES
12203           if test -z "$defaultval"; then
12204               if test x"$enablestring" = xdisable; then
12205                   defaultval=yes
12206               else
12207                   defaultval=no
12208               fi
12209           fi
12210
12211           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
12212 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6; }
12213           # Check whether --enable-tipwindow was given.
12214 if test "${enable_tipwindow+set}" = set; then
12215   enableval=$enable_tipwindow;
12216                           if test "$enableval" = yes; then
12217                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
12218                           else
12219                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
12220                           fi
12221
12222 else
12223
12224                           wx_cv_use_tipwindow='wxUSE_TIPWINDOW=${'DEFAULT_wxUSE_TIPWINDOW":-$defaultval}"
12225
12226 fi
12227
12228
12229           eval "$wx_cv_use_tipwindow"
12230
12231           if test x"$enablestring" = xdisable; then
12232             if test $wxUSE_TIPWINDOW = no; then
12233               result=yes
12234             else
12235               result=no
12236             fi
12237           else
12238             result=$wxUSE_TIPWINDOW
12239           fi
12240
12241           { echo "$as_me:$LINENO: result: $result" >&5
12242 echo "${ECHO_T}$result" >&6; }
12243
12244
12245           enablestring=
12246           defaultval=$wxUSE_ALL_FEATURES
12247           if test -z "$defaultval"; then
12248               if test x"$enablestring" = xdisable; then
12249                   defaultval=yes
12250               else
12251                   defaultval=no
12252               fi
12253           fi
12254
12255           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
12256 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6; }
12257           # Check whether --enable-togglebtn was given.
12258 if test "${enable_togglebtn+set}" = set; then
12259   enableval=$enable_togglebtn;
12260                           if test "$enableval" = yes; then
12261                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
12262                           else
12263                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
12264                           fi
12265
12266 else
12267
12268                           wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=${'DEFAULT_wxUSE_TOGGLEBTN":-$defaultval}"
12269
12270 fi
12271
12272
12273           eval "$wx_cv_use_togglebtn"
12274
12275           if test x"$enablestring" = xdisable; then
12276             if test $wxUSE_TOGGLEBTN = no; then
12277               result=yes
12278             else
12279               result=no
12280             fi
12281           else
12282             result=$wxUSE_TOGGLEBTN
12283           fi
12284
12285           { echo "$as_me:$LINENO: result: $result" >&5
12286 echo "${ECHO_T}$result" >&6; }
12287
12288
12289           enablestring=
12290           defaultval=$wxUSE_ALL_FEATURES
12291           if test -z "$defaultval"; then
12292               if test x"$enablestring" = xdisable; then
12293                   defaultval=yes
12294               else
12295                   defaultval=no
12296               fi
12297           fi
12298
12299           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
12300 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6; }
12301           # Check whether --enable-toolbar was given.
12302 if test "${enable_toolbar+set}" = set; then
12303   enableval=$enable_toolbar;
12304                           if test "$enableval" = yes; then
12305                             wx_cv_use_toolbar='wxUSE_TOOLBAR=yes'
12306                           else
12307                             wx_cv_use_toolbar='wxUSE_TOOLBAR=no'
12308                           fi
12309
12310 else
12311
12312                           wx_cv_use_toolbar='wxUSE_TOOLBAR=${'DEFAULT_wxUSE_TOOLBAR":-$defaultval}"
12313
12314 fi
12315
12316
12317           eval "$wx_cv_use_toolbar"
12318
12319           if test x"$enablestring" = xdisable; then
12320             if test $wxUSE_TOOLBAR = no; then
12321               result=yes
12322             else
12323               result=no
12324             fi
12325           else
12326             result=$wxUSE_TOOLBAR
12327           fi
12328
12329           { echo "$as_me:$LINENO: result: $result" >&5
12330 echo "${ECHO_T}$result" >&6; }
12331
12332
12333           enablestring=
12334           defaultval=$wxUSE_ALL_FEATURES
12335           if test -z "$defaultval"; then
12336               if test x"$enablestring" = xdisable; then
12337                   defaultval=yes
12338               else
12339                   defaultval=no
12340               fi
12341           fi
12342
12343           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
12344 echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6; }
12345           # Check whether --enable-toolbook was given.
12346 if test "${enable_toolbook+set}" = set; then
12347   enableval=$enable_toolbook;
12348                           if test "$enableval" = yes; then
12349                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
12350                           else
12351                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=no'
12352                           fi
12353
12354 else
12355
12356                           wx_cv_use_toolbook='wxUSE_TOOLBOOK=${'DEFAULT_wxUSE_TOOLBOOK":-$defaultval}"
12357
12358 fi
12359
12360
12361           eval "$wx_cv_use_toolbook"
12362
12363           if test x"$enablestring" = xdisable; then
12364             if test $wxUSE_TOOLBOOK = no; then
12365               result=yes
12366             else
12367               result=no
12368             fi
12369           else
12370             result=$wxUSE_TOOLBOOK
12371           fi
12372
12373           { echo "$as_me:$LINENO: result: $result" >&5
12374 echo "${ECHO_T}$result" >&6; }
12375
12376
12377           enablestring=
12378           defaultval=$wxUSE_ALL_FEATURES
12379           if test -z "$defaultval"; then
12380               if test x"$enablestring" = xdisable; then
12381                   defaultval=yes
12382               else
12383                   defaultval=no
12384               fi
12385           fi
12386
12387           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
12388 echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6; }
12389           # Check whether --enable-treebook was given.
12390 if test "${enable_treebook+set}" = set; then
12391   enableval=$enable_treebook;
12392                           if test "$enableval" = yes; then
12393                             wx_cv_use_treebook='wxUSE_TREEBOOK=yes'
12394                           else
12395                             wx_cv_use_treebook='wxUSE_TREEBOOK=no'
12396                           fi
12397
12398 else
12399
12400                           wx_cv_use_treebook='wxUSE_TREEBOOK=${'DEFAULT_wxUSE_TREEBOOK":-$defaultval}"
12401
12402 fi
12403
12404
12405           eval "$wx_cv_use_treebook"
12406
12407           if test x"$enablestring" = xdisable; then
12408             if test $wxUSE_TREEBOOK = no; then
12409               result=yes
12410             else
12411               result=no
12412             fi
12413           else
12414             result=$wxUSE_TREEBOOK
12415           fi
12416
12417           { echo "$as_me:$LINENO: result: $result" >&5
12418 echo "${ECHO_T}$result" >&6; }
12419
12420
12421           enablestring=
12422           defaultval=$wxUSE_ALL_FEATURES
12423           if test -z "$defaultval"; then
12424               if test x"$enablestring" = xdisable; then
12425                   defaultval=yes
12426               else
12427                   defaultval=no
12428               fi
12429           fi
12430
12431           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
12432 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6; }
12433           # Check whether --enable-treectrl was given.
12434 if test "${enable_treectrl+set}" = set; then
12435   enableval=$enable_treectrl;
12436                           if test "$enableval" = yes; then
12437                             wx_cv_use_treectrl='wxUSE_TREECTRL=yes'
12438                           else
12439                             wx_cv_use_treectrl='wxUSE_TREECTRL=no'
12440                           fi
12441
12442 else
12443
12444                           wx_cv_use_treectrl='wxUSE_TREECTRL=${'DEFAULT_wxUSE_TREECTRL":-$defaultval}"
12445
12446 fi
12447
12448
12449           eval "$wx_cv_use_treectrl"
12450
12451           if test x"$enablestring" = xdisable; then
12452             if test $wxUSE_TREECTRL = no; then
12453               result=yes
12454             else
12455               result=no
12456             fi
12457           else
12458             result=$wxUSE_TREECTRL
12459           fi
12460
12461           { echo "$as_me:$LINENO: result: $result" >&5
12462 echo "${ECHO_T}$result" >&6; }
12463
12464
12465
12466
12467           enablestring=
12468           defaultval=$wxUSE_ALL_FEATURES
12469           if test -z "$defaultval"; then
12470               if test x"$enablestring" = xdisable; then
12471                   defaultval=yes
12472               else
12473                   defaultval=no
12474               fi
12475           fi
12476
12477           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
12478 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6; }
12479           # Check whether --enable-commondlg was given.
12480 if test "${enable_commondlg+set}" = set; then
12481   enableval=$enable_commondlg;
12482                           if test "$enableval" = yes; then
12483                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
12484                           else
12485                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=no'
12486                           fi
12487
12488 else
12489
12490                           wx_cv_use_commondlg='wxUSE_COMMONDLGS=${'DEFAULT_wxUSE_COMMONDLGS":-$defaultval}"
12491
12492 fi
12493
12494
12495           eval "$wx_cv_use_commondlg"
12496
12497           if test x"$enablestring" = xdisable; then
12498             if test $wxUSE_COMMONDLGS = no; then
12499               result=yes
12500             else
12501               result=no
12502             fi
12503           else
12504             result=$wxUSE_COMMONDLGS
12505           fi
12506
12507           { echo "$as_me:$LINENO: result: $result" >&5
12508 echo "${ECHO_T}$result" >&6; }
12509
12510
12511           enablestring=
12512           defaultval=$wxUSE_ALL_FEATURES
12513           if test -z "$defaultval"; then
12514               if test x"$enablestring" = xdisable; then
12515                   defaultval=yes
12516               else
12517                   defaultval=no
12518               fi
12519           fi
12520
12521           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aboutdlg" >&5
12522 echo $ECHO_N "checking for --${enablestring:-enable}-aboutdlg... $ECHO_C" >&6; }
12523           # Check whether --enable-aboutdlg was given.
12524 if test "${enable_aboutdlg+set}" = set; then
12525   enableval=$enable_aboutdlg;
12526                           if test "$enableval" = yes; then
12527                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes'
12528                           else
12529                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=no'
12530                           fi
12531
12532 else
12533
12534                           wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=${'DEFAULT_wxUSE_ABOUTDLG":-$defaultval}"
12535
12536 fi
12537
12538
12539           eval "$wx_cv_use_aboutdlg"
12540
12541           if test x"$enablestring" = xdisable; then
12542             if test $wxUSE_ABOUTDLG = no; then
12543               result=yes
12544             else
12545               result=no
12546             fi
12547           else
12548             result=$wxUSE_ABOUTDLG
12549           fi
12550
12551           { echo "$as_me:$LINENO: result: $result" >&5
12552 echo "${ECHO_T}$result" >&6; }
12553
12554
12555           enablestring=
12556           defaultval=$wxUSE_ALL_FEATURES
12557           if test -z "$defaultval"; then
12558               if test x"$enablestring" = xdisable; then
12559                   defaultval=yes
12560               else
12561                   defaultval=no
12562               fi
12563           fi
12564
12565           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
12566 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6; }
12567           # Check whether --enable-choicedlg was given.
12568 if test "${enable_choicedlg+set}" = set; then
12569   enableval=$enable_choicedlg;
12570                           if test "$enableval" = yes; then
12571                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
12572                           else
12573                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
12574                           fi
12575
12576 else
12577
12578                           wx_cv_use_choicedlg='wxUSE_CHOICEDLG=${'DEFAULT_wxUSE_CHOICEDLG":-$defaultval}"
12579
12580 fi
12581
12582
12583           eval "$wx_cv_use_choicedlg"
12584
12585           if test x"$enablestring" = xdisable; then
12586             if test $wxUSE_CHOICEDLG = no; then
12587               result=yes
12588             else
12589               result=no
12590             fi
12591           else
12592             result=$wxUSE_CHOICEDLG
12593           fi
12594
12595           { echo "$as_me:$LINENO: result: $result" >&5
12596 echo "${ECHO_T}$result" >&6; }
12597
12598
12599           enablestring=
12600           defaultval=$wxUSE_ALL_FEATURES
12601           if test -z "$defaultval"; then
12602               if test x"$enablestring" = xdisable; then
12603                   defaultval=yes
12604               else
12605                   defaultval=no
12606               fi
12607           fi
12608
12609           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
12610 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6; }
12611           # Check whether --enable-coldlg was given.
12612 if test "${enable_coldlg+set}" = set; then
12613   enableval=$enable_coldlg;
12614                           if test "$enableval" = yes; then
12615                             wx_cv_use_coldlg='wxUSE_COLOURDLG=yes'
12616                           else
12617                             wx_cv_use_coldlg='wxUSE_COLOURDLG=no'
12618                           fi
12619
12620 else
12621
12622                           wx_cv_use_coldlg='wxUSE_COLOURDLG=${'DEFAULT_wxUSE_COLOURDLG":-$defaultval}"
12623
12624 fi
12625
12626
12627           eval "$wx_cv_use_coldlg"
12628
12629           if test x"$enablestring" = xdisable; then
12630             if test $wxUSE_COLOURDLG = no; then
12631               result=yes
12632             else
12633               result=no
12634             fi
12635           else
12636             result=$wxUSE_COLOURDLG
12637           fi
12638
12639           { echo "$as_me:$LINENO: result: $result" >&5
12640 echo "${ECHO_T}$result" >&6; }
12641
12642
12643           enablestring=
12644           defaultval=$wxUSE_ALL_FEATURES
12645           if test -z "$defaultval"; then
12646               if test x"$enablestring" = xdisable; then
12647                   defaultval=yes
12648               else
12649                   defaultval=no
12650               fi
12651           fi
12652
12653           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
12654 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6; }
12655           # Check whether --enable-filedlg was given.
12656 if test "${enable_filedlg+set}" = set; then
12657   enableval=$enable_filedlg;
12658                           if test "$enableval" = yes; then
12659                             wx_cv_use_filedlg='wxUSE_FILEDLG=yes'
12660                           else
12661                             wx_cv_use_filedlg='wxUSE_FILEDLG=no'
12662                           fi
12663
12664 else
12665
12666                           wx_cv_use_filedlg='wxUSE_FILEDLG=${'DEFAULT_wxUSE_FILEDLG":-$defaultval}"
12667
12668 fi
12669
12670
12671           eval "$wx_cv_use_filedlg"
12672
12673           if test x"$enablestring" = xdisable; then
12674             if test $wxUSE_FILEDLG = no; then
12675               result=yes
12676             else
12677               result=no
12678             fi
12679           else
12680             result=$wxUSE_FILEDLG
12681           fi
12682
12683           { echo "$as_me:$LINENO: result: $result" >&5
12684 echo "${ECHO_T}$result" >&6; }
12685
12686
12687           enablestring=
12688           defaultval=$wxUSE_ALL_FEATURES
12689           if test -z "$defaultval"; then
12690               if test x"$enablestring" = xdisable; then
12691                   defaultval=yes
12692               else
12693                   defaultval=no
12694               fi
12695           fi
12696
12697           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
12698 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6; }
12699           # Check whether --enable-finddlg was given.
12700 if test "${enable_finddlg+set}" = set; then
12701   enableval=$enable_finddlg;
12702                           if test "$enableval" = yes; then
12703                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
12704                           else
12705                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
12706                           fi
12707
12708 else
12709
12710                           wx_cv_use_finddlg='wxUSE_FINDREPLDLG=${'DEFAULT_wxUSE_FINDREPLDLG":-$defaultval}"
12711
12712 fi
12713
12714
12715           eval "$wx_cv_use_finddlg"
12716
12717           if test x"$enablestring" = xdisable; then
12718             if test $wxUSE_FINDREPLDLG = no; then
12719               result=yes
12720             else
12721               result=no
12722             fi
12723           else
12724             result=$wxUSE_FINDREPLDLG
12725           fi
12726
12727           { echo "$as_me:$LINENO: result: $result" >&5
12728 echo "${ECHO_T}$result" >&6; }
12729
12730
12731           enablestring=
12732           defaultval=$wxUSE_ALL_FEATURES
12733           if test -z "$defaultval"; then
12734               if test x"$enablestring" = xdisable; then
12735                   defaultval=yes
12736               else
12737                   defaultval=no
12738               fi
12739           fi
12740
12741           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
12742 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6; }
12743           # Check whether --enable-fontdlg was given.
12744 if test "${enable_fontdlg+set}" = set; then
12745   enableval=$enable_fontdlg;
12746                           if test "$enableval" = yes; then
12747                             wx_cv_use_fontdlg='wxUSE_FONTDLG=yes'
12748                           else
12749                             wx_cv_use_fontdlg='wxUSE_FONTDLG=no'
12750                           fi
12751
12752 else
12753
12754                           wx_cv_use_fontdlg='wxUSE_FONTDLG=${'DEFAULT_wxUSE_FONTDLG":-$defaultval}"
12755
12756 fi
12757
12758
12759           eval "$wx_cv_use_fontdlg"
12760
12761           if test x"$enablestring" = xdisable; then
12762             if test $wxUSE_FONTDLG = no; then
12763               result=yes
12764             else
12765               result=no
12766             fi
12767           else
12768             result=$wxUSE_FONTDLG
12769           fi
12770
12771           { echo "$as_me:$LINENO: result: $result" >&5
12772 echo "${ECHO_T}$result" >&6; }
12773
12774
12775           enablestring=
12776           defaultval=$wxUSE_ALL_FEATURES
12777           if test -z "$defaultval"; then
12778               if test x"$enablestring" = xdisable; then
12779                   defaultval=yes
12780               else
12781                   defaultval=no
12782               fi
12783           fi
12784
12785           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
12786 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6; }
12787           # Check whether --enable-dirdlg was given.
12788 if test "${enable_dirdlg+set}" = set; then
12789   enableval=$enable_dirdlg;
12790                           if test "$enableval" = yes; then
12791                             wx_cv_use_dirdlg='wxUSE_DIRDLG=yes'
12792                           else
12793                             wx_cv_use_dirdlg='wxUSE_DIRDLG=no'
12794                           fi
12795
12796 else
12797
12798                           wx_cv_use_dirdlg='wxUSE_DIRDLG=${'DEFAULT_wxUSE_DIRDLG":-$defaultval}"
12799
12800 fi
12801
12802
12803           eval "$wx_cv_use_dirdlg"
12804
12805           if test x"$enablestring" = xdisable; then
12806             if test $wxUSE_DIRDLG = no; then
12807               result=yes
12808             else
12809               result=no
12810             fi
12811           else
12812             result=$wxUSE_DIRDLG
12813           fi
12814
12815           { echo "$as_me:$LINENO: result: $result" >&5
12816 echo "${ECHO_T}$result" >&6; }
12817
12818
12819           enablestring=
12820           defaultval=$wxUSE_ALL_FEATURES
12821           if test -z "$defaultval"; then
12822               if test x"$enablestring" = xdisable; then
12823                   defaultval=yes
12824               else
12825                   defaultval=no
12826               fi
12827           fi
12828
12829           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
12830 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6; }
12831           # Check whether --enable-msgdlg was given.
12832 if test "${enable_msgdlg+set}" = set; then
12833   enableval=$enable_msgdlg;
12834                           if test "$enableval" = yes; then
12835                             wx_cv_use_msgdlg='wxUSE_MSGDLG=yes'
12836                           else
12837                             wx_cv_use_msgdlg='wxUSE_MSGDLG=no'
12838                           fi
12839
12840 else
12841
12842                           wx_cv_use_msgdlg='wxUSE_MSGDLG=${'DEFAULT_wxUSE_MSGDLG":-$defaultval}"
12843
12844 fi
12845
12846
12847           eval "$wx_cv_use_msgdlg"
12848
12849           if test x"$enablestring" = xdisable; then
12850             if test $wxUSE_MSGDLG = no; then
12851               result=yes
12852             else
12853               result=no
12854             fi
12855           else
12856             result=$wxUSE_MSGDLG
12857           fi
12858
12859           { echo "$as_me:$LINENO: result: $result" >&5
12860 echo "${ECHO_T}$result" >&6; }
12861
12862
12863           enablestring=
12864           defaultval=$wxUSE_ALL_FEATURES
12865           if test -z "$defaultval"; then
12866               if test x"$enablestring" = xdisable; then
12867                   defaultval=yes
12868               else
12869                   defaultval=no
12870               fi
12871           fi
12872
12873           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
12874 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6; }
12875           # Check whether --enable-numberdlg was given.
12876 if test "${enable_numberdlg+set}" = set; then
12877   enableval=$enable_numberdlg;
12878                           if test "$enableval" = yes; then
12879                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
12880                           else
12881                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
12882                           fi
12883
12884 else
12885
12886                           wx_cv_use_numberdlg='wxUSE_NUMBERDLG=${'DEFAULT_wxUSE_NUMBERDLG":-$defaultval}"
12887
12888 fi
12889
12890
12891           eval "$wx_cv_use_numberdlg"
12892
12893           if test x"$enablestring" = xdisable; then
12894             if test $wxUSE_NUMBERDLG = no; then
12895               result=yes
12896             else
12897               result=no
12898             fi
12899           else
12900             result=$wxUSE_NUMBERDLG
12901           fi
12902
12903           { echo "$as_me:$LINENO: result: $result" >&5
12904 echo "${ECHO_T}$result" >&6; }
12905
12906
12907           enablestring=
12908           defaultval=$wxUSE_ALL_FEATURES
12909           if test -z "$defaultval"; then
12910               if test x"$enablestring" = xdisable; then
12911                   defaultval=yes
12912               else
12913                   defaultval=no
12914               fi
12915           fi
12916
12917           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
12918 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6; }
12919           # Check whether --enable-splash was given.
12920 if test "${enable_splash+set}" = set; then
12921   enableval=$enable_splash;
12922                           if test "$enableval" = yes; then
12923                             wx_cv_use_splash='wxUSE_SPLASH=yes'
12924                           else
12925                             wx_cv_use_splash='wxUSE_SPLASH=no'
12926                           fi
12927
12928 else
12929
12930                           wx_cv_use_splash='wxUSE_SPLASH=${'DEFAULT_wxUSE_SPLASH":-$defaultval}"
12931
12932 fi
12933
12934
12935           eval "$wx_cv_use_splash"
12936
12937           if test x"$enablestring" = xdisable; then
12938             if test $wxUSE_SPLASH = no; then
12939               result=yes
12940             else
12941               result=no
12942             fi
12943           else
12944             result=$wxUSE_SPLASH
12945           fi
12946
12947           { echo "$as_me:$LINENO: result: $result" >&5
12948 echo "${ECHO_T}$result" >&6; }
12949
12950
12951           enablestring=
12952           defaultval=$wxUSE_ALL_FEATURES
12953           if test -z "$defaultval"; then
12954               if test x"$enablestring" = xdisable; then
12955                   defaultval=yes
12956               else
12957                   defaultval=no
12958               fi
12959           fi
12960
12961           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
12962 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6; }
12963           # Check whether --enable-textdlg was given.
12964 if test "${enable_textdlg+set}" = set; then
12965   enableval=$enable_textdlg;
12966                           if test "$enableval" = yes; then
12967                             wx_cv_use_textdlg='wxUSE_TEXTDLG=yes'
12968                           else
12969                             wx_cv_use_textdlg='wxUSE_TEXTDLG=no'
12970                           fi
12971
12972 else
12973
12974                           wx_cv_use_textdlg='wxUSE_TEXTDLG=${'DEFAULT_wxUSE_TEXTDLG":-$defaultval}"
12975
12976 fi
12977
12978
12979           eval "$wx_cv_use_textdlg"
12980
12981           if test x"$enablestring" = xdisable; then
12982             if test $wxUSE_TEXTDLG = no; then
12983               result=yes
12984             else
12985               result=no
12986             fi
12987           else
12988             result=$wxUSE_TEXTDLG
12989           fi
12990
12991           { echo "$as_me:$LINENO: result: $result" >&5
12992 echo "${ECHO_T}$result" >&6; }
12993
12994
12995           enablestring=
12996           defaultval=$wxUSE_ALL_FEATURES
12997           if test -z "$defaultval"; then
12998               if test x"$enablestring" = xdisable; then
12999                   defaultval=yes
13000               else
13001                   defaultval=no
13002               fi
13003           fi
13004
13005           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
13006 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6; }
13007           # Check whether --enable-tipdlg was given.
13008 if test "${enable_tipdlg+set}" = set; then
13009   enableval=$enable_tipdlg;
13010                           if test "$enableval" = yes; then
13011                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
13012                           else
13013                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
13014                           fi
13015
13016 else
13017
13018                           wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=${'DEFAULT_wxUSE_STARTUP_TIPS":-$defaultval}"
13019
13020 fi
13021
13022
13023           eval "$wx_cv_use_tipdlg"
13024
13025           if test x"$enablestring" = xdisable; then
13026             if test $wxUSE_STARTUP_TIPS = no; then
13027               result=yes
13028             else
13029               result=no
13030             fi
13031           else
13032             result=$wxUSE_STARTUP_TIPS
13033           fi
13034
13035           { echo "$as_me:$LINENO: result: $result" >&5
13036 echo "${ECHO_T}$result" >&6; }
13037
13038
13039           enablestring=
13040           defaultval=$wxUSE_ALL_FEATURES
13041           if test -z "$defaultval"; then
13042               if test x"$enablestring" = xdisable; then
13043                   defaultval=yes
13044               else
13045                   defaultval=no
13046               fi
13047           fi
13048
13049           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
13050 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6; }
13051           # Check whether --enable-progressdlg was given.
13052 if test "${enable_progressdlg+set}" = set; then
13053   enableval=$enable_progressdlg;
13054                           if test "$enableval" = yes; then
13055                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
13056                           else
13057                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
13058                           fi
13059
13060 else
13061
13062                           wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=${'DEFAULT_wxUSE_PROGRESSDLG":-$defaultval}"
13063
13064 fi
13065
13066
13067           eval "$wx_cv_use_progressdlg"
13068
13069           if test x"$enablestring" = xdisable; then
13070             if test $wxUSE_PROGRESSDLG = no; then
13071               result=yes
13072             else
13073               result=no
13074             fi
13075           else
13076             result=$wxUSE_PROGRESSDLG
13077           fi
13078
13079           { echo "$as_me:$LINENO: result: $result" >&5
13080 echo "${ECHO_T}$result" >&6; }
13081
13082
13083           enablestring=
13084           defaultval=$wxUSE_ALL_FEATURES
13085           if test -z "$defaultval"; then
13086               if test x"$enablestring" = xdisable; then
13087                   defaultval=yes
13088               else
13089                   defaultval=no
13090               fi
13091           fi
13092
13093           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
13094 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6; }
13095           # Check whether --enable-wizarddlg was given.
13096 if test "${enable_wizarddlg+set}" = set; then
13097   enableval=$enable_wizarddlg;
13098                           if test "$enableval" = yes; then
13099                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
13100                           else
13101                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
13102                           fi
13103
13104 else
13105
13106                           wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=${'DEFAULT_wxUSE_WIZARDDLG":-$defaultval}"
13107
13108 fi
13109
13110
13111           eval "$wx_cv_use_wizarddlg"
13112
13113           if test x"$enablestring" = xdisable; then
13114             if test $wxUSE_WIZARDDLG = no; then
13115               result=yes
13116             else
13117               result=no
13118             fi
13119           else
13120             result=$wxUSE_WIZARDDLG
13121           fi
13122
13123           { echo "$as_me:$LINENO: result: $result" >&5
13124 echo "${ECHO_T}$result" >&6; }
13125
13126
13127
13128
13129           enablestring=
13130           defaultval=$wxUSE_ALL_FEATURES
13131           if test -z "$defaultval"; then
13132               if test x"$enablestring" = xdisable; then
13133                   defaultval=yes
13134               else
13135                   defaultval=no
13136               fi
13137           fi
13138
13139           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
13140 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6; }
13141           # Check whether --enable-menus was given.
13142 if test "${enable_menus+set}" = set; then
13143   enableval=$enable_menus;
13144                           if test "$enableval" = yes; then
13145                             wx_cv_use_menus='wxUSE_MENUS=yes'
13146                           else
13147                             wx_cv_use_menus='wxUSE_MENUS=no'
13148                           fi
13149
13150 else
13151
13152                           wx_cv_use_menus='wxUSE_MENUS=${'DEFAULT_wxUSE_MENUS":-$defaultval}"
13153
13154 fi
13155
13156
13157           eval "$wx_cv_use_menus"
13158
13159           if test x"$enablestring" = xdisable; then
13160             if test $wxUSE_MENUS = no; then
13161               result=yes
13162             else
13163               result=no
13164             fi
13165           else
13166             result=$wxUSE_MENUS
13167           fi
13168
13169           { echo "$as_me:$LINENO: result: $result" >&5
13170 echo "${ECHO_T}$result" >&6; }
13171
13172
13173           enablestring=
13174           defaultval=$wxUSE_ALL_FEATURES
13175           if test -z "$defaultval"; then
13176               if test x"$enablestring" = xdisable; then
13177                   defaultval=yes
13178               else
13179                   defaultval=no
13180               fi
13181           fi
13182
13183           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
13184 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6; }
13185           # Check whether --enable-miniframe was given.
13186 if test "${enable_miniframe+set}" = set; then
13187   enableval=$enable_miniframe;
13188                           if test "$enableval" = yes; then
13189                             wx_cv_use_miniframe='wxUSE_MINIFRAME=yes'
13190                           else
13191                             wx_cv_use_miniframe='wxUSE_MINIFRAME=no'
13192                           fi
13193
13194 else
13195
13196                           wx_cv_use_miniframe='wxUSE_MINIFRAME=${'DEFAULT_wxUSE_MINIFRAME":-$defaultval}"
13197
13198 fi
13199
13200
13201           eval "$wx_cv_use_miniframe"
13202
13203           if test x"$enablestring" = xdisable; then
13204             if test $wxUSE_MINIFRAME = no; then
13205               result=yes
13206             else
13207               result=no
13208             fi
13209           else
13210             result=$wxUSE_MINIFRAME
13211           fi
13212
13213           { echo "$as_me:$LINENO: result: $result" >&5
13214 echo "${ECHO_T}$result" >&6; }
13215
13216
13217           enablestring=
13218           defaultval=$wxUSE_ALL_FEATURES
13219           if test -z "$defaultval"; then
13220               if test x"$enablestring" = xdisable; then
13221                   defaultval=yes
13222               else
13223                   defaultval=no
13224               fi
13225           fi
13226
13227           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
13228 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6; }
13229           # Check whether --enable-tooltips was given.
13230 if test "${enable_tooltips+set}" = set; then
13231   enableval=$enable_tooltips;
13232                           if test "$enableval" = yes; then
13233                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
13234                           else
13235                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=no'
13236                           fi
13237
13238 else
13239
13240                           wx_cv_use_tooltips='wxUSE_TOOLTIPS=${'DEFAULT_wxUSE_TOOLTIPS":-$defaultval}"
13241
13242 fi
13243
13244
13245           eval "$wx_cv_use_tooltips"
13246
13247           if test x"$enablestring" = xdisable; then
13248             if test $wxUSE_TOOLTIPS = no; then
13249               result=yes
13250             else
13251               result=no
13252             fi
13253           else
13254             result=$wxUSE_TOOLTIPS
13255           fi
13256
13257           { echo "$as_me:$LINENO: result: $result" >&5
13258 echo "${ECHO_T}$result" >&6; }
13259
13260
13261           enablestring=
13262           defaultval=$wxUSE_ALL_FEATURES
13263           if test -z "$defaultval"; then
13264               if test x"$enablestring" = xdisable; then
13265                   defaultval=yes
13266               else
13267                   defaultval=no
13268               fi
13269           fi
13270
13271           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
13272 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6; }
13273           # Check whether --enable-splines was given.
13274 if test "${enable_splines+set}" = set; then
13275   enableval=$enable_splines;
13276                           if test "$enableval" = yes; then
13277                             wx_cv_use_splines='wxUSE_SPLINES=yes'
13278                           else
13279                             wx_cv_use_splines='wxUSE_SPLINES=no'
13280                           fi
13281
13282 else
13283
13284                           wx_cv_use_splines='wxUSE_SPLINES=${'DEFAULT_wxUSE_SPLINES":-$defaultval}"
13285
13286 fi
13287
13288
13289           eval "$wx_cv_use_splines"
13290
13291           if test x"$enablestring" = xdisable; then
13292             if test $wxUSE_SPLINES = no; then
13293               result=yes
13294             else
13295               result=no
13296             fi
13297           else
13298             result=$wxUSE_SPLINES
13299           fi
13300
13301           { echo "$as_me:$LINENO: result: $result" >&5
13302 echo "${ECHO_T}$result" >&6; }
13303
13304
13305           enablestring=
13306           defaultval=$wxUSE_ALL_FEATURES
13307           if test -z "$defaultval"; then
13308               if test x"$enablestring" = xdisable; then
13309                   defaultval=yes
13310               else
13311                   defaultval=no
13312               fi
13313           fi
13314
13315           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
13316 echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6; }
13317           # Check whether --enable-mousewheel was given.
13318 if test "${enable_mousewheel+set}" = set; then
13319   enableval=$enable_mousewheel;
13320                           if test "$enableval" = yes; then
13321                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
13322                           else
13323                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
13324                           fi
13325
13326 else
13327
13328                           wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=${'DEFAULT_wxUSE_MOUSEWHEEL":-$defaultval}"
13329
13330 fi
13331
13332
13333           eval "$wx_cv_use_mousewheel"
13334
13335           if test x"$enablestring" = xdisable; then
13336             if test $wxUSE_MOUSEWHEEL = no; then
13337               result=yes
13338             else
13339               result=no
13340             fi
13341           else
13342             result=$wxUSE_MOUSEWHEEL
13343           fi
13344
13345           { echo "$as_me:$LINENO: result: $result" >&5
13346 echo "${ECHO_T}$result" >&6; }
13347
13348
13349           enablestring=
13350           defaultval=$wxUSE_ALL_FEATURES
13351           if test -z "$defaultval"; then
13352               if test x"$enablestring" = xdisable; then
13353                   defaultval=yes
13354               else
13355                   defaultval=no
13356               fi
13357           fi
13358
13359           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
13360 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6; }
13361           # Check whether --enable-validators was given.
13362 if test "${enable_validators+set}" = set; then
13363   enableval=$enable_validators;
13364                           if test "$enableval" = yes; then
13365                             wx_cv_use_validators='wxUSE_VALIDATORS=yes'
13366                           else
13367                             wx_cv_use_validators='wxUSE_VALIDATORS=no'
13368                           fi
13369
13370 else
13371
13372                           wx_cv_use_validators='wxUSE_VALIDATORS=${'DEFAULT_wxUSE_VALIDATORS":-$defaultval}"
13373
13374 fi
13375
13376
13377           eval "$wx_cv_use_validators"
13378
13379           if test x"$enablestring" = xdisable; then
13380             if test $wxUSE_VALIDATORS = no; then
13381               result=yes
13382             else
13383               result=no
13384             fi
13385           else
13386             result=$wxUSE_VALIDATORS
13387           fi
13388
13389           { echo "$as_me:$LINENO: result: $result" >&5
13390 echo "${ECHO_T}$result" >&6; }
13391
13392
13393           enablestring=
13394           defaultval=$wxUSE_ALL_FEATURES
13395           if test -z "$defaultval"; then
13396               if test x"$enablestring" = xdisable; then
13397                   defaultval=yes
13398               else
13399                   defaultval=no
13400               fi
13401           fi
13402
13403           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
13404 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6; }
13405           # Check whether --enable-busyinfo was given.
13406 if test "${enable_busyinfo+set}" = set; then
13407   enableval=$enable_busyinfo;
13408                           if test "$enableval" = yes; then
13409                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
13410                           else
13411                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=no'
13412                           fi
13413
13414 else
13415
13416                           wx_cv_use_busyinfo='wxUSE_BUSYINFO=${'DEFAULT_wxUSE_BUSYINFO":-$defaultval}"
13417
13418 fi
13419
13420
13421           eval "$wx_cv_use_busyinfo"
13422
13423           if test x"$enablestring" = xdisable; then
13424             if test $wxUSE_BUSYINFO = no; then
13425               result=yes
13426             else
13427               result=no
13428             fi
13429           else
13430             result=$wxUSE_BUSYINFO
13431           fi
13432
13433           { echo "$as_me:$LINENO: result: $result" >&5
13434 echo "${ECHO_T}$result" >&6; }
13435
13436
13437           enablestring=
13438           defaultval=$wxUSE_ALL_FEATURES
13439           if test -z "$defaultval"; then
13440               if test x"$enablestring" = xdisable; then
13441                   defaultval=yes
13442               else
13443                   defaultval=no
13444               fi
13445           fi
13446
13447           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
13448 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6; }
13449           # Check whether --enable-joystick was given.
13450 if test "${enable_joystick+set}" = set; then
13451   enableval=$enable_joystick;
13452                           if test "$enableval" = yes; then
13453                             wx_cv_use_joystick='wxUSE_JOYSTICK=yes'
13454                           else
13455                             wx_cv_use_joystick='wxUSE_JOYSTICK=no'
13456                           fi
13457
13458 else
13459
13460                           wx_cv_use_joystick='wxUSE_JOYSTICK=${'DEFAULT_wxUSE_JOYSTICK":-$defaultval}"
13461
13462 fi
13463
13464
13465           eval "$wx_cv_use_joystick"
13466
13467           if test x"$enablestring" = xdisable; then
13468             if test $wxUSE_JOYSTICK = no; then
13469               result=yes
13470             else
13471               result=no
13472             fi
13473           else
13474             result=$wxUSE_JOYSTICK
13475           fi
13476
13477           { echo "$as_me:$LINENO: result: $result" >&5
13478 echo "${ECHO_T}$result" >&6; }
13479
13480
13481           enablestring=
13482           defaultval=$wxUSE_ALL_FEATURES
13483           if test -z "$defaultval"; then
13484               if test x"$enablestring" = xdisable; then
13485                   defaultval=yes
13486               else
13487                   defaultval=no
13488               fi
13489           fi
13490
13491           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
13492 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
13493           # Check whether --enable-metafile was given.
13494 if test "${enable_metafile+set}" = set; then
13495   enableval=$enable_metafile;
13496                           if test "$enableval" = yes; then
13497                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
13498                           else
13499                             wx_cv_use_metafile='wxUSE_METAFILE=no'
13500                           fi
13501
13502 else
13503
13504                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
13505
13506 fi
13507
13508
13509           eval "$wx_cv_use_metafile"
13510
13511           if test x"$enablestring" = xdisable; then
13512             if test $wxUSE_METAFILE = no; then
13513               result=yes
13514             else
13515               result=no
13516             fi
13517           else
13518             result=$wxUSE_METAFILE
13519           fi
13520
13521           { echo "$as_me:$LINENO: result: $result" >&5
13522 echo "${ECHO_T}$result" >&6; }
13523
13524
13525           enablestring=
13526           defaultval=$wxUSE_ALL_FEATURES
13527           if test -z "$defaultval"; then
13528               if test x"$enablestring" = xdisable; then
13529                   defaultval=yes
13530               else
13531                   defaultval=no
13532               fi
13533           fi
13534
13535           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
13536 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6; }
13537           # Check whether --enable-dragimage was given.
13538 if test "${enable_dragimage+set}" = set; then
13539   enableval=$enable_dragimage;
13540                           if test "$enableval" = yes; then
13541                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
13542                           else
13543                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
13544                           fi
13545
13546 else
13547
13548                           wx_cv_use_dragimage='wxUSE_DRAGIMAGE=${'DEFAULT_wxUSE_DRAGIMAGE":-$defaultval}"
13549
13550 fi
13551
13552
13553           eval "$wx_cv_use_dragimage"
13554
13555           if test x"$enablestring" = xdisable; then
13556             if test $wxUSE_DRAGIMAGE = no; then
13557               result=yes
13558             else
13559               result=no
13560             fi
13561           else
13562             result=$wxUSE_DRAGIMAGE
13563           fi
13564
13565           { echo "$as_me:$LINENO: result: $result" >&5
13566 echo "${ECHO_T}$result" >&6; }
13567
13568
13569           enablestring=
13570           defaultval=$wxUSE_ALL_FEATURES
13571           if test -z "$defaultval"; then
13572               if test x"$enablestring" = xdisable; then
13573                   defaultval=yes
13574               else
13575                   defaultval=no
13576               fi
13577           fi
13578
13579           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
13580 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6; }
13581           # Check whether --enable-accessibility was given.
13582 if test "${enable_accessibility+set}" = set; then
13583   enableval=$enable_accessibility;
13584                           if test "$enableval" = yes; then
13585                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
13586                           else
13587                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
13588                           fi
13589
13590 else
13591
13592                           wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=${'DEFAULT_wxUSE_ACCESSIBILITY":-$defaultval}"
13593
13594 fi
13595
13596
13597           eval "$wx_cv_use_accessibility"
13598
13599           if test x"$enablestring" = xdisable; then
13600             if test $wxUSE_ACCESSIBILITY = no; then
13601               result=yes
13602             else
13603               result=no
13604             fi
13605           else
13606             result=$wxUSE_ACCESSIBILITY
13607           fi
13608
13609           { echo "$as_me:$LINENO: result: $result" >&5
13610 echo "${ECHO_T}$result" >&6; }
13611
13612
13613           enablestring=
13614           defaultval=$wxUSE_ALL_FEATURES
13615           if test -z "$defaultval"; then
13616               if test x"$enablestring" = xdisable; then
13617                   defaultval=yes
13618               else
13619                   defaultval=no
13620               fi
13621           fi
13622
13623           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-uiactionsim" >&5
13624 echo $ECHO_N "checking for --${enablestring:-enable}-uiactionsim... $ECHO_C" >&6; }
13625           # Check whether --enable-uiactionsim was given.
13626 if test "${enable_uiactionsim+set}" = set; then
13627   enableval=$enable_uiactionsim;
13628                           if test "$enableval" = yes; then
13629                             wx_cv_use_uiactionsim='wxUSE_UIACTIONSIMULATOR=yes'
13630                           else
13631                             wx_cv_use_uiactionsim='wxUSE_UIACTIONSIMULATOR=no'
13632                           fi
13633
13634 else
13635
13636                           wx_cv_use_uiactionsim='wxUSE_UIACTIONSIMULATOR=${'DEFAULT_wxUSE_UIACTIONSIMULATOR":-$defaultval}"
13637
13638 fi
13639
13640
13641           eval "$wx_cv_use_uiactionsim"
13642
13643           if test x"$enablestring" = xdisable; then
13644             if test $wxUSE_UIACTIONSIMULATOR = no; then
13645               result=yes
13646             else
13647               result=no
13648             fi
13649           else
13650             result=$wxUSE_UIACTIONSIMULATOR
13651           fi
13652
13653           { echo "$as_me:$LINENO: result: $result" >&5
13654 echo "${ECHO_T}$result" >&6; }
13655
13656
13657
13658
13659           enablestring=
13660           defaultval=$wxUSE_ALL_FEATURES
13661           if test -z "$defaultval"; then
13662               if test x"$enablestring" = xdisable; then
13663                   defaultval=yes
13664               else
13665                   defaultval=no
13666               fi
13667           fi
13668
13669           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
13670 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6; }
13671           # Check whether --enable-palette was given.
13672 if test "${enable_palette+set}" = set; then
13673   enableval=$enable_palette;
13674                           if test "$enableval" = yes; then
13675                             wx_cv_use_palette='wxUSE_PALETTE=yes'
13676                           else
13677                             wx_cv_use_palette='wxUSE_PALETTE=no'
13678                           fi
13679
13680 else
13681
13682                           wx_cv_use_palette='wxUSE_PALETTE=${'DEFAULT_wxUSE_PALETTE":-$defaultval}"
13683
13684 fi
13685
13686
13687           eval "$wx_cv_use_palette"
13688
13689           if test x"$enablestring" = xdisable; then
13690             if test $wxUSE_PALETTE = no; then
13691               result=yes
13692             else
13693               result=no
13694             fi
13695           else
13696             result=$wxUSE_PALETTE
13697           fi
13698
13699           { echo "$as_me:$LINENO: result: $result" >&5
13700 echo "${ECHO_T}$result" >&6; }
13701
13702
13703           enablestring=
13704           defaultval=$wxUSE_ALL_FEATURES
13705           if test -z "$defaultval"; then
13706               if test x"$enablestring" = xdisable; then
13707                   defaultval=yes
13708               else
13709                   defaultval=no
13710               fi
13711           fi
13712
13713           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
13714 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6; }
13715           # Check whether --enable-image was given.
13716 if test "${enable_image+set}" = set; then
13717   enableval=$enable_image;
13718                           if test "$enableval" = yes; then
13719                             wx_cv_use_image='wxUSE_IMAGE=yes'
13720                           else
13721                             wx_cv_use_image='wxUSE_IMAGE=no'
13722                           fi
13723
13724 else
13725
13726                           wx_cv_use_image='wxUSE_IMAGE=${'DEFAULT_wxUSE_IMAGE":-$defaultval}"
13727
13728 fi
13729
13730
13731           eval "$wx_cv_use_image"
13732
13733           if test x"$enablestring" = xdisable; then
13734             if test $wxUSE_IMAGE = no; then
13735               result=yes
13736             else
13737               result=no
13738             fi
13739           else
13740             result=$wxUSE_IMAGE
13741           fi
13742
13743           { echo "$as_me:$LINENO: result: $result" >&5
13744 echo "${ECHO_T}$result" >&6; }
13745
13746
13747           enablestring=
13748           defaultval=$wxUSE_ALL_FEATURES
13749           if test -z "$defaultval"; then
13750               if test x"$enablestring" = xdisable; then
13751                   defaultval=yes
13752               else
13753                   defaultval=no
13754               fi
13755           fi
13756
13757           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
13758 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6; }
13759           # Check whether --enable-gif was given.
13760 if test "${enable_gif+set}" = set; then
13761   enableval=$enable_gif;
13762                           if test "$enableval" = yes; then
13763                             wx_cv_use_gif='wxUSE_GIF=yes'
13764                           else
13765                             wx_cv_use_gif='wxUSE_GIF=no'
13766                           fi
13767
13768 else
13769
13770                           wx_cv_use_gif='wxUSE_GIF=${'DEFAULT_wxUSE_GIF":-$defaultval}"
13771
13772 fi
13773
13774
13775           eval "$wx_cv_use_gif"
13776
13777           if test x"$enablestring" = xdisable; then
13778             if test $wxUSE_GIF = no; then
13779               result=yes
13780             else
13781               result=no
13782             fi
13783           else
13784             result=$wxUSE_GIF
13785           fi
13786
13787           { echo "$as_me:$LINENO: result: $result" >&5
13788 echo "${ECHO_T}$result" >&6; }
13789
13790
13791           enablestring=
13792           defaultval=$wxUSE_ALL_FEATURES
13793           if test -z "$defaultval"; then
13794               if test x"$enablestring" = xdisable; then
13795                   defaultval=yes
13796               else
13797                   defaultval=no
13798               fi
13799           fi
13800
13801           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
13802 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6; }
13803           # Check whether --enable-pcx was given.
13804 if test "${enable_pcx+set}" = set; then
13805   enableval=$enable_pcx;
13806                           if test "$enableval" = yes; then
13807                             wx_cv_use_pcx='wxUSE_PCX=yes'
13808                           else
13809                             wx_cv_use_pcx='wxUSE_PCX=no'
13810                           fi
13811
13812 else
13813
13814                           wx_cv_use_pcx='wxUSE_PCX=${'DEFAULT_wxUSE_PCX":-$defaultval}"
13815
13816 fi
13817
13818
13819           eval "$wx_cv_use_pcx"
13820
13821           if test x"$enablestring" = xdisable; then
13822             if test $wxUSE_PCX = no; then
13823               result=yes
13824             else
13825               result=no
13826             fi
13827           else
13828             result=$wxUSE_PCX
13829           fi
13830
13831           { echo "$as_me:$LINENO: result: $result" >&5
13832 echo "${ECHO_T}$result" >&6; }
13833
13834
13835           enablestring=
13836           defaultval=$wxUSE_ALL_FEATURES
13837           if test -z "$defaultval"; then
13838               if test x"$enablestring" = xdisable; then
13839                   defaultval=yes
13840               else
13841                   defaultval=no
13842               fi
13843           fi
13844
13845           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tga" >&5
13846 echo $ECHO_N "checking for --${enablestring:-enable}-tga... $ECHO_C" >&6; }
13847           # Check whether --enable-tga was given.
13848 if test "${enable_tga+set}" = set; then
13849   enableval=$enable_tga;
13850                           if test "$enableval" = yes; then
13851                             wx_cv_use_tga='wxUSE_TGA=yes'
13852                           else
13853                             wx_cv_use_tga='wxUSE_TGA=no'
13854                           fi
13855
13856 else
13857
13858                           wx_cv_use_tga='wxUSE_TGA=${'DEFAULT_wxUSE_TGA":-$defaultval}"
13859
13860 fi
13861
13862
13863           eval "$wx_cv_use_tga"
13864
13865           if test x"$enablestring" = xdisable; then
13866             if test $wxUSE_TGA = no; then
13867               result=yes
13868             else
13869               result=no
13870             fi
13871           else
13872             result=$wxUSE_TGA
13873           fi
13874
13875           { echo "$as_me:$LINENO: result: $result" >&5
13876 echo "${ECHO_T}$result" >&6; }
13877
13878
13879           enablestring=
13880           defaultval=$wxUSE_ALL_FEATURES
13881           if test -z "$defaultval"; then
13882               if test x"$enablestring" = xdisable; then
13883                   defaultval=yes
13884               else
13885                   defaultval=no
13886               fi
13887           fi
13888
13889           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
13890 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6; }
13891           # Check whether --enable-iff was given.
13892 if test "${enable_iff+set}" = set; then
13893   enableval=$enable_iff;
13894                           if test "$enableval" = yes; then
13895                             wx_cv_use_iff='wxUSE_IFF=yes'
13896                           else
13897                             wx_cv_use_iff='wxUSE_IFF=no'
13898                           fi
13899
13900 else
13901
13902                           wx_cv_use_iff='wxUSE_IFF=${'DEFAULT_wxUSE_IFF":-$defaultval}"
13903
13904 fi
13905
13906
13907           eval "$wx_cv_use_iff"
13908
13909           if test x"$enablestring" = xdisable; then
13910             if test $wxUSE_IFF = no; then
13911               result=yes
13912             else
13913               result=no
13914             fi
13915           else
13916             result=$wxUSE_IFF
13917           fi
13918
13919           { echo "$as_me:$LINENO: result: $result" >&5
13920 echo "${ECHO_T}$result" >&6; }
13921
13922
13923           enablestring=
13924           defaultval=$wxUSE_ALL_FEATURES
13925           if test -z "$defaultval"; then
13926               if test x"$enablestring" = xdisable; then
13927                   defaultval=yes
13928               else
13929                   defaultval=no
13930               fi
13931           fi
13932
13933           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
13934 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6; }
13935           # Check whether --enable-pnm was given.
13936 if test "${enable_pnm+set}" = set; then
13937   enableval=$enable_pnm;
13938                           if test "$enableval" = yes; then
13939                             wx_cv_use_pnm='wxUSE_PNM=yes'
13940                           else
13941                             wx_cv_use_pnm='wxUSE_PNM=no'
13942                           fi
13943
13944 else
13945
13946                           wx_cv_use_pnm='wxUSE_PNM=${'DEFAULT_wxUSE_PNM":-$defaultval}"
13947
13948 fi
13949
13950
13951           eval "$wx_cv_use_pnm"
13952
13953           if test x"$enablestring" = xdisable; then
13954             if test $wxUSE_PNM = no; then
13955               result=yes
13956             else
13957               result=no
13958             fi
13959           else
13960             result=$wxUSE_PNM
13961           fi
13962
13963           { echo "$as_me:$LINENO: result: $result" >&5
13964 echo "${ECHO_T}$result" >&6; }
13965
13966
13967           enablestring=
13968           defaultval=$wxUSE_ALL_FEATURES
13969           if test -z "$defaultval"; then
13970               if test x"$enablestring" = xdisable; then
13971                   defaultval=yes
13972               else
13973                   defaultval=no
13974               fi
13975           fi
13976
13977           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
13978 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6; }
13979           # Check whether --enable-xpm was given.
13980 if test "${enable_xpm+set}" = set; then
13981   enableval=$enable_xpm;
13982                           if test "$enableval" = yes; then
13983                             wx_cv_use_xpm='wxUSE_XPM=yes'
13984                           else
13985                             wx_cv_use_xpm='wxUSE_XPM=no'
13986                           fi
13987
13988 else
13989
13990                           wx_cv_use_xpm='wxUSE_XPM=${'DEFAULT_wxUSE_XPM":-$defaultval}"
13991
13992 fi
13993
13994
13995           eval "$wx_cv_use_xpm"
13996
13997           if test x"$enablestring" = xdisable; then
13998             if test $wxUSE_XPM = no; then
13999               result=yes
14000             else
14001               result=no
14002             fi
14003           else
14004             result=$wxUSE_XPM
14005           fi
14006
14007           { echo "$as_me:$LINENO: result: $result" >&5
14008 echo "${ECHO_T}$result" >&6; }
14009
14010
14011           enablestring=
14012           defaultval=$wxUSE_ALL_FEATURES
14013           if test -z "$defaultval"; then
14014               if test x"$enablestring" = xdisable; then
14015                   defaultval=yes
14016               else
14017                   defaultval=no
14018               fi
14019           fi
14020
14021           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
14022 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6; }
14023           # Check whether --enable-ico_cur was given.
14024 if test "${enable_ico_cur+set}" = set; then
14025   enableval=$enable_ico_cur;
14026                           if test "$enableval" = yes; then
14027                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
14028                           else
14029                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=no'
14030                           fi
14031
14032 else
14033
14034                           wx_cv_use_ico_cur='wxUSE_ICO_CUR=${'DEFAULT_wxUSE_ICO_CUR":-$defaultval}"
14035
14036 fi
14037
14038
14039           eval "$wx_cv_use_ico_cur"
14040
14041           if test x"$enablestring" = xdisable; then
14042             if test $wxUSE_ICO_CUR = no; then
14043               result=yes
14044             else
14045               result=no
14046             fi
14047           else
14048             result=$wxUSE_ICO_CUR
14049           fi
14050
14051           { echo "$as_me:$LINENO: result: $result" >&5
14052 echo "${ECHO_T}$result" >&6; }
14053
14054
14055
14056
14057           enablestring=
14058           defaultval=$wxUSE_ALL_FEATURES
14059           if test -z "$defaultval"; then
14060               if test x"$enablestring" = xdisable; then
14061                   defaultval=yes
14062               else
14063                   defaultval=no
14064               fi
14065           fi
14066
14067           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
14068 echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6; }
14069           # Check whether --enable-dccache was given.
14070 if test "${enable_dccache+set}" = set; then
14071   enableval=$enable_dccache;
14072                           if test "$enableval" = yes; then
14073                             wx_cv_use_dccache='wxUSE_DC_CACHEING=yes'
14074                           else
14075                             wx_cv_use_dccache='wxUSE_DC_CACHEING=no'
14076                           fi
14077
14078 else
14079
14080                           wx_cv_use_dccache='wxUSE_DC_CACHEING=${'DEFAULT_wxUSE_DC_CACHEING":-$defaultval}"
14081
14082 fi
14083
14084
14085           eval "$wx_cv_use_dccache"
14086
14087           if test x"$enablestring" = xdisable; then
14088             if test $wxUSE_DC_CACHEING = no; then
14089               result=yes
14090             else
14091               result=no
14092             fi
14093           else
14094             result=$wxUSE_DC_CACHEING
14095           fi
14096
14097           { echo "$as_me:$LINENO: result: $result" >&5
14098 echo "${ECHO_T}$result" >&6; }
14099
14100
14101           enablestring=
14102           defaultval=$wxUSE_ALL_FEATURES
14103           if test -z "$defaultval"; then
14104               if test x"$enablestring" = xdisable; then
14105                   defaultval=yes
14106               else
14107                   defaultval=no
14108               fi
14109           fi
14110
14111           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ps-in-msw" >&5
14112 echo $ECHO_N "checking for --${enablestring:-enable}-ps-in-msw... $ECHO_C" >&6; }
14113           # Check whether --enable-ps-in-msw was given.
14114 if test "${enable_ps_in_msw+set}" = set; then
14115   enableval=$enable_ps_in_msw;
14116                           if test "$enableval" = yes; then
14117                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=yes'
14118                           else
14119                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=no'
14120                           fi
14121
14122 else
14123
14124                           wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=${'DEFAULT_wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW":-$defaultval}"
14125
14126 fi
14127
14128
14129           eval "$wx_cv_use_ps_in_msw"
14130
14131           if test x"$enablestring" = xdisable; then
14132             if test $wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW = no; then
14133               result=yes
14134             else
14135               result=no
14136             fi
14137           else
14138             result=$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW
14139           fi
14140
14141           { echo "$as_me:$LINENO: result: $result" >&5
14142 echo "${ECHO_T}$result" >&6; }
14143
14144
14145           enablestring=
14146           defaultval=$wxUSE_ALL_FEATURES
14147           if test -z "$defaultval"; then
14148               if test x"$enablestring" = xdisable; then
14149                   defaultval=yes
14150               else
14151                   defaultval=no
14152               fi
14153           fi
14154
14155           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ownerdrawn" >&5
14156 echo $ECHO_N "checking for --${enablestring:-enable}-ownerdrawn... $ECHO_C" >&6; }
14157           # Check whether --enable-ownerdrawn was given.
14158 if test "${enable_ownerdrawn+set}" = set; then
14159   enableval=$enable_ownerdrawn;
14160                           if test "$enableval" = yes; then
14161                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=yes'
14162                           else
14163                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=no'
14164                           fi
14165
14166 else
14167
14168                           wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=${'DEFAULT_wxUSE_OWNER_DRAWN":-$defaultval}"
14169
14170 fi
14171
14172
14173           eval "$wx_cv_use_ownerdrawn"
14174
14175           if test x"$enablestring" = xdisable; then
14176             if test $wxUSE_OWNER_DRAWN = no; then
14177               result=yes
14178             else
14179               result=no
14180             fi
14181           else
14182             result=$wxUSE_OWNER_DRAWN
14183           fi
14184
14185           { echo "$as_me:$LINENO: result: $result" >&5
14186 echo "${ECHO_T}$result" >&6; }
14187
14188
14189           enablestring=
14190           defaultval=$wxUSE_ALL_FEATURES
14191           if test -z "$defaultval"; then
14192               if test x"$enablestring" = xdisable; then
14193                   defaultval=yes
14194               else
14195                   defaultval=no
14196               fi
14197           fi
14198
14199           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-uxtheme" >&5
14200 echo $ECHO_N "checking for --${enablestring:-enable}-uxtheme... $ECHO_C" >&6; }
14201           # Check whether --enable-uxtheme was given.
14202 if test "${enable_uxtheme+set}" = set; then
14203   enableval=$enable_uxtheme;
14204                           if test "$enableval" = yes; then
14205                             wx_cv_use_uxtheme='wxUSE_UXTHEME=yes'
14206                           else
14207                             wx_cv_use_uxtheme='wxUSE_UXTHEME=no'
14208                           fi
14209
14210 else
14211
14212                           wx_cv_use_uxtheme='wxUSE_UXTHEME=${'DEFAULT_wxUSE_UXTHEME":-$defaultval}"
14213
14214 fi
14215
14216
14217           eval "$wx_cv_use_uxtheme"
14218
14219           if test x"$enablestring" = xdisable; then
14220             if test $wxUSE_UXTHEME = no; then
14221               result=yes
14222             else
14223               result=no
14224             fi
14225           else
14226             result=$wxUSE_UXTHEME
14227           fi
14228
14229           { echo "$as_me:$LINENO: result: $result" >&5
14230 echo "${ECHO_T}$result" >&6; }
14231
14232
14233           enablestring=
14234           defaultval=$wxUSE_ALL_FEATURES
14235           if test -z "$defaultval"; then
14236               if test x"$enablestring" = xdisable; then
14237                   defaultval=yes
14238               else
14239                   defaultval=no
14240               fi
14241           fi
14242
14243           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxdib" >&5
14244 echo $ECHO_N "checking for --${enablestring:-enable}-wxdib... $ECHO_C" >&6; }
14245           # Check whether --enable-wxdib was given.
14246 if test "${enable_wxdib+set}" = set; then
14247   enableval=$enable_wxdib;
14248                           if test "$enableval" = yes; then
14249                             wx_cv_use_wxdib='wxUSE_DIB=yes'
14250                           else
14251                             wx_cv_use_wxdib='wxUSE_DIB=no'
14252                           fi
14253
14254 else
14255
14256                           wx_cv_use_wxdib='wxUSE_DIB=${'DEFAULT_wxUSE_DIB":-$defaultval}"
14257
14258 fi
14259
14260
14261           eval "$wx_cv_use_wxdib"
14262
14263           if test x"$enablestring" = xdisable; then
14264             if test $wxUSE_DIB = no; then
14265               result=yes
14266             else
14267               result=no
14268             fi
14269           else
14270             result=$wxUSE_DIB
14271           fi
14272
14273           { echo "$as_me:$LINENO: result: $result" >&5
14274 echo "${ECHO_T}$result" >&6; }
14275
14276
14277 if test "$wxUSE_MSW" != 1; then
14278     DEFAULT_wxUSE_AUTOID_MANAGEMENT=no
14279 fi
14280
14281
14282           enablestring=
14283           defaultval=$wxUSE_ALL_FEATURES
14284           if test -z "$defaultval"; then
14285               if test x"$enablestring" = xdisable; then
14286                   defaultval=yes
14287               else
14288                   defaultval=no
14289               fi
14290           fi
14291
14292           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-autoidman" >&5
14293 echo $ECHO_N "checking for --${enablestring:-enable}-autoidman... $ECHO_C" >&6; }
14294           # Check whether --enable-autoidman was given.
14295 if test "${enable_autoidman+set}" = set; then
14296   enableval=$enable_autoidman;
14297                           if test "$enableval" = yes; then
14298                             wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=yes'
14299                           else
14300                             wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=no'
14301                           fi
14302
14303 else
14304
14305                           wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=${'DEFAULT_wxUSE_AUTOID_MANAGEMENT":-$defaultval}"
14306
14307 fi
14308
14309
14310           eval "$wx_cv_use_autoidman"
14311
14312           if test x"$enablestring" = xdisable; then
14313             if test $wxUSE_AUTOID_MANAGEMENT = no; then
14314               result=yes
14315             else
14316               result=no
14317             fi
14318           else
14319             result=$wxUSE_AUTOID_MANAGEMENT
14320           fi
14321
14322           { echo "$as_me:$LINENO: result: $result" >&5
14323 echo "${ECHO_T}$result" >&6; }
14324
14325
14326 fi
14327
14328
14329 cat >confcache <<\_ACEOF
14330 # This file is a shell script that caches the results of configure
14331 # tests run on this system so they can be shared between configure
14332 # scripts and configure runs, see configure's option --config-cache.
14333 # It is not useful on other systems.  If it contains results you don't
14334 # want to keep, you may remove or edit it.
14335 #
14336 # config.status only pays attention to the cache file if you give it
14337 # the --recheck option to rerun configure.
14338 #
14339 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14340 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14341 # following values.
14342
14343 _ACEOF
14344
14345 # The following way of writing the cache mishandles newlines in values,
14346 # but we know of no workaround that is simple, portable, and efficient.
14347 # So, we kill variables containing newlines.
14348 # Ultrix sh set writes to stderr and can't be redirected directly,
14349 # and sets the high bit in the cache file unless we assign to the vars.
14350 (
14351   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14352     eval ac_val=\$$ac_var
14353     case $ac_val in #(
14354     *${as_nl}*)
14355       case $ac_var in #(
14356       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
14357 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
14358       esac
14359       case $ac_var in #(
14360       _ | IFS | as_nl) ;; #(
14361       *) $as_unset $ac_var ;;
14362       esac ;;
14363     esac
14364   done
14365
14366   (set) 2>&1 |
14367     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14368     *${as_nl}ac_space=\ *)
14369       # `set' does not quote correctly, so add quotes (double-quote
14370       # substitution turns \\\\ into \\, and sed turns \\ into \).
14371       sed -n \
14372         "s/'/'\\\\''/g;
14373           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14374       ;; #(
14375     *)
14376       # `set' quotes correctly as required by POSIX, so do not add quotes.
14377       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14378       ;;
14379     esac |
14380     sort
14381 ) |
14382   sed '
14383      /^ac_cv_env_/b end
14384      t clear
14385      :clear
14386      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14387      t end
14388      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14389      :end' >>confcache
14390 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14391   if test -w "$cache_file"; then
14392     test "x$cache_file" != "x/dev/null" &&
14393       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
14394 echo "$as_me: updating cache $cache_file" >&6;}
14395     cat confcache >$cache_file
14396   else
14397     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14398 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14399   fi
14400 fi
14401 rm -f confcache
14402
14403 CFLAGS=${CFLAGS:=}
14404
14405
14406
14407     ac_ext=c
14408 ac_cpp='$CPP $CPPFLAGS'
14409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14412 if test -n "$ac_tool_prefix"; then
14413   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
14414 set dummy ${ac_tool_prefix}gcc; ac_word=$2
14415 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14417 if test "${ac_cv_prog_CC+set}" = set; then
14418   echo $ECHO_N "(cached) $ECHO_C" >&6
14419 else
14420   if test -n "$CC"; then
14421   ac_cv_prog_CC="$CC" # Let the user override the test.
14422 else
14423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14424 for as_dir in $PATH
14425 do
14426   IFS=$as_save_IFS
14427   test -z "$as_dir" && as_dir=.
14428   for ac_exec_ext in '' $ac_executable_extensions; do
14429   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14430     ac_cv_prog_CC="${ac_tool_prefix}gcc"
14431     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14432     break 2
14433   fi
14434 done
14435 done
14436 IFS=$as_save_IFS
14437
14438 fi
14439 fi
14440 CC=$ac_cv_prog_CC
14441 if test -n "$CC"; then
14442   { echo "$as_me:$LINENO: result: $CC" >&5
14443 echo "${ECHO_T}$CC" >&6; }
14444 else
14445   { echo "$as_me:$LINENO: result: no" >&5
14446 echo "${ECHO_T}no" >&6; }
14447 fi
14448
14449
14450 fi
14451 if test -z "$ac_cv_prog_CC"; then
14452   ac_ct_CC=$CC
14453   # Extract the first word of "gcc", so it can be a program name with args.
14454 set dummy gcc; ac_word=$2
14455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14457 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
14458   echo $ECHO_N "(cached) $ECHO_C" >&6
14459 else
14460   if test -n "$ac_ct_CC"; then
14461   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14462 else
14463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14464 for as_dir in $PATH
14465 do
14466   IFS=$as_save_IFS
14467   test -z "$as_dir" && as_dir=.
14468   for ac_exec_ext in '' $ac_executable_extensions; do
14469   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14470     ac_cv_prog_ac_ct_CC="gcc"
14471     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14472     break 2
14473   fi
14474 done
14475 done
14476 IFS=$as_save_IFS
14477
14478 fi
14479 fi
14480 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14481 if test -n "$ac_ct_CC"; then
14482   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
14483 echo "${ECHO_T}$ac_ct_CC" >&6; }
14484 else
14485   { echo "$as_me:$LINENO: result: no" >&5
14486 echo "${ECHO_T}no" >&6; }
14487 fi
14488
14489   if test "x$ac_ct_CC" = x; then
14490     CC=""
14491   else
14492     case $cross_compiling:$ac_tool_warned in
14493 yes:)
14494 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14495 whose name does not start with the host triplet.  If you think this
14496 configuration is useful to you, please write to autoconf@gnu.org." >&5
14497 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14498 whose name does not start with the host triplet.  If you think this
14499 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14500 ac_tool_warned=yes ;;
14501 esac
14502     CC=$ac_ct_CC
14503   fi
14504 else
14505   CC="$ac_cv_prog_CC"
14506 fi
14507
14508 if test -z "$CC"; then
14509           if test -n "$ac_tool_prefix"; then
14510     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
14511 set dummy ${ac_tool_prefix}cc; ac_word=$2
14512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14514 if test "${ac_cv_prog_CC+set}" = set; then
14515   echo $ECHO_N "(cached) $ECHO_C" >&6
14516 else
14517   if test -n "$CC"; then
14518   ac_cv_prog_CC="$CC" # Let the user override the test.
14519 else
14520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14521 for as_dir in $PATH
14522 do
14523   IFS=$as_save_IFS
14524   test -z "$as_dir" && as_dir=.
14525   for ac_exec_ext in '' $ac_executable_extensions; do
14526   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14527     ac_cv_prog_CC="${ac_tool_prefix}cc"
14528     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14529     break 2
14530   fi
14531 done
14532 done
14533 IFS=$as_save_IFS
14534
14535 fi
14536 fi
14537 CC=$ac_cv_prog_CC
14538 if test -n "$CC"; then
14539   { echo "$as_me:$LINENO: result: $CC" >&5
14540 echo "${ECHO_T}$CC" >&6; }
14541 else
14542   { echo "$as_me:$LINENO: result: no" >&5
14543 echo "${ECHO_T}no" >&6; }
14544 fi
14545
14546
14547   fi
14548 fi
14549 if test -z "$CC"; then
14550   # Extract the first word of "cc", so it can be a program name with args.
14551 set dummy cc; ac_word=$2
14552 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14554 if test "${ac_cv_prog_CC+set}" = set; then
14555   echo $ECHO_N "(cached) $ECHO_C" >&6
14556 else
14557   if test -n "$CC"; then
14558   ac_cv_prog_CC="$CC" # Let the user override the test.
14559 else
14560   ac_prog_rejected=no
14561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14562 for as_dir in $PATH
14563 do
14564   IFS=$as_save_IFS
14565   test -z "$as_dir" && as_dir=.
14566   for ac_exec_ext in '' $ac_executable_extensions; do
14567   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14568     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
14569        ac_prog_rejected=yes
14570        continue
14571      fi
14572     ac_cv_prog_CC="cc"
14573     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14574     break 2
14575   fi
14576 done
14577 done
14578 IFS=$as_save_IFS
14579
14580 if test $ac_prog_rejected = yes; then
14581   # We found a bogon in the path, so make sure we never use it.
14582   set dummy $ac_cv_prog_CC
14583   shift
14584   if test $# != 0; then
14585     # We chose a different compiler from the bogus one.
14586     # However, it has the same basename, so the bogon will be chosen
14587     # first if we set CC to just the basename; use the full file name.
14588     shift
14589     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
14590   fi
14591 fi
14592 fi
14593 fi
14594 CC=$ac_cv_prog_CC
14595 if test -n "$CC"; then
14596   { echo "$as_me:$LINENO: result: $CC" >&5
14597 echo "${ECHO_T}$CC" >&6; }
14598 else
14599   { echo "$as_me:$LINENO: result: no" >&5
14600 echo "${ECHO_T}no" >&6; }
14601 fi
14602
14603
14604 fi
14605 if test -z "$CC"; then
14606   if test -n "$ac_tool_prefix"; then
14607   for ac_prog in cl.exe
14608   do
14609     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14610 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14613 if test "${ac_cv_prog_CC+set}" = set; then
14614   echo $ECHO_N "(cached) $ECHO_C" >&6
14615 else
14616   if test -n "$CC"; then
14617   ac_cv_prog_CC="$CC" # Let the user override the test.
14618 else
14619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14620 for as_dir in $PATH
14621 do
14622   IFS=$as_save_IFS
14623   test -z "$as_dir" && as_dir=.
14624   for ac_exec_ext in '' $ac_executable_extensions; do
14625   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14626     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
14627     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14628     break 2
14629   fi
14630 done
14631 done
14632 IFS=$as_save_IFS
14633
14634 fi
14635 fi
14636 CC=$ac_cv_prog_CC
14637 if test -n "$CC"; then
14638   { echo "$as_me:$LINENO: result: $CC" >&5
14639 echo "${ECHO_T}$CC" >&6; }
14640 else
14641   { echo "$as_me:$LINENO: result: no" >&5
14642 echo "${ECHO_T}no" >&6; }
14643 fi
14644
14645
14646     test -n "$CC" && break
14647   done
14648 fi
14649 if test -z "$CC"; then
14650   ac_ct_CC=$CC
14651   for ac_prog in cl.exe
14652 do
14653   # Extract the first word of "$ac_prog", so it can be a program name with args.
14654 set dummy $ac_prog; ac_word=$2
14655 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14657 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
14658   echo $ECHO_N "(cached) $ECHO_C" >&6
14659 else
14660   if test -n "$ac_ct_CC"; then
14661   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14662 else
14663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14664 for as_dir in $PATH
14665 do
14666   IFS=$as_save_IFS
14667   test -z "$as_dir" && as_dir=.
14668   for ac_exec_ext in '' $ac_executable_extensions; do
14669   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14670     ac_cv_prog_ac_ct_CC="$ac_prog"
14671     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14672     break 2
14673   fi
14674 done
14675 done
14676 IFS=$as_save_IFS
14677
14678 fi
14679 fi
14680 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14681 if test -n "$ac_ct_CC"; then
14682   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
14683 echo "${ECHO_T}$ac_ct_CC" >&6; }
14684 else
14685   { echo "$as_me:$LINENO: result: no" >&5
14686 echo "${ECHO_T}no" >&6; }
14687 fi
14688
14689
14690   test -n "$ac_ct_CC" && break
14691 done
14692
14693   if test "x$ac_ct_CC" = x; then
14694     CC=""
14695   else
14696     case $cross_compiling:$ac_tool_warned in
14697 yes:)
14698 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14699 whose name does not start with the host triplet.  If you think this
14700 configuration is useful to you, please write to autoconf@gnu.org." >&5
14701 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14702 whose name does not start with the host triplet.  If you think this
14703 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14704 ac_tool_warned=yes ;;
14705 esac
14706     CC=$ac_ct_CC
14707   fi
14708 fi
14709
14710 fi
14711
14712
14713 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
14714 See \`config.log' for more details." >&5
14715 echo "$as_me: error: no acceptable C compiler found in \$PATH
14716 See \`config.log' for more details." >&2;}
14717    { (exit 1); exit 1; }; }
14718
14719 # Provide some information about the compiler.
14720 echo "$as_me:$LINENO: checking for C compiler version" >&5
14721 ac_compiler=`set X $ac_compile; echo $2`
14722 { (ac_try="$ac_compiler --version >&5"
14723 case "(($ac_try" in
14724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14725   *) ac_try_echo=$ac_try;;
14726 esac
14727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14728   (eval "$ac_compiler --version >&5") 2>&5
14729   ac_status=$?
14730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731   (exit $ac_status); }
14732 { (ac_try="$ac_compiler -v >&5"
14733 case "(($ac_try" in
14734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14735   *) ac_try_echo=$ac_try;;
14736 esac
14737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14738   (eval "$ac_compiler -v >&5") 2>&5
14739   ac_status=$?
14740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741   (exit $ac_status); }
14742 { (ac_try="$ac_compiler -V >&5"
14743 case "(($ac_try" in
14744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14745   *) ac_try_echo=$ac_try;;
14746 esac
14747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14748   (eval "$ac_compiler -V >&5") 2>&5
14749   ac_status=$?
14750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751   (exit $ac_status); }
14752
14753 cat >conftest.$ac_ext <<_ACEOF
14754 /* confdefs.h.  */
14755 _ACEOF
14756 cat confdefs.h >>conftest.$ac_ext
14757 cat >>conftest.$ac_ext <<_ACEOF
14758 /* end confdefs.h.  */
14759
14760 int
14761 main ()
14762 {
14763
14764   ;
14765   return 0;
14766 }
14767 _ACEOF
14768 ac_clean_files_save=$ac_clean_files
14769 ac_clean_files="$ac_clean_files a.out a.exe b.out"
14770 # Try to create an executable without -o first, disregard a.out.
14771 # It will help us diagnose broken compilers, and finding out an intuition
14772 # of exeext.
14773 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
14774 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
14775 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
14776 #
14777 # List of possible output files, starting from the most likely.
14778 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
14779 # only as a last resort.  b.out is created by i960 compilers.
14780 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
14781 #
14782 # The IRIX 6 linker writes into existing files which may not be
14783 # executable, retaining their permissions.  Remove them first so a
14784 # subsequent execution test works.
14785 ac_rmfiles=
14786 for ac_file in $ac_files
14787 do
14788   case $ac_file in
14789     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
14790     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
14791   esac
14792 done
14793 rm -f $ac_rmfiles
14794
14795 if { (ac_try="$ac_link_default"
14796 case "(($ac_try" in
14797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14798   *) ac_try_echo=$ac_try;;
14799 esac
14800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14801   (eval "$ac_link_default") 2>&5
14802   ac_status=$?
14803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804   (exit $ac_status); }; then
14805   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
14806 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
14807 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
14808 # so that the user can short-circuit this test for compilers unknown to
14809 # Autoconf.
14810 for ac_file in $ac_files ''
14811 do
14812   test -f "$ac_file" || continue
14813   case $ac_file in
14814     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
14815         ;;
14816     [ab].out )
14817         # We found the default executable, but exeext='' is most
14818         # certainly right.
14819         break;;
14820     *.* )
14821         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
14822         then :; else
14823            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
14824         fi
14825         # We set ac_cv_exeext here because the later test for it is not
14826         # safe: cross compilers may not add the suffix if given an `-o'
14827         # argument, so we may need to know it at that point already.
14828         # Even if this section looks crufty: it has the advantage of
14829         # actually working.
14830         break;;
14831     * )
14832         break;;
14833   esac
14834 done
14835 test "$ac_cv_exeext" = no && ac_cv_exeext=
14836
14837 else
14838   ac_file=''
14839 fi
14840
14841 { echo "$as_me:$LINENO: result: $ac_file" >&5
14842 echo "${ECHO_T}$ac_file" >&6; }
14843 if test -z "$ac_file"; then
14844   echo "$as_me: failed program was:" >&5
14845 sed 's/^/| /' conftest.$ac_ext >&5
14846
14847 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
14848 See \`config.log' for more details." >&5
14849 echo "$as_me: error: C compiler cannot create executables
14850 See \`config.log' for more details." >&2;}
14851    { (exit 77); exit 77; }; }
14852 fi
14853
14854 ac_exeext=$ac_cv_exeext
14855
14856 # Check that the compiler produces executables we can run.  If not, either
14857 # the compiler is broken, or we cross compile.
14858 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
14859 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
14860 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
14861 # If not cross compiling, check that we can run a simple program.
14862 if test "$cross_compiling" != yes; then
14863   if { ac_try='./$ac_file'
14864   { (case "(($ac_try" in
14865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14866   *) ac_try_echo=$ac_try;;
14867 esac
14868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14869   (eval "$ac_try") 2>&5
14870   ac_status=$?
14871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14872   (exit $ac_status); }; }; then
14873     cross_compiling=no
14874   else
14875     if test "$cross_compiling" = maybe; then
14876         cross_compiling=yes
14877     else
14878         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
14879 If you meant to cross compile, use \`--host'.
14880 See \`config.log' for more details." >&5
14881 echo "$as_me: error: cannot run C compiled programs.
14882 If you meant to cross compile, use \`--host'.
14883 See \`config.log' for more details." >&2;}
14884    { (exit 1); exit 1; }; }
14885     fi
14886   fi
14887 fi
14888 { echo "$as_me:$LINENO: result: yes" >&5
14889 echo "${ECHO_T}yes" >&6; }
14890
14891 rm -f a.out a.exe conftest$ac_cv_exeext b.out
14892 ac_clean_files=$ac_clean_files_save
14893 # Check that the compiler produces executables we can run.  If not, either
14894 # the compiler is broken, or we cross compile.
14895 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
14896 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
14897 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
14898 echo "${ECHO_T}$cross_compiling" >&6; }
14899
14900 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
14901 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
14902 if { (ac_try="$ac_link"
14903 case "(($ac_try" in
14904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14905   *) ac_try_echo=$ac_try;;
14906 esac
14907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14908   (eval "$ac_link") 2>&5
14909   ac_status=$?
14910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911   (exit $ac_status); }; then
14912   # If both `conftest.exe' and `conftest' are `present' (well, observable)
14913 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
14914 # work properly (i.e., refer to `conftest.exe'), while it won't with
14915 # `rm'.
14916 for ac_file in conftest.exe conftest conftest.*; do
14917   test -f "$ac_file" || continue
14918   case $ac_file in
14919     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
14920     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
14921           break;;
14922     * ) break;;
14923   esac
14924 done
14925 else
14926   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
14927 See \`config.log' for more details." >&5
14928 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
14929 See \`config.log' for more details." >&2;}
14930    { (exit 1); exit 1; }; }
14931 fi
14932
14933 rm -f conftest$ac_cv_exeext
14934 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
14935 echo "${ECHO_T}$ac_cv_exeext" >&6; }
14936
14937 rm -f conftest.$ac_ext
14938 EXEEXT=$ac_cv_exeext
14939 ac_exeext=$EXEEXT
14940 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
14941 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
14942 if test "${ac_cv_objext+set}" = set; then
14943   echo $ECHO_N "(cached) $ECHO_C" >&6
14944 else
14945   cat >conftest.$ac_ext <<_ACEOF
14946 /* confdefs.h.  */
14947 _ACEOF
14948 cat confdefs.h >>conftest.$ac_ext
14949 cat >>conftest.$ac_ext <<_ACEOF
14950 /* end confdefs.h.  */
14951
14952 int
14953 main ()
14954 {
14955
14956   ;
14957   return 0;
14958 }
14959 _ACEOF
14960 rm -f conftest.o conftest.obj
14961 if { (ac_try="$ac_compile"
14962 case "(($ac_try" in
14963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14964   *) ac_try_echo=$ac_try;;
14965 esac
14966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14967   (eval "$ac_compile") 2>&5
14968   ac_status=$?
14969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970   (exit $ac_status); }; then
14971   for ac_file in conftest.o conftest.obj conftest.*; do
14972   test -f "$ac_file" || continue;
14973   case $ac_file in
14974     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
14975     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
14976        break;;
14977   esac
14978 done
14979 else
14980   echo "$as_me: failed program was:" >&5
14981 sed 's/^/| /' conftest.$ac_ext >&5
14982
14983 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
14984 See \`config.log' for more details." >&5
14985 echo "$as_me: error: cannot compute suffix of object files: cannot compile
14986 See \`config.log' for more details." >&2;}
14987    { (exit 1); exit 1; }; }
14988 fi
14989
14990 rm -f conftest.$ac_cv_objext conftest.$ac_ext
14991 fi
14992 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
14993 echo "${ECHO_T}$ac_cv_objext" >&6; }
14994 OBJEXT=$ac_cv_objext
14995 ac_objext=$OBJEXT
14996 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
14997 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
14998 if test "${ac_cv_c_compiler_gnu+set}" = set; then
14999   echo $ECHO_N "(cached) $ECHO_C" >&6
15000 else
15001   cat >conftest.$ac_ext <<_ACEOF
15002 /* confdefs.h.  */
15003 _ACEOF
15004 cat confdefs.h >>conftest.$ac_ext
15005 cat >>conftest.$ac_ext <<_ACEOF
15006 /* end confdefs.h.  */
15007
15008 int
15009 main ()
15010 {
15011 #ifndef __GNUC__
15012        choke me
15013 #endif
15014
15015   ;
15016   return 0;
15017 }
15018 _ACEOF
15019 rm -f conftest.$ac_objext
15020 if { (ac_try="$ac_compile"
15021 case "(($ac_try" in
15022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15023   *) ac_try_echo=$ac_try;;
15024 esac
15025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15026   (eval "$ac_compile") 2>conftest.er1
15027   ac_status=$?
15028   grep -v '^ *+' conftest.er1 >conftest.err
15029   rm -f conftest.er1
15030   cat conftest.err >&5
15031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032   (exit $ac_status); } && {
15033          test -z "$ac_c_werror_flag" ||
15034          test ! -s conftest.err
15035        } && test -s conftest.$ac_objext; then
15036   ac_compiler_gnu=yes
15037 else
15038   echo "$as_me: failed program was:" >&5
15039 sed 's/^/| /' conftest.$ac_ext >&5
15040
15041         ac_compiler_gnu=no
15042 fi
15043
15044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15045 ac_cv_c_compiler_gnu=$ac_compiler_gnu
15046
15047 fi
15048 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
15049 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
15050 GCC=`test $ac_compiler_gnu = yes && echo yes`
15051 ac_test_CFLAGS=${CFLAGS+set}
15052 ac_save_CFLAGS=$CFLAGS
15053 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
15054 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
15055 if test "${ac_cv_prog_cc_g+set}" = set; then
15056   echo $ECHO_N "(cached) $ECHO_C" >&6
15057 else
15058   ac_save_c_werror_flag=$ac_c_werror_flag
15059    ac_c_werror_flag=yes
15060    ac_cv_prog_cc_g=no
15061    CFLAGS="-g"
15062    cat >conftest.$ac_ext <<_ACEOF
15063 /* confdefs.h.  */
15064 _ACEOF
15065 cat confdefs.h >>conftest.$ac_ext
15066 cat >>conftest.$ac_ext <<_ACEOF
15067 /* end confdefs.h.  */
15068
15069 int
15070 main ()
15071 {
15072
15073   ;
15074   return 0;
15075 }
15076 _ACEOF
15077 rm -f conftest.$ac_objext
15078 if { (ac_try="$ac_compile"
15079 case "(($ac_try" in
15080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15081   *) ac_try_echo=$ac_try;;
15082 esac
15083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15084   (eval "$ac_compile") 2>conftest.er1
15085   ac_status=$?
15086   grep -v '^ *+' conftest.er1 >conftest.err
15087   rm -f conftest.er1
15088   cat conftest.err >&5
15089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090   (exit $ac_status); } && {
15091          test -z "$ac_c_werror_flag" ||
15092          test ! -s conftest.err
15093        } && test -s conftest.$ac_objext; then
15094   ac_cv_prog_cc_g=yes
15095 else
15096   echo "$as_me: failed program was:" >&5
15097 sed 's/^/| /' conftest.$ac_ext >&5
15098
15099         CFLAGS=""
15100       cat >conftest.$ac_ext <<_ACEOF
15101 /* confdefs.h.  */
15102 _ACEOF
15103 cat confdefs.h >>conftest.$ac_ext
15104 cat >>conftest.$ac_ext <<_ACEOF
15105 /* end confdefs.h.  */
15106
15107 int
15108 main ()
15109 {
15110
15111   ;
15112   return 0;
15113 }
15114 _ACEOF
15115 rm -f conftest.$ac_objext
15116 if { (ac_try="$ac_compile"
15117 case "(($ac_try" in
15118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15119   *) ac_try_echo=$ac_try;;
15120 esac
15121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15122   (eval "$ac_compile") 2>conftest.er1
15123   ac_status=$?
15124   grep -v '^ *+' conftest.er1 >conftest.err
15125   rm -f conftest.er1
15126   cat conftest.err >&5
15127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128   (exit $ac_status); } && {
15129          test -z "$ac_c_werror_flag" ||
15130          test ! -s conftest.err
15131        } && test -s conftest.$ac_objext; then
15132   :
15133 else
15134   echo "$as_me: failed program was:" >&5
15135 sed 's/^/| /' conftest.$ac_ext >&5
15136
15137         ac_c_werror_flag=$ac_save_c_werror_flag
15138          CFLAGS="-g"
15139          cat >conftest.$ac_ext <<_ACEOF
15140 /* confdefs.h.  */
15141 _ACEOF
15142 cat confdefs.h >>conftest.$ac_ext
15143 cat >>conftest.$ac_ext <<_ACEOF
15144 /* end confdefs.h.  */
15145
15146 int
15147 main ()
15148 {
15149
15150   ;
15151   return 0;
15152 }
15153 _ACEOF
15154 rm -f conftest.$ac_objext
15155 if { (ac_try="$ac_compile"
15156 case "(($ac_try" in
15157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15158   *) ac_try_echo=$ac_try;;
15159 esac
15160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15161   (eval "$ac_compile") 2>conftest.er1
15162   ac_status=$?
15163   grep -v '^ *+' conftest.er1 >conftest.err
15164   rm -f conftest.er1
15165   cat conftest.err >&5
15166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167   (exit $ac_status); } && {
15168          test -z "$ac_c_werror_flag" ||
15169          test ! -s conftest.err
15170        } && test -s conftest.$ac_objext; then
15171   ac_cv_prog_cc_g=yes
15172 else
15173   echo "$as_me: failed program was:" >&5
15174 sed 's/^/| /' conftest.$ac_ext >&5
15175
15176
15177 fi
15178
15179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15180 fi
15181
15182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15183 fi
15184
15185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15186    ac_c_werror_flag=$ac_save_c_werror_flag
15187 fi
15188 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
15189 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
15190 if test "$ac_test_CFLAGS" = set; then
15191   CFLAGS=$ac_save_CFLAGS
15192 elif test $ac_cv_prog_cc_g = yes; then
15193   if test "$GCC" = yes; then
15194     CFLAGS="-g -O2"
15195   else
15196     CFLAGS="-g"
15197   fi
15198 else
15199   if test "$GCC" = yes; then
15200     CFLAGS="-O2"
15201   else
15202     CFLAGS=
15203   fi
15204 fi
15205 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
15206 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
15207 if test "${ac_cv_prog_cc_c89+set}" = set; then
15208   echo $ECHO_N "(cached) $ECHO_C" >&6
15209 else
15210   ac_cv_prog_cc_c89=no
15211 ac_save_CC=$CC
15212 cat >conftest.$ac_ext <<_ACEOF
15213 /* confdefs.h.  */
15214 _ACEOF
15215 cat confdefs.h >>conftest.$ac_ext
15216 cat >>conftest.$ac_ext <<_ACEOF
15217 /* end confdefs.h.  */
15218 #include <stdarg.h>
15219 #include <stdio.h>
15220 #include <sys/types.h>
15221 #include <sys/stat.h>
15222 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
15223 struct buf { int x; };
15224 FILE * (*rcsopen) (struct buf *, struct stat *, int);
15225 static char *e (p, i)
15226      char **p;
15227      int i;
15228 {
15229   return p[i];
15230 }
15231 static char *f (char * (*g) (char **, int), char **p, ...)
15232 {
15233   char *s;
15234   va_list v;
15235   va_start (v,p);
15236   s = g (p, va_arg (v,int));
15237   va_end (v);
15238   return s;
15239 }
15240
15241 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
15242    function prototypes and stuff, but not '\xHH' hex character constants.
15243    These don't provoke an error unfortunately, instead are silently treated
15244    as 'x'.  The following induces an error, until -std is added to get
15245    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
15246    array size at least.  It's necessary to write '\x00'==0 to get something
15247    that's true only with -std.  */
15248 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
15249
15250 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
15251    inside strings and character constants.  */
15252 #define FOO(x) 'x'
15253 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
15254
15255 int test (int i, double x);
15256 struct s1 {int (*f) (int a);};
15257 struct s2 {int (*f) (double a);};
15258 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
15259 int argc;
15260 char **argv;
15261 int
15262 main ()
15263 {
15264 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
15265   ;
15266   return 0;
15267 }
15268 _ACEOF
15269 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
15270         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
15271 do
15272   CC="$ac_save_CC $ac_arg"
15273   rm -f conftest.$ac_objext
15274 if { (ac_try="$ac_compile"
15275 case "(($ac_try" in
15276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15277   *) ac_try_echo=$ac_try;;
15278 esac
15279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15280   (eval "$ac_compile") 2>conftest.er1
15281   ac_status=$?
15282   grep -v '^ *+' conftest.er1 >conftest.err
15283   rm -f conftest.er1
15284   cat conftest.err >&5
15285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286   (exit $ac_status); } && {
15287          test -z "$ac_c_werror_flag" ||
15288          test ! -s conftest.err
15289        } && test -s conftest.$ac_objext; then
15290   ac_cv_prog_cc_c89=$ac_arg
15291 else
15292   echo "$as_me: failed program was:" >&5
15293 sed 's/^/| /' conftest.$ac_ext >&5
15294
15295
15296 fi
15297
15298 rm -f core conftest.err conftest.$ac_objext
15299   test "x$ac_cv_prog_cc_c89" != "xno" && break
15300 done
15301 rm -f conftest.$ac_ext
15302 CC=$ac_save_CC
15303
15304 fi
15305 # AC_CACHE_VAL
15306 case "x$ac_cv_prog_cc_c89" in
15307   x)
15308     { echo "$as_me:$LINENO: result: none needed" >&5
15309 echo "${ECHO_T}none needed" >&6; } ;;
15310   xno)
15311     { echo "$as_me:$LINENO: result: unsupported" >&5
15312 echo "${ECHO_T}unsupported" >&6; } ;;
15313   *)
15314     CC="$CC $ac_cv_prog_cc_c89"
15315     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
15316 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
15317 esac
15318
15319
15320 ac_ext=c
15321 ac_cpp='$CPP $CPPFLAGS'
15322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15325
15326
15327
15328
15329     ac_ext=c
15330 ac_cpp='$CPP $CPPFLAGS'
15331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15334
15335     { echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
15336 echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6; }
15337 if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
15338   echo $ECHO_N "(cached) $ECHO_C" >&6
15339 else
15340   cat >conftest.$ac_ext <<_ACEOF
15341 /* confdefs.h.  */
15342 _ACEOF
15343 cat confdefs.h >>conftest.$ac_ext
15344 cat >>conftest.$ac_ext <<_ACEOF
15345 /* end confdefs.h.  */
15346
15347 int
15348 main ()
15349 {
15350
15351              #ifndef __INTEL_COMPILER
15352                 choke me
15353              #endif
15354
15355   ;
15356   return 0;
15357 }
15358 _ACEOF
15359 rm -f conftest.$ac_objext
15360 if { (ac_try="$ac_compile"
15361 case "(($ac_try" in
15362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15363   *) ac_try_echo=$ac_try;;
15364 esac
15365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15366   (eval "$ac_compile") 2>conftest.er1
15367   ac_status=$?
15368   grep -v '^ *+' conftest.er1 >conftest.err
15369   rm -f conftest.er1
15370   cat conftest.err >&5
15371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15372   (exit $ac_status); } && {
15373          test -z "$ac_c_werror_flag" ||
15374          test ! -s conftest.err
15375        } && test -s conftest.$ac_objext; then
15376   bakefile_cv_c_compiler___INTEL_COMPILER=yes
15377 else
15378   echo "$as_me: failed program was:" >&5
15379 sed 's/^/| /' conftest.$ac_ext >&5
15380
15381         bakefile_cv_c_compiler___INTEL_COMPILER=no
15382
15383 fi
15384
15385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15386
15387
15388 fi
15389 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
15390 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6; }
15391     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
15392         :; INTELCC=yes
15393     else
15394         :;
15395     fi
15396     ac_ext=c
15397 ac_cpp='$CPP $CPPFLAGS'
15398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15401
15402
15403
15404
15405         if test "$INTELCC" = "yes"; then
15406
15407
15408     ac_ext=c
15409 ac_cpp='$CPP $CPPFLAGS'
15410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15413
15414     { echo "$as_me:$LINENO: checking whether we are using Intel C compiler v8 or later" >&5
15415 echo $ECHO_N "checking whether we are using Intel C compiler v8 or later... $ECHO_C" >&6; }
15416 if test "${bakefile_cv_c_compiler___INTEL_COMPILER_lt_800+set}" = set; then
15417   echo $ECHO_N "(cached) $ECHO_C" >&6
15418 else
15419   cat >conftest.$ac_ext <<_ACEOF
15420 /* confdefs.h.  */
15421 _ACEOF
15422 cat confdefs.h >>conftest.$ac_ext
15423 cat >>conftest.$ac_ext <<_ACEOF
15424 /* end confdefs.h.  */
15425
15426 int
15427 main ()
15428 {
15429
15430              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 800
15431                 choke me
15432              #endif
15433
15434   ;
15435   return 0;
15436 }
15437 _ACEOF
15438 rm -f conftest.$ac_objext
15439 if { (ac_try="$ac_compile"
15440 case "(($ac_try" in
15441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15442   *) ac_try_echo=$ac_try;;
15443 esac
15444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15445   (eval "$ac_compile") 2>conftest.er1
15446   ac_status=$?
15447   grep -v '^ *+' conftest.er1 >conftest.err
15448   rm -f conftest.er1
15449   cat conftest.err >&5
15450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15451   (exit $ac_status); } && {
15452          test -z "$ac_c_werror_flag" ||
15453          test ! -s conftest.err
15454        } && test -s conftest.$ac_objext; then
15455   bakefile_cv_c_compiler___INTEL_COMPILER_lt_800=yes
15456 else
15457   echo "$as_me: failed program was:" >&5
15458 sed 's/^/| /' conftest.$ac_ext >&5
15459
15460         bakefile_cv_c_compiler___INTEL_COMPILER_lt_800=no
15461
15462 fi
15463
15464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15465
15466
15467 fi
15468 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" >&5
15469 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" >&6; }
15470     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" = "xyes"; then
15471         :; INTELCC8=yes
15472     else
15473         :;
15474     fi
15475     ac_ext=c
15476 ac_cpp='$CPP $CPPFLAGS'
15477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15480
15481
15482
15483
15484
15485     ac_ext=c
15486 ac_cpp='$CPP $CPPFLAGS'
15487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15490
15491     { echo "$as_me:$LINENO: checking whether we are using Intel C compiler v10 or later" >&5
15492 echo $ECHO_N "checking whether we are using Intel C compiler v10 or later... $ECHO_C" >&6; }
15493 if test "${bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000+set}" = set; then
15494   echo $ECHO_N "(cached) $ECHO_C" >&6
15495 else
15496   cat >conftest.$ac_ext <<_ACEOF
15497 /* confdefs.h.  */
15498 _ACEOF
15499 cat confdefs.h >>conftest.$ac_ext
15500 cat >>conftest.$ac_ext <<_ACEOF
15501 /* end confdefs.h.  */
15502
15503 int
15504 main ()
15505 {
15506
15507              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 1000
15508                 choke me
15509              #endif
15510
15511   ;
15512   return 0;
15513 }
15514 _ACEOF
15515 rm -f conftest.$ac_objext
15516 if { (ac_try="$ac_compile"
15517 case "(($ac_try" in
15518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15519   *) ac_try_echo=$ac_try;;
15520 esac
15521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15522   (eval "$ac_compile") 2>conftest.er1
15523   ac_status=$?
15524   grep -v '^ *+' conftest.er1 >conftest.err
15525   rm -f conftest.er1
15526   cat conftest.err >&5
15527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15528   (exit $ac_status); } && {
15529          test -z "$ac_c_werror_flag" ||
15530          test ! -s conftest.err
15531        } && test -s conftest.$ac_objext; then
15532   bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000=yes
15533 else
15534   echo "$as_me: failed program was:" >&5
15535 sed 's/^/| /' conftest.$ac_ext >&5
15536
15537         bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000=no
15538
15539 fi
15540
15541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15542
15543
15544 fi
15545 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" >&5
15546 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" >&6; }
15547     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" = "xyes"; then
15548         :; INTELCC10=yes
15549     else
15550         :;
15551     fi
15552     ac_ext=c
15553 ac_cpp='$CPP $CPPFLAGS'
15554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15557
15558
15559
15560     fi
15561
15562         if test "x$GCC" != "xyes"; then
15563         if test "xCC" = "xC"; then
15564             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
15565 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
15566 if test "${bakefile_cv_c_exto+set}" = set; then
15567   echo $ECHO_N "(cached) $ECHO_C" >&6
15568 else
15569   cat >conftest.$ac_ext <<_ACEOF
15570 /* confdefs.h.  */
15571 _ACEOF
15572 cat confdefs.h >>conftest.$ac_ext
15573 cat >>conftest.$ac_ext <<_ACEOF
15574 /* end confdefs.h.  */
15575
15576 int
15577 main ()
15578 {
15579
15580   ;
15581   return 0;
15582 }
15583 _ACEOF
15584 rm -f conftest.$ac_objext conftest.$ac_ext.o
15585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15586   (eval $ac_compile) 2>&5
15587   ac_status=$?
15588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589   (exit $ac_status); }; then
15590   for ac_file in `(ls conftest.* 2>/dev/null)`; do
15591     case $ac_file in
15592         conftest.$ac_ext.o)
15593             bakefile_cv_c_exto="-ext o"
15594             ;;
15595         *)
15596             ;;
15597     esac
15598 done
15599 else
15600   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
15601 See \`config.log' for more details." >&5
15602 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
15603 See \`config.log' for more details." >&2;}
15604    { (exit 1); exit 1; }; }
15605
15606 fi
15607
15608 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
15609
15610 fi
15611 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
15612 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
15613 if test "x$bakefile_cv_c_exto" '!=' "x"; then
15614     if test "c" = "c"; then
15615         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
15616     fi
15617     if test "c" = "cxx"; then
15618         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
15619     fi
15620 fi
15621
15622             if test "x$bakefile_cv_c_exto" '!=' "x"; then
15623                 unset ac_cv_prog_cc_g
15624                 ac_test_CFLAGS=${CFLAGS+set}
15625 ac_save_CFLAGS=$CFLAGS
15626 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
15627 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
15628 if test "${ac_cv_prog_cc_g+set}" = set; then
15629   echo $ECHO_N "(cached) $ECHO_C" >&6
15630 else
15631   ac_save_c_werror_flag=$ac_c_werror_flag
15632    ac_c_werror_flag=yes
15633    ac_cv_prog_cc_g=no
15634    CFLAGS="-g"
15635    cat >conftest.$ac_ext <<_ACEOF
15636 /* confdefs.h.  */
15637 _ACEOF
15638 cat confdefs.h >>conftest.$ac_ext
15639 cat >>conftest.$ac_ext <<_ACEOF
15640 /* end confdefs.h.  */
15641
15642 int
15643 main ()
15644 {
15645
15646   ;
15647   return 0;
15648 }
15649 _ACEOF
15650 rm -f conftest.$ac_objext
15651 if { (ac_try="$ac_compile"
15652 case "(($ac_try" in
15653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15654   *) ac_try_echo=$ac_try;;
15655 esac
15656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15657   (eval "$ac_compile") 2>conftest.er1
15658   ac_status=$?
15659   grep -v '^ *+' conftest.er1 >conftest.err
15660   rm -f conftest.er1
15661   cat conftest.err >&5
15662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663   (exit $ac_status); } && {
15664          test -z "$ac_c_werror_flag" ||
15665          test ! -s conftest.err
15666        } && test -s conftest.$ac_objext; then
15667   ac_cv_prog_cc_g=yes
15668 else
15669   echo "$as_me: failed program was:" >&5
15670 sed 's/^/| /' conftest.$ac_ext >&5
15671
15672         CFLAGS=""
15673       cat >conftest.$ac_ext <<_ACEOF
15674 /* confdefs.h.  */
15675 _ACEOF
15676 cat confdefs.h >>conftest.$ac_ext
15677 cat >>conftest.$ac_ext <<_ACEOF
15678 /* end confdefs.h.  */
15679
15680 int
15681 main ()
15682 {
15683
15684   ;
15685   return 0;
15686 }
15687 _ACEOF
15688 rm -f conftest.$ac_objext
15689 if { (ac_try="$ac_compile"
15690 case "(($ac_try" in
15691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15692   *) ac_try_echo=$ac_try;;
15693 esac
15694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15695   (eval "$ac_compile") 2>conftest.er1
15696   ac_status=$?
15697   grep -v '^ *+' conftest.er1 >conftest.err
15698   rm -f conftest.er1
15699   cat conftest.err >&5
15700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701   (exit $ac_status); } && {
15702          test -z "$ac_c_werror_flag" ||
15703          test ! -s conftest.err
15704        } && test -s conftest.$ac_objext; then
15705   :
15706 else
15707   echo "$as_me: failed program was:" >&5
15708 sed 's/^/| /' conftest.$ac_ext >&5
15709
15710         ac_c_werror_flag=$ac_save_c_werror_flag
15711          CFLAGS="-g"
15712          cat >conftest.$ac_ext <<_ACEOF
15713 /* confdefs.h.  */
15714 _ACEOF
15715 cat confdefs.h >>conftest.$ac_ext
15716 cat >>conftest.$ac_ext <<_ACEOF
15717 /* end confdefs.h.  */
15718
15719 int
15720 main ()
15721 {
15722
15723   ;
15724   return 0;
15725 }
15726 _ACEOF
15727 rm -f conftest.$ac_objext
15728 if { (ac_try="$ac_compile"
15729 case "(($ac_try" in
15730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15731   *) ac_try_echo=$ac_try;;
15732 esac
15733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15734   (eval "$ac_compile") 2>conftest.er1
15735   ac_status=$?
15736   grep -v '^ *+' conftest.er1 >conftest.err
15737   rm -f conftest.er1
15738   cat conftest.err >&5
15739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15740   (exit $ac_status); } && {
15741          test -z "$ac_c_werror_flag" ||
15742          test ! -s conftest.err
15743        } && test -s conftest.$ac_objext; then
15744   ac_cv_prog_cc_g=yes
15745 else
15746   echo "$as_me: failed program was:" >&5
15747 sed 's/^/| /' conftest.$ac_ext >&5
15748
15749
15750 fi
15751
15752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15753 fi
15754
15755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15756 fi
15757
15758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15759    ac_c_werror_flag=$ac_save_c_werror_flag
15760 fi
15761 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
15762 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
15763 if test "$ac_test_CFLAGS" = set; then
15764   CFLAGS=$ac_save_CFLAGS
15765 elif test $ac_cv_prog_cc_g = yes; then
15766   if test "$GCC" = yes; then
15767     CFLAGS="-g -O2"
15768   else
15769     CFLAGS="-g"
15770   fi
15771 else
15772   if test "$GCC" = yes; then
15773     CFLAGS="-O2"
15774   else
15775     CFLAGS=
15776   fi
15777 fi
15778             fi
15779         fi
15780
15781                         case `uname -s` in
15782             AIX*)
15783
15784
15785     ac_ext=c
15786 ac_cpp='$CPP $CPPFLAGS'
15787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15790
15791     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
15792 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
15793 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
15794   echo $ECHO_N "(cached) $ECHO_C" >&6
15795 else
15796   cat >conftest.$ac_ext <<_ACEOF
15797 /* confdefs.h.  */
15798 _ACEOF
15799 cat confdefs.h >>conftest.$ac_ext
15800 cat >>conftest.$ac_ext <<_ACEOF
15801 /* end confdefs.h.  */
15802
15803 int
15804 main ()
15805 {
15806
15807              #ifndef __xlC__
15808                 choke me
15809              #endif
15810
15811   ;
15812   return 0;
15813 }
15814 _ACEOF
15815 rm -f conftest.$ac_objext
15816 if { (ac_try="$ac_compile"
15817 case "(($ac_try" in
15818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15819   *) ac_try_echo=$ac_try;;
15820 esac
15821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15822   (eval "$ac_compile") 2>conftest.er1
15823   ac_status=$?
15824   grep -v '^ *+' conftest.er1 >conftest.err
15825   rm -f conftest.er1
15826   cat conftest.err >&5
15827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15828   (exit $ac_status); } && {
15829          test -z "$ac_c_werror_flag" ||
15830          test ! -s conftest.err
15831        } && test -s conftest.$ac_objext; then
15832   bakefile_cv_c_compiler___xlC__=yes
15833 else
15834   echo "$as_me: failed program was:" >&5
15835 sed 's/^/| /' conftest.$ac_ext >&5
15836
15837         bakefile_cv_c_compiler___xlC__=no
15838
15839 fi
15840
15841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15842
15843
15844 fi
15845 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
15846 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
15847     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
15848         :; XLCC=yes
15849     else
15850         :;
15851     fi
15852     ac_ext=c
15853 ac_cpp='$CPP $CPPFLAGS'
15854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15857
15858
15859
15860                 ;;
15861
15862             Darwin)
15863
15864
15865     ac_ext=c
15866 ac_cpp='$CPP $CPPFLAGS'
15867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15870
15871     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
15872 echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6; }
15873 if test "${bakefile_cv_c_compiler___MWERKS__+set}" = set; then
15874   echo $ECHO_N "(cached) $ECHO_C" >&6
15875 else
15876   cat >conftest.$ac_ext <<_ACEOF
15877 /* confdefs.h.  */
15878 _ACEOF
15879 cat confdefs.h >>conftest.$ac_ext
15880 cat >>conftest.$ac_ext <<_ACEOF
15881 /* end confdefs.h.  */
15882
15883 int
15884 main ()
15885 {
15886
15887              #ifndef __MWERKS__
15888                 choke me
15889              #endif
15890
15891   ;
15892   return 0;
15893 }
15894 _ACEOF
15895 rm -f conftest.$ac_objext
15896 if { (ac_try="$ac_compile"
15897 case "(($ac_try" in
15898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15899   *) ac_try_echo=$ac_try;;
15900 esac
15901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15902   (eval "$ac_compile") 2>conftest.er1
15903   ac_status=$?
15904   grep -v '^ *+' conftest.er1 >conftest.err
15905   rm -f conftest.er1
15906   cat conftest.err >&5
15907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908   (exit $ac_status); } && {
15909          test -z "$ac_c_werror_flag" ||
15910          test ! -s conftest.err
15911        } && test -s conftest.$ac_objext; then
15912   bakefile_cv_c_compiler___MWERKS__=yes
15913 else
15914   echo "$as_me: failed program was:" >&5
15915 sed 's/^/| /' conftest.$ac_ext >&5
15916
15917         bakefile_cv_c_compiler___MWERKS__=no
15918
15919 fi
15920
15921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15922
15923
15924 fi
15925 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___MWERKS__" >&5
15926 echo "${ECHO_T}$bakefile_cv_c_compiler___MWERKS__" >&6; }
15927     if test "x$bakefile_cv_c_compiler___MWERKS__" = "xyes"; then
15928         :; MWCC=yes
15929     else
15930         :;
15931     fi
15932     ac_ext=c
15933 ac_cpp='$CPP $CPPFLAGS'
15934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15937
15938
15939
15940                 if test "$MWCC" != "yes"; then
15941
15942
15943     ac_ext=c
15944 ac_cpp='$CPP $CPPFLAGS'
15945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15948
15949     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
15950 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
15951 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
15952   echo $ECHO_N "(cached) $ECHO_C" >&6
15953 else
15954   cat >conftest.$ac_ext <<_ACEOF
15955 /* confdefs.h.  */
15956 _ACEOF
15957 cat confdefs.h >>conftest.$ac_ext
15958 cat >>conftest.$ac_ext <<_ACEOF
15959 /* end confdefs.h.  */
15960
15961 int
15962 main ()
15963 {
15964
15965              #ifndef __xlC__
15966                 choke me
15967              #endif
15968
15969   ;
15970   return 0;
15971 }
15972 _ACEOF
15973 rm -f conftest.$ac_objext
15974 if { (ac_try="$ac_compile"
15975 case "(($ac_try" in
15976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15977   *) ac_try_echo=$ac_try;;
15978 esac
15979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15980   (eval "$ac_compile") 2>conftest.er1
15981   ac_status=$?
15982   grep -v '^ *+' conftest.er1 >conftest.err
15983   rm -f conftest.er1
15984   cat conftest.err >&5
15985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15986   (exit $ac_status); } && {
15987          test -z "$ac_c_werror_flag" ||
15988          test ! -s conftest.err
15989        } && test -s conftest.$ac_objext; then
15990   bakefile_cv_c_compiler___xlC__=yes
15991 else
15992   echo "$as_me: failed program was:" >&5
15993 sed 's/^/| /' conftest.$ac_ext >&5
15994
15995         bakefile_cv_c_compiler___xlC__=no
15996
15997 fi
15998
15999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16000
16001
16002 fi
16003 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
16004 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
16005     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
16006         :; XLCC=yes
16007     else
16008         :;
16009     fi
16010     ac_ext=c
16011 ac_cpp='$CPP $CPPFLAGS'
16012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16015
16016
16017
16018                 fi
16019                 ;;
16020
16021             IRIX*)
16022
16023
16024     ac_ext=c
16025 ac_cpp='$CPP $CPPFLAGS'
16026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16029
16030     { echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
16031 echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6; }
16032 if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
16033   echo $ECHO_N "(cached) $ECHO_C" >&6
16034 else
16035   cat >conftest.$ac_ext <<_ACEOF
16036 /* confdefs.h.  */
16037 _ACEOF
16038 cat confdefs.h >>conftest.$ac_ext
16039 cat >>conftest.$ac_ext <<_ACEOF
16040 /* end confdefs.h.  */
16041
16042 int
16043 main ()
16044 {
16045
16046              #ifndef _SGI_COMPILER_VERSION
16047                 choke me
16048              #endif
16049
16050   ;
16051   return 0;
16052 }
16053 _ACEOF
16054 rm -f conftest.$ac_objext
16055 if { (ac_try="$ac_compile"
16056 case "(($ac_try" in
16057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16058   *) ac_try_echo=$ac_try;;
16059 esac
16060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16061   (eval "$ac_compile") 2>conftest.er1
16062   ac_status=$?
16063   grep -v '^ *+' conftest.er1 >conftest.err
16064   rm -f conftest.er1
16065   cat conftest.err >&5
16066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067   (exit $ac_status); } && {
16068          test -z "$ac_c_werror_flag" ||
16069          test ! -s conftest.err
16070        } && test -s conftest.$ac_objext; then
16071   bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
16072 else
16073   echo "$as_me: failed program was:" >&5
16074 sed 's/^/| /' conftest.$ac_ext >&5
16075
16076         bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
16077
16078 fi
16079
16080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16081
16082
16083 fi
16084 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
16085 echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6; }
16086     if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
16087         :; SGICC=yes
16088     else
16089         :;
16090     fi
16091     ac_ext=c
16092 ac_cpp='$CPP $CPPFLAGS'
16093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16096
16097
16098
16099                 ;;
16100
16101             Linux*)
16102                                                 if test "$INTELCC" != "yes"; then
16103
16104
16105     ac_ext=c
16106 ac_cpp='$CPP $CPPFLAGS'
16107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16110
16111     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
16112 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
16113 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
16114   echo $ECHO_N "(cached) $ECHO_C" >&6
16115 else
16116   cat >conftest.$ac_ext <<_ACEOF
16117 /* confdefs.h.  */
16118 _ACEOF
16119 cat confdefs.h >>conftest.$ac_ext
16120 cat >>conftest.$ac_ext <<_ACEOF
16121 /* end confdefs.h.  */
16122
16123 int
16124 main ()
16125 {
16126
16127              #ifndef __SUNPRO_C
16128                 choke me
16129              #endif
16130
16131   ;
16132   return 0;
16133 }
16134 _ACEOF
16135 rm -f conftest.$ac_objext
16136 if { (ac_try="$ac_compile"
16137 case "(($ac_try" in
16138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16139   *) ac_try_echo=$ac_try;;
16140 esac
16141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16142   (eval "$ac_compile") 2>conftest.er1
16143   ac_status=$?
16144   grep -v '^ *+' conftest.er1 >conftest.err
16145   rm -f conftest.er1
16146   cat conftest.err >&5
16147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16148   (exit $ac_status); } && {
16149          test -z "$ac_c_werror_flag" ||
16150          test ! -s conftest.err
16151        } && test -s conftest.$ac_objext; then
16152   bakefile_cv_c_compiler___SUNPRO_C=yes
16153 else
16154   echo "$as_me: failed program was:" >&5
16155 sed 's/^/| /' conftest.$ac_ext >&5
16156
16157         bakefile_cv_c_compiler___SUNPRO_C=no
16158
16159 fi
16160
16161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16162
16163
16164 fi
16165 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
16166 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
16167     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
16168         :; SUNCC=yes
16169     else
16170         :;
16171     fi
16172     ac_ext=c
16173 ac_cpp='$CPP $CPPFLAGS'
16174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16177
16178
16179
16180                 fi
16181                 ;;
16182
16183             HP-UX*)
16184
16185
16186     ac_ext=c
16187 ac_cpp='$CPP $CPPFLAGS'
16188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16191
16192     { echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
16193 echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6; }
16194 if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
16195   echo $ECHO_N "(cached) $ECHO_C" >&6
16196 else
16197   cat >conftest.$ac_ext <<_ACEOF
16198 /* confdefs.h.  */
16199 _ACEOF
16200 cat confdefs.h >>conftest.$ac_ext
16201 cat >>conftest.$ac_ext <<_ACEOF
16202 /* end confdefs.h.  */
16203
16204 int
16205 main ()
16206 {
16207
16208              #ifndef __HP_cc
16209                 choke me
16210              #endif
16211
16212   ;
16213   return 0;
16214 }
16215 _ACEOF
16216 rm -f conftest.$ac_objext
16217 if { (ac_try="$ac_compile"
16218 case "(($ac_try" in
16219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16220   *) ac_try_echo=$ac_try;;
16221 esac
16222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16223   (eval "$ac_compile") 2>conftest.er1
16224   ac_status=$?
16225   grep -v '^ *+' conftest.er1 >conftest.err
16226   rm -f conftest.er1
16227   cat conftest.err >&5
16228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229   (exit $ac_status); } && {
16230          test -z "$ac_c_werror_flag" ||
16231          test ! -s conftest.err
16232        } && test -s conftest.$ac_objext; then
16233   bakefile_cv_c_compiler___HP_cc=yes
16234 else
16235   echo "$as_me: failed program was:" >&5
16236 sed 's/^/| /' conftest.$ac_ext >&5
16237
16238         bakefile_cv_c_compiler___HP_cc=no
16239
16240 fi
16241
16242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16243
16244
16245 fi
16246 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
16247 echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6; }
16248     if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
16249         :; HPCC=yes
16250     else
16251         :;
16252     fi
16253     ac_ext=c
16254 ac_cpp='$CPP $CPPFLAGS'
16255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16258
16259
16260
16261                 ;;
16262
16263             OSF1)
16264
16265
16266     ac_ext=c
16267 ac_cpp='$CPP $CPPFLAGS'
16268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16271
16272     { echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
16273 echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6; }
16274 if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
16275   echo $ECHO_N "(cached) $ECHO_C" >&6
16276 else
16277   cat >conftest.$ac_ext <<_ACEOF
16278 /* confdefs.h.  */
16279 _ACEOF
16280 cat confdefs.h >>conftest.$ac_ext
16281 cat >>conftest.$ac_ext <<_ACEOF
16282 /* end confdefs.h.  */
16283
16284 int
16285 main ()
16286 {
16287
16288              #ifndef __DECC
16289                 choke me
16290              #endif
16291
16292   ;
16293   return 0;
16294 }
16295 _ACEOF
16296 rm -f conftest.$ac_objext
16297 if { (ac_try="$ac_compile"
16298 case "(($ac_try" in
16299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16300   *) ac_try_echo=$ac_try;;
16301 esac
16302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16303   (eval "$ac_compile") 2>conftest.er1
16304   ac_status=$?
16305   grep -v '^ *+' conftest.er1 >conftest.err
16306   rm -f conftest.er1
16307   cat conftest.err >&5
16308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309   (exit $ac_status); } && {
16310          test -z "$ac_c_werror_flag" ||
16311          test ! -s conftest.err
16312        } && test -s conftest.$ac_objext; then
16313   bakefile_cv_c_compiler___DECC=yes
16314 else
16315   echo "$as_me: failed program was:" >&5
16316 sed 's/^/| /' conftest.$ac_ext >&5
16317
16318         bakefile_cv_c_compiler___DECC=no
16319
16320 fi
16321
16322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16323
16324
16325 fi
16326 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
16327 echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6; }
16328     if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
16329         :; COMPAQCC=yes
16330     else
16331         :;
16332     fi
16333     ac_ext=c
16334 ac_cpp='$CPP $CPPFLAGS'
16335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16338
16339
16340
16341                 ;;
16342
16343             SunOS)
16344
16345
16346     ac_ext=c
16347 ac_cpp='$CPP $CPPFLAGS'
16348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16351
16352     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
16353 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
16354 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
16355   echo $ECHO_N "(cached) $ECHO_C" >&6
16356 else
16357   cat >conftest.$ac_ext <<_ACEOF
16358 /* confdefs.h.  */
16359 _ACEOF
16360 cat confdefs.h >>conftest.$ac_ext
16361 cat >>conftest.$ac_ext <<_ACEOF
16362 /* end confdefs.h.  */
16363
16364 int
16365 main ()
16366 {
16367
16368              #ifndef __SUNPRO_C
16369                 choke me
16370              #endif
16371
16372   ;
16373   return 0;
16374 }
16375 _ACEOF
16376 rm -f conftest.$ac_objext
16377 if { (ac_try="$ac_compile"
16378 case "(($ac_try" in
16379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16380   *) ac_try_echo=$ac_try;;
16381 esac
16382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16383   (eval "$ac_compile") 2>conftest.er1
16384   ac_status=$?
16385   grep -v '^ *+' conftest.er1 >conftest.err
16386   rm -f conftest.er1
16387   cat conftest.err >&5
16388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389   (exit $ac_status); } && {
16390          test -z "$ac_c_werror_flag" ||
16391          test ! -s conftest.err
16392        } && test -s conftest.$ac_objext; then
16393   bakefile_cv_c_compiler___SUNPRO_C=yes
16394 else
16395   echo "$as_me: failed program was:" >&5
16396 sed 's/^/| /' conftest.$ac_ext >&5
16397
16398         bakefile_cv_c_compiler___SUNPRO_C=no
16399
16400 fi
16401
16402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16403
16404
16405 fi
16406 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
16407 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
16408     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
16409         :; SUNCC=yes
16410     else
16411         :;
16412     fi
16413     ac_ext=c
16414 ac_cpp='$CPP $CPPFLAGS'
16415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16418
16419
16420
16421                 ;;
16422         esac
16423     fi
16424
16425
16426
16427 ac_ext=c
16428 ac_cpp='$CPP $CPPFLAGS'
16429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16432 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
16433 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
16434 # On Suns, sometimes $CPP names a directory.
16435 if test -n "$CPP" && test -d "$CPP"; then
16436   CPP=
16437 fi
16438 if test -z "$CPP"; then
16439   if test "${ac_cv_prog_CPP+set}" = set; then
16440   echo $ECHO_N "(cached) $ECHO_C" >&6
16441 else
16442       # Double quotes because CPP needs to be expanded
16443     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
16444     do
16445       ac_preproc_ok=false
16446 for ac_c_preproc_warn_flag in '' yes
16447 do
16448   # Use a header file that comes with gcc, so configuring glibc
16449   # with a fresh cross-compiler works.
16450   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16451   # <limits.h> exists even on freestanding compilers.
16452   # On the NeXT, cc -E runs the code through the compiler's parser,
16453   # not just through cpp. "Syntax error" is here to catch this case.
16454   cat >conftest.$ac_ext <<_ACEOF
16455 /* confdefs.h.  */
16456 _ACEOF
16457 cat confdefs.h >>conftest.$ac_ext
16458 cat >>conftest.$ac_ext <<_ACEOF
16459 /* end confdefs.h.  */
16460 #ifdef __STDC__
16461 # include <limits.h>
16462 #else
16463 # include <assert.h>
16464 #endif
16465                      Syntax error
16466 _ACEOF
16467 if { (ac_try="$ac_cpp conftest.$ac_ext"
16468 case "(($ac_try" in
16469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16470   *) ac_try_echo=$ac_try;;
16471 esac
16472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16473   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16474   ac_status=$?
16475   grep -v '^ *+' conftest.er1 >conftest.err
16476   rm -f conftest.er1
16477   cat conftest.err >&5
16478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479   (exit $ac_status); } >/dev/null && {
16480          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16481          test ! -s conftest.err
16482        }; then
16483   :
16484 else
16485   echo "$as_me: failed program was:" >&5
16486 sed 's/^/| /' conftest.$ac_ext >&5
16487
16488   # Broken: fails on valid input.
16489 continue
16490 fi
16491
16492 rm -f conftest.err conftest.$ac_ext
16493
16494   # OK, works on sane cases.  Now check whether nonexistent headers
16495   # can be detected and how.
16496   cat >conftest.$ac_ext <<_ACEOF
16497 /* confdefs.h.  */
16498 _ACEOF
16499 cat confdefs.h >>conftest.$ac_ext
16500 cat >>conftest.$ac_ext <<_ACEOF
16501 /* end confdefs.h.  */
16502 #include <ac_nonexistent.h>
16503 _ACEOF
16504 if { (ac_try="$ac_cpp conftest.$ac_ext"
16505 case "(($ac_try" in
16506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16507   *) ac_try_echo=$ac_try;;
16508 esac
16509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16510   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16511   ac_status=$?
16512   grep -v '^ *+' conftest.er1 >conftest.err
16513   rm -f conftest.er1
16514   cat conftest.err >&5
16515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516   (exit $ac_status); } >/dev/null && {
16517          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16518          test ! -s conftest.err
16519        }; then
16520   # Broken: success on invalid input.
16521 continue
16522 else
16523   echo "$as_me: failed program was:" >&5
16524 sed 's/^/| /' conftest.$ac_ext >&5
16525
16526   # Passes both tests.
16527 ac_preproc_ok=:
16528 break
16529 fi
16530
16531 rm -f conftest.err conftest.$ac_ext
16532
16533 done
16534 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16535 rm -f conftest.err conftest.$ac_ext
16536 if $ac_preproc_ok; then
16537   break
16538 fi
16539
16540     done
16541     ac_cv_prog_CPP=$CPP
16542
16543 fi
16544   CPP=$ac_cv_prog_CPP
16545 else
16546   ac_cv_prog_CPP=$CPP
16547 fi
16548 { echo "$as_me:$LINENO: result: $CPP" >&5
16549 echo "${ECHO_T}$CPP" >&6; }
16550 ac_preproc_ok=false
16551 for ac_c_preproc_warn_flag in '' yes
16552 do
16553   # Use a header file that comes with gcc, so configuring glibc
16554   # with a fresh cross-compiler works.
16555   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16556   # <limits.h> exists even on freestanding compilers.
16557   # On the NeXT, cc -E runs the code through the compiler's parser,
16558   # not just through cpp. "Syntax error" is here to catch this case.
16559   cat >conftest.$ac_ext <<_ACEOF
16560 /* confdefs.h.  */
16561 _ACEOF
16562 cat confdefs.h >>conftest.$ac_ext
16563 cat >>conftest.$ac_ext <<_ACEOF
16564 /* end confdefs.h.  */
16565 #ifdef __STDC__
16566 # include <limits.h>
16567 #else
16568 # include <assert.h>
16569 #endif
16570                      Syntax error
16571 _ACEOF
16572 if { (ac_try="$ac_cpp conftest.$ac_ext"
16573 case "(($ac_try" in
16574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16575   *) ac_try_echo=$ac_try;;
16576 esac
16577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16578   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16579   ac_status=$?
16580   grep -v '^ *+' conftest.er1 >conftest.err
16581   rm -f conftest.er1
16582   cat conftest.err >&5
16583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584   (exit $ac_status); } >/dev/null && {
16585          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16586          test ! -s conftest.err
16587        }; then
16588   :
16589 else
16590   echo "$as_me: failed program was:" >&5
16591 sed 's/^/| /' conftest.$ac_ext >&5
16592
16593   # Broken: fails on valid input.
16594 continue
16595 fi
16596
16597 rm -f conftest.err conftest.$ac_ext
16598
16599   # OK, works on sane cases.  Now check whether nonexistent headers
16600   # can be detected and how.
16601   cat >conftest.$ac_ext <<_ACEOF
16602 /* confdefs.h.  */
16603 _ACEOF
16604 cat confdefs.h >>conftest.$ac_ext
16605 cat >>conftest.$ac_ext <<_ACEOF
16606 /* end confdefs.h.  */
16607 #include <ac_nonexistent.h>
16608 _ACEOF
16609 if { (ac_try="$ac_cpp conftest.$ac_ext"
16610 case "(($ac_try" in
16611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16612   *) ac_try_echo=$ac_try;;
16613 esac
16614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16615   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16616   ac_status=$?
16617   grep -v '^ *+' conftest.er1 >conftest.err
16618   rm -f conftest.er1
16619   cat conftest.err >&5
16620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16621   (exit $ac_status); } >/dev/null && {
16622          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16623          test ! -s conftest.err
16624        }; then
16625   # Broken: success on invalid input.
16626 continue
16627 else
16628   echo "$as_me: failed program was:" >&5
16629 sed 's/^/| /' conftest.$ac_ext >&5
16630
16631   # Passes both tests.
16632 ac_preproc_ok=:
16633 break
16634 fi
16635
16636 rm -f conftest.err conftest.$ac_ext
16637
16638 done
16639 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16640 rm -f conftest.err conftest.$ac_ext
16641 if $ac_preproc_ok; then
16642   :
16643 else
16644   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
16645 See \`config.log' for more details." >&5
16646 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
16647 See \`config.log' for more details." >&2;}
16648    { (exit 1); exit 1; }; }
16649 fi
16650
16651 ac_ext=c
16652 ac_cpp='$CPP $CPPFLAGS'
16653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16656
16657
16658 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
16659 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
16660 if test "${ac_cv_path_GREP+set}" = set; then
16661   echo $ECHO_N "(cached) $ECHO_C" >&6
16662 else
16663   # Extract the first word of "grep ggrep" to use in msg output
16664 if test -z "$GREP"; then
16665 set dummy grep ggrep; ac_prog_name=$2
16666 if test "${ac_cv_path_GREP+set}" = set; then
16667   echo $ECHO_N "(cached) $ECHO_C" >&6
16668 else
16669   ac_path_GREP_found=false
16670 # Loop through the user's path and test for each of PROGNAME-LIST
16671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16672 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
16673 do
16674   IFS=$as_save_IFS
16675   test -z "$as_dir" && as_dir=.
16676   for ac_prog in grep ggrep; do
16677   for ac_exec_ext in '' $ac_executable_extensions; do
16678     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
16679     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
16680     # Check for GNU ac_path_GREP and select it if it is found.
16681   # Check for GNU $ac_path_GREP
16682 case `"$ac_path_GREP" --version 2>&1` in
16683 *GNU*)
16684   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
16685 *)
16686   ac_count=0
16687   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
16688   while :
16689   do
16690     cat "conftest.in" "conftest.in" >"conftest.tmp"
16691     mv "conftest.tmp" "conftest.in"
16692     cp "conftest.in" "conftest.nl"
16693     echo 'GREP' >> "conftest.nl"
16694     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
16695     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
16696     ac_count=`expr $ac_count + 1`
16697     if test $ac_count -gt ${ac_path_GREP_max-0}; then
16698       # Best one so far, save it but keep looking for a better one
16699       ac_cv_path_GREP="$ac_path_GREP"
16700       ac_path_GREP_max=$ac_count
16701     fi
16702     # 10*(2^10) chars as input seems more than enough
16703     test $ac_count -gt 10 && break
16704   done
16705   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
16706 esac
16707
16708
16709     $ac_path_GREP_found && break 3
16710   done
16711 done
16712
16713 done
16714 IFS=$as_save_IFS
16715
16716
16717 fi
16718
16719 GREP="$ac_cv_path_GREP"
16720 if test -z "$GREP"; then
16721   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
16722 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
16723    { (exit 1); exit 1; }; }
16724 fi
16725
16726 else
16727   ac_cv_path_GREP=$GREP
16728 fi
16729
16730
16731 fi
16732 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
16733 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
16734  GREP="$ac_cv_path_GREP"
16735
16736
16737 { echo "$as_me:$LINENO: checking for egrep" >&5
16738 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
16739 if test "${ac_cv_path_EGREP+set}" = set; then
16740   echo $ECHO_N "(cached) $ECHO_C" >&6
16741 else
16742   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
16743    then ac_cv_path_EGREP="$GREP -E"
16744    else
16745      # Extract the first word of "egrep" to use in msg output
16746 if test -z "$EGREP"; then
16747 set dummy egrep; ac_prog_name=$2
16748 if test "${ac_cv_path_EGREP+set}" = set; then
16749   echo $ECHO_N "(cached) $ECHO_C" >&6
16750 else
16751   ac_path_EGREP_found=false
16752 # Loop through the user's path and test for each of PROGNAME-LIST
16753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16754 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
16755 do
16756   IFS=$as_save_IFS
16757   test -z "$as_dir" && as_dir=.
16758   for ac_prog in egrep; do
16759   for ac_exec_ext in '' $ac_executable_extensions; do
16760     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
16761     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
16762     # Check for GNU ac_path_EGREP and select it if it is found.
16763   # Check for GNU $ac_path_EGREP
16764 case `"$ac_path_EGREP" --version 2>&1` in
16765 *GNU*)
16766   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
16767 *)
16768   ac_count=0
16769   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
16770   while :
16771   do
16772     cat "conftest.in" "conftest.in" >"conftest.tmp"
16773     mv "conftest.tmp" "conftest.in"
16774     cp "conftest.in" "conftest.nl"
16775     echo 'EGREP' >> "conftest.nl"
16776     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
16777     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
16778     ac_count=`expr $ac_count + 1`
16779     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
16780       # Best one so far, save it but keep looking for a better one
16781       ac_cv_path_EGREP="$ac_path_EGREP"
16782       ac_path_EGREP_max=$ac_count
16783     fi
16784     # 10*(2^10) chars as input seems more than enough
16785     test $ac_count -gt 10 && break
16786   done
16787   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
16788 esac
16789
16790
16791     $ac_path_EGREP_found && break 3
16792   done
16793 done
16794
16795 done
16796 IFS=$as_save_IFS
16797
16798
16799 fi
16800
16801 EGREP="$ac_cv_path_EGREP"
16802 if test -z "$EGREP"; then
16803   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
16804 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
16805    { (exit 1); exit 1; }; }
16806 fi
16807
16808 else
16809   ac_cv_path_EGREP=$EGREP
16810 fi
16811
16812
16813    fi
16814 fi
16815 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
16816 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
16817  EGREP="$ac_cv_path_EGREP"
16818
16819
16820 if test $ac_cv_c_compiler_gnu = yes; then
16821     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
16822 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
16823 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
16824   echo $ECHO_N "(cached) $ECHO_C" >&6
16825 else
16826     ac_pattern="Autoconf.*'x'"
16827   cat >conftest.$ac_ext <<_ACEOF
16828 /* confdefs.h.  */
16829 _ACEOF
16830 cat confdefs.h >>conftest.$ac_ext
16831 cat >>conftest.$ac_ext <<_ACEOF
16832 /* end confdefs.h.  */
16833 #include <sgtty.h>
16834 Autoconf TIOCGETP
16835 _ACEOF
16836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16837   $EGREP "$ac_pattern" >/dev/null 2>&1; then
16838   ac_cv_prog_gcc_traditional=yes
16839 else
16840   ac_cv_prog_gcc_traditional=no
16841 fi
16842 rm -f conftest*
16843
16844
16845   if test $ac_cv_prog_gcc_traditional = no; then
16846     cat >conftest.$ac_ext <<_ACEOF
16847 /* confdefs.h.  */
16848 _ACEOF
16849 cat confdefs.h >>conftest.$ac_ext
16850 cat >>conftest.$ac_ext <<_ACEOF
16851 /* end confdefs.h.  */
16852 #include <termio.h>
16853 Autoconf TCGETA
16854 _ACEOF
16855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16856   $EGREP "$ac_pattern" >/dev/null 2>&1; then
16857   ac_cv_prog_gcc_traditional=yes
16858 fi
16859 rm -f conftest*
16860
16861   fi
16862 fi
16863 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
16864 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
16865   if test $ac_cv_prog_gcc_traditional = yes; then
16866     CC="$CC -traditional"
16867   fi
16868 fi
16869
16870
16871 CXXFLAGS=${CXXFLAGS:=}
16872
16873
16874
16875     ac_ext=cpp
16876 ac_cpp='$CXXCPP $CPPFLAGS'
16877 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16878 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16879 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16880 if test -z "$CXX"; then
16881   if test -n "$CCC"; then
16882     CXX=$CCC
16883   else
16884     if test -n "$ac_tool_prefix"; then
16885   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
16886   do
16887     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16888 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16891 if test "${ac_cv_prog_CXX+set}" = set; then
16892   echo $ECHO_N "(cached) $ECHO_C" >&6
16893 else
16894   if test -n "$CXX"; then
16895   ac_cv_prog_CXX="$CXX" # Let the user override the test.
16896 else
16897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16898 for as_dir in $PATH
16899 do
16900   IFS=$as_save_IFS
16901   test -z "$as_dir" && as_dir=.
16902   for ac_exec_ext in '' $ac_executable_extensions; do
16903   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16904     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
16905     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16906     break 2
16907   fi
16908 done
16909 done
16910 IFS=$as_save_IFS
16911
16912 fi
16913 fi
16914 CXX=$ac_cv_prog_CXX
16915 if test -n "$CXX"; then
16916   { echo "$as_me:$LINENO: result: $CXX" >&5
16917 echo "${ECHO_T}$CXX" >&6; }
16918 else
16919   { echo "$as_me:$LINENO: result: no" >&5
16920 echo "${ECHO_T}no" >&6; }
16921 fi
16922
16923
16924     test -n "$CXX" && break
16925   done
16926 fi
16927 if test -z "$CXX"; then
16928   ac_ct_CXX=$CXX
16929   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
16930 do
16931   # Extract the first word of "$ac_prog", so it can be a program name with args.
16932 set dummy $ac_prog; ac_word=$2
16933 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16935 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
16936   echo $ECHO_N "(cached) $ECHO_C" >&6
16937 else
16938   if test -n "$ac_ct_CXX"; then
16939   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
16940 else
16941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16942 for as_dir in $PATH
16943 do
16944   IFS=$as_save_IFS
16945   test -z "$as_dir" && as_dir=.
16946   for ac_exec_ext in '' $ac_executable_extensions; do
16947   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16948     ac_cv_prog_ac_ct_CXX="$ac_prog"
16949     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16950     break 2
16951   fi
16952 done
16953 done
16954 IFS=$as_save_IFS
16955
16956 fi
16957 fi
16958 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
16959 if test -n "$ac_ct_CXX"; then
16960   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
16961 echo "${ECHO_T}$ac_ct_CXX" >&6; }
16962 else
16963   { echo "$as_me:$LINENO: result: no" >&5
16964 echo "${ECHO_T}no" >&6; }
16965 fi
16966
16967
16968   test -n "$ac_ct_CXX" && break
16969 done
16970
16971   if test "x$ac_ct_CXX" = x; then
16972     CXX="g++"
16973   else
16974     case $cross_compiling:$ac_tool_warned in
16975 yes:)
16976 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
16977 whose name does not start with the host triplet.  If you think this
16978 configuration is useful to you, please write to autoconf@gnu.org." >&5
16979 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
16980 whose name does not start with the host triplet.  If you think this
16981 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
16982 ac_tool_warned=yes ;;
16983 esac
16984     CXX=$ac_ct_CXX
16985   fi
16986 fi
16987
16988   fi
16989 fi
16990 # Provide some information about the compiler.
16991 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
16992 ac_compiler=`set X $ac_compile; echo $2`
16993 { (ac_try="$ac_compiler --version >&5"
16994 case "(($ac_try" in
16995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16996   *) ac_try_echo=$ac_try;;
16997 esac
16998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16999   (eval "$ac_compiler --version >&5") 2>&5
17000   ac_status=$?
17001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002   (exit $ac_status); }
17003 { (ac_try="$ac_compiler -v >&5"
17004 case "(($ac_try" in
17005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17006   *) ac_try_echo=$ac_try;;
17007 esac
17008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17009   (eval "$ac_compiler -v >&5") 2>&5
17010   ac_status=$?
17011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17012   (exit $ac_status); }
17013 { (ac_try="$ac_compiler -V >&5"
17014 case "(($ac_try" in
17015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17016   *) ac_try_echo=$ac_try;;
17017 esac
17018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17019   (eval "$ac_compiler -V >&5") 2>&5
17020   ac_status=$?
17021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17022   (exit $ac_status); }
17023
17024 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
17025 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
17026 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
17027   echo $ECHO_N "(cached) $ECHO_C" >&6
17028 else
17029   cat >conftest.$ac_ext <<_ACEOF
17030 /* confdefs.h.  */
17031 _ACEOF
17032 cat confdefs.h >>conftest.$ac_ext
17033 cat >>conftest.$ac_ext <<_ACEOF
17034 /* end confdefs.h.  */
17035
17036 int
17037 main ()
17038 {
17039 #ifndef __GNUC__
17040        choke me
17041 #endif
17042
17043   ;
17044   return 0;
17045 }
17046 _ACEOF
17047 rm -f conftest.$ac_objext
17048 if { (ac_try="$ac_compile"
17049 case "(($ac_try" in
17050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17051   *) ac_try_echo=$ac_try;;
17052 esac
17053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17054   (eval "$ac_compile") 2>conftest.er1
17055   ac_status=$?
17056   grep -v '^ *+' conftest.er1 >conftest.err
17057   rm -f conftest.er1
17058   cat conftest.err >&5
17059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17060   (exit $ac_status); } && {
17061          test -z "$ac_cxx_werror_flag" ||
17062          test ! -s conftest.err
17063        } && test -s conftest.$ac_objext; then
17064   ac_compiler_gnu=yes
17065 else
17066   echo "$as_me: failed program was:" >&5
17067 sed 's/^/| /' conftest.$ac_ext >&5
17068
17069         ac_compiler_gnu=no
17070 fi
17071
17072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17073 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
17074
17075 fi
17076 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
17077 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
17078 GXX=`test $ac_compiler_gnu = yes && echo yes`
17079 ac_test_CXXFLAGS=${CXXFLAGS+set}
17080 ac_save_CXXFLAGS=$CXXFLAGS
17081 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
17082 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
17083 if test "${ac_cv_prog_cxx_g+set}" = set; then
17084   echo $ECHO_N "(cached) $ECHO_C" >&6
17085 else
17086   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
17087    ac_cxx_werror_flag=yes
17088    ac_cv_prog_cxx_g=no
17089    CXXFLAGS="-g"
17090    cat >conftest.$ac_ext <<_ACEOF
17091 /* confdefs.h.  */
17092 _ACEOF
17093 cat confdefs.h >>conftest.$ac_ext
17094 cat >>conftest.$ac_ext <<_ACEOF
17095 /* end confdefs.h.  */
17096
17097 int
17098 main ()
17099 {
17100
17101   ;
17102   return 0;
17103 }
17104 _ACEOF
17105 rm -f conftest.$ac_objext
17106 if { (ac_try="$ac_compile"
17107 case "(($ac_try" in
17108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17109   *) ac_try_echo=$ac_try;;
17110 esac
17111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17112   (eval "$ac_compile") 2>conftest.er1
17113   ac_status=$?
17114   grep -v '^ *+' conftest.er1 >conftest.err
17115   rm -f conftest.er1
17116   cat conftest.err >&5
17117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17118   (exit $ac_status); } && {
17119          test -z "$ac_cxx_werror_flag" ||
17120          test ! -s conftest.err
17121        } && test -s conftest.$ac_objext; then
17122   ac_cv_prog_cxx_g=yes
17123 else
17124   echo "$as_me: failed program was:" >&5
17125 sed 's/^/| /' conftest.$ac_ext >&5
17126
17127         CXXFLAGS=""
17128       cat >conftest.$ac_ext <<_ACEOF
17129 /* confdefs.h.  */
17130 _ACEOF
17131 cat confdefs.h >>conftest.$ac_ext
17132 cat >>conftest.$ac_ext <<_ACEOF
17133 /* end confdefs.h.  */
17134
17135 int
17136 main ()
17137 {
17138
17139   ;
17140   return 0;
17141 }
17142 _ACEOF
17143 rm -f conftest.$ac_objext
17144 if { (ac_try="$ac_compile"
17145 case "(($ac_try" in
17146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17147   *) ac_try_echo=$ac_try;;
17148 esac
17149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17150   (eval "$ac_compile") 2>conftest.er1
17151   ac_status=$?
17152   grep -v '^ *+' conftest.er1 >conftest.err
17153   rm -f conftest.er1
17154   cat conftest.err >&5
17155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17156   (exit $ac_status); } && {
17157          test -z "$ac_cxx_werror_flag" ||
17158          test ! -s conftest.err
17159        } && test -s conftest.$ac_objext; then
17160   :
17161 else
17162   echo "$as_me: failed program was:" >&5
17163 sed 's/^/| /' conftest.$ac_ext >&5
17164
17165         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
17166          CXXFLAGS="-g"
17167          cat >conftest.$ac_ext <<_ACEOF
17168 /* confdefs.h.  */
17169 _ACEOF
17170 cat confdefs.h >>conftest.$ac_ext
17171 cat >>conftest.$ac_ext <<_ACEOF
17172 /* end confdefs.h.  */
17173
17174 int
17175 main ()
17176 {
17177
17178   ;
17179   return 0;
17180 }
17181 _ACEOF
17182 rm -f conftest.$ac_objext
17183 if { (ac_try="$ac_compile"
17184 case "(($ac_try" in
17185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17186   *) ac_try_echo=$ac_try;;
17187 esac
17188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17189   (eval "$ac_compile") 2>conftest.er1
17190   ac_status=$?
17191   grep -v '^ *+' conftest.er1 >conftest.err
17192   rm -f conftest.er1
17193   cat conftest.err >&5
17194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195   (exit $ac_status); } && {
17196          test -z "$ac_cxx_werror_flag" ||
17197          test ! -s conftest.err
17198        } && test -s conftest.$ac_objext; then
17199   ac_cv_prog_cxx_g=yes
17200 else
17201   echo "$as_me: failed program was:" >&5
17202 sed 's/^/| /' conftest.$ac_ext >&5
17203
17204
17205 fi
17206
17207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17208 fi
17209
17210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17211 fi
17212
17213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17214    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
17215 fi
17216 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
17217 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
17218 if test "$ac_test_CXXFLAGS" = set; then
17219   CXXFLAGS=$ac_save_CXXFLAGS
17220 elif test $ac_cv_prog_cxx_g = yes; then
17221   if test "$GXX" = yes; then
17222     CXXFLAGS="-g -O2"
17223   else
17224     CXXFLAGS="-g"
17225   fi
17226 else
17227   if test "$GXX" = yes; then
17228     CXXFLAGS="-O2"
17229   else
17230     CXXFLAGS=
17231   fi
17232 fi
17233 ac_ext=c
17234 ac_cpp='$CPP $CPPFLAGS'
17235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17238
17239
17240
17241
17242     ac_ext=cpp
17243 ac_cpp='$CXXCPP $CPPFLAGS'
17244 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17245 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17246 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17247
17248     { echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
17249 echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6; }
17250 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
17251   echo $ECHO_N "(cached) $ECHO_C" >&6
17252 else
17253   cat >conftest.$ac_ext <<_ACEOF
17254 /* confdefs.h.  */
17255 _ACEOF
17256 cat confdefs.h >>conftest.$ac_ext
17257 cat >>conftest.$ac_ext <<_ACEOF
17258 /* end confdefs.h.  */
17259
17260 int
17261 main ()
17262 {
17263
17264              #ifndef __INTEL_COMPILER
17265                 choke me
17266              #endif
17267
17268   ;
17269   return 0;
17270 }
17271 _ACEOF
17272 rm -f conftest.$ac_objext
17273 if { (ac_try="$ac_compile"
17274 case "(($ac_try" in
17275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17276   *) ac_try_echo=$ac_try;;
17277 esac
17278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17279   (eval "$ac_compile") 2>conftest.er1
17280   ac_status=$?
17281   grep -v '^ *+' conftest.er1 >conftest.err
17282   rm -f conftest.er1
17283   cat conftest.err >&5
17284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285   (exit $ac_status); } && {
17286          test -z "$ac_cxx_werror_flag" ||
17287          test ! -s conftest.err
17288        } && test -s conftest.$ac_objext; then
17289   bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
17290 else
17291   echo "$as_me: failed program was:" >&5
17292 sed 's/^/| /' conftest.$ac_ext >&5
17293
17294         bakefile_cv_cxx_compiler___INTEL_COMPILER=no
17295
17296 fi
17297
17298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17299
17300
17301 fi
17302 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
17303 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6; }
17304     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
17305         :; INTELCXX=yes
17306     else
17307         :;
17308     fi
17309     ac_ext=c
17310 ac_cpp='$CPP $CPPFLAGS'
17311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17314
17315
17316
17317
17318         if test "$INTELCXX" = "yes"; then
17319
17320
17321     ac_ext=cpp
17322 ac_cpp='$CXXCPP $CPPFLAGS'
17323 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17324 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17325 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17326
17327     { echo "$as_me:$LINENO: checking whether we are using Intel C++ compiler v8 or later" >&5
17328 echo $ECHO_N "checking whether we are using Intel C++ compiler v8 or later... $ECHO_C" >&6; }
17329 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800+set}" = set; then
17330   echo $ECHO_N "(cached) $ECHO_C" >&6
17331 else
17332   cat >conftest.$ac_ext <<_ACEOF
17333 /* confdefs.h.  */
17334 _ACEOF
17335 cat confdefs.h >>conftest.$ac_ext
17336 cat >>conftest.$ac_ext <<_ACEOF
17337 /* end confdefs.h.  */
17338
17339 int
17340 main ()
17341 {
17342
17343              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 800
17344                 choke me
17345              #endif
17346
17347   ;
17348   return 0;
17349 }
17350 _ACEOF
17351 rm -f conftest.$ac_objext
17352 if { (ac_try="$ac_compile"
17353 case "(($ac_try" in
17354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17355   *) ac_try_echo=$ac_try;;
17356 esac
17357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17358   (eval "$ac_compile") 2>conftest.er1
17359   ac_status=$?
17360   grep -v '^ *+' conftest.er1 >conftest.err
17361   rm -f conftest.er1
17362   cat conftest.err >&5
17363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364   (exit $ac_status); } && {
17365          test -z "$ac_cxx_werror_flag" ||
17366          test ! -s conftest.err
17367        } && test -s conftest.$ac_objext; then
17368   bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800=yes
17369 else
17370   echo "$as_me: failed program was:" >&5
17371 sed 's/^/| /' conftest.$ac_ext >&5
17372
17373         bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800=no
17374
17375 fi
17376
17377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17378
17379
17380 fi
17381 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" >&5
17382 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" >&6; }
17383     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" = "xyes"; then
17384         :; INTELCXX8=yes
17385     else
17386         :;
17387     fi
17388     ac_ext=c
17389 ac_cpp='$CPP $CPPFLAGS'
17390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17393
17394
17395
17396
17397
17398     ac_ext=cpp
17399 ac_cpp='$CXXCPP $CPPFLAGS'
17400 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17401 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17402 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17403
17404     { echo "$as_me:$LINENO: checking whether we are using Intel C++ compiler v10 or later" >&5
17405 echo $ECHO_N "checking whether we are using Intel C++ compiler v10 or later... $ECHO_C" >&6; }
17406 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000+set}" = set; then
17407   echo $ECHO_N "(cached) $ECHO_C" >&6
17408 else
17409   cat >conftest.$ac_ext <<_ACEOF
17410 /* confdefs.h.  */
17411 _ACEOF
17412 cat confdefs.h >>conftest.$ac_ext
17413 cat >>conftest.$ac_ext <<_ACEOF
17414 /* end confdefs.h.  */
17415
17416 int
17417 main ()
17418 {
17419
17420              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 1000
17421                 choke me
17422              #endif
17423
17424   ;
17425   return 0;
17426 }
17427 _ACEOF
17428 rm -f conftest.$ac_objext
17429 if { (ac_try="$ac_compile"
17430 case "(($ac_try" in
17431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17432   *) ac_try_echo=$ac_try;;
17433 esac
17434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17435   (eval "$ac_compile") 2>conftest.er1
17436   ac_status=$?
17437   grep -v '^ *+' conftest.er1 >conftest.err
17438   rm -f conftest.er1
17439   cat conftest.err >&5
17440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17441   (exit $ac_status); } && {
17442          test -z "$ac_cxx_werror_flag" ||
17443          test ! -s conftest.err
17444        } && test -s conftest.$ac_objext; then
17445   bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000=yes
17446 else
17447   echo "$as_me: failed program was:" >&5
17448 sed 's/^/| /' conftest.$ac_ext >&5
17449
17450         bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000=no
17451
17452 fi
17453
17454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17455
17456
17457 fi
17458 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" >&5
17459 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" >&6; }
17460     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" = "xyes"; then
17461         :; INTELCXX10=yes
17462     else
17463         :;
17464     fi
17465     ac_ext=c
17466 ac_cpp='$CPP $CPPFLAGS'
17467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17470
17471
17472
17473     fi
17474
17475         if test "x$GCXX" != "xyes"; then
17476         if test "xCXX" = "xC"; then
17477             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
17478 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
17479 if test "${bakefile_cv_c_exto+set}" = set; then
17480   echo $ECHO_N "(cached) $ECHO_C" >&6
17481 else
17482   cat >conftest.$ac_ext <<_ACEOF
17483 /* confdefs.h.  */
17484 _ACEOF
17485 cat confdefs.h >>conftest.$ac_ext
17486 cat >>conftest.$ac_ext <<_ACEOF
17487 /* end confdefs.h.  */
17488
17489 int
17490 main ()
17491 {
17492
17493   ;
17494   return 0;
17495 }
17496 _ACEOF
17497 rm -f conftest.$ac_objext conftest.$ac_ext.o
17498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17499   (eval $ac_compile) 2>&5
17500   ac_status=$?
17501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17502   (exit $ac_status); }; then
17503   for ac_file in `(ls conftest.* 2>/dev/null)`; do
17504     case $ac_file in
17505         conftest.$ac_ext.o)
17506             bakefile_cv_c_exto="-ext o"
17507             ;;
17508         *)
17509             ;;
17510     esac
17511 done
17512 else
17513   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
17514 See \`config.log' for more details." >&5
17515 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
17516 See \`config.log' for more details." >&2;}
17517    { (exit 1); exit 1; }; }
17518
17519 fi
17520
17521 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
17522
17523 fi
17524 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
17525 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
17526 if test "x$bakefile_cv_c_exto" '!=' "x"; then
17527     if test "c" = "c"; then
17528         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
17529     fi
17530     if test "c" = "cxx"; then
17531         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
17532     fi
17533 fi
17534
17535             if test "x$bakefile_cv_c_exto" '!=' "x"; then
17536                 unset ac_cv_prog_cc_g
17537                 ac_test_CFLAGS=${CFLAGS+set}
17538 ac_save_CFLAGS=$CFLAGS
17539 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
17540 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
17541 if test "${ac_cv_prog_cc_g+set}" = set; then
17542   echo $ECHO_N "(cached) $ECHO_C" >&6
17543 else
17544   ac_save_c_werror_flag=$ac_c_werror_flag
17545    ac_c_werror_flag=yes
17546    ac_cv_prog_cc_g=no
17547    CFLAGS="-g"
17548    cat >conftest.$ac_ext <<_ACEOF
17549 /* confdefs.h.  */
17550 _ACEOF
17551 cat confdefs.h >>conftest.$ac_ext
17552 cat >>conftest.$ac_ext <<_ACEOF
17553 /* end confdefs.h.  */
17554
17555 int
17556 main ()
17557 {
17558
17559   ;
17560   return 0;
17561 }
17562 _ACEOF
17563 rm -f conftest.$ac_objext
17564 if { (ac_try="$ac_compile"
17565 case "(($ac_try" in
17566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17567   *) ac_try_echo=$ac_try;;
17568 esac
17569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17570   (eval "$ac_compile") 2>conftest.er1
17571   ac_status=$?
17572   grep -v '^ *+' conftest.er1 >conftest.err
17573   rm -f conftest.er1
17574   cat conftest.err >&5
17575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576   (exit $ac_status); } && {
17577          test -z "$ac_c_werror_flag" ||
17578          test ! -s conftest.err
17579        } && test -s conftest.$ac_objext; then
17580   ac_cv_prog_cc_g=yes
17581 else
17582   echo "$as_me: failed program was:" >&5
17583 sed 's/^/| /' conftest.$ac_ext >&5
17584
17585         CFLAGS=""
17586       cat >conftest.$ac_ext <<_ACEOF
17587 /* confdefs.h.  */
17588 _ACEOF
17589 cat confdefs.h >>conftest.$ac_ext
17590 cat >>conftest.$ac_ext <<_ACEOF
17591 /* end confdefs.h.  */
17592
17593 int
17594 main ()
17595 {
17596
17597   ;
17598   return 0;
17599 }
17600 _ACEOF
17601 rm -f conftest.$ac_objext
17602 if { (ac_try="$ac_compile"
17603 case "(($ac_try" in
17604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17605   *) ac_try_echo=$ac_try;;
17606 esac
17607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17608   (eval "$ac_compile") 2>conftest.er1
17609   ac_status=$?
17610   grep -v '^ *+' conftest.er1 >conftest.err
17611   rm -f conftest.er1
17612   cat conftest.err >&5
17613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614   (exit $ac_status); } && {
17615          test -z "$ac_c_werror_flag" ||
17616          test ! -s conftest.err
17617        } && test -s conftest.$ac_objext; then
17618   :
17619 else
17620   echo "$as_me: failed program was:" >&5
17621 sed 's/^/| /' conftest.$ac_ext >&5
17622
17623         ac_c_werror_flag=$ac_save_c_werror_flag
17624          CFLAGS="-g"
17625          cat >conftest.$ac_ext <<_ACEOF
17626 /* confdefs.h.  */
17627 _ACEOF
17628 cat confdefs.h >>conftest.$ac_ext
17629 cat >>conftest.$ac_ext <<_ACEOF
17630 /* end confdefs.h.  */
17631
17632 int
17633 main ()
17634 {
17635
17636   ;
17637   return 0;
17638 }
17639 _ACEOF
17640 rm -f conftest.$ac_objext
17641 if { (ac_try="$ac_compile"
17642 case "(($ac_try" in
17643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17644   *) ac_try_echo=$ac_try;;
17645 esac
17646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17647   (eval "$ac_compile") 2>conftest.er1
17648   ac_status=$?
17649   grep -v '^ *+' conftest.er1 >conftest.err
17650   rm -f conftest.er1
17651   cat conftest.err >&5
17652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653   (exit $ac_status); } && {
17654          test -z "$ac_c_werror_flag" ||
17655          test ! -s conftest.err
17656        } && test -s conftest.$ac_objext; then
17657   ac_cv_prog_cc_g=yes
17658 else
17659   echo "$as_me: failed program was:" >&5
17660 sed 's/^/| /' conftest.$ac_ext >&5
17661
17662
17663 fi
17664
17665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17666 fi
17667
17668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17669 fi
17670
17671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17672    ac_c_werror_flag=$ac_save_c_werror_flag
17673 fi
17674 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
17675 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
17676 if test "$ac_test_CFLAGS" = set; then
17677   CFLAGS=$ac_save_CFLAGS
17678 elif test $ac_cv_prog_cc_g = yes; then
17679   if test "$GCC" = yes; then
17680     CFLAGS="-g -O2"
17681   else
17682     CFLAGS="-g"
17683   fi
17684 else
17685   if test "$GCC" = yes; then
17686     CFLAGS="-O2"
17687   else
17688     CFLAGS=
17689   fi
17690 fi
17691             fi
17692         fi
17693
17694                         case `uname -s` in
17695             AIX*)
17696
17697
17698     ac_ext=cpp
17699 ac_cpp='$CXXCPP $CPPFLAGS'
17700 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17701 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17702 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17703
17704     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
17705 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
17706 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
17707   echo $ECHO_N "(cached) $ECHO_C" >&6
17708 else
17709   cat >conftest.$ac_ext <<_ACEOF
17710 /* confdefs.h.  */
17711 _ACEOF
17712 cat confdefs.h >>conftest.$ac_ext
17713 cat >>conftest.$ac_ext <<_ACEOF
17714 /* end confdefs.h.  */
17715
17716 int
17717 main ()
17718 {
17719
17720              #ifndef __xlC__
17721                 choke me
17722              #endif
17723
17724   ;
17725   return 0;
17726 }
17727 _ACEOF
17728 rm -f conftest.$ac_objext
17729 if { (ac_try="$ac_compile"
17730 case "(($ac_try" in
17731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17732   *) ac_try_echo=$ac_try;;
17733 esac
17734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17735   (eval "$ac_compile") 2>conftest.er1
17736   ac_status=$?
17737   grep -v '^ *+' conftest.er1 >conftest.err
17738   rm -f conftest.er1
17739   cat conftest.err >&5
17740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741   (exit $ac_status); } && {
17742          test -z "$ac_cxx_werror_flag" ||
17743          test ! -s conftest.err
17744        } && test -s conftest.$ac_objext; then
17745   bakefile_cv_cxx_compiler___xlC__=yes
17746 else
17747   echo "$as_me: failed program was:" >&5
17748 sed 's/^/| /' conftest.$ac_ext >&5
17749
17750         bakefile_cv_cxx_compiler___xlC__=no
17751
17752 fi
17753
17754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17755
17756
17757 fi
17758 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
17759 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
17760     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
17761         :; XLCXX=yes
17762     else
17763         :;
17764     fi
17765     ac_ext=c
17766 ac_cpp='$CPP $CPPFLAGS'
17767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17770
17771
17772
17773                 ;;
17774
17775             Darwin)
17776
17777
17778     ac_ext=cpp
17779 ac_cpp='$CXXCPP $CPPFLAGS'
17780 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17781 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17782 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17783
17784     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
17785 echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6; }
17786 if test "${bakefile_cv_cxx_compiler___MWERKS__+set}" = set; then
17787   echo $ECHO_N "(cached) $ECHO_C" >&6
17788 else
17789   cat >conftest.$ac_ext <<_ACEOF
17790 /* confdefs.h.  */
17791 _ACEOF
17792 cat confdefs.h >>conftest.$ac_ext
17793 cat >>conftest.$ac_ext <<_ACEOF
17794 /* end confdefs.h.  */
17795
17796 int
17797 main ()
17798 {
17799
17800              #ifndef __MWERKS__
17801                 choke me
17802              #endif
17803
17804   ;
17805   return 0;
17806 }
17807 _ACEOF
17808 rm -f conftest.$ac_objext
17809 if { (ac_try="$ac_compile"
17810 case "(($ac_try" in
17811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17812   *) ac_try_echo=$ac_try;;
17813 esac
17814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17815   (eval "$ac_compile") 2>conftest.er1
17816   ac_status=$?
17817   grep -v '^ *+' conftest.er1 >conftest.err
17818   rm -f conftest.er1
17819   cat conftest.err >&5
17820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821   (exit $ac_status); } && {
17822          test -z "$ac_cxx_werror_flag" ||
17823          test ! -s conftest.err
17824        } && test -s conftest.$ac_objext; then
17825   bakefile_cv_cxx_compiler___MWERKS__=yes
17826 else
17827   echo "$as_me: failed program was:" >&5
17828 sed 's/^/| /' conftest.$ac_ext >&5
17829
17830         bakefile_cv_cxx_compiler___MWERKS__=no
17831
17832 fi
17833
17834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17835
17836
17837 fi
17838 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___MWERKS__" >&5
17839 echo "${ECHO_T}$bakefile_cv_cxx_compiler___MWERKS__" >&6; }
17840     if test "x$bakefile_cv_cxx_compiler___MWERKS__" = "xyes"; then
17841         :; MWCXX=yes
17842     else
17843         :;
17844     fi
17845     ac_ext=c
17846 ac_cpp='$CPP $CPPFLAGS'
17847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17850
17851
17852
17853                 if test "$MWCXX" != "yes"; then
17854
17855
17856     ac_ext=cpp
17857 ac_cpp='$CXXCPP $CPPFLAGS'
17858 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17859 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17860 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17861
17862     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
17863 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
17864 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
17865   echo $ECHO_N "(cached) $ECHO_C" >&6
17866 else
17867   cat >conftest.$ac_ext <<_ACEOF
17868 /* confdefs.h.  */
17869 _ACEOF
17870 cat confdefs.h >>conftest.$ac_ext
17871 cat >>conftest.$ac_ext <<_ACEOF
17872 /* end confdefs.h.  */
17873
17874 int
17875 main ()
17876 {
17877
17878              #ifndef __xlC__
17879                 choke me
17880              #endif
17881
17882   ;
17883   return 0;
17884 }
17885 _ACEOF
17886 rm -f conftest.$ac_objext
17887 if { (ac_try="$ac_compile"
17888 case "(($ac_try" in
17889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17890   *) ac_try_echo=$ac_try;;
17891 esac
17892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17893   (eval "$ac_compile") 2>conftest.er1
17894   ac_status=$?
17895   grep -v '^ *+' conftest.er1 >conftest.err
17896   rm -f conftest.er1
17897   cat conftest.err >&5
17898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899   (exit $ac_status); } && {
17900          test -z "$ac_cxx_werror_flag" ||
17901          test ! -s conftest.err
17902        } && test -s conftest.$ac_objext; then
17903   bakefile_cv_cxx_compiler___xlC__=yes
17904 else
17905   echo "$as_me: failed program was:" >&5
17906 sed 's/^/| /' conftest.$ac_ext >&5
17907
17908         bakefile_cv_cxx_compiler___xlC__=no
17909
17910 fi
17911
17912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17913
17914
17915 fi
17916 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
17917 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
17918     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
17919         :; XLCXX=yes
17920     else
17921         :;
17922     fi
17923     ac_ext=c
17924 ac_cpp='$CPP $CPPFLAGS'
17925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17928
17929
17930
17931                 fi
17932                 ;;
17933
17934             IRIX*)
17935
17936
17937     ac_ext=cpp
17938 ac_cpp='$CXXCPP $CPPFLAGS'
17939 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17940 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17941 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17942
17943     { echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
17944 echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6; }
17945 if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
17946   echo $ECHO_N "(cached) $ECHO_C" >&6
17947 else
17948   cat >conftest.$ac_ext <<_ACEOF
17949 /* confdefs.h.  */
17950 _ACEOF
17951 cat confdefs.h >>conftest.$ac_ext
17952 cat >>conftest.$ac_ext <<_ACEOF
17953 /* end confdefs.h.  */
17954
17955 int
17956 main ()
17957 {
17958
17959              #ifndef _SGI_COMPILER_VERSION
17960                 choke me
17961              #endif
17962
17963   ;
17964   return 0;
17965 }
17966 _ACEOF
17967 rm -f conftest.$ac_objext
17968 if { (ac_try="$ac_compile"
17969 case "(($ac_try" in
17970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17971   *) ac_try_echo=$ac_try;;
17972 esac
17973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17974   (eval "$ac_compile") 2>conftest.er1
17975   ac_status=$?
17976   grep -v '^ *+' conftest.er1 >conftest.err
17977   rm -f conftest.er1
17978   cat conftest.err >&5
17979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17980   (exit $ac_status); } && {
17981          test -z "$ac_cxx_werror_flag" ||
17982          test ! -s conftest.err
17983        } && test -s conftest.$ac_objext; then
17984   bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
17985 else
17986   echo "$as_me: failed program was:" >&5
17987 sed 's/^/| /' conftest.$ac_ext >&5
17988
17989         bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
17990
17991 fi
17992
17993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17994
17995
17996 fi
17997 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
17998 echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6; }
17999     if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
18000         :; SGICXX=yes
18001     else
18002         :;
18003     fi
18004     ac_ext=c
18005 ac_cpp='$CPP $CPPFLAGS'
18006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18009
18010
18011
18012                 ;;
18013
18014             Linux*)
18015                                                 if test "$INTELCXX" != "yes"; then
18016
18017
18018     ac_ext=cpp
18019 ac_cpp='$CXXCPP $CPPFLAGS'
18020 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18021 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18022 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18023
18024     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
18025 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
18026 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
18027   echo $ECHO_N "(cached) $ECHO_C" >&6
18028 else
18029   cat >conftest.$ac_ext <<_ACEOF
18030 /* confdefs.h.  */
18031 _ACEOF
18032 cat confdefs.h >>conftest.$ac_ext
18033 cat >>conftest.$ac_ext <<_ACEOF
18034 /* end confdefs.h.  */
18035
18036 int
18037 main ()
18038 {
18039
18040              #ifndef __SUNPRO_CC
18041                 choke me
18042              #endif
18043
18044   ;
18045   return 0;
18046 }
18047 _ACEOF
18048 rm -f conftest.$ac_objext
18049 if { (ac_try="$ac_compile"
18050 case "(($ac_try" in
18051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18052   *) ac_try_echo=$ac_try;;
18053 esac
18054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18055   (eval "$ac_compile") 2>conftest.er1
18056   ac_status=$?
18057   grep -v '^ *+' conftest.er1 >conftest.err
18058   rm -f conftest.er1
18059   cat conftest.err >&5
18060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18061   (exit $ac_status); } && {
18062          test -z "$ac_cxx_werror_flag" ||
18063          test ! -s conftest.err
18064        } && test -s conftest.$ac_objext; then
18065   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
18066 else
18067   echo "$as_me: failed program was:" >&5
18068 sed 's/^/| /' conftest.$ac_ext >&5
18069
18070         bakefile_cv_cxx_compiler___SUNPRO_CC=no
18071
18072 fi
18073
18074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18075
18076
18077 fi
18078 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
18079 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
18080     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
18081         :; SUNCXX=yes
18082     else
18083         :;
18084     fi
18085     ac_ext=c
18086 ac_cpp='$CPP $CPPFLAGS'
18087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18090
18091
18092
18093                 fi
18094                 ;;
18095
18096             HP-UX*)
18097
18098
18099     ac_ext=cpp
18100 ac_cpp='$CXXCPP $CPPFLAGS'
18101 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18102 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18103 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18104
18105     { echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
18106 echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6; }
18107 if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
18108   echo $ECHO_N "(cached) $ECHO_C" >&6
18109 else
18110   cat >conftest.$ac_ext <<_ACEOF
18111 /* confdefs.h.  */
18112 _ACEOF
18113 cat confdefs.h >>conftest.$ac_ext
18114 cat >>conftest.$ac_ext <<_ACEOF
18115 /* end confdefs.h.  */
18116
18117 int
18118 main ()
18119 {
18120
18121              #ifndef __HP_aCC
18122                 choke me
18123              #endif
18124
18125   ;
18126   return 0;
18127 }
18128 _ACEOF
18129 rm -f conftest.$ac_objext
18130 if { (ac_try="$ac_compile"
18131 case "(($ac_try" in
18132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18133   *) ac_try_echo=$ac_try;;
18134 esac
18135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18136   (eval "$ac_compile") 2>conftest.er1
18137   ac_status=$?
18138   grep -v '^ *+' conftest.er1 >conftest.err
18139   rm -f conftest.er1
18140   cat conftest.err >&5
18141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18142   (exit $ac_status); } && {
18143          test -z "$ac_cxx_werror_flag" ||
18144          test ! -s conftest.err
18145        } && test -s conftest.$ac_objext; then
18146   bakefile_cv_cxx_compiler___HP_aCC=yes
18147 else
18148   echo "$as_me: failed program was:" >&5
18149 sed 's/^/| /' conftest.$ac_ext >&5
18150
18151         bakefile_cv_cxx_compiler___HP_aCC=no
18152
18153 fi
18154
18155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18156
18157
18158 fi
18159 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
18160 echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6; }
18161     if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
18162         :; HPCXX=yes
18163     else
18164         :;
18165     fi
18166     ac_ext=c
18167 ac_cpp='$CPP $CPPFLAGS'
18168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18171
18172
18173
18174                 ;;
18175
18176             OSF1)
18177
18178
18179     ac_ext=cpp
18180 ac_cpp='$CXXCPP $CPPFLAGS'
18181 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18182 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18183 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18184
18185     { echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
18186 echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6; }
18187 if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
18188   echo $ECHO_N "(cached) $ECHO_C" >&6
18189 else
18190   cat >conftest.$ac_ext <<_ACEOF
18191 /* confdefs.h.  */
18192 _ACEOF
18193 cat confdefs.h >>conftest.$ac_ext
18194 cat >>conftest.$ac_ext <<_ACEOF
18195 /* end confdefs.h.  */
18196
18197 int
18198 main ()
18199 {
18200
18201              #ifndef __DECCXX
18202                 choke me
18203              #endif
18204
18205   ;
18206   return 0;
18207 }
18208 _ACEOF
18209 rm -f conftest.$ac_objext
18210 if { (ac_try="$ac_compile"
18211 case "(($ac_try" in
18212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18213   *) ac_try_echo=$ac_try;;
18214 esac
18215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18216   (eval "$ac_compile") 2>conftest.er1
18217   ac_status=$?
18218   grep -v '^ *+' conftest.er1 >conftest.err
18219   rm -f conftest.er1
18220   cat conftest.err >&5
18221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18222   (exit $ac_status); } && {
18223          test -z "$ac_cxx_werror_flag" ||
18224          test ! -s conftest.err
18225        } && test -s conftest.$ac_objext; then
18226   bakefile_cv_cxx_compiler___DECCXX=yes
18227 else
18228   echo "$as_me: failed program was:" >&5
18229 sed 's/^/| /' conftest.$ac_ext >&5
18230
18231         bakefile_cv_cxx_compiler___DECCXX=no
18232
18233 fi
18234
18235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18236
18237
18238 fi
18239 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
18240 echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6; }
18241     if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
18242         :; COMPAQCXX=yes
18243     else
18244         :;
18245     fi
18246     ac_ext=c
18247 ac_cpp='$CPP $CPPFLAGS'
18248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18251
18252
18253
18254                 ;;
18255
18256             SunOS)
18257
18258
18259     ac_ext=cpp
18260 ac_cpp='$CXXCPP $CPPFLAGS'
18261 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18262 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18263 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18264
18265     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
18266 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
18267 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
18268   echo $ECHO_N "(cached) $ECHO_C" >&6
18269 else
18270   cat >conftest.$ac_ext <<_ACEOF
18271 /* confdefs.h.  */
18272 _ACEOF
18273 cat confdefs.h >>conftest.$ac_ext
18274 cat >>conftest.$ac_ext <<_ACEOF
18275 /* end confdefs.h.  */
18276
18277 int
18278 main ()
18279 {
18280
18281              #ifndef __SUNPRO_CC
18282                 choke me
18283              #endif
18284
18285   ;
18286   return 0;
18287 }
18288 _ACEOF
18289 rm -f conftest.$ac_objext
18290 if { (ac_try="$ac_compile"
18291 case "(($ac_try" in
18292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18293   *) ac_try_echo=$ac_try;;
18294 esac
18295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18296   (eval "$ac_compile") 2>conftest.er1
18297   ac_status=$?
18298   grep -v '^ *+' conftest.er1 >conftest.err
18299   rm -f conftest.er1
18300   cat conftest.err >&5
18301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18302   (exit $ac_status); } && {
18303          test -z "$ac_cxx_werror_flag" ||
18304          test ! -s conftest.err
18305        } && test -s conftest.$ac_objext; then
18306   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
18307 else
18308   echo "$as_me: failed program was:" >&5
18309 sed 's/^/| /' conftest.$ac_ext >&5
18310
18311         bakefile_cv_cxx_compiler___SUNPRO_CC=no
18312
18313 fi
18314
18315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18316
18317
18318 fi
18319 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
18320 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
18321     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
18322         :; SUNCXX=yes
18323     else
18324         :;
18325     fi
18326     ac_ext=c
18327 ac_cpp='$CPP $CPPFLAGS'
18328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18331
18332
18333
18334                 ;;
18335         esac
18336     fi
18337
18338
18339
18340 if test "$CXX" = "g++" -a "$GXX" != "yes"; then
18341     { { echo "$as_me:$LINENO: error: C++ compiler is needed to build wxWidgets" >&5
18342 echo "$as_me: error: C++ compiler is needed to build wxWidgets" >&2;}
18343    { (exit 1); exit 1; }; }
18344 fi
18345
18346 if test "x$SUNCXX" != xyes; then
18347     if test -n "$ac_tool_prefix"; then
18348   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
18349 set dummy ${ac_tool_prefix}ar; ac_word=$2
18350 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18352 if test "${ac_cv_prog_AR+set}" = set; then
18353   echo $ECHO_N "(cached) $ECHO_C" >&6
18354 else
18355   if test -n "$AR"; then
18356   ac_cv_prog_AR="$AR" # Let the user override the test.
18357 else
18358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18359 for as_dir in $PATH
18360 do
18361   IFS=$as_save_IFS
18362   test -z "$as_dir" && as_dir=.
18363   for ac_exec_ext in '' $ac_executable_extensions; do
18364   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18365     ac_cv_prog_AR="${ac_tool_prefix}ar"
18366     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18367     break 2
18368   fi
18369 done
18370 done
18371 IFS=$as_save_IFS
18372
18373 fi
18374 fi
18375 AR=$ac_cv_prog_AR
18376 if test -n "$AR"; then
18377   { echo "$as_me:$LINENO: result: $AR" >&5
18378 echo "${ECHO_T}$AR" >&6; }
18379 else
18380   { echo "$as_me:$LINENO: result: no" >&5
18381 echo "${ECHO_T}no" >&6; }
18382 fi
18383
18384
18385 fi
18386 if test -z "$ac_cv_prog_AR"; then
18387   ac_ct_AR=$AR
18388   # Extract the first word of "ar", so it can be a program name with args.
18389 set dummy ar; ac_word=$2
18390 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18392 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
18393   echo $ECHO_N "(cached) $ECHO_C" >&6
18394 else
18395   if test -n "$ac_ct_AR"; then
18396   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
18397 else
18398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18399 for as_dir in $PATH
18400 do
18401   IFS=$as_save_IFS
18402   test -z "$as_dir" && as_dir=.
18403   for ac_exec_ext in '' $ac_executable_extensions; do
18404   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18405     ac_cv_prog_ac_ct_AR="ar"
18406     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18407     break 2
18408   fi
18409 done
18410 done
18411 IFS=$as_save_IFS
18412
18413 fi
18414 fi
18415 ac_ct_AR=$ac_cv_prog_ac_ct_AR
18416 if test -n "$ac_ct_AR"; then
18417   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
18418 echo "${ECHO_T}$ac_ct_AR" >&6; }
18419 else
18420   { echo "$as_me:$LINENO: result: no" >&5
18421 echo "${ECHO_T}no" >&6; }
18422 fi
18423
18424   if test "x$ac_ct_AR" = x; then
18425     AR=""
18426   else
18427     case $cross_compiling:$ac_tool_warned in
18428 yes:)
18429 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18430 whose name does not start with the host triplet.  If you think this
18431 configuration is useful to you, please write to autoconf@gnu.org." >&5
18432 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18433 whose name does not start with the host triplet.  If you think this
18434 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18435 ac_tool_warned=yes ;;
18436 esac
18437     AR=$ac_ct_AR
18438   fi
18439 else
18440   AR="$ac_cv_prog_AR"
18441 fi
18442
18443     if test "x$AR" = "x" ; then
18444         { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
18445 echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
18446    { (exit 1); exit 1; }; }
18447     fi
18448 fi
18449
18450
18451 if test "$wxUSE_MAC" = 1; then
18452
18453 retest_macosx_linking=no
18454
18455     if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
18456                         if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
18457             # Implicitly turn on the new --with-macosx-sdk using the default
18458             # SDK which provides the behavior this option has always had.
18459             if test "x$wxUSE_MACOSX_SDK" = "x"; then
18460                 { echo "$as_me:$LINENO: WARNING: Enabling default SDK due to --enable-universal_binary." >&5
18461 echo "$as_me: WARNING: Enabling default SDK due to --enable-universal_binary." >&2;}
18462                 { echo "$as_me:$LINENO: WARNING: If you don't want this, specify --without-macosx-sdk" >&5
18463 echo "$as_me: WARNING: If you don't want this, specify --without-macosx-sdk" >&2;}
18464                 wxUSE_MACOSX_SDK=yes
18465             fi
18466         else
18467             # Complain to user if he specified an argument to --enable-universal_binary
18468             # and also 1) specified --with-macosx-sdk using the default (yes) or
18469             # 2) specified --with-macosx-sdk using a path or 3) specified
18470             # --without-macosx-sdk (no).
18471             if test "x$wxUSE_MACOSX_SDK" != "x" ; then
18472                 { { echo "$as_me:$LINENO: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
18473 See \`config.log' for more details." >&5
18474 echo "$as_me: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
18475 See \`config.log' for more details." >&2;}
18476    { (exit 1); exit 1; }; }
18477             else
18478                 # Put the SDK path into the wxUSE_MACOSX_SDK.  We don't have to
18479                 # special-case the empty string because the below test simply
18480                 # converts "no" to the empty string anyway.
18481                 wxUSE_MACOSX_SDK="$wxUSE_UNIVERSAL_BINARY"
18482                                 { echo "$as_me:$LINENO: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&5
18483 echo "$as_me: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&2;}
18484             fi
18485         fi
18486                 OSX_UNIV_OPTS="-arch ppc -arch i386"
18487         CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS"
18488         CFLAGS="$OSX_UNIV_OPTS $CFLAGS"
18489         OBJCXXFLAGS="$OSX_UNIV_OPTS $OBJCXXFLAGS"
18490         OBJCFLAGS="$OSX_UNIV_OPTS $OBJCFLAGS"
18491         LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS"
18492                                                                                                                 retest_macosx_linking=yes
18493
18494                                         { echo "$as_me:$LINENO: WARNING: Disabling precompiled headers due to universal binary build." >&5
18495 echo "$as_me: WARNING: Disabling precompiled headers due to universal binary build." >&2;}
18496         bk_use_pch=no
18497     fi
18498
18499 if test "x$wxUSE_MACOSX_SDK" = "xno"; then
18500     wxUSE_MACOSX_SDK=
18501 elif test "x$wxUSE_MACOSX_SDK" = "xyes"; then
18502     # TODO: Search for most recent SDK and use it.
18503     wxUSE_MACOSX_SDK="/Developer/SDKs/MacOSX10.4u.sdk"
18504 fi
18505
18506
18507 if test "x$wxUSE_MACOSX_SDK" != "x"; then
18508     { echo "$as_me:$LINENO: checking for SDK directory $wxUSE_MACOSX_SDK" >&5
18509 echo $ECHO_N "checking for SDK directory $wxUSE_MACOSX_SDK... $ECHO_C" >&6; }
18510     if ! test -d "$wxUSE_MACOSX_SDK"; then
18511         { { echo "$as_me:$LINENO: error: not found
18512 See \`config.log' for more details." >&5
18513 echo "$as_me: error: not found
18514 See \`config.log' for more details." >&2;}
18515    { (exit 1); exit 1; }; }
18516     else
18517         { echo "$as_me:$LINENO: result: exists" >&5
18518 echo "${ECHO_T}exists" >&6; }
18519     fi
18520     MACOSX_SDK_OPTS="-isysroot $wxUSE_MACOSX_SDK"
18521     eval "CC=\"$CC $MACOSX_SDK_OPTS\""
18522     eval "CXX=\"$CXX $MACOSX_SDK_OPTS\""
18523     eval "LD=\"$LD $MACOSX_SDK_OPTS\""
18524     retest_macosx_linking=yes
18525             fi
18526
18527 if test "x$wxUSE_MACOSX_VERSION_MIN" = "xno"; then
18528     wxUSE_MACOSX_VERSION_MIN=
18529 elif test "x$wxUSE_MACOSX_VERSION_MIN" = "xyes"; then
18530     if test "x$wxUSE_MACOSX_SDK" != "x"; then
18531         { echo "$as_me:$LINENO: checking SDK deployment version" >&5
18532 echo $ECHO_N "checking SDK deployment version... $ECHO_C" >&6; }
18533
18534         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/'`
18535
18536         # If that failed, try again with the new key
18537         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" == "x"; then
18538
18539             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/'`
18540
18541         fi
18542
18543         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" != "x"; then
18544             wxUSE_MACOSX_VERSION_MIN=$MACOSX_SDK_PLIST_VERSION_MIN
18545             { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
18546 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
18547         else
18548             { echo "$as_me:$LINENO: WARNING: Could not determine deployment target from SDKSettings.plist" >&5
18549 echo "$as_me: WARNING: Could not determine deployment target from SDKSettings.plist" >&2;}
18550             wxUSE_MACOSX_VERSION_MIN=
18551         fi
18552     else
18553         wxUSE_MACOSX_VERSION_MIN=
18554     fi
18555 elif test "x$wxUSE_MACOSX_VERSION_MIN" = "x"; then
18556     for ac_prog in sw_vers
18557 do
18558   # Extract the first word of "$ac_prog", so it can be a program name with args.
18559 set dummy $ac_prog; ac_word=$2
18560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18562 if test "${ac_cv_prog_OSX_SW_VERS+set}" = set; then
18563   echo $ECHO_N "(cached) $ECHO_C" >&6
18564 else
18565   if test -n "$OSX_SW_VERS"; then
18566   ac_cv_prog_OSX_SW_VERS="$OSX_SW_VERS" # Let the user override the test.
18567 else
18568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18569 for as_dir in $PATH
18570 do
18571   IFS=$as_save_IFS
18572   test -z "$as_dir" && as_dir=.
18573   for ac_exec_ext in '' $ac_executable_extensions; do
18574   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18575     ac_cv_prog_OSX_SW_VERS="$ac_prog"
18576     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18577     break 2
18578   fi
18579 done
18580 done
18581 IFS=$as_save_IFS
18582
18583 fi
18584 fi
18585 OSX_SW_VERS=$ac_cv_prog_OSX_SW_VERS
18586 if test -n "$OSX_SW_VERS"; then
18587   { echo "$as_me:$LINENO: result: $OSX_SW_VERS" >&5
18588 echo "${ECHO_T}$OSX_SW_VERS" >&6; }
18589 else
18590   { echo "$as_me:$LINENO: result: no" >&5
18591 echo "${ECHO_T}no" >&6; }
18592 fi
18593
18594
18595   test -n "$OSX_SW_VERS" && break
18596 done
18597
18598     if test "$OSX_SW_VERS" != ""; then
18599         OSX_VERSION=`sw_vers -productVersion | grep 10.[0-9]`
18600     else
18601                         { echo "$as_me:$LINENO: WARNING: Assuming OS X 10.4, use --with-macosx-version-min to override." >&5
18602 echo "$as_me: WARNING: Assuming OS X 10.4, use --with-macosx-version-min to override." >&2;}
18603         OSX_VERSION="10.4"
18604     fi
18605
18606     case "$OSX_VERSION" in
18607         10.4* )
18608             wxUSE_MACOSX_VERSION_MIN=10.4
18609             ;;
18610
18611         * )
18612             if test "$wxUSE_OSX_CARBON" = 1; then
18613                 # otherwise configure stops on leopard for universal_binary
18614                 wxUSE_MACOSX_VERSION_MIN=10.4
18615             else
18616                 # for Cocoa, use 10.5 to be able to compile it in 64 bits too
18617                 wxUSE_MACOSX_VERSION_MIN=10.5
18618             fi
18619             ;;
18620     esac
18621 fi
18622
18623 NEEDS_GCC40="no"
18624 if test "x$wxUSE_MACOSX_VERSION_MIN" == "x10.4"; then
18625     NEEDS_GCC40="yes"
18626 fi
18627
18628 if test "$wxUSE_OSX_CARBON" = 1; then
18629     NEEDS_GCC40="yes"
18630 fi
18631
18632 if test "x$NEEDS_GCC40" == "xyes"; then
18633     # gcc 4.2 cannot compile 10.4 compatible code, so if the user is using it
18634     # and wants 10.4 compatible code, then 'downgrade' to 4.0
18635     # This is also the simplest way to get 32-bit binaries on Snow Leopard.
18636     if test "x$CC" = "xgcc"; then
18637         CCVERSION=`$CC --version | grep 4.[2-9].`
18638         if test "x$CCVERSION" != "x"; then
18639             echo "$as_me:$LINENO: WARNING: gcc >= 4.2 cannot compile 10.4 compatible code. Using gcc 4.0 instead."
18640             CC="/usr/bin/gcc-4.0"
18641         fi
18642     fi
18643
18644     if test "x$CXX" = "xg++"; then
18645         CCVERSION=`$CXX --version | grep 4.[2-9].`
18646         if test "x$CCVERSION" != "x"; then
18647             CXX="/usr/bin/g++-4.0"
18648         fi
18649     fi
18650 fi
18651
18652 if test "x$wxUSE_MACOSX_VERSION_MIN" != "x"; then
18653     MACOSX_VERSION_MIN_OPTS="-mmacosx-version-min=$wxUSE_MACOSX_VERSION_MIN"
18654     eval "CC=\"$CC $MACOSX_VERSION_MIN_OPTS\""
18655     eval "CXX=\"$CXX $MACOSX_VERSION_MIN_OPTS\""
18656     eval "LD=\"$LD $MACOSX_VERSION_MIN_OPTS\""
18657     retest_macosx_linking=yes
18658 fi
18659
18660 if test "x$retest_macosx_linking" = "xyes"; then
18661     ac_ext=c
18662 ac_cpp='$CPP $CPPFLAGS'
18663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18666
18667     { echo "$as_me:$LINENO: checking if C compiler works with SDK/version options" >&5
18668 echo $ECHO_N "checking if C compiler works with SDK/version options... $ECHO_C" >&6; }
18669     cat >conftest.$ac_ext <<_ACEOF
18670 /* confdefs.h.  */
18671 _ACEOF
18672 cat confdefs.h >>conftest.$ac_ext
18673 cat >>conftest.$ac_ext <<_ACEOF
18674 /* end confdefs.h.  */
18675
18676 int
18677 main ()
18678 {
18679
18680   ;
18681   return 0;
18682 }
18683 _ACEOF
18684 rm -f conftest.$ac_objext conftest$ac_exeext
18685 if { (ac_try="$ac_link"
18686 case "(($ac_try" in
18687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18688   *) ac_try_echo=$ac_try;;
18689 esac
18690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18691   (eval "$ac_link") 2>conftest.er1
18692   ac_status=$?
18693   grep -v '^ *+' conftest.er1 >conftest.err
18694   rm -f conftest.er1
18695   cat conftest.err >&5
18696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697   (exit $ac_status); } && {
18698          test -z "$ac_c_werror_flag" ||
18699          test ! -s conftest.err
18700        } && test -s conftest$ac_exeext &&
18701        $as_test_x conftest$ac_exeext; then
18702   { echo "$as_me:$LINENO: result: yes" >&5
18703 echo "${ECHO_T}yes" >&6; }
18704 else
18705   echo "$as_me: failed program was:" >&5
18706 sed 's/^/| /' conftest.$ac_ext >&5
18707
18708         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
18709 See \`config.log' for more details." >&5
18710 echo "$as_me: error: no.  Try a different SDK
18711 See \`config.log' for more details." >&2;}
18712    { (exit 1); exit 1; }; }; exit 1
18713 fi
18714
18715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18716       conftest$ac_exeext conftest.$ac_ext
18717     ac_ext=c
18718 ac_cpp='$CPP $CPPFLAGS'
18719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18722
18723
18724     ac_ext=cpp
18725 ac_cpp='$CXXCPP $CPPFLAGS'
18726 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18727 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18728 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18729
18730     { echo "$as_me:$LINENO: checking if C++ compiler works with SDK/version options" >&5
18731 echo $ECHO_N "checking if C++ compiler works with SDK/version options... $ECHO_C" >&6; }
18732     cat >conftest.$ac_ext <<_ACEOF
18733 /* confdefs.h.  */
18734 _ACEOF
18735 cat confdefs.h >>conftest.$ac_ext
18736 cat >>conftest.$ac_ext <<_ACEOF
18737 /* end confdefs.h.  */
18738
18739 int
18740 main ()
18741 {
18742
18743   ;
18744   return 0;
18745 }
18746 _ACEOF
18747 rm -f conftest.$ac_objext conftest$ac_exeext
18748 if { (ac_try="$ac_link"
18749 case "(($ac_try" in
18750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18751   *) ac_try_echo=$ac_try;;
18752 esac
18753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18754   (eval "$ac_link") 2>conftest.er1
18755   ac_status=$?
18756   grep -v '^ *+' conftest.er1 >conftest.err
18757   rm -f conftest.er1
18758   cat conftest.err >&5
18759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760   (exit $ac_status); } && {
18761          test -z "$ac_cxx_werror_flag" ||
18762          test ! -s conftest.err
18763        } && test -s conftest$ac_exeext &&
18764        $as_test_x conftest$ac_exeext; then
18765   { echo "$as_me:$LINENO: result: yes" >&5
18766 echo "${ECHO_T}yes" >&6; }
18767 else
18768   echo "$as_me: failed program was:" >&5
18769 sed 's/^/| /' conftest.$ac_ext >&5
18770
18771         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
18772 See \`config.log' for more details." >&5
18773 echo "$as_me: error: no.  Try a different SDK
18774 See \`config.log' for more details." >&2;}
18775    { (exit 1); exit 1; }; }; exit 1
18776 fi
18777
18778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18779       conftest$ac_exeext conftest.$ac_ext
18780     ac_ext=c
18781 ac_cpp='$CPP $CPPFLAGS'
18782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18785
18786 fi
18787
18788 fi
18789 case "${host}" in
18790
18791                 *-*-darwin* )
18792         INSTALL_PROGRAM="cp -fp"
18793         INSTALL_DATA="cp -fp"
18794         ;;
18795     *)
18796         ;;
18797 esac
18798
18799
18800 if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
18801     CXXFLAGS="-qunique $CXXFLAGS"
18802 fi
18803
18804 case "${host}" in
18805   powerpc-*-darwin* )
18806     { echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
18807 echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6; }
18808     cat >conftest.$ac_ext <<_ACEOF
18809 /* confdefs.h.  */
18810 _ACEOF
18811 cat confdefs.h >>conftest.$ac_ext
18812 cat >>conftest.$ac_ext <<_ACEOF
18813 /* end confdefs.h.  */
18814
18815 int
18816 main ()
18817 {
18818 #ifndef __POWERPC__
18819         choke me for lack of PowerPC
18820 #endif
18821
18822   ;
18823   return 0;
18824 }
18825 _ACEOF
18826 rm -f conftest.$ac_objext
18827 if { (ac_try="$ac_compile"
18828 case "(($ac_try" in
18829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18830   *) ac_try_echo=$ac_try;;
18831 esac
18832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18833   (eval "$ac_compile") 2>conftest.er1
18834   ac_status=$?
18835   grep -v '^ *+' conftest.er1 >conftest.err
18836   rm -f conftest.er1
18837   cat conftest.err >&5
18838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18839   (exit $ac_status); } && {
18840          test -z "$ac_c_werror_flag" ||
18841          test ! -s conftest.err
18842        } && test -s conftest.$ac_objext; then
18843   { echo "$as_me:$LINENO: result: yes" >&5
18844 echo "${ECHO_T}yes" >&6; }
18845 else
18846   echo "$as_me: failed program was:" >&5
18847 sed 's/^/| /' conftest.$ac_ext >&5
18848
18849         { echo "$as_me:$LINENO: result: no" >&5
18850 echo "${ECHO_T}no" >&6; }
18851         cat >>confdefs.h <<\_ACEOF
18852 #define __POWERPC__ 1
18853 _ACEOF
18854
18855
18856 fi
18857
18858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18859   ;;
18860 esac
18861
18862 case "${host}" in
18863   *-*-darwin* )
18864     { echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
18865 echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6; }
18866     cat >conftest.$ac_ext <<_ACEOF
18867 /* confdefs.h.  */
18868 _ACEOF
18869 cat confdefs.h >>conftest.$ac_ext
18870 cat >>conftest.$ac_ext <<_ACEOF
18871 /* end confdefs.h.  */
18872 #include <CoreFoundation/CFBase.h>
18873
18874 int
18875 main ()
18876 {
18877
18878   ;
18879   return 0;
18880 }
18881 _ACEOF
18882 rm -f conftest.$ac_objext
18883 if { (ac_try="$ac_compile"
18884 case "(($ac_try" in
18885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18886   *) ac_try_echo=$ac_try;;
18887 esac
18888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18889   (eval "$ac_compile") 2>conftest.er1
18890   ac_status=$?
18891   grep -v '^ *+' conftest.er1 >conftest.err
18892   rm -f conftest.er1
18893   cat conftest.err >&5
18894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18895   (exit $ac_status); } && {
18896          test -z "$ac_c_werror_flag" ||
18897          test ! -s conftest.err
18898        } && test -s conftest.$ac_objext; then
18899   { echo "$as_me:$LINENO: result: yes" >&5
18900 echo "${ECHO_T}yes" >&6; }
18901 else
18902   echo "$as_me: failed program was:" >&5
18903 sed 's/^/| /' conftest.$ac_ext >&5
18904
18905         { echo "$as_me:$LINENO: result: no" >&5
18906 echo "${ECHO_T}no" >&6; }
18907         { echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
18908 echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6; }
18909         cat >conftest.$ac_ext <<_ACEOF
18910 /* confdefs.h.  */
18911 _ACEOF
18912 cat confdefs.h >>conftest.$ac_ext
18913 cat >>conftest.$ac_ext <<_ACEOF
18914 /* end confdefs.h.  */
18915 #define __CF_USE_FRAMEWORK_INCLUDES__
18916 #include <CoreFoundation/CFBase.h>
18917
18918 int
18919 main ()
18920 {
18921
18922   ;
18923   return 0;
18924 }
18925 _ACEOF
18926 rm -f conftest.$ac_objext
18927 if { (ac_try="$ac_compile"
18928 case "(($ac_try" in
18929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18930   *) ac_try_echo=$ac_try;;
18931 esac
18932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18933   (eval "$ac_compile") 2>conftest.er1
18934   ac_status=$?
18935   grep -v '^ *+' conftest.er1 >conftest.err
18936   rm -f conftest.er1
18937   cat conftest.err >&5
18938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939   (exit $ac_status); } && {
18940          test -z "$ac_c_werror_flag" ||
18941          test ! -s conftest.err
18942        } && test -s conftest.$ac_objext; then
18943   { echo "$as_me:$LINENO: result: yes" >&5
18944 echo "${ECHO_T}yes" >&6; }
18945                         CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
18946 else
18947   echo "$as_me: failed program was:" >&5
18948 sed 's/^/| /' conftest.$ac_ext >&5
18949
18950         { { echo "$as_me:$LINENO: error: no.  CoreFoundation not available.
18951 See \`config.log' for more details." >&5
18952 echo "$as_me: error: no.  CoreFoundation not available.
18953 See \`config.log' for more details." >&2;}
18954    { (exit 1); exit 1; }; }
18955
18956 fi
18957
18958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18959
18960
18961 fi
18962
18963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18964   ;;
18965 esac
18966
18967 wants_win32=0
18968 doesnt_want_win32=0
18969 case "${host}" in
18970   *-*-cygwin*)
18971       if test "$wxUSE_MSW" = 1 ; then
18972         wants_win32=1
18973       else
18974                         { echo "$as_me:$LINENO: checking if -mno-cygwin is in effect" >&5
18975 echo $ECHO_N "checking if -mno-cygwin is in effect... $ECHO_C" >&6; }
18976 if test "${wx_cv_nocygwin+set}" = set; then
18977   echo $ECHO_N "(cached) $ECHO_C" >&6
18978 else
18979
18980                 cat >conftest.$ac_ext <<_ACEOF
18981 /* confdefs.h.  */
18982 _ACEOF
18983 cat confdefs.h >>conftest.$ac_ext
18984 cat >>conftest.$ac_ext <<_ACEOF
18985 /* end confdefs.h.  */
18986
18987 int
18988 main ()
18989 {
18990
18991                         #ifdef __MINGW32__
18992                             choke me
18993                         #endif
18994
18995   ;
18996   return 0;
18997 }
18998 _ACEOF
18999 rm -f conftest.$ac_objext
19000 if { (ac_try="$ac_compile"
19001 case "(($ac_try" in
19002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19003   *) ac_try_echo=$ac_try;;
19004 esac
19005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19006   (eval "$ac_compile") 2>conftest.er1
19007   ac_status=$?
19008   grep -v '^ *+' conftest.er1 >conftest.err
19009   rm -f conftest.er1
19010   cat conftest.err >&5
19011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19012   (exit $ac_status); } && {
19013          test -z "$ac_c_werror_flag" ||
19014          test ! -s conftest.err
19015        } && test -s conftest.$ac_objext; then
19016   wx_cv_nocygwin=no
19017 else
19018   echo "$as_me: failed program was:" >&5
19019 sed 's/^/| /' conftest.$ac_ext >&5
19020
19021         wx_cv_nocygwin=yes
19022
19023 fi
19024
19025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19026
19027
19028 fi
19029 { echo "$as_me:$LINENO: result: $wx_cv_nocygwin" >&5
19030 echo "${ECHO_T}$wx_cv_nocygwin" >&6; }
19031
19032         if test "$wx_cv_nocygwin" = "yes"; then
19033             wants_win32=1
19034         else
19035             doesnt_want_win32=1
19036         fi
19037       fi
19038       if test "$wants_win32" = 1 ; then
19039         BAKEFILE_FORCE_PLATFORM=win32
19040       fi
19041   ;;
19042   *-*-mingw*)
19043       wants_win32=1
19044   ;;
19045 esac
19046
19047 if test "$wxUSE_WINE" = "yes"; then
19048     wants_win32=1
19049     LDFLAGS_GUI="-mwindows"
19050 fi
19051
19052 if test "$wants_win32" = 1 ; then
19053     USE_UNIX=0
19054     USE_WIN32=1
19055     cat >>confdefs.h <<\_ACEOF
19056 #define __WIN32__ 1
19057 _ACEOF
19058
19059     cat >>confdefs.h <<\_ACEOF
19060 #define __WIN95__ 1
19061 _ACEOF
19062
19063     cat >>confdefs.h <<\_ACEOF
19064 #define __WINDOWS__ 1
19065 _ACEOF
19066
19067     cat >>confdefs.h <<\_ACEOF
19068 #define __GNUWIN32__ 1
19069 _ACEOF
19070
19071     cat >>confdefs.h <<\_ACEOF
19072 #define STRICT 1
19073 _ACEOF
19074
19075 fi
19076 if test "$doesnt_want_win32" = 1 ; then
19077     USE_UNIX=1
19078     USE_WIN32=0
19079 fi
19080
19081 if test "$USE_UNIX" = 1 ; then
19082     wxUSE_UNIX=yes
19083     cat >>confdefs.h <<\_ACEOF
19084 #define __UNIX__ 1
19085 _ACEOF
19086
19087 fi
19088
19089 case "${host}" in
19090   *-pc-os2_emx | *-pc-os2-emx )
19091                                                       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
19092                               { echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
19093 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6; }
19094 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
19095   echo $ECHO_N "(cached) $ECHO_C" >&6
19096 else
19097   ac_check_lib_save_LIBS=$LIBS
19098 LIBS="-lcExt  $LIBS"
19099 cat >conftest.$ac_ext <<_ACEOF
19100 /* confdefs.h.  */
19101 _ACEOF
19102 cat confdefs.h >>conftest.$ac_ext
19103 cat >>conftest.$ac_ext <<_ACEOF
19104 /* end confdefs.h.  */
19105
19106 /* Override any GCC internal prototype to avoid an error.
19107    Use char because int might match the return type of a GCC
19108    builtin and then its argument prototype would still apply.  */
19109 #ifdef __cplusplus
19110 extern "C"
19111 #endif
19112 char drand48 ();
19113 int
19114 main ()
19115 {
19116 return drand48 ();
19117   ;
19118   return 0;
19119 }
19120 _ACEOF
19121 rm -f conftest.$ac_objext conftest$ac_exeext
19122 if { (ac_try="$ac_link"
19123 case "(($ac_try" in
19124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19125   *) ac_try_echo=$ac_try;;
19126 esac
19127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19128   (eval "$ac_link") 2>conftest.er1
19129   ac_status=$?
19130   grep -v '^ *+' conftest.er1 >conftest.err
19131   rm -f conftest.er1
19132   cat conftest.err >&5
19133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134   (exit $ac_status); } && {
19135          test -z "$ac_c_werror_flag" ||
19136          test ! -s conftest.err
19137        } && test -s conftest$ac_exeext &&
19138        $as_test_x conftest$ac_exeext; then
19139   ac_cv_lib_cExt_drand48=yes
19140 else
19141   echo "$as_me: failed program was:" >&5
19142 sed 's/^/| /' conftest.$ac_ext >&5
19143
19144         ac_cv_lib_cExt_drand48=no
19145 fi
19146
19147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19148       conftest$ac_exeext conftest.$ac_ext
19149 LIBS=$ac_check_lib_save_LIBS
19150 fi
19151 { echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
19152 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6; }
19153 if test $ac_cv_lib_cExt_drand48 = yes; then
19154   LIBS="$LIBS -lcExt"
19155 fi
19156
19157       else
19158                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
19159       fi
19160                                     { echo "$as_me:$LINENO: checking for gcc/libc version" >&5
19161 echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6; }
19162 if test "${wx_cv_gccversion+set}" = set; then
19163   echo $ECHO_N "(cached) $ECHO_C" >&6
19164 else
19165
19166           if test "$cross_compiling" = yes; then
19167                 wx_cv_gccversion="EMX2"
19168
19169 else
19170   cat >conftest.$ac_ext <<_ACEOF
19171 /* confdefs.h.  */
19172 _ACEOF
19173 cat confdefs.h >>conftest.$ac_ext
19174 cat >>conftest.$ac_ext <<_ACEOF
19175 /* end confdefs.h.  */
19176
19177                   #include <stdio.h>
19178
19179                   int main()
19180                   {
19181                       FILE *f=fopen("conftestval", "w");
19182                       if (!f) exit(1);
19183                       fprintf(f,
19184                   #if (__GNUC__ < 3)
19185                               "EMX2"
19186                   #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
19187                               "EMX3"
19188                   #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
19189                               "Innotek5"
19190                   #else
19191                               "Innotek6"
19192                   #endif
19193                       );
19194                       exit(0);
19195                   }
19196
19197 _ACEOF
19198 rm -f conftest$ac_exeext
19199 if { (ac_try="$ac_link"
19200 case "(($ac_try" in
19201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19202   *) ac_try_echo=$ac_try;;
19203 esac
19204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19205   (eval "$ac_link") 2>&5
19206   ac_status=$?
19207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19208   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19209   { (case "(($ac_try" in
19210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19211   *) ac_try_echo=$ac_try;;
19212 esac
19213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19214   (eval "$ac_try") 2>&5
19215   ac_status=$?
19216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217   (exit $ac_status); }; }; then
19218   wx_cv_gccversion=`cat conftestval`
19219 else
19220   echo "$as_me: program exited with status $ac_status" >&5
19221 echo "$as_me: failed program was:" >&5
19222 sed 's/^/| /' conftest.$ac_ext >&5
19223
19224 ( exit $ac_status )
19225 wx_cv_gccversion="EMX2"
19226 fi
19227 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19228 fi
19229
19230
19231
19232 fi
19233 { echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
19234 echo "${ECHO_T}$wx_cv_gccversion" >&6; }
19235       if test "$wx_cv_gccversion" = "EMX2"; then
19236           LIBS="$LIBS -lstdcpp"
19237           LDFLAGS="$LDFLAGS -Zsysv-signals"
19238       else
19239           if test "$wx_cv_gccversion" = "EMX3"; then
19240               LIBS="$LIBS -lstdcxx -lgcc"
19241               LDFLAGS="$LDFLAGS -Zsysv-signals"
19242           else
19243               LIBS="$LIBS -lstdc++"
19244           fi
19245       fi
19246       if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
19247         { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
19248 echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
19249         wxUSE_OMF=yes
19250         enable_omf=yes
19251       fi
19252         ;;
19253   *)
19254
19255       { echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
19256 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6; }
19257 if test "${ac_cv_string_strcasecmp+set}" = set; then
19258   echo $ECHO_N "(cached) $ECHO_C" >&6
19259 else
19260
19261           cat >conftest.$ac_ext <<_ACEOF
19262 /* confdefs.h.  */
19263 _ACEOF
19264 cat confdefs.h >>conftest.$ac_ext
19265 cat >>conftest.$ac_ext <<_ACEOF
19266 /* end confdefs.h.  */
19267
19268               #include <string.h>
19269
19270 int
19271 main ()
19272 {
19273
19274                   strcasecmp("foo", "bar");
19275
19276   ;
19277   return 0;
19278 }
19279 _ACEOF
19280 rm -f conftest.$ac_objext conftest$ac_exeext
19281 if { (ac_try="$ac_link"
19282 case "(($ac_try" in
19283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19284   *) ac_try_echo=$ac_try;;
19285 esac
19286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19287   (eval "$ac_link") 2>conftest.er1
19288   ac_status=$?
19289   grep -v '^ *+' conftest.er1 >conftest.err
19290   rm -f conftest.er1
19291   cat conftest.err >&5
19292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19293   (exit $ac_status); } && {
19294          test -z "$ac_c_werror_flag" ||
19295          test ! -s conftest.err
19296        } && test -s conftest$ac_exeext &&
19297        $as_test_x conftest$ac_exeext; then
19298   ac_cv_string_strcasecmp=yes
19299 else
19300   echo "$as_me: failed program was:" >&5
19301 sed 's/^/| /' conftest.$ac_ext >&5
19302
19303         ac_cv_string_strcasecmp=no
19304
19305 fi
19306
19307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19308       conftest$ac_exeext conftest.$ac_ext
19309
19310 fi
19311 { echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
19312 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6; }
19313
19314       if test x"$ac_cv_string_strcasecmp" = "xyes"; then
19315           cat >>confdefs.h <<\_ACEOF
19316 #define HAVE_STRCASECMP_IN_STRING_H 1
19317 _ACEOF
19318
19319       else
19320           { echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
19321 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6; }
19322 if test "${ac_cv_strings_strcasecmp+set}" = set; then
19323   echo $ECHO_N "(cached) $ECHO_C" >&6
19324 else
19325
19326               cat >conftest.$ac_ext <<_ACEOF
19327 /* confdefs.h.  */
19328 _ACEOF
19329 cat confdefs.h >>conftest.$ac_ext
19330 cat >>conftest.$ac_ext <<_ACEOF
19331 /* end confdefs.h.  */
19332
19333                   #include <strings.h>
19334
19335 int
19336 main ()
19337 {
19338
19339                       strcasecmp("foo", "bar");
19340
19341   ;
19342   return 0;
19343 }
19344 _ACEOF
19345 rm -f conftest.$ac_objext conftest$ac_exeext
19346 if { (ac_try="$ac_link"
19347 case "(($ac_try" in
19348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19349   *) ac_try_echo=$ac_try;;
19350 esac
19351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19352   (eval "$ac_link") 2>conftest.er1
19353   ac_status=$?
19354   grep -v '^ *+' conftest.er1 >conftest.err
19355   rm -f conftest.er1
19356   cat conftest.err >&5
19357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358   (exit $ac_status); } && {
19359          test -z "$ac_c_werror_flag" ||
19360          test ! -s conftest.err
19361        } && test -s conftest$ac_exeext &&
19362        $as_test_x conftest$ac_exeext; then
19363   ac_cv_strings_strcasecmp=yes
19364 else
19365   echo "$as_me: failed program was:" >&5
19366 sed 's/^/| /' conftest.$ac_ext >&5
19367
19368         ac_cv_strings_strcasecmp=no
19369
19370 fi
19371
19372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19373       conftest$ac_exeext conftest.$ac_ext
19374
19375 fi
19376 { echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
19377 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6; }
19378
19379           if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
19380               cat >>confdefs.h <<\_ACEOF
19381 #define HAVE_STRCASECMP_IN_STRINGS_H 1
19382 _ACEOF
19383
19384           else
19385               { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
19386 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
19387    { (exit 1); exit 1; }; }
19388           fi
19389       fi
19390
19391         ;;
19392 esac
19393
19394
19395 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19396 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19397 if test "${ac_cv_header_stdc+set}" = set; then
19398   echo $ECHO_N "(cached) $ECHO_C" >&6
19399 else
19400   cat >conftest.$ac_ext <<_ACEOF
19401 /* confdefs.h.  */
19402 _ACEOF
19403 cat confdefs.h >>conftest.$ac_ext
19404 cat >>conftest.$ac_ext <<_ACEOF
19405 /* end confdefs.h.  */
19406 #include <stdlib.h>
19407 #include <stdarg.h>
19408 #include <string.h>
19409 #include <float.h>
19410
19411 int
19412 main ()
19413 {
19414
19415   ;
19416   return 0;
19417 }
19418 _ACEOF
19419 rm -f conftest.$ac_objext
19420 if { (ac_try="$ac_compile"
19421 case "(($ac_try" in
19422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19423   *) ac_try_echo=$ac_try;;
19424 esac
19425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19426   (eval "$ac_compile") 2>conftest.er1
19427   ac_status=$?
19428   grep -v '^ *+' conftest.er1 >conftest.err
19429   rm -f conftest.er1
19430   cat conftest.err >&5
19431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432   (exit $ac_status); } && {
19433          test -z "$ac_c_werror_flag" ||
19434          test ! -s conftest.err
19435        } && test -s conftest.$ac_objext; then
19436   ac_cv_header_stdc=yes
19437 else
19438   echo "$as_me: failed program was:" >&5
19439 sed 's/^/| /' conftest.$ac_ext >&5
19440
19441         ac_cv_header_stdc=no
19442 fi
19443
19444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19445
19446 if test $ac_cv_header_stdc = yes; then
19447   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19448   cat >conftest.$ac_ext <<_ACEOF
19449 /* confdefs.h.  */
19450 _ACEOF
19451 cat confdefs.h >>conftest.$ac_ext
19452 cat >>conftest.$ac_ext <<_ACEOF
19453 /* end confdefs.h.  */
19454 #include <string.h>
19455
19456 _ACEOF
19457 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19458   $EGREP "memchr" >/dev/null 2>&1; then
19459   :
19460 else
19461   ac_cv_header_stdc=no
19462 fi
19463 rm -f conftest*
19464
19465 fi
19466
19467 if test $ac_cv_header_stdc = yes; then
19468   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19469   cat >conftest.$ac_ext <<_ACEOF
19470 /* confdefs.h.  */
19471 _ACEOF
19472 cat confdefs.h >>conftest.$ac_ext
19473 cat >>conftest.$ac_ext <<_ACEOF
19474 /* end confdefs.h.  */
19475 #include <stdlib.h>
19476
19477 _ACEOF
19478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19479   $EGREP "free" >/dev/null 2>&1; then
19480   :
19481 else
19482   ac_cv_header_stdc=no
19483 fi
19484 rm -f conftest*
19485
19486 fi
19487
19488 if test $ac_cv_header_stdc = yes; then
19489   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19490   if test "$cross_compiling" = yes; then
19491   :
19492 else
19493   cat >conftest.$ac_ext <<_ACEOF
19494 /* confdefs.h.  */
19495 _ACEOF
19496 cat confdefs.h >>conftest.$ac_ext
19497 cat >>conftest.$ac_ext <<_ACEOF
19498 /* end confdefs.h.  */
19499 #include <ctype.h>
19500 #include <stdlib.h>
19501 #if ((' ' & 0x0FF) == 0x020)
19502 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19503 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19504 #else
19505 # define ISLOWER(c) \
19506                    (('a' <= (c) && (c) <= 'i') \
19507                      || ('j' <= (c) && (c) <= 'r') \
19508                      || ('s' <= (c) && (c) <= 'z'))
19509 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19510 #endif
19511
19512 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19513 int
19514 main ()
19515 {
19516   int i;
19517   for (i = 0; i < 256; i++)
19518     if (XOR (islower (i), ISLOWER (i))
19519         || toupper (i) != TOUPPER (i))
19520       return 2;
19521   return 0;
19522 }
19523 _ACEOF
19524 rm -f conftest$ac_exeext
19525 if { (ac_try="$ac_link"
19526 case "(($ac_try" in
19527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19528   *) ac_try_echo=$ac_try;;
19529 esac
19530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19531   (eval "$ac_link") 2>&5
19532   ac_status=$?
19533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19535   { (case "(($ac_try" in
19536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19537   *) ac_try_echo=$ac_try;;
19538 esac
19539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19540   (eval "$ac_try") 2>&5
19541   ac_status=$?
19542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543   (exit $ac_status); }; }; then
19544   :
19545 else
19546   echo "$as_me: program exited with status $ac_status" >&5
19547 echo "$as_me: failed program was:" >&5
19548 sed 's/^/| /' conftest.$ac_ext >&5
19549
19550 ( exit $ac_status )
19551 ac_cv_header_stdc=no
19552 fi
19553 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19554 fi
19555
19556
19557 fi
19558 fi
19559 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19560 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19561 if test $ac_cv_header_stdc = yes; then
19562
19563 cat >>confdefs.h <<\_ACEOF
19564 #define STDC_HEADERS 1
19565 _ACEOF
19566
19567 fi
19568
19569 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
19570
19571
19572
19573
19574
19575
19576
19577
19578
19579 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
19580                   inttypes.h stdint.h unistd.h
19581 do
19582 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19583 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19586   echo $ECHO_N "(cached) $ECHO_C" >&6
19587 else
19588   cat >conftest.$ac_ext <<_ACEOF
19589 /* confdefs.h.  */
19590 _ACEOF
19591 cat confdefs.h >>conftest.$ac_ext
19592 cat >>conftest.$ac_ext <<_ACEOF
19593 /* end confdefs.h.  */
19594 $ac_includes_default
19595
19596 #include <$ac_header>
19597 _ACEOF
19598 rm -f conftest.$ac_objext
19599 if { (ac_try="$ac_compile"
19600 case "(($ac_try" in
19601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19602   *) ac_try_echo=$ac_try;;
19603 esac
19604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19605   (eval "$ac_compile") 2>conftest.er1
19606   ac_status=$?
19607   grep -v '^ *+' conftest.er1 >conftest.err
19608   rm -f conftest.er1
19609   cat conftest.err >&5
19610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611   (exit $ac_status); } && {
19612          test -z "$ac_c_werror_flag" ||
19613          test ! -s conftest.err
19614        } && test -s conftest.$ac_objext; then
19615   eval "$as_ac_Header=yes"
19616 else
19617   echo "$as_me: failed program was:" >&5
19618 sed 's/^/| /' conftest.$ac_ext >&5
19619
19620         eval "$as_ac_Header=no"
19621 fi
19622
19623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19624 fi
19625 ac_res=`eval echo '${'$as_ac_Header'}'`
19626                { echo "$as_me:$LINENO: result: $ac_res" >&5
19627 echo "${ECHO_T}$ac_res" >&6; }
19628 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19629   cat >>confdefs.h <<_ACEOF
19630 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19631 _ACEOF
19632
19633 fi
19634
19635 done
19636
19637
19638
19639
19640 for ac_header in langinfo.h wchar.h
19641 do
19642 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19643 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19646   echo $ECHO_N "(cached) $ECHO_C" >&6
19647 else
19648   cat >conftest.$ac_ext <<_ACEOF
19649 /* confdefs.h.  */
19650 _ACEOF
19651 cat confdefs.h >>conftest.$ac_ext
19652 cat >>conftest.$ac_ext <<_ACEOF
19653 /* end confdefs.h.  */
19654 $ac_includes_default
19655
19656 #include <$ac_header>
19657 _ACEOF
19658 rm -f conftest.$ac_objext
19659 if { (ac_try="$ac_compile"
19660 case "(($ac_try" in
19661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19662   *) ac_try_echo=$ac_try;;
19663 esac
19664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19665   (eval "$ac_compile") 2>conftest.er1
19666   ac_status=$?
19667   grep -v '^ *+' conftest.er1 >conftest.err
19668   rm -f conftest.er1
19669   cat conftest.err >&5
19670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671   (exit $ac_status); } && {
19672          test -z "$ac_c_werror_flag" ||
19673          test ! -s conftest.err
19674        } && test -s conftest.$ac_objext; then
19675   eval "$as_ac_Header=yes"
19676 else
19677   echo "$as_me: failed program was:" >&5
19678 sed 's/^/| /' conftest.$ac_ext >&5
19679
19680         eval "$as_ac_Header=no"
19681 fi
19682
19683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19684 fi
19685 ac_res=`eval echo '${'$as_ac_Header'}'`
19686                { echo "$as_me:$LINENO: result: $ac_res" >&5
19687 echo "${ECHO_T}$ac_res" >&6; }
19688 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19689   cat >>confdefs.h <<_ACEOF
19690 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19691 _ACEOF
19692
19693 fi
19694
19695 done
19696
19697
19698 if test "$ac_cv_header_wchar_h" != "yes"; then
19699
19700 for ac_header in wcstr.h
19701 do
19702 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19703 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19704 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19705 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19706   echo $ECHO_N "(cached) $ECHO_C" >&6
19707 else
19708   cat >conftest.$ac_ext <<_ACEOF
19709 /* confdefs.h.  */
19710 _ACEOF
19711 cat confdefs.h >>conftest.$ac_ext
19712 cat >>conftest.$ac_ext <<_ACEOF
19713 /* end confdefs.h.  */
19714 $ac_includes_default
19715
19716 #include <$ac_header>
19717 _ACEOF
19718 rm -f conftest.$ac_objext
19719 if { (ac_try="$ac_compile"
19720 case "(($ac_try" in
19721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19722   *) ac_try_echo=$ac_try;;
19723 esac
19724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19725   (eval "$ac_compile") 2>conftest.er1
19726   ac_status=$?
19727   grep -v '^ *+' conftest.er1 >conftest.err
19728   rm -f conftest.er1
19729   cat conftest.err >&5
19730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731   (exit $ac_status); } && {
19732          test -z "$ac_c_werror_flag" ||
19733          test ! -s conftest.err
19734        } && test -s conftest.$ac_objext; then
19735   eval "$as_ac_Header=yes"
19736 else
19737   echo "$as_me: failed program was:" >&5
19738 sed 's/^/| /' conftest.$ac_ext >&5
19739
19740         eval "$as_ac_Header=no"
19741 fi
19742
19743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19744 fi
19745 ac_res=`eval echo '${'$as_ac_Header'}'`
19746                { echo "$as_me:$LINENO: result: $ac_res" >&5
19747 echo "${ECHO_T}$ac_res" >&6; }
19748 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19749   cat >>confdefs.h <<_ACEOF
19750 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19751 _ACEOF
19752
19753 fi
19754
19755 done
19756
19757 fi
19758
19759 case "${host}" in
19760   *-pc-os2_emx | *-pc-os2-emx )
19761                   if test $ac_cv_header_langinfo_h = "yes" \
19762                 -a \(   "$wx_cv_gccversion" = "EMX2" \
19763                      -o "$wx_cv_gccversion" = "EMX3" \
19764                      -o "$wx_cv_gccversion" = "Innotek5" \); then
19765           LIBS="$LIBS -lintl"
19766       fi
19767   ;;
19768 esac
19769
19770 if test "$USE_UNIX" = 1 ; then
19771
19772 for ac_header in sys/select.h
19773 do
19774 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19775 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19778   echo $ECHO_N "(cached) $ECHO_C" >&6
19779 else
19780   cat >conftest.$ac_ext <<_ACEOF
19781 /* confdefs.h.  */
19782 _ACEOF
19783 cat confdefs.h >>conftest.$ac_ext
19784 cat >>conftest.$ac_ext <<_ACEOF
19785 /* end confdefs.h.  */
19786 $ac_includes_default
19787
19788 #include <$ac_header>
19789 _ACEOF
19790 rm -f conftest.$ac_objext
19791 if { (ac_try="$ac_compile"
19792 case "(($ac_try" in
19793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19794   *) ac_try_echo=$ac_try;;
19795 esac
19796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19797   (eval "$ac_compile") 2>conftest.er1
19798   ac_status=$?
19799   grep -v '^ *+' conftest.er1 >conftest.err
19800   rm -f conftest.er1
19801   cat conftest.err >&5
19802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803   (exit $ac_status); } && {
19804          test -z "$ac_c_werror_flag" ||
19805          test ! -s conftest.err
19806        } && test -s conftest.$ac_objext; then
19807   eval "$as_ac_Header=yes"
19808 else
19809   echo "$as_me: failed program was:" >&5
19810 sed 's/^/| /' conftest.$ac_ext >&5
19811
19812         eval "$as_ac_Header=no"
19813 fi
19814
19815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19816 fi
19817 ac_res=`eval echo '${'$as_ac_Header'}'`
19818                { echo "$as_me:$LINENO: result: $ac_res" >&5
19819 echo "${ECHO_T}$ac_res" >&6; }
19820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19821   cat >>confdefs.h <<_ACEOF
19822 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19823 _ACEOF
19824
19825 fi
19826
19827 done
19828
19829 fi
19830
19831
19832 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19833 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
19834 if test "${ac_cv_c_const+set}" = set; then
19835   echo $ECHO_N "(cached) $ECHO_C" >&6
19836 else
19837   cat >conftest.$ac_ext <<_ACEOF
19838 /* confdefs.h.  */
19839 _ACEOF
19840 cat confdefs.h >>conftest.$ac_ext
19841 cat >>conftest.$ac_ext <<_ACEOF
19842 /* end confdefs.h.  */
19843
19844 int
19845 main ()
19846 {
19847 /* FIXME: Include the comments suggested by Paul. */
19848 #ifndef __cplusplus
19849   /* Ultrix mips cc rejects this.  */
19850   typedef int charset[2];
19851   const charset cs;
19852   /* SunOS 4.1.1 cc rejects this.  */
19853   char const *const *pcpcc;
19854   char **ppc;
19855   /* NEC SVR4.0.2 mips cc rejects this.  */
19856   struct point {int x, y;};
19857   static struct point const zero = {0,0};
19858   /* AIX XL C 1.02.0.0 rejects this.
19859      It does not let you subtract one const X* pointer from another in
19860      an arm of an if-expression whose if-part is not a constant
19861      expression */
19862   const char *g = "string";
19863   pcpcc = &g + (g ? g-g : 0);
19864   /* HPUX 7.0 cc rejects these. */
19865   ++pcpcc;
19866   ppc = (char**) pcpcc;
19867   pcpcc = (char const *const *) ppc;
19868   { /* SCO 3.2v4 cc rejects this.  */
19869     char *t;
19870     char const *s = 0 ? (char *) 0 : (char const *) 0;
19871
19872     *t++ = 0;
19873     if (s) return 0;
19874   }
19875   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19876     int x[] = {25, 17};
19877     const int *foo = &x[0];
19878     ++foo;
19879   }
19880   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19881     typedef const int *iptr;
19882     iptr p = 0;
19883     ++p;
19884   }
19885   { /* AIX XL C 1.02.0.0 rejects this saying
19886        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19887     struct s { int j; const int *ap[3]; };
19888     struct s *b; b->j = 5;
19889   }
19890   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19891     const int foo = 10;
19892     if (!foo) return 0;
19893   }
19894   return !cs[0] && !zero.x;
19895 #endif
19896
19897   ;
19898   return 0;
19899 }
19900 _ACEOF
19901 rm -f conftest.$ac_objext
19902 if { (ac_try="$ac_compile"
19903 case "(($ac_try" in
19904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19905   *) ac_try_echo=$ac_try;;
19906 esac
19907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19908   (eval "$ac_compile") 2>conftest.er1
19909   ac_status=$?
19910   grep -v '^ *+' conftest.er1 >conftest.err
19911   rm -f conftest.er1
19912   cat conftest.err >&5
19913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19914   (exit $ac_status); } && {
19915          test -z "$ac_c_werror_flag" ||
19916          test ! -s conftest.err
19917        } && test -s conftest.$ac_objext; then
19918   ac_cv_c_const=yes
19919 else
19920   echo "$as_me: failed program was:" >&5
19921 sed 's/^/| /' conftest.$ac_ext >&5
19922
19923         ac_cv_c_const=no
19924 fi
19925
19926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19927 fi
19928 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19929 echo "${ECHO_T}$ac_cv_c_const" >&6; }
19930 if test $ac_cv_c_const = no; then
19931
19932 cat >>confdefs.h <<\_ACEOF
19933 #define const
19934 _ACEOF
19935
19936 fi
19937
19938 { echo "$as_me:$LINENO: checking for inline" >&5
19939 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
19940 if test "${ac_cv_c_inline+set}" = set; then
19941   echo $ECHO_N "(cached) $ECHO_C" >&6
19942 else
19943   ac_cv_c_inline=no
19944 for ac_kw in inline __inline__ __inline; do
19945   cat >conftest.$ac_ext <<_ACEOF
19946 /* confdefs.h.  */
19947 _ACEOF
19948 cat confdefs.h >>conftest.$ac_ext
19949 cat >>conftest.$ac_ext <<_ACEOF
19950 /* end confdefs.h.  */
19951 #ifndef __cplusplus
19952 typedef int foo_t;
19953 static $ac_kw foo_t static_foo () {return 0; }
19954 $ac_kw foo_t foo () {return 0; }
19955 #endif
19956
19957 _ACEOF
19958 rm -f conftest.$ac_objext
19959 if { (ac_try="$ac_compile"
19960 case "(($ac_try" in
19961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19962   *) ac_try_echo=$ac_try;;
19963 esac
19964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19965   (eval "$ac_compile") 2>conftest.er1
19966   ac_status=$?
19967   grep -v '^ *+' conftest.er1 >conftest.err
19968   rm -f conftest.er1
19969   cat conftest.err >&5
19970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19971   (exit $ac_status); } && {
19972          test -z "$ac_c_werror_flag" ||
19973          test ! -s conftest.err
19974        } && test -s conftest.$ac_objext; then
19975   ac_cv_c_inline=$ac_kw
19976 else
19977   echo "$as_me: failed program was:" >&5
19978 sed 's/^/| /' conftest.$ac_ext >&5
19979
19980
19981 fi
19982
19983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19984   test "$ac_cv_c_inline" != no && break
19985 done
19986
19987 fi
19988 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19989 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
19990
19991
19992 case $ac_cv_c_inline in
19993   inline | yes) ;;
19994   *)
19995     case $ac_cv_c_inline in
19996       no) ac_val=;;
19997       *) ac_val=$ac_cv_c_inline;;
19998     esac
19999     cat >>confdefs.h <<_ACEOF
20000 #ifndef __cplusplus
20001 #define inline $ac_val
20002 #endif
20003 _ACEOF
20004     ;;
20005 esac
20006
20007
20008 { echo "$as_me:$LINENO: checking for short" >&5
20009 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
20010 if test "${ac_cv_type_short+set}" = set; then
20011   echo $ECHO_N "(cached) $ECHO_C" >&6
20012 else
20013   cat >conftest.$ac_ext <<_ACEOF
20014 /* confdefs.h.  */
20015 _ACEOF
20016 cat confdefs.h >>conftest.$ac_ext
20017 cat >>conftest.$ac_ext <<_ACEOF
20018 /* end confdefs.h.  */
20019 $ac_includes_default
20020 typedef short ac__type_new_;
20021 int
20022 main ()
20023 {
20024 if ((ac__type_new_ *) 0)
20025   return 0;
20026 if (sizeof (ac__type_new_))
20027   return 0;
20028   ;
20029   return 0;
20030 }
20031 _ACEOF
20032 rm -f conftest.$ac_objext
20033 if { (ac_try="$ac_compile"
20034 case "(($ac_try" in
20035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20036   *) ac_try_echo=$ac_try;;
20037 esac
20038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20039   (eval "$ac_compile") 2>conftest.er1
20040   ac_status=$?
20041   grep -v '^ *+' conftest.er1 >conftest.err
20042   rm -f conftest.er1
20043   cat conftest.err >&5
20044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045   (exit $ac_status); } && {
20046          test -z "$ac_c_werror_flag" ||
20047          test ! -s conftest.err
20048        } && test -s conftest.$ac_objext; then
20049   ac_cv_type_short=yes
20050 else
20051   echo "$as_me: failed program was:" >&5
20052 sed 's/^/| /' conftest.$ac_ext >&5
20053
20054         ac_cv_type_short=no
20055 fi
20056
20057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20058 fi
20059 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
20060 echo "${ECHO_T}$ac_cv_type_short" >&6; }
20061
20062 # The cast to long int works around a bug in the HP C Compiler
20063 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20064 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20065 # This bug is HP SR number 8606223364.
20066 { echo "$as_me:$LINENO: checking size of short" >&5
20067 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
20068 if test "${ac_cv_sizeof_short+set}" = set; then
20069   echo $ECHO_N "(cached) $ECHO_C" >&6
20070 else
20071   if test "$cross_compiling" = yes; then
20072   # Depending upon the size, compute the lo and hi bounds.
20073 cat >conftest.$ac_ext <<_ACEOF
20074 /* confdefs.h.  */
20075 _ACEOF
20076 cat confdefs.h >>conftest.$ac_ext
20077 cat >>conftest.$ac_ext <<_ACEOF
20078 /* end confdefs.h.  */
20079 $ac_includes_default
20080    typedef short ac__type_sizeof_;
20081 int
20082 main ()
20083 {
20084 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20085 test_array [0] = 0
20086
20087   ;
20088   return 0;
20089 }
20090 _ACEOF
20091 rm -f conftest.$ac_objext
20092 if { (ac_try="$ac_compile"
20093 case "(($ac_try" in
20094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20095   *) ac_try_echo=$ac_try;;
20096 esac
20097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20098   (eval "$ac_compile") 2>conftest.er1
20099   ac_status=$?
20100   grep -v '^ *+' conftest.er1 >conftest.err
20101   rm -f conftest.er1
20102   cat conftest.err >&5
20103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20104   (exit $ac_status); } && {
20105          test -z "$ac_c_werror_flag" ||
20106          test ! -s conftest.err
20107        } && test -s conftest.$ac_objext; then
20108   ac_lo=0 ac_mid=0
20109   while :; do
20110     cat >conftest.$ac_ext <<_ACEOF
20111 /* confdefs.h.  */
20112 _ACEOF
20113 cat confdefs.h >>conftest.$ac_ext
20114 cat >>conftest.$ac_ext <<_ACEOF
20115 /* end confdefs.h.  */
20116 $ac_includes_default
20117    typedef short ac__type_sizeof_;
20118 int
20119 main ()
20120 {
20121 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20122 test_array [0] = 0
20123
20124   ;
20125   return 0;
20126 }
20127 _ACEOF
20128 rm -f conftest.$ac_objext
20129 if { (ac_try="$ac_compile"
20130 case "(($ac_try" in
20131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20132   *) ac_try_echo=$ac_try;;
20133 esac
20134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20135   (eval "$ac_compile") 2>conftest.er1
20136   ac_status=$?
20137   grep -v '^ *+' conftest.er1 >conftest.err
20138   rm -f conftest.er1
20139   cat conftest.err >&5
20140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20141   (exit $ac_status); } && {
20142          test -z "$ac_c_werror_flag" ||
20143          test ! -s conftest.err
20144        } && test -s conftest.$ac_objext; then
20145   ac_hi=$ac_mid; break
20146 else
20147   echo "$as_me: failed program was:" >&5
20148 sed 's/^/| /' conftest.$ac_ext >&5
20149
20150         ac_lo=`expr $ac_mid + 1`
20151                         if test $ac_lo -le $ac_mid; then
20152                           ac_lo= ac_hi=
20153                           break
20154                         fi
20155                         ac_mid=`expr 2 '*' $ac_mid + 1`
20156 fi
20157
20158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20159   done
20160 else
20161   echo "$as_me: failed program was:" >&5
20162 sed 's/^/| /' conftest.$ac_ext >&5
20163
20164         cat >conftest.$ac_ext <<_ACEOF
20165 /* confdefs.h.  */
20166 _ACEOF
20167 cat confdefs.h >>conftest.$ac_ext
20168 cat >>conftest.$ac_ext <<_ACEOF
20169 /* end confdefs.h.  */
20170 $ac_includes_default
20171    typedef short ac__type_sizeof_;
20172 int
20173 main ()
20174 {
20175 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20176 test_array [0] = 0
20177
20178   ;
20179   return 0;
20180 }
20181 _ACEOF
20182 rm -f conftest.$ac_objext
20183 if { (ac_try="$ac_compile"
20184 case "(($ac_try" in
20185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20186   *) ac_try_echo=$ac_try;;
20187 esac
20188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20189   (eval "$ac_compile") 2>conftest.er1
20190   ac_status=$?
20191   grep -v '^ *+' conftest.er1 >conftest.err
20192   rm -f conftest.er1
20193   cat conftest.err >&5
20194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195   (exit $ac_status); } && {
20196          test -z "$ac_c_werror_flag" ||
20197          test ! -s conftest.err
20198        } && test -s conftest.$ac_objext; then
20199   ac_hi=-1 ac_mid=-1
20200   while :; do
20201     cat >conftest.$ac_ext <<_ACEOF
20202 /* confdefs.h.  */
20203 _ACEOF
20204 cat confdefs.h >>conftest.$ac_ext
20205 cat >>conftest.$ac_ext <<_ACEOF
20206 /* end confdefs.h.  */
20207 $ac_includes_default
20208    typedef short ac__type_sizeof_;
20209 int
20210 main ()
20211 {
20212 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20213 test_array [0] = 0
20214
20215   ;
20216   return 0;
20217 }
20218 _ACEOF
20219 rm -f conftest.$ac_objext
20220 if { (ac_try="$ac_compile"
20221 case "(($ac_try" in
20222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20223   *) ac_try_echo=$ac_try;;
20224 esac
20225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20226   (eval "$ac_compile") 2>conftest.er1
20227   ac_status=$?
20228   grep -v '^ *+' conftest.er1 >conftest.err
20229   rm -f conftest.er1
20230   cat conftest.err >&5
20231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232   (exit $ac_status); } && {
20233          test -z "$ac_c_werror_flag" ||
20234          test ! -s conftest.err
20235        } && test -s conftest.$ac_objext; then
20236   ac_lo=$ac_mid; break
20237 else
20238   echo "$as_me: failed program was:" >&5
20239 sed 's/^/| /' conftest.$ac_ext >&5
20240
20241         ac_hi=`expr '(' $ac_mid ')' - 1`
20242                         if test $ac_mid -le $ac_hi; then
20243                           ac_lo= ac_hi=
20244                           break
20245                         fi
20246                         ac_mid=`expr 2 '*' $ac_mid`
20247 fi
20248
20249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20250   done
20251 else
20252   echo "$as_me: failed program was:" >&5
20253 sed 's/^/| /' conftest.$ac_ext >&5
20254
20255         ac_lo= ac_hi=
20256 fi
20257
20258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20259 fi
20260
20261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20262 # Binary search between lo and hi bounds.
20263 while test "x$ac_lo" != "x$ac_hi"; do
20264   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20265   cat >conftest.$ac_ext <<_ACEOF
20266 /* confdefs.h.  */
20267 _ACEOF
20268 cat confdefs.h >>conftest.$ac_ext
20269 cat >>conftest.$ac_ext <<_ACEOF
20270 /* end confdefs.h.  */
20271 $ac_includes_default
20272    typedef short ac__type_sizeof_;
20273 int
20274 main ()
20275 {
20276 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20277 test_array [0] = 0
20278
20279   ;
20280   return 0;
20281 }
20282 _ACEOF
20283 rm -f conftest.$ac_objext
20284 if { (ac_try="$ac_compile"
20285 case "(($ac_try" in
20286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20287   *) ac_try_echo=$ac_try;;
20288 esac
20289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20290   (eval "$ac_compile") 2>conftest.er1
20291   ac_status=$?
20292   grep -v '^ *+' conftest.er1 >conftest.err
20293   rm -f conftest.er1
20294   cat conftest.err >&5
20295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296   (exit $ac_status); } && {
20297          test -z "$ac_c_werror_flag" ||
20298          test ! -s conftest.err
20299        } && test -s conftest.$ac_objext; then
20300   ac_hi=$ac_mid
20301 else
20302   echo "$as_me: failed program was:" >&5
20303 sed 's/^/| /' conftest.$ac_ext >&5
20304
20305         ac_lo=`expr '(' $ac_mid ')' + 1`
20306 fi
20307
20308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20309 done
20310 case $ac_lo in
20311 ?*) ac_cv_sizeof_short=$ac_lo;;
20312 '') if test "$ac_cv_type_short" = yes; then
20313      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
20314 See \`config.log' for more details." >&5
20315 echo "$as_me: error: cannot compute sizeof (short)
20316 See \`config.log' for more details." >&2;}
20317    { (exit 77); exit 77; }; }
20318    else
20319      ac_cv_sizeof_short=0
20320    fi ;;
20321 esac
20322 else
20323   cat >conftest.$ac_ext <<_ACEOF
20324 /* confdefs.h.  */
20325 _ACEOF
20326 cat confdefs.h >>conftest.$ac_ext
20327 cat >>conftest.$ac_ext <<_ACEOF
20328 /* end confdefs.h.  */
20329 $ac_includes_default
20330    typedef short ac__type_sizeof_;
20331 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20332 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20333 #include <stdio.h>
20334 #include <stdlib.h>
20335 int
20336 main ()
20337 {
20338
20339   FILE *f = fopen ("conftest.val", "w");
20340   if (! f)
20341     return 1;
20342   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20343     {
20344       long int i = longval ();
20345       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20346         return 1;
20347       fprintf (f, "%ld\n", i);
20348     }
20349   else
20350     {
20351       unsigned long int i = ulongval ();
20352       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20353         return 1;
20354       fprintf (f, "%lu\n", i);
20355     }
20356   return ferror (f) || fclose (f) != 0;
20357
20358   ;
20359   return 0;
20360 }
20361 _ACEOF
20362 rm -f conftest$ac_exeext
20363 if { (ac_try="$ac_link"
20364 case "(($ac_try" in
20365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20366   *) ac_try_echo=$ac_try;;
20367 esac
20368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20369   (eval "$ac_link") 2>&5
20370   ac_status=$?
20371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20373   { (case "(($ac_try" in
20374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20375   *) ac_try_echo=$ac_try;;
20376 esac
20377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20378   (eval "$ac_try") 2>&5
20379   ac_status=$?
20380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381   (exit $ac_status); }; }; then
20382   ac_cv_sizeof_short=`cat conftest.val`
20383 else
20384   echo "$as_me: program exited with status $ac_status" >&5
20385 echo "$as_me: failed program was:" >&5
20386 sed 's/^/| /' conftest.$ac_ext >&5
20387
20388 ( exit $ac_status )
20389 if test "$ac_cv_type_short" = yes; then
20390      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
20391 See \`config.log' for more details." >&5
20392 echo "$as_me: error: cannot compute sizeof (short)
20393 See \`config.log' for more details." >&2;}
20394    { (exit 77); exit 77; }; }
20395    else
20396      ac_cv_sizeof_short=0
20397    fi
20398 fi
20399 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20400 fi
20401 rm -f conftest.val
20402 fi
20403 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
20404 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
20405
20406
20407
20408 cat >>confdefs.h <<_ACEOF
20409 #define SIZEOF_SHORT $ac_cv_sizeof_short
20410 _ACEOF
20411
20412
20413 { echo "$as_me:$LINENO: checking for void *" >&5
20414 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
20415 if test "${ac_cv_type_void_p+set}" = set; then
20416   echo $ECHO_N "(cached) $ECHO_C" >&6
20417 else
20418   cat >conftest.$ac_ext <<_ACEOF
20419 /* confdefs.h.  */
20420 _ACEOF
20421 cat confdefs.h >>conftest.$ac_ext
20422 cat >>conftest.$ac_ext <<_ACEOF
20423 /* end confdefs.h.  */
20424 $ac_includes_default
20425 typedef void * ac__type_new_;
20426 int
20427 main ()
20428 {
20429 if ((ac__type_new_ *) 0)
20430   return 0;
20431 if (sizeof (ac__type_new_))
20432   return 0;
20433   ;
20434   return 0;
20435 }
20436 _ACEOF
20437 rm -f conftest.$ac_objext
20438 if { (ac_try="$ac_compile"
20439 case "(($ac_try" in
20440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20441   *) ac_try_echo=$ac_try;;
20442 esac
20443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20444   (eval "$ac_compile") 2>conftest.er1
20445   ac_status=$?
20446   grep -v '^ *+' conftest.er1 >conftest.err
20447   rm -f conftest.er1
20448   cat conftest.err >&5
20449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20450   (exit $ac_status); } && {
20451          test -z "$ac_c_werror_flag" ||
20452          test ! -s conftest.err
20453        } && test -s conftest.$ac_objext; then
20454   ac_cv_type_void_p=yes
20455 else
20456   echo "$as_me: failed program was:" >&5
20457 sed 's/^/| /' conftest.$ac_ext >&5
20458
20459         ac_cv_type_void_p=no
20460 fi
20461
20462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20463 fi
20464 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
20465 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
20466
20467 # The cast to long int works around a bug in the HP C Compiler
20468 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20469 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20470 # This bug is HP SR number 8606223364.
20471 { echo "$as_me:$LINENO: checking size of void *" >&5
20472 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
20473 if test "${ac_cv_sizeof_void_p+set}" = set; then
20474   echo $ECHO_N "(cached) $ECHO_C" >&6
20475 else
20476   if test "$cross_compiling" = yes; then
20477   # Depending upon the size, compute the lo and hi bounds.
20478 cat >conftest.$ac_ext <<_ACEOF
20479 /* confdefs.h.  */
20480 _ACEOF
20481 cat confdefs.h >>conftest.$ac_ext
20482 cat >>conftest.$ac_ext <<_ACEOF
20483 /* end confdefs.h.  */
20484 $ac_includes_default
20485    typedef void * ac__type_sizeof_;
20486 int
20487 main ()
20488 {
20489 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20490 test_array [0] = 0
20491
20492   ;
20493   return 0;
20494 }
20495 _ACEOF
20496 rm -f conftest.$ac_objext
20497 if { (ac_try="$ac_compile"
20498 case "(($ac_try" in
20499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20500   *) ac_try_echo=$ac_try;;
20501 esac
20502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20503   (eval "$ac_compile") 2>conftest.er1
20504   ac_status=$?
20505   grep -v '^ *+' conftest.er1 >conftest.err
20506   rm -f conftest.er1
20507   cat conftest.err >&5
20508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20509   (exit $ac_status); } && {
20510          test -z "$ac_c_werror_flag" ||
20511          test ! -s conftest.err
20512        } && test -s conftest.$ac_objext; then
20513   ac_lo=0 ac_mid=0
20514   while :; do
20515     cat >conftest.$ac_ext <<_ACEOF
20516 /* confdefs.h.  */
20517 _ACEOF
20518 cat confdefs.h >>conftest.$ac_ext
20519 cat >>conftest.$ac_ext <<_ACEOF
20520 /* end confdefs.h.  */
20521 $ac_includes_default
20522    typedef void * ac__type_sizeof_;
20523 int
20524 main ()
20525 {
20526 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20527 test_array [0] = 0
20528
20529   ;
20530   return 0;
20531 }
20532 _ACEOF
20533 rm -f conftest.$ac_objext
20534 if { (ac_try="$ac_compile"
20535 case "(($ac_try" in
20536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20537   *) ac_try_echo=$ac_try;;
20538 esac
20539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20540   (eval "$ac_compile") 2>conftest.er1
20541   ac_status=$?
20542   grep -v '^ *+' conftest.er1 >conftest.err
20543   rm -f conftest.er1
20544   cat conftest.err >&5
20545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20546   (exit $ac_status); } && {
20547          test -z "$ac_c_werror_flag" ||
20548          test ! -s conftest.err
20549        } && test -s conftest.$ac_objext; then
20550   ac_hi=$ac_mid; break
20551 else
20552   echo "$as_me: failed program was:" >&5
20553 sed 's/^/| /' conftest.$ac_ext >&5
20554
20555         ac_lo=`expr $ac_mid + 1`
20556                         if test $ac_lo -le $ac_mid; then
20557                           ac_lo= ac_hi=
20558                           break
20559                         fi
20560                         ac_mid=`expr 2 '*' $ac_mid + 1`
20561 fi
20562
20563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20564   done
20565 else
20566   echo "$as_me: failed program was:" >&5
20567 sed 's/^/| /' conftest.$ac_ext >&5
20568
20569         cat >conftest.$ac_ext <<_ACEOF
20570 /* confdefs.h.  */
20571 _ACEOF
20572 cat confdefs.h >>conftest.$ac_ext
20573 cat >>conftest.$ac_ext <<_ACEOF
20574 /* end confdefs.h.  */
20575 $ac_includes_default
20576    typedef void * ac__type_sizeof_;
20577 int
20578 main ()
20579 {
20580 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20581 test_array [0] = 0
20582
20583   ;
20584   return 0;
20585 }
20586 _ACEOF
20587 rm -f conftest.$ac_objext
20588 if { (ac_try="$ac_compile"
20589 case "(($ac_try" in
20590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20591   *) ac_try_echo=$ac_try;;
20592 esac
20593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20594   (eval "$ac_compile") 2>conftest.er1
20595   ac_status=$?
20596   grep -v '^ *+' conftest.er1 >conftest.err
20597   rm -f conftest.er1
20598   cat conftest.err >&5
20599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20600   (exit $ac_status); } && {
20601          test -z "$ac_c_werror_flag" ||
20602          test ! -s conftest.err
20603        } && test -s conftest.$ac_objext; then
20604   ac_hi=-1 ac_mid=-1
20605   while :; do
20606     cat >conftest.$ac_ext <<_ACEOF
20607 /* confdefs.h.  */
20608 _ACEOF
20609 cat confdefs.h >>conftest.$ac_ext
20610 cat >>conftest.$ac_ext <<_ACEOF
20611 /* end confdefs.h.  */
20612 $ac_includes_default
20613    typedef void * ac__type_sizeof_;
20614 int
20615 main ()
20616 {
20617 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20618 test_array [0] = 0
20619
20620   ;
20621   return 0;
20622 }
20623 _ACEOF
20624 rm -f conftest.$ac_objext
20625 if { (ac_try="$ac_compile"
20626 case "(($ac_try" in
20627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20628   *) ac_try_echo=$ac_try;;
20629 esac
20630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20631   (eval "$ac_compile") 2>conftest.er1
20632   ac_status=$?
20633   grep -v '^ *+' conftest.er1 >conftest.err
20634   rm -f conftest.er1
20635   cat conftest.err >&5
20636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637   (exit $ac_status); } && {
20638          test -z "$ac_c_werror_flag" ||
20639          test ! -s conftest.err
20640        } && test -s conftest.$ac_objext; then
20641   ac_lo=$ac_mid; break
20642 else
20643   echo "$as_me: failed program was:" >&5
20644 sed 's/^/| /' conftest.$ac_ext >&5
20645
20646         ac_hi=`expr '(' $ac_mid ')' - 1`
20647                         if test $ac_mid -le $ac_hi; then
20648                           ac_lo= ac_hi=
20649                           break
20650                         fi
20651                         ac_mid=`expr 2 '*' $ac_mid`
20652 fi
20653
20654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20655   done
20656 else
20657   echo "$as_me: failed program was:" >&5
20658 sed 's/^/| /' conftest.$ac_ext >&5
20659
20660         ac_lo= ac_hi=
20661 fi
20662
20663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20664 fi
20665
20666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20667 # Binary search between lo and hi bounds.
20668 while test "x$ac_lo" != "x$ac_hi"; do
20669   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20670   cat >conftest.$ac_ext <<_ACEOF
20671 /* confdefs.h.  */
20672 _ACEOF
20673 cat confdefs.h >>conftest.$ac_ext
20674 cat >>conftest.$ac_ext <<_ACEOF
20675 /* end confdefs.h.  */
20676 $ac_includes_default
20677    typedef void * ac__type_sizeof_;
20678 int
20679 main ()
20680 {
20681 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20682 test_array [0] = 0
20683
20684   ;
20685   return 0;
20686 }
20687 _ACEOF
20688 rm -f conftest.$ac_objext
20689 if { (ac_try="$ac_compile"
20690 case "(($ac_try" in
20691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20692   *) ac_try_echo=$ac_try;;
20693 esac
20694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20695   (eval "$ac_compile") 2>conftest.er1
20696   ac_status=$?
20697   grep -v '^ *+' conftest.er1 >conftest.err
20698   rm -f conftest.er1
20699   cat conftest.err >&5
20700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701   (exit $ac_status); } && {
20702          test -z "$ac_c_werror_flag" ||
20703          test ! -s conftest.err
20704        } && test -s conftest.$ac_objext; then
20705   ac_hi=$ac_mid
20706 else
20707   echo "$as_me: failed program was:" >&5
20708 sed 's/^/| /' conftest.$ac_ext >&5
20709
20710         ac_lo=`expr '(' $ac_mid ')' + 1`
20711 fi
20712
20713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20714 done
20715 case $ac_lo in
20716 ?*) ac_cv_sizeof_void_p=$ac_lo;;
20717 '') if test "$ac_cv_type_void_p" = yes; then
20718      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
20719 See \`config.log' for more details." >&5
20720 echo "$as_me: error: cannot compute sizeof (void *)
20721 See \`config.log' for more details." >&2;}
20722    { (exit 77); exit 77; }; }
20723    else
20724      ac_cv_sizeof_void_p=0
20725    fi ;;
20726 esac
20727 else
20728   cat >conftest.$ac_ext <<_ACEOF
20729 /* confdefs.h.  */
20730 _ACEOF
20731 cat confdefs.h >>conftest.$ac_ext
20732 cat >>conftest.$ac_ext <<_ACEOF
20733 /* end confdefs.h.  */
20734 $ac_includes_default
20735    typedef void * ac__type_sizeof_;
20736 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20737 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20738 #include <stdio.h>
20739 #include <stdlib.h>
20740 int
20741 main ()
20742 {
20743
20744   FILE *f = fopen ("conftest.val", "w");
20745   if (! f)
20746     return 1;
20747   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20748     {
20749       long int i = longval ();
20750       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20751         return 1;
20752       fprintf (f, "%ld\n", i);
20753     }
20754   else
20755     {
20756       unsigned long int i = ulongval ();
20757       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20758         return 1;
20759       fprintf (f, "%lu\n", i);
20760     }
20761   return ferror (f) || fclose (f) != 0;
20762
20763   ;
20764   return 0;
20765 }
20766 _ACEOF
20767 rm -f conftest$ac_exeext
20768 if { (ac_try="$ac_link"
20769 case "(($ac_try" in
20770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20771   *) ac_try_echo=$ac_try;;
20772 esac
20773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20774   (eval "$ac_link") 2>&5
20775   ac_status=$?
20776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20777   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20778   { (case "(($ac_try" in
20779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20780   *) ac_try_echo=$ac_try;;
20781 esac
20782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20783   (eval "$ac_try") 2>&5
20784   ac_status=$?
20785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20786   (exit $ac_status); }; }; then
20787   ac_cv_sizeof_void_p=`cat conftest.val`
20788 else
20789   echo "$as_me: program exited with status $ac_status" >&5
20790 echo "$as_me: failed program was:" >&5
20791 sed 's/^/| /' conftest.$ac_ext >&5
20792
20793 ( exit $ac_status )
20794 if test "$ac_cv_type_void_p" = yes; then
20795      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
20796 See \`config.log' for more details." >&5
20797 echo "$as_me: error: cannot compute sizeof (void *)
20798 See \`config.log' for more details." >&2;}
20799    { (exit 77); exit 77; }; }
20800    else
20801      ac_cv_sizeof_void_p=0
20802    fi
20803 fi
20804 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20805 fi
20806 rm -f conftest.val
20807 fi
20808 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
20809 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
20810
20811
20812
20813 cat >>confdefs.h <<_ACEOF
20814 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
20815 _ACEOF
20816
20817
20818 { echo "$as_me:$LINENO: checking for int" >&5
20819 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
20820 if test "${ac_cv_type_int+set}" = set; then
20821   echo $ECHO_N "(cached) $ECHO_C" >&6
20822 else
20823   cat >conftest.$ac_ext <<_ACEOF
20824 /* confdefs.h.  */
20825 _ACEOF
20826 cat confdefs.h >>conftest.$ac_ext
20827 cat >>conftest.$ac_ext <<_ACEOF
20828 /* end confdefs.h.  */
20829 $ac_includes_default
20830 typedef int ac__type_new_;
20831 int
20832 main ()
20833 {
20834 if ((ac__type_new_ *) 0)
20835   return 0;
20836 if (sizeof (ac__type_new_))
20837   return 0;
20838   ;
20839   return 0;
20840 }
20841 _ACEOF
20842 rm -f conftest.$ac_objext
20843 if { (ac_try="$ac_compile"
20844 case "(($ac_try" in
20845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20846   *) ac_try_echo=$ac_try;;
20847 esac
20848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20849   (eval "$ac_compile") 2>conftest.er1
20850   ac_status=$?
20851   grep -v '^ *+' conftest.er1 >conftest.err
20852   rm -f conftest.er1
20853   cat conftest.err >&5
20854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20855   (exit $ac_status); } && {
20856          test -z "$ac_c_werror_flag" ||
20857          test ! -s conftest.err
20858        } && test -s conftest.$ac_objext; then
20859   ac_cv_type_int=yes
20860 else
20861   echo "$as_me: failed program was:" >&5
20862 sed 's/^/| /' conftest.$ac_ext >&5
20863
20864         ac_cv_type_int=no
20865 fi
20866
20867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20868 fi
20869 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
20870 echo "${ECHO_T}$ac_cv_type_int" >&6; }
20871
20872 # The cast to long int works around a bug in the HP C Compiler
20873 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20874 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20875 # This bug is HP SR number 8606223364.
20876 { echo "$as_me:$LINENO: checking size of int" >&5
20877 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
20878 if test "${ac_cv_sizeof_int+set}" = set; then
20879   echo $ECHO_N "(cached) $ECHO_C" >&6
20880 else
20881   if test "$cross_compiling" = yes; then
20882   # Depending upon the size, compute the lo and hi bounds.
20883 cat >conftest.$ac_ext <<_ACEOF
20884 /* confdefs.h.  */
20885 _ACEOF
20886 cat confdefs.h >>conftest.$ac_ext
20887 cat >>conftest.$ac_ext <<_ACEOF
20888 /* end confdefs.h.  */
20889 $ac_includes_default
20890    typedef int ac__type_sizeof_;
20891 int
20892 main ()
20893 {
20894 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20895 test_array [0] = 0
20896
20897   ;
20898   return 0;
20899 }
20900 _ACEOF
20901 rm -f conftest.$ac_objext
20902 if { (ac_try="$ac_compile"
20903 case "(($ac_try" in
20904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20905   *) ac_try_echo=$ac_try;;
20906 esac
20907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20908   (eval "$ac_compile") 2>conftest.er1
20909   ac_status=$?
20910   grep -v '^ *+' conftest.er1 >conftest.err
20911   rm -f conftest.er1
20912   cat conftest.err >&5
20913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20914   (exit $ac_status); } && {
20915          test -z "$ac_c_werror_flag" ||
20916          test ! -s conftest.err
20917        } && test -s conftest.$ac_objext; then
20918   ac_lo=0 ac_mid=0
20919   while :; do
20920     cat >conftest.$ac_ext <<_ACEOF
20921 /* confdefs.h.  */
20922 _ACEOF
20923 cat confdefs.h >>conftest.$ac_ext
20924 cat >>conftest.$ac_ext <<_ACEOF
20925 /* end confdefs.h.  */
20926 $ac_includes_default
20927    typedef int ac__type_sizeof_;
20928 int
20929 main ()
20930 {
20931 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20932 test_array [0] = 0
20933
20934   ;
20935   return 0;
20936 }
20937 _ACEOF
20938 rm -f conftest.$ac_objext
20939 if { (ac_try="$ac_compile"
20940 case "(($ac_try" in
20941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20942   *) ac_try_echo=$ac_try;;
20943 esac
20944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20945   (eval "$ac_compile") 2>conftest.er1
20946   ac_status=$?
20947   grep -v '^ *+' conftest.er1 >conftest.err
20948   rm -f conftest.er1
20949   cat conftest.err >&5
20950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951   (exit $ac_status); } && {
20952          test -z "$ac_c_werror_flag" ||
20953          test ! -s conftest.err
20954        } && test -s conftest.$ac_objext; then
20955   ac_hi=$ac_mid; break
20956 else
20957   echo "$as_me: failed program was:" >&5
20958 sed 's/^/| /' conftest.$ac_ext >&5
20959
20960         ac_lo=`expr $ac_mid + 1`
20961                         if test $ac_lo -le $ac_mid; then
20962                           ac_lo= ac_hi=
20963                           break
20964                         fi
20965                         ac_mid=`expr 2 '*' $ac_mid + 1`
20966 fi
20967
20968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20969   done
20970 else
20971   echo "$as_me: failed program was:" >&5
20972 sed 's/^/| /' conftest.$ac_ext >&5
20973
20974         cat >conftest.$ac_ext <<_ACEOF
20975 /* confdefs.h.  */
20976 _ACEOF
20977 cat confdefs.h >>conftest.$ac_ext
20978 cat >>conftest.$ac_ext <<_ACEOF
20979 /* end confdefs.h.  */
20980 $ac_includes_default
20981    typedef int ac__type_sizeof_;
20982 int
20983 main ()
20984 {
20985 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20986 test_array [0] = 0
20987
20988   ;
20989   return 0;
20990 }
20991 _ACEOF
20992 rm -f conftest.$ac_objext
20993 if { (ac_try="$ac_compile"
20994 case "(($ac_try" in
20995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20996   *) ac_try_echo=$ac_try;;
20997 esac
20998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20999   (eval "$ac_compile") 2>conftest.er1
21000   ac_status=$?
21001   grep -v '^ *+' conftest.er1 >conftest.err
21002   rm -f conftest.er1
21003   cat conftest.err >&5
21004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21005   (exit $ac_status); } && {
21006          test -z "$ac_c_werror_flag" ||
21007          test ! -s conftest.err
21008        } && test -s conftest.$ac_objext; then
21009   ac_hi=-1 ac_mid=-1
21010   while :; do
21011     cat >conftest.$ac_ext <<_ACEOF
21012 /* confdefs.h.  */
21013 _ACEOF
21014 cat confdefs.h >>conftest.$ac_ext
21015 cat >>conftest.$ac_ext <<_ACEOF
21016 /* end confdefs.h.  */
21017 $ac_includes_default
21018    typedef int ac__type_sizeof_;
21019 int
21020 main ()
21021 {
21022 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21023 test_array [0] = 0
21024
21025   ;
21026   return 0;
21027 }
21028 _ACEOF
21029 rm -f conftest.$ac_objext
21030 if { (ac_try="$ac_compile"
21031 case "(($ac_try" in
21032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21033   *) ac_try_echo=$ac_try;;
21034 esac
21035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21036   (eval "$ac_compile") 2>conftest.er1
21037   ac_status=$?
21038   grep -v '^ *+' conftest.er1 >conftest.err
21039   rm -f conftest.er1
21040   cat conftest.err >&5
21041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21042   (exit $ac_status); } && {
21043          test -z "$ac_c_werror_flag" ||
21044          test ! -s conftest.err
21045        } && test -s conftest.$ac_objext; then
21046   ac_lo=$ac_mid; break
21047 else
21048   echo "$as_me: failed program was:" >&5
21049 sed 's/^/| /' conftest.$ac_ext >&5
21050
21051         ac_hi=`expr '(' $ac_mid ')' - 1`
21052                         if test $ac_mid -le $ac_hi; then
21053                           ac_lo= ac_hi=
21054                           break
21055                         fi
21056                         ac_mid=`expr 2 '*' $ac_mid`
21057 fi
21058
21059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21060   done
21061 else
21062   echo "$as_me: failed program was:" >&5
21063 sed 's/^/| /' conftest.$ac_ext >&5
21064
21065         ac_lo= ac_hi=
21066 fi
21067
21068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21069 fi
21070
21071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21072 # Binary search between lo and hi bounds.
21073 while test "x$ac_lo" != "x$ac_hi"; do
21074   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21075   cat >conftest.$ac_ext <<_ACEOF
21076 /* confdefs.h.  */
21077 _ACEOF
21078 cat confdefs.h >>conftest.$ac_ext
21079 cat >>conftest.$ac_ext <<_ACEOF
21080 /* end confdefs.h.  */
21081 $ac_includes_default
21082    typedef int ac__type_sizeof_;
21083 int
21084 main ()
21085 {
21086 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21087 test_array [0] = 0
21088
21089   ;
21090   return 0;
21091 }
21092 _ACEOF
21093 rm -f conftest.$ac_objext
21094 if { (ac_try="$ac_compile"
21095 case "(($ac_try" in
21096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21097   *) ac_try_echo=$ac_try;;
21098 esac
21099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21100   (eval "$ac_compile") 2>conftest.er1
21101   ac_status=$?
21102   grep -v '^ *+' conftest.er1 >conftest.err
21103   rm -f conftest.er1
21104   cat conftest.err >&5
21105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106   (exit $ac_status); } && {
21107          test -z "$ac_c_werror_flag" ||
21108          test ! -s conftest.err
21109        } && test -s conftest.$ac_objext; then
21110   ac_hi=$ac_mid
21111 else
21112   echo "$as_me: failed program was:" >&5
21113 sed 's/^/| /' conftest.$ac_ext >&5
21114
21115         ac_lo=`expr '(' $ac_mid ')' + 1`
21116 fi
21117
21118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21119 done
21120 case $ac_lo in
21121 ?*) ac_cv_sizeof_int=$ac_lo;;
21122 '') if test "$ac_cv_type_int" = yes; then
21123      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21124 See \`config.log' for more details." >&5
21125 echo "$as_me: error: cannot compute sizeof (int)
21126 See \`config.log' for more details." >&2;}
21127    { (exit 77); exit 77; }; }
21128    else
21129      ac_cv_sizeof_int=0
21130    fi ;;
21131 esac
21132 else
21133   cat >conftest.$ac_ext <<_ACEOF
21134 /* confdefs.h.  */
21135 _ACEOF
21136 cat confdefs.h >>conftest.$ac_ext
21137 cat >>conftest.$ac_ext <<_ACEOF
21138 /* end confdefs.h.  */
21139 $ac_includes_default
21140    typedef int ac__type_sizeof_;
21141 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21142 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21143 #include <stdio.h>
21144 #include <stdlib.h>
21145 int
21146 main ()
21147 {
21148
21149   FILE *f = fopen ("conftest.val", "w");
21150   if (! f)
21151     return 1;
21152   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21153     {
21154       long int i = longval ();
21155       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21156         return 1;
21157       fprintf (f, "%ld\n", i);
21158     }
21159   else
21160     {
21161       unsigned long int i = ulongval ();
21162       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21163         return 1;
21164       fprintf (f, "%lu\n", i);
21165     }
21166   return ferror (f) || fclose (f) != 0;
21167
21168   ;
21169   return 0;
21170 }
21171 _ACEOF
21172 rm -f conftest$ac_exeext
21173 if { (ac_try="$ac_link"
21174 case "(($ac_try" in
21175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21176   *) ac_try_echo=$ac_try;;
21177 esac
21178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21179   (eval "$ac_link") 2>&5
21180   ac_status=$?
21181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21182   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21183   { (case "(($ac_try" in
21184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21185   *) ac_try_echo=$ac_try;;
21186 esac
21187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21188   (eval "$ac_try") 2>&5
21189   ac_status=$?
21190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21191   (exit $ac_status); }; }; then
21192   ac_cv_sizeof_int=`cat conftest.val`
21193 else
21194   echo "$as_me: program exited with status $ac_status" >&5
21195 echo "$as_me: failed program was:" >&5
21196 sed 's/^/| /' conftest.$ac_ext >&5
21197
21198 ( exit $ac_status )
21199 if test "$ac_cv_type_int" = yes; then
21200      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21201 See \`config.log' for more details." >&5
21202 echo "$as_me: error: cannot compute sizeof (int)
21203 See \`config.log' for more details." >&2;}
21204    { (exit 77); exit 77; }; }
21205    else
21206      ac_cv_sizeof_int=0
21207    fi
21208 fi
21209 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21210 fi
21211 rm -f conftest.val
21212 fi
21213 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
21214 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
21215
21216
21217
21218 cat >>confdefs.h <<_ACEOF
21219 #define SIZEOF_INT $ac_cv_sizeof_int
21220 _ACEOF
21221
21222
21223 { echo "$as_me:$LINENO: checking for long" >&5
21224 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
21225 if test "${ac_cv_type_long+set}" = set; then
21226   echo $ECHO_N "(cached) $ECHO_C" >&6
21227 else
21228   cat >conftest.$ac_ext <<_ACEOF
21229 /* confdefs.h.  */
21230 _ACEOF
21231 cat confdefs.h >>conftest.$ac_ext
21232 cat >>conftest.$ac_ext <<_ACEOF
21233 /* end confdefs.h.  */
21234 $ac_includes_default
21235 typedef long ac__type_new_;
21236 int
21237 main ()
21238 {
21239 if ((ac__type_new_ *) 0)
21240   return 0;
21241 if (sizeof (ac__type_new_))
21242   return 0;
21243   ;
21244   return 0;
21245 }
21246 _ACEOF
21247 rm -f conftest.$ac_objext
21248 if { (ac_try="$ac_compile"
21249 case "(($ac_try" in
21250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21251   *) ac_try_echo=$ac_try;;
21252 esac
21253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21254   (eval "$ac_compile") 2>conftest.er1
21255   ac_status=$?
21256   grep -v '^ *+' conftest.er1 >conftest.err
21257   rm -f conftest.er1
21258   cat conftest.err >&5
21259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21260   (exit $ac_status); } && {
21261          test -z "$ac_c_werror_flag" ||
21262          test ! -s conftest.err
21263        } && test -s conftest.$ac_objext; then
21264   ac_cv_type_long=yes
21265 else
21266   echo "$as_me: failed program was:" >&5
21267 sed 's/^/| /' conftest.$ac_ext >&5
21268
21269         ac_cv_type_long=no
21270 fi
21271
21272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21273 fi
21274 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
21275 echo "${ECHO_T}$ac_cv_type_long" >&6; }
21276
21277 # The cast to long int works around a bug in the HP C Compiler
21278 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21279 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21280 # This bug is HP SR number 8606223364.
21281 { echo "$as_me:$LINENO: checking size of long" >&5
21282 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
21283 if test "${ac_cv_sizeof_long+set}" = set; then
21284   echo $ECHO_N "(cached) $ECHO_C" >&6
21285 else
21286   if test "$cross_compiling" = yes; then
21287   # Depending upon the size, compute the lo and hi bounds.
21288 cat >conftest.$ac_ext <<_ACEOF
21289 /* confdefs.h.  */
21290 _ACEOF
21291 cat confdefs.h >>conftest.$ac_ext
21292 cat >>conftest.$ac_ext <<_ACEOF
21293 /* end confdefs.h.  */
21294 $ac_includes_default
21295    typedef long ac__type_sizeof_;
21296 int
21297 main ()
21298 {
21299 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21300 test_array [0] = 0
21301
21302   ;
21303   return 0;
21304 }
21305 _ACEOF
21306 rm -f conftest.$ac_objext
21307 if { (ac_try="$ac_compile"
21308 case "(($ac_try" in
21309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21310   *) ac_try_echo=$ac_try;;
21311 esac
21312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21313   (eval "$ac_compile") 2>conftest.er1
21314   ac_status=$?
21315   grep -v '^ *+' conftest.er1 >conftest.err
21316   rm -f conftest.er1
21317   cat conftest.err >&5
21318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21319   (exit $ac_status); } && {
21320          test -z "$ac_c_werror_flag" ||
21321          test ! -s conftest.err
21322        } && test -s conftest.$ac_objext; then
21323   ac_lo=0 ac_mid=0
21324   while :; do
21325     cat >conftest.$ac_ext <<_ACEOF
21326 /* confdefs.h.  */
21327 _ACEOF
21328 cat confdefs.h >>conftest.$ac_ext
21329 cat >>conftest.$ac_ext <<_ACEOF
21330 /* end confdefs.h.  */
21331 $ac_includes_default
21332    typedef long ac__type_sizeof_;
21333 int
21334 main ()
21335 {
21336 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21337 test_array [0] = 0
21338
21339   ;
21340   return 0;
21341 }
21342 _ACEOF
21343 rm -f conftest.$ac_objext
21344 if { (ac_try="$ac_compile"
21345 case "(($ac_try" in
21346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21347   *) ac_try_echo=$ac_try;;
21348 esac
21349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21350   (eval "$ac_compile") 2>conftest.er1
21351   ac_status=$?
21352   grep -v '^ *+' conftest.er1 >conftest.err
21353   rm -f conftest.er1
21354   cat conftest.err >&5
21355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21356   (exit $ac_status); } && {
21357          test -z "$ac_c_werror_flag" ||
21358          test ! -s conftest.err
21359        } && test -s conftest.$ac_objext; then
21360   ac_hi=$ac_mid; break
21361 else
21362   echo "$as_me: failed program was:" >&5
21363 sed 's/^/| /' conftest.$ac_ext >&5
21364
21365         ac_lo=`expr $ac_mid + 1`
21366                         if test $ac_lo -le $ac_mid; then
21367                           ac_lo= ac_hi=
21368                           break
21369                         fi
21370                         ac_mid=`expr 2 '*' $ac_mid + 1`
21371 fi
21372
21373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21374   done
21375 else
21376   echo "$as_me: failed program was:" >&5
21377 sed 's/^/| /' conftest.$ac_ext >&5
21378
21379         cat >conftest.$ac_ext <<_ACEOF
21380 /* confdefs.h.  */
21381 _ACEOF
21382 cat confdefs.h >>conftest.$ac_ext
21383 cat >>conftest.$ac_ext <<_ACEOF
21384 /* end confdefs.h.  */
21385 $ac_includes_default
21386    typedef long ac__type_sizeof_;
21387 int
21388 main ()
21389 {
21390 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21391 test_array [0] = 0
21392
21393   ;
21394   return 0;
21395 }
21396 _ACEOF
21397 rm -f conftest.$ac_objext
21398 if { (ac_try="$ac_compile"
21399 case "(($ac_try" in
21400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21401   *) ac_try_echo=$ac_try;;
21402 esac
21403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21404   (eval "$ac_compile") 2>conftest.er1
21405   ac_status=$?
21406   grep -v '^ *+' conftest.er1 >conftest.err
21407   rm -f conftest.er1
21408   cat conftest.err >&5
21409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21410   (exit $ac_status); } && {
21411          test -z "$ac_c_werror_flag" ||
21412          test ! -s conftest.err
21413        } && test -s conftest.$ac_objext; then
21414   ac_hi=-1 ac_mid=-1
21415   while :; do
21416     cat >conftest.$ac_ext <<_ACEOF
21417 /* confdefs.h.  */
21418 _ACEOF
21419 cat confdefs.h >>conftest.$ac_ext
21420 cat >>conftest.$ac_ext <<_ACEOF
21421 /* end confdefs.h.  */
21422 $ac_includes_default
21423    typedef long ac__type_sizeof_;
21424 int
21425 main ()
21426 {
21427 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21428 test_array [0] = 0
21429
21430   ;
21431   return 0;
21432 }
21433 _ACEOF
21434 rm -f conftest.$ac_objext
21435 if { (ac_try="$ac_compile"
21436 case "(($ac_try" in
21437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21438   *) ac_try_echo=$ac_try;;
21439 esac
21440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21441   (eval "$ac_compile") 2>conftest.er1
21442   ac_status=$?
21443   grep -v '^ *+' conftest.er1 >conftest.err
21444   rm -f conftest.er1
21445   cat conftest.err >&5
21446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447   (exit $ac_status); } && {
21448          test -z "$ac_c_werror_flag" ||
21449          test ! -s conftest.err
21450        } && test -s conftest.$ac_objext; then
21451   ac_lo=$ac_mid; break
21452 else
21453   echo "$as_me: failed program was:" >&5
21454 sed 's/^/| /' conftest.$ac_ext >&5
21455
21456         ac_hi=`expr '(' $ac_mid ')' - 1`
21457                         if test $ac_mid -le $ac_hi; then
21458                           ac_lo= ac_hi=
21459                           break
21460                         fi
21461                         ac_mid=`expr 2 '*' $ac_mid`
21462 fi
21463
21464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21465   done
21466 else
21467   echo "$as_me: failed program was:" >&5
21468 sed 's/^/| /' conftest.$ac_ext >&5
21469
21470         ac_lo= ac_hi=
21471 fi
21472
21473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21474 fi
21475
21476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21477 # Binary search between lo and hi bounds.
21478 while test "x$ac_lo" != "x$ac_hi"; do
21479   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21480   cat >conftest.$ac_ext <<_ACEOF
21481 /* confdefs.h.  */
21482 _ACEOF
21483 cat confdefs.h >>conftest.$ac_ext
21484 cat >>conftest.$ac_ext <<_ACEOF
21485 /* end confdefs.h.  */
21486 $ac_includes_default
21487    typedef long ac__type_sizeof_;
21488 int
21489 main ()
21490 {
21491 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21492 test_array [0] = 0
21493
21494   ;
21495   return 0;
21496 }
21497 _ACEOF
21498 rm -f conftest.$ac_objext
21499 if { (ac_try="$ac_compile"
21500 case "(($ac_try" in
21501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21502   *) ac_try_echo=$ac_try;;
21503 esac
21504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21505   (eval "$ac_compile") 2>conftest.er1
21506   ac_status=$?
21507   grep -v '^ *+' conftest.er1 >conftest.err
21508   rm -f conftest.er1
21509   cat conftest.err >&5
21510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21511   (exit $ac_status); } && {
21512          test -z "$ac_c_werror_flag" ||
21513          test ! -s conftest.err
21514        } && test -s conftest.$ac_objext; then
21515   ac_hi=$ac_mid
21516 else
21517   echo "$as_me: failed program was:" >&5
21518 sed 's/^/| /' conftest.$ac_ext >&5
21519
21520         ac_lo=`expr '(' $ac_mid ')' + 1`
21521 fi
21522
21523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21524 done
21525 case $ac_lo in
21526 ?*) ac_cv_sizeof_long=$ac_lo;;
21527 '') if test "$ac_cv_type_long" = yes; then
21528      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
21529 See \`config.log' for more details." >&5
21530 echo "$as_me: error: cannot compute sizeof (long)
21531 See \`config.log' for more details." >&2;}
21532    { (exit 77); exit 77; }; }
21533    else
21534      ac_cv_sizeof_long=0
21535    fi ;;
21536 esac
21537 else
21538   cat >conftest.$ac_ext <<_ACEOF
21539 /* confdefs.h.  */
21540 _ACEOF
21541 cat confdefs.h >>conftest.$ac_ext
21542 cat >>conftest.$ac_ext <<_ACEOF
21543 /* end confdefs.h.  */
21544 $ac_includes_default
21545    typedef long ac__type_sizeof_;
21546 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21547 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21548 #include <stdio.h>
21549 #include <stdlib.h>
21550 int
21551 main ()
21552 {
21553
21554   FILE *f = fopen ("conftest.val", "w");
21555   if (! f)
21556     return 1;
21557   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21558     {
21559       long int i = longval ();
21560       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21561         return 1;
21562       fprintf (f, "%ld\n", i);
21563     }
21564   else
21565     {
21566       unsigned long int i = ulongval ();
21567       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21568         return 1;
21569       fprintf (f, "%lu\n", i);
21570     }
21571   return ferror (f) || fclose (f) != 0;
21572
21573   ;
21574   return 0;
21575 }
21576 _ACEOF
21577 rm -f conftest$ac_exeext
21578 if { (ac_try="$ac_link"
21579 case "(($ac_try" in
21580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21581   *) ac_try_echo=$ac_try;;
21582 esac
21583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21584   (eval "$ac_link") 2>&5
21585   ac_status=$?
21586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21587   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
21594   ac_status=$?
21595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21596   (exit $ac_status); }; }; then
21597   ac_cv_sizeof_long=`cat conftest.val`
21598 else
21599   echo "$as_me: program exited with status $ac_status" >&5
21600 echo "$as_me: failed program was:" >&5
21601 sed 's/^/| /' conftest.$ac_ext >&5
21602
21603 ( exit $ac_status )
21604 if test "$ac_cv_type_long" = yes; then
21605      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
21606 See \`config.log' for more details." >&5
21607 echo "$as_me: error: cannot compute sizeof (long)
21608 See \`config.log' for more details." >&2;}
21609    { (exit 77); exit 77; }; }
21610    else
21611      ac_cv_sizeof_long=0
21612    fi
21613 fi
21614 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21615 fi
21616 rm -f conftest.val
21617 fi
21618 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
21619 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
21620
21621
21622
21623 cat >>confdefs.h <<_ACEOF
21624 #define SIZEOF_LONG $ac_cv_sizeof_long
21625 _ACEOF
21626
21627
21628 { echo "$as_me:$LINENO: checking for size_t" >&5
21629 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21630 if test "${ac_cv_type_size_t+set}" = set; then
21631   echo $ECHO_N "(cached) $ECHO_C" >&6
21632 else
21633   cat >conftest.$ac_ext <<_ACEOF
21634 /* confdefs.h.  */
21635 _ACEOF
21636 cat confdefs.h >>conftest.$ac_ext
21637 cat >>conftest.$ac_ext <<_ACEOF
21638 /* end confdefs.h.  */
21639 $ac_includes_default
21640 typedef size_t ac__type_new_;
21641 int
21642 main ()
21643 {
21644 if ((ac__type_new_ *) 0)
21645   return 0;
21646 if (sizeof (ac__type_new_))
21647   return 0;
21648   ;
21649   return 0;
21650 }
21651 _ACEOF
21652 rm -f conftest.$ac_objext
21653 if { (ac_try="$ac_compile"
21654 case "(($ac_try" in
21655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21656   *) ac_try_echo=$ac_try;;
21657 esac
21658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21659   (eval "$ac_compile") 2>conftest.er1
21660   ac_status=$?
21661   grep -v '^ *+' conftest.er1 >conftest.err
21662   rm -f conftest.er1
21663   cat conftest.err >&5
21664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21665   (exit $ac_status); } && {
21666          test -z "$ac_c_werror_flag" ||
21667          test ! -s conftest.err
21668        } && test -s conftest.$ac_objext; then
21669   ac_cv_type_size_t=yes
21670 else
21671   echo "$as_me: failed program was:" >&5
21672 sed 's/^/| /' conftest.$ac_ext >&5
21673
21674         ac_cv_type_size_t=no
21675 fi
21676
21677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21678 fi
21679 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21680 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21681
21682 # The cast to long int works around a bug in the HP C Compiler
21683 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21684 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21685 # This bug is HP SR number 8606223364.
21686 { echo "$as_me:$LINENO: checking size of size_t" >&5
21687 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
21688 if test "${ac_cv_sizeof_size_t+set}" = set; then
21689   echo $ECHO_N "(cached) $ECHO_C" >&6
21690 else
21691   if test "$cross_compiling" = yes; then
21692   # Depending upon the size, compute the lo and hi bounds.
21693 cat >conftest.$ac_ext <<_ACEOF
21694 /* confdefs.h.  */
21695 _ACEOF
21696 cat confdefs.h >>conftest.$ac_ext
21697 cat >>conftest.$ac_ext <<_ACEOF
21698 /* end confdefs.h.  */
21699 $ac_includes_default
21700    typedef size_t ac__type_sizeof_;
21701 int
21702 main ()
21703 {
21704 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21705 test_array [0] = 0
21706
21707   ;
21708   return 0;
21709 }
21710 _ACEOF
21711 rm -f conftest.$ac_objext
21712 if { (ac_try="$ac_compile"
21713 case "(($ac_try" in
21714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21715   *) ac_try_echo=$ac_try;;
21716 esac
21717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21718   (eval "$ac_compile") 2>conftest.er1
21719   ac_status=$?
21720   grep -v '^ *+' conftest.er1 >conftest.err
21721   rm -f conftest.er1
21722   cat conftest.err >&5
21723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21724   (exit $ac_status); } && {
21725          test -z "$ac_c_werror_flag" ||
21726          test ! -s conftest.err
21727        } && test -s conftest.$ac_objext; then
21728   ac_lo=0 ac_mid=0
21729   while :; do
21730     cat >conftest.$ac_ext <<_ACEOF
21731 /* confdefs.h.  */
21732 _ACEOF
21733 cat confdefs.h >>conftest.$ac_ext
21734 cat >>conftest.$ac_ext <<_ACEOF
21735 /* end confdefs.h.  */
21736 $ac_includes_default
21737    typedef size_t ac__type_sizeof_;
21738 int
21739 main ()
21740 {
21741 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21742 test_array [0] = 0
21743
21744   ;
21745   return 0;
21746 }
21747 _ACEOF
21748 rm -f conftest.$ac_objext
21749 if { (ac_try="$ac_compile"
21750 case "(($ac_try" in
21751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21752   *) ac_try_echo=$ac_try;;
21753 esac
21754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21755   (eval "$ac_compile") 2>conftest.er1
21756   ac_status=$?
21757   grep -v '^ *+' conftest.er1 >conftest.err
21758   rm -f conftest.er1
21759   cat conftest.err >&5
21760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21761   (exit $ac_status); } && {
21762          test -z "$ac_c_werror_flag" ||
21763          test ! -s conftest.err
21764        } && test -s conftest.$ac_objext; then
21765   ac_hi=$ac_mid; break
21766 else
21767   echo "$as_me: failed program was:" >&5
21768 sed 's/^/| /' conftest.$ac_ext >&5
21769
21770         ac_lo=`expr $ac_mid + 1`
21771                         if test $ac_lo -le $ac_mid; then
21772                           ac_lo= ac_hi=
21773                           break
21774                         fi
21775                         ac_mid=`expr 2 '*' $ac_mid + 1`
21776 fi
21777
21778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21779   done
21780 else
21781   echo "$as_me: failed program was:" >&5
21782 sed 's/^/| /' conftest.$ac_ext >&5
21783
21784         cat >conftest.$ac_ext <<_ACEOF
21785 /* confdefs.h.  */
21786 _ACEOF
21787 cat confdefs.h >>conftest.$ac_ext
21788 cat >>conftest.$ac_ext <<_ACEOF
21789 /* end confdefs.h.  */
21790 $ac_includes_default
21791    typedef size_t ac__type_sizeof_;
21792 int
21793 main ()
21794 {
21795 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21796 test_array [0] = 0
21797
21798   ;
21799   return 0;
21800 }
21801 _ACEOF
21802 rm -f conftest.$ac_objext
21803 if { (ac_try="$ac_compile"
21804 case "(($ac_try" in
21805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21806   *) ac_try_echo=$ac_try;;
21807 esac
21808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21809   (eval "$ac_compile") 2>conftest.er1
21810   ac_status=$?
21811   grep -v '^ *+' conftest.er1 >conftest.err
21812   rm -f conftest.er1
21813   cat conftest.err >&5
21814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21815   (exit $ac_status); } && {
21816          test -z "$ac_c_werror_flag" ||
21817          test ! -s conftest.err
21818        } && test -s conftest.$ac_objext; then
21819   ac_hi=-1 ac_mid=-1
21820   while :; do
21821     cat >conftest.$ac_ext <<_ACEOF
21822 /* confdefs.h.  */
21823 _ACEOF
21824 cat confdefs.h >>conftest.$ac_ext
21825 cat >>conftest.$ac_ext <<_ACEOF
21826 /* end confdefs.h.  */
21827 $ac_includes_default
21828    typedef size_t ac__type_sizeof_;
21829 int
21830 main ()
21831 {
21832 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21833 test_array [0] = 0
21834
21835   ;
21836   return 0;
21837 }
21838 _ACEOF
21839 rm -f conftest.$ac_objext
21840 if { (ac_try="$ac_compile"
21841 case "(($ac_try" in
21842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21843   *) ac_try_echo=$ac_try;;
21844 esac
21845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21846   (eval "$ac_compile") 2>conftest.er1
21847   ac_status=$?
21848   grep -v '^ *+' conftest.er1 >conftest.err
21849   rm -f conftest.er1
21850   cat conftest.err >&5
21851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21852   (exit $ac_status); } && {
21853          test -z "$ac_c_werror_flag" ||
21854          test ! -s conftest.err
21855        } && test -s conftest.$ac_objext; then
21856   ac_lo=$ac_mid; break
21857 else
21858   echo "$as_me: failed program was:" >&5
21859 sed 's/^/| /' conftest.$ac_ext >&5
21860
21861         ac_hi=`expr '(' $ac_mid ')' - 1`
21862                         if test $ac_mid -le $ac_hi; then
21863                           ac_lo= ac_hi=
21864                           break
21865                         fi
21866                         ac_mid=`expr 2 '*' $ac_mid`
21867 fi
21868
21869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21870   done
21871 else
21872   echo "$as_me: failed program was:" >&5
21873 sed 's/^/| /' conftest.$ac_ext >&5
21874
21875         ac_lo= ac_hi=
21876 fi
21877
21878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21879 fi
21880
21881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21882 # Binary search between lo and hi bounds.
21883 while test "x$ac_lo" != "x$ac_hi"; do
21884   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21885   cat >conftest.$ac_ext <<_ACEOF
21886 /* confdefs.h.  */
21887 _ACEOF
21888 cat confdefs.h >>conftest.$ac_ext
21889 cat >>conftest.$ac_ext <<_ACEOF
21890 /* end confdefs.h.  */
21891 $ac_includes_default
21892    typedef size_t ac__type_sizeof_;
21893 int
21894 main ()
21895 {
21896 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21897 test_array [0] = 0
21898
21899   ;
21900   return 0;
21901 }
21902 _ACEOF
21903 rm -f conftest.$ac_objext
21904 if { (ac_try="$ac_compile"
21905 case "(($ac_try" in
21906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21907   *) ac_try_echo=$ac_try;;
21908 esac
21909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21910   (eval "$ac_compile") 2>conftest.er1
21911   ac_status=$?
21912   grep -v '^ *+' conftest.er1 >conftest.err
21913   rm -f conftest.er1
21914   cat conftest.err >&5
21915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21916   (exit $ac_status); } && {
21917          test -z "$ac_c_werror_flag" ||
21918          test ! -s conftest.err
21919        } && test -s conftest.$ac_objext; then
21920   ac_hi=$ac_mid
21921 else
21922   echo "$as_me: failed program was:" >&5
21923 sed 's/^/| /' conftest.$ac_ext >&5
21924
21925         ac_lo=`expr '(' $ac_mid ')' + 1`
21926 fi
21927
21928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21929 done
21930 case $ac_lo in
21931 ?*) ac_cv_sizeof_size_t=$ac_lo;;
21932 '') if test "$ac_cv_type_size_t" = yes; then
21933      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
21934 See \`config.log' for more details." >&5
21935 echo "$as_me: error: cannot compute sizeof (size_t)
21936 See \`config.log' for more details." >&2;}
21937    { (exit 77); exit 77; }; }
21938    else
21939      ac_cv_sizeof_size_t=0
21940    fi ;;
21941 esac
21942 else
21943   cat >conftest.$ac_ext <<_ACEOF
21944 /* confdefs.h.  */
21945 _ACEOF
21946 cat confdefs.h >>conftest.$ac_ext
21947 cat >>conftest.$ac_ext <<_ACEOF
21948 /* end confdefs.h.  */
21949 $ac_includes_default
21950    typedef size_t ac__type_sizeof_;
21951 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21952 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21953 #include <stdio.h>
21954 #include <stdlib.h>
21955 int
21956 main ()
21957 {
21958
21959   FILE *f = fopen ("conftest.val", "w");
21960   if (! f)
21961     return 1;
21962   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21963     {
21964       long int i = longval ();
21965       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21966         return 1;
21967       fprintf (f, "%ld\n", i);
21968     }
21969   else
21970     {
21971       unsigned long int i = ulongval ();
21972       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21973         return 1;
21974       fprintf (f, "%lu\n", i);
21975     }
21976   return ferror (f) || fclose (f) != 0;
21977
21978   ;
21979   return 0;
21980 }
21981 _ACEOF
21982 rm -f conftest$ac_exeext
21983 if { (ac_try="$ac_link"
21984 case "(($ac_try" in
21985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21986   *) ac_try_echo=$ac_try;;
21987 esac
21988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21989   (eval "$ac_link") 2>&5
21990   ac_status=$?
21991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21992   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21993   { (case "(($ac_try" in
21994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21995   *) ac_try_echo=$ac_try;;
21996 esac
21997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21998   (eval "$ac_try") 2>&5
21999   ac_status=$?
22000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22001   (exit $ac_status); }; }; then
22002   ac_cv_sizeof_size_t=`cat conftest.val`
22003 else
22004   echo "$as_me: program exited with status $ac_status" >&5
22005 echo "$as_me: failed program was:" >&5
22006 sed 's/^/| /' conftest.$ac_ext >&5
22007
22008 ( exit $ac_status )
22009 if test "$ac_cv_type_size_t" = yes; then
22010      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
22011 See \`config.log' for more details." >&5
22012 echo "$as_me: error: cannot compute sizeof (size_t)
22013 See \`config.log' for more details." >&2;}
22014    { (exit 77); exit 77; }; }
22015    else
22016      ac_cv_sizeof_size_t=0
22017    fi
22018 fi
22019 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22020 fi
22021 rm -f conftest.val
22022 fi
22023 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
22024 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
22025
22026
22027
22028 cat >>confdefs.h <<_ACEOF
22029 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
22030 _ACEOF
22031
22032
22033
22034 case "${host}" in
22035     arm-*-linux* )
22036         { echo "$as_me:$LINENO: checking for long long" >&5
22037 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
22038 if test "${ac_cv_type_long_long+set}" = set; then
22039   echo $ECHO_N "(cached) $ECHO_C" >&6
22040 else
22041   cat >conftest.$ac_ext <<_ACEOF
22042 /* confdefs.h.  */
22043 _ACEOF
22044 cat confdefs.h >>conftest.$ac_ext
22045 cat >>conftest.$ac_ext <<_ACEOF
22046 /* end confdefs.h.  */
22047 $ac_includes_default
22048 typedef long long ac__type_new_;
22049 int
22050 main ()
22051 {
22052 if ((ac__type_new_ *) 0)
22053   return 0;
22054 if (sizeof (ac__type_new_))
22055   return 0;
22056   ;
22057   return 0;
22058 }
22059 _ACEOF
22060 rm -f conftest.$ac_objext
22061 if { (ac_try="$ac_compile"
22062 case "(($ac_try" in
22063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22064   *) ac_try_echo=$ac_try;;
22065 esac
22066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22067   (eval "$ac_compile") 2>conftest.er1
22068   ac_status=$?
22069   grep -v '^ *+' conftest.er1 >conftest.err
22070   rm -f conftest.er1
22071   cat conftest.err >&5
22072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22073   (exit $ac_status); } && {
22074          test -z "$ac_c_werror_flag" ||
22075          test ! -s conftest.err
22076        } && test -s conftest.$ac_objext; then
22077   ac_cv_type_long_long=yes
22078 else
22079   echo "$as_me: failed program was:" >&5
22080 sed 's/^/| /' conftest.$ac_ext >&5
22081
22082         ac_cv_type_long_long=no
22083 fi
22084
22085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22086 fi
22087 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
22088 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
22089
22090 # The cast to long int works around a bug in the HP C Compiler
22091 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22092 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22093 # This bug is HP SR number 8606223364.
22094 { echo "$as_me:$LINENO: checking size of long long" >&5
22095 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
22096 if test "${ac_cv_sizeof_long_long+set}" = set; then
22097   echo $ECHO_N "(cached) $ECHO_C" >&6
22098 else
22099   if test "$cross_compiling" = yes; then
22100   # Depending upon the size, compute the lo and hi bounds.
22101 cat >conftest.$ac_ext <<_ACEOF
22102 /* confdefs.h.  */
22103 _ACEOF
22104 cat confdefs.h >>conftest.$ac_ext
22105 cat >>conftest.$ac_ext <<_ACEOF
22106 /* end confdefs.h.  */
22107 $ac_includes_default
22108    typedef long long ac__type_sizeof_;
22109 int
22110 main ()
22111 {
22112 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22113 test_array [0] = 0
22114
22115   ;
22116   return 0;
22117 }
22118 _ACEOF
22119 rm -f conftest.$ac_objext
22120 if { (ac_try="$ac_compile"
22121 case "(($ac_try" in
22122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22123   *) ac_try_echo=$ac_try;;
22124 esac
22125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22126   (eval "$ac_compile") 2>conftest.er1
22127   ac_status=$?
22128   grep -v '^ *+' conftest.er1 >conftest.err
22129   rm -f conftest.er1
22130   cat conftest.err >&5
22131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22132   (exit $ac_status); } && {
22133          test -z "$ac_c_werror_flag" ||
22134          test ! -s conftest.err
22135        } && test -s conftest.$ac_objext; then
22136   ac_lo=0 ac_mid=0
22137   while :; do
22138     cat >conftest.$ac_ext <<_ACEOF
22139 /* confdefs.h.  */
22140 _ACEOF
22141 cat confdefs.h >>conftest.$ac_ext
22142 cat >>conftest.$ac_ext <<_ACEOF
22143 /* end confdefs.h.  */
22144 $ac_includes_default
22145    typedef long long ac__type_sizeof_;
22146 int
22147 main ()
22148 {
22149 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22150 test_array [0] = 0
22151
22152   ;
22153   return 0;
22154 }
22155 _ACEOF
22156 rm -f conftest.$ac_objext
22157 if { (ac_try="$ac_compile"
22158 case "(($ac_try" in
22159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22160   *) ac_try_echo=$ac_try;;
22161 esac
22162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22163   (eval "$ac_compile") 2>conftest.er1
22164   ac_status=$?
22165   grep -v '^ *+' conftest.er1 >conftest.err
22166   rm -f conftest.er1
22167   cat conftest.err >&5
22168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22169   (exit $ac_status); } && {
22170          test -z "$ac_c_werror_flag" ||
22171          test ! -s conftest.err
22172        } && test -s conftest.$ac_objext; then
22173   ac_hi=$ac_mid; break
22174 else
22175   echo "$as_me: failed program was:" >&5
22176 sed 's/^/| /' conftest.$ac_ext >&5
22177
22178         ac_lo=`expr $ac_mid + 1`
22179                         if test $ac_lo -le $ac_mid; then
22180                           ac_lo= ac_hi=
22181                           break
22182                         fi
22183                         ac_mid=`expr 2 '*' $ac_mid + 1`
22184 fi
22185
22186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22187   done
22188 else
22189   echo "$as_me: failed program was:" >&5
22190 sed 's/^/| /' conftest.$ac_ext >&5
22191
22192         cat >conftest.$ac_ext <<_ACEOF
22193 /* confdefs.h.  */
22194 _ACEOF
22195 cat confdefs.h >>conftest.$ac_ext
22196 cat >>conftest.$ac_ext <<_ACEOF
22197 /* end confdefs.h.  */
22198 $ac_includes_default
22199    typedef long long ac__type_sizeof_;
22200 int
22201 main ()
22202 {
22203 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22204 test_array [0] = 0
22205
22206   ;
22207   return 0;
22208 }
22209 _ACEOF
22210 rm -f conftest.$ac_objext
22211 if { (ac_try="$ac_compile"
22212 case "(($ac_try" in
22213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22214   *) ac_try_echo=$ac_try;;
22215 esac
22216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22217   (eval "$ac_compile") 2>conftest.er1
22218   ac_status=$?
22219   grep -v '^ *+' conftest.er1 >conftest.err
22220   rm -f conftest.er1
22221   cat conftest.err >&5
22222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22223   (exit $ac_status); } && {
22224          test -z "$ac_c_werror_flag" ||
22225          test ! -s conftest.err
22226        } && test -s conftest.$ac_objext; then
22227   ac_hi=-1 ac_mid=-1
22228   while :; do
22229     cat >conftest.$ac_ext <<_ACEOF
22230 /* confdefs.h.  */
22231 _ACEOF
22232 cat confdefs.h >>conftest.$ac_ext
22233 cat >>conftest.$ac_ext <<_ACEOF
22234 /* end confdefs.h.  */
22235 $ac_includes_default
22236    typedef long long ac__type_sizeof_;
22237 int
22238 main ()
22239 {
22240 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22241 test_array [0] = 0
22242
22243   ;
22244   return 0;
22245 }
22246 _ACEOF
22247 rm -f conftest.$ac_objext
22248 if { (ac_try="$ac_compile"
22249 case "(($ac_try" in
22250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22251   *) ac_try_echo=$ac_try;;
22252 esac
22253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22254   (eval "$ac_compile") 2>conftest.er1
22255   ac_status=$?
22256   grep -v '^ *+' conftest.er1 >conftest.err
22257   rm -f conftest.er1
22258   cat conftest.err >&5
22259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22260   (exit $ac_status); } && {
22261          test -z "$ac_c_werror_flag" ||
22262          test ! -s conftest.err
22263        } && test -s conftest.$ac_objext; then
22264   ac_lo=$ac_mid; break
22265 else
22266   echo "$as_me: failed program was:" >&5
22267 sed 's/^/| /' conftest.$ac_ext >&5
22268
22269         ac_hi=`expr '(' $ac_mid ')' - 1`
22270                         if test $ac_mid -le $ac_hi; then
22271                           ac_lo= ac_hi=
22272                           break
22273                         fi
22274                         ac_mid=`expr 2 '*' $ac_mid`
22275 fi
22276
22277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22278   done
22279 else
22280   echo "$as_me: failed program was:" >&5
22281 sed 's/^/| /' conftest.$ac_ext >&5
22282
22283         ac_lo= ac_hi=
22284 fi
22285
22286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22287 fi
22288
22289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22290 # Binary search between lo and hi bounds.
22291 while test "x$ac_lo" != "x$ac_hi"; do
22292   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22293   cat >conftest.$ac_ext <<_ACEOF
22294 /* confdefs.h.  */
22295 _ACEOF
22296 cat confdefs.h >>conftest.$ac_ext
22297 cat >>conftest.$ac_ext <<_ACEOF
22298 /* end confdefs.h.  */
22299 $ac_includes_default
22300    typedef long long ac__type_sizeof_;
22301 int
22302 main ()
22303 {
22304 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22305 test_array [0] = 0
22306
22307   ;
22308   return 0;
22309 }
22310 _ACEOF
22311 rm -f conftest.$ac_objext
22312 if { (ac_try="$ac_compile"
22313 case "(($ac_try" in
22314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22315   *) ac_try_echo=$ac_try;;
22316 esac
22317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22318   (eval "$ac_compile") 2>conftest.er1
22319   ac_status=$?
22320   grep -v '^ *+' conftest.er1 >conftest.err
22321   rm -f conftest.er1
22322   cat conftest.err >&5
22323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22324   (exit $ac_status); } && {
22325          test -z "$ac_c_werror_flag" ||
22326          test ! -s conftest.err
22327        } && test -s conftest.$ac_objext; then
22328   ac_hi=$ac_mid
22329 else
22330   echo "$as_me: failed program was:" >&5
22331 sed 's/^/| /' conftest.$ac_ext >&5
22332
22333         ac_lo=`expr '(' $ac_mid ')' + 1`
22334 fi
22335
22336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22337 done
22338 case $ac_lo in
22339 ?*) ac_cv_sizeof_long_long=$ac_lo;;
22340 '') if test "$ac_cv_type_long_long" = yes; then
22341      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22342 See \`config.log' for more details." >&5
22343 echo "$as_me: error: cannot compute sizeof (long long)
22344 See \`config.log' for more details." >&2;}
22345    { (exit 77); exit 77; }; }
22346    else
22347      ac_cv_sizeof_long_long=0
22348    fi ;;
22349 esac
22350 else
22351   cat >conftest.$ac_ext <<_ACEOF
22352 /* confdefs.h.  */
22353 _ACEOF
22354 cat confdefs.h >>conftest.$ac_ext
22355 cat >>conftest.$ac_ext <<_ACEOF
22356 /* end confdefs.h.  */
22357 $ac_includes_default
22358    typedef long long ac__type_sizeof_;
22359 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22360 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22361 #include <stdio.h>
22362 #include <stdlib.h>
22363 int
22364 main ()
22365 {
22366
22367   FILE *f = fopen ("conftest.val", "w");
22368   if (! f)
22369     return 1;
22370   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22371     {
22372       long int i = longval ();
22373       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22374         return 1;
22375       fprintf (f, "%ld\n", i);
22376     }
22377   else
22378     {
22379       unsigned long int i = ulongval ();
22380       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22381         return 1;
22382       fprintf (f, "%lu\n", i);
22383     }
22384   return ferror (f) || fclose (f) != 0;
22385
22386   ;
22387   return 0;
22388 }
22389 _ACEOF
22390 rm -f conftest$ac_exeext
22391 if { (ac_try="$ac_link"
22392 case "(($ac_try" in
22393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22394   *) ac_try_echo=$ac_try;;
22395 esac
22396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22397   (eval "$ac_link") 2>&5
22398   ac_status=$?
22399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22400   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22401   { (case "(($ac_try" in
22402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22403   *) ac_try_echo=$ac_try;;
22404 esac
22405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22406   (eval "$ac_try") 2>&5
22407   ac_status=$?
22408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22409   (exit $ac_status); }; }; then
22410   ac_cv_sizeof_long_long=`cat conftest.val`
22411 else
22412   echo "$as_me: program exited with status $ac_status" >&5
22413 echo "$as_me: failed program was:" >&5
22414 sed 's/^/| /' conftest.$ac_ext >&5
22415
22416 ( exit $ac_status )
22417 if test "$ac_cv_type_long_long" = yes; then
22418      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22419 See \`config.log' for more details." >&5
22420 echo "$as_me: error: cannot compute sizeof (long long)
22421 See \`config.log' for more details." >&2;}
22422    { (exit 77); exit 77; }; }
22423    else
22424      ac_cv_sizeof_long_long=0
22425    fi
22426 fi
22427 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22428 fi
22429 rm -f conftest.val
22430 fi
22431 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
22432 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
22433
22434
22435
22436 cat >>confdefs.h <<_ACEOF
22437 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22438 _ACEOF
22439
22440
22441     ;;
22442     *-hp-hpux* )
22443         { echo "$as_me:$LINENO: checking for long long" >&5
22444 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
22445 if test "${ac_cv_type_long_long+set}" = set; then
22446   echo $ECHO_N "(cached) $ECHO_C" >&6
22447 else
22448   cat >conftest.$ac_ext <<_ACEOF
22449 /* confdefs.h.  */
22450 _ACEOF
22451 cat confdefs.h >>conftest.$ac_ext
22452 cat >>conftest.$ac_ext <<_ACEOF
22453 /* end confdefs.h.  */
22454 $ac_includes_default
22455 typedef long long ac__type_new_;
22456 int
22457 main ()
22458 {
22459 if ((ac__type_new_ *) 0)
22460   return 0;
22461 if (sizeof (ac__type_new_))
22462   return 0;
22463   ;
22464   return 0;
22465 }
22466 _ACEOF
22467 rm -f conftest.$ac_objext
22468 if { (ac_try="$ac_compile"
22469 case "(($ac_try" in
22470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22471   *) ac_try_echo=$ac_try;;
22472 esac
22473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22474   (eval "$ac_compile") 2>conftest.er1
22475   ac_status=$?
22476   grep -v '^ *+' conftest.er1 >conftest.err
22477   rm -f conftest.er1
22478   cat conftest.err >&5
22479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22480   (exit $ac_status); } && {
22481          test -z "$ac_c_werror_flag" ||
22482          test ! -s conftest.err
22483        } && test -s conftest.$ac_objext; then
22484   ac_cv_type_long_long=yes
22485 else
22486   echo "$as_me: failed program was:" >&5
22487 sed 's/^/| /' conftest.$ac_ext >&5
22488
22489         ac_cv_type_long_long=no
22490 fi
22491
22492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22493 fi
22494 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
22495 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
22496
22497 # The cast to long int works around a bug in the HP C Compiler
22498 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22499 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22500 # This bug is HP SR number 8606223364.
22501 { echo "$as_me:$LINENO: checking size of long long" >&5
22502 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
22503 if test "${ac_cv_sizeof_long_long+set}" = set; then
22504   echo $ECHO_N "(cached) $ECHO_C" >&6
22505 else
22506   if test "$cross_compiling" = yes; then
22507   # Depending upon the size, compute the lo and hi bounds.
22508 cat >conftest.$ac_ext <<_ACEOF
22509 /* confdefs.h.  */
22510 _ACEOF
22511 cat confdefs.h >>conftest.$ac_ext
22512 cat >>conftest.$ac_ext <<_ACEOF
22513 /* end confdefs.h.  */
22514 $ac_includes_default
22515    typedef long long ac__type_sizeof_;
22516 int
22517 main ()
22518 {
22519 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22520 test_array [0] = 0
22521
22522   ;
22523   return 0;
22524 }
22525 _ACEOF
22526 rm -f conftest.$ac_objext
22527 if { (ac_try="$ac_compile"
22528 case "(($ac_try" in
22529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22530   *) ac_try_echo=$ac_try;;
22531 esac
22532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22533   (eval "$ac_compile") 2>conftest.er1
22534   ac_status=$?
22535   grep -v '^ *+' conftest.er1 >conftest.err
22536   rm -f conftest.er1
22537   cat conftest.err >&5
22538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22539   (exit $ac_status); } && {
22540          test -z "$ac_c_werror_flag" ||
22541          test ! -s conftest.err
22542        } && test -s conftest.$ac_objext; then
22543   ac_lo=0 ac_mid=0
22544   while :; do
22545     cat >conftest.$ac_ext <<_ACEOF
22546 /* confdefs.h.  */
22547 _ACEOF
22548 cat confdefs.h >>conftest.$ac_ext
22549 cat >>conftest.$ac_ext <<_ACEOF
22550 /* end confdefs.h.  */
22551 $ac_includes_default
22552    typedef long long ac__type_sizeof_;
22553 int
22554 main ()
22555 {
22556 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22557 test_array [0] = 0
22558
22559   ;
22560   return 0;
22561 }
22562 _ACEOF
22563 rm -f conftest.$ac_objext
22564 if { (ac_try="$ac_compile"
22565 case "(($ac_try" in
22566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22567   *) ac_try_echo=$ac_try;;
22568 esac
22569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22570   (eval "$ac_compile") 2>conftest.er1
22571   ac_status=$?
22572   grep -v '^ *+' conftest.er1 >conftest.err
22573   rm -f conftest.er1
22574   cat conftest.err >&5
22575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22576   (exit $ac_status); } && {
22577          test -z "$ac_c_werror_flag" ||
22578          test ! -s conftest.err
22579        } && test -s conftest.$ac_objext; then
22580   ac_hi=$ac_mid; break
22581 else
22582   echo "$as_me: failed program was:" >&5
22583 sed 's/^/| /' conftest.$ac_ext >&5
22584
22585         ac_lo=`expr $ac_mid + 1`
22586                         if test $ac_lo -le $ac_mid; then
22587                           ac_lo= ac_hi=
22588                           break
22589                         fi
22590                         ac_mid=`expr 2 '*' $ac_mid + 1`
22591 fi
22592
22593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22594   done
22595 else
22596   echo "$as_me: failed program was:" >&5
22597 sed 's/^/| /' conftest.$ac_ext >&5
22598
22599         cat >conftest.$ac_ext <<_ACEOF
22600 /* confdefs.h.  */
22601 _ACEOF
22602 cat confdefs.h >>conftest.$ac_ext
22603 cat >>conftest.$ac_ext <<_ACEOF
22604 /* end confdefs.h.  */
22605 $ac_includes_default
22606    typedef long long ac__type_sizeof_;
22607 int
22608 main ()
22609 {
22610 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22611 test_array [0] = 0
22612
22613   ;
22614   return 0;
22615 }
22616 _ACEOF
22617 rm -f conftest.$ac_objext
22618 if { (ac_try="$ac_compile"
22619 case "(($ac_try" in
22620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22621   *) ac_try_echo=$ac_try;;
22622 esac
22623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22624   (eval "$ac_compile") 2>conftest.er1
22625   ac_status=$?
22626   grep -v '^ *+' conftest.er1 >conftest.err
22627   rm -f conftest.er1
22628   cat conftest.err >&5
22629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22630   (exit $ac_status); } && {
22631          test -z "$ac_c_werror_flag" ||
22632          test ! -s conftest.err
22633        } && test -s conftest.$ac_objext; then
22634   ac_hi=-1 ac_mid=-1
22635   while :; do
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_lo=$ac_mid; break
22672 else
22673   echo "$as_me: failed program was:" >&5
22674 sed 's/^/| /' conftest.$ac_ext >&5
22675
22676         ac_hi=`expr '(' $ac_mid ')' - 1`
22677                         if test $ac_mid -le $ac_hi; then
22678                           ac_lo= ac_hi=
22679                           break
22680                         fi
22681                         ac_mid=`expr 2 '*' $ac_mid`
22682 fi
22683
22684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22685   done
22686 else
22687   echo "$as_me: failed program was:" >&5
22688 sed 's/^/| /' conftest.$ac_ext >&5
22689
22690         ac_lo= ac_hi=
22691 fi
22692
22693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22694 fi
22695
22696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22697 # Binary search between lo and hi bounds.
22698 while test "x$ac_lo" != "x$ac_hi"; do
22699   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22700   cat >conftest.$ac_ext <<_ACEOF
22701 /* confdefs.h.  */
22702 _ACEOF
22703 cat confdefs.h >>conftest.$ac_ext
22704 cat >>conftest.$ac_ext <<_ACEOF
22705 /* end confdefs.h.  */
22706 $ac_includes_default
22707    typedef long long ac__type_sizeof_;
22708 int
22709 main ()
22710 {
22711 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22712 test_array [0] = 0
22713
22714   ;
22715   return 0;
22716 }
22717 _ACEOF
22718 rm -f conftest.$ac_objext
22719 if { (ac_try="$ac_compile"
22720 case "(($ac_try" in
22721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22722   *) ac_try_echo=$ac_try;;
22723 esac
22724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22725   (eval "$ac_compile") 2>conftest.er1
22726   ac_status=$?
22727   grep -v '^ *+' conftest.er1 >conftest.err
22728   rm -f conftest.er1
22729   cat conftest.err >&5
22730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22731   (exit $ac_status); } && {
22732          test -z "$ac_c_werror_flag" ||
22733          test ! -s conftest.err
22734        } && test -s conftest.$ac_objext; then
22735   ac_hi=$ac_mid
22736 else
22737   echo "$as_me: failed program was:" >&5
22738 sed 's/^/| /' conftest.$ac_ext >&5
22739
22740         ac_lo=`expr '(' $ac_mid ')' + 1`
22741 fi
22742
22743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22744 done
22745 case $ac_lo in
22746 ?*) ac_cv_sizeof_long_long=$ac_lo;;
22747 '') if test "$ac_cv_type_long_long" = yes; then
22748      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22749 See \`config.log' for more details." >&5
22750 echo "$as_me: error: cannot compute sizeof (long long)
22751 See \`config.log' for more details." >&2;}
22752    { (exit 77); exit 77; }; }
22753    else
22754      ac_cv_sizeof_long_long=0
22755    fi ;;
22756 esac
22757 else
22758   cat >conftest.$ac_ext <<_ACEOF
22759 /* confdefs.h.  */
22760 _ACEOF
22761 cat confdefs.h >>conftest.$ac_ext
22762 cat >>conftest.$ac_ext <<_ACEOF
22763 /* end confdefs.h.  */
22764 $ac_includes_default
22765    typedef long long ac__type_sizeof_;
22766 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22767 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22768 #include <stdio.h>
22769 #include <stdlib.h>
22770 int
22771 main ()
22772 {
22773
22774   FILE *f = fopen ("conftest.val", "w");
22775   if (! f)
22776     return 1;
22777   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22778     {
22779       long int i = longval ();
22780       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22781         return 1;
22782       fprintf (f, "%ld\n", i);
22783     }
22784   else
22785     {
22786       unsigned long int i = ulongval ();
22787       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22788         return 1;
22789       fprintf (f, "%lu\n", i);
22790     }
22791   return ferror (f) || fclose (f) != 0;
22792
22793   ;
22794   return 0;
22795 }
22796 _ACEOF
22797 rm -f conftest$ac_exeext
22798 if { (ac_try="$ac_link"
22799 case "(($ac_try" in
22800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22801   *) ac_try_echo=$ac_try;;
22802 esac
22803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22804   (eval "$ac_link") 2>&5
22805   ac_status=$?
22806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22807   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22808   { (case "(($ac_try" in
22809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22810   *) ac_try_echo=$ac_try;;
22811 esac
22812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22813   (eval "$ac_try") 2>&5
22814   ac_status=$?
22815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22816   (exit $ac_status); }; }; then
22817   ac_cv_sizeof_long_long=`cat conftest.val`
22818 else
22819   echo "$as_me: program exited with status $ac_status" >&5
22820 echo "$as_me: failed program was:" >&5
22821 sed 's/^/| /' conftest.$ac_ext >&5
22822
22823 ( exit $ac_status )
22824 if test "$ac_cv_type_long_long" = yes; then
22825      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22826 See \`config.log' for more details." >&5
22827 echo "$as_me: error: cannot compute sizeof (long long)
22828 See \`config.log' for more details." >&2;}
22829    { (exit 77); exit 77; }; }
22830    else
22831      ac_cv_sizeof_long_long=0
22832    fi
22833 fi
22834 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22835 fi
22836 rm -f conftest.val
22837 fi
22838 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
22839 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
22840
22841
22842
22843 cat >>confdefs.h <<_ACEOF
22844 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22845 _ACEOF
22846
22847
22848         if test "$ac_cv_sizeof_long_long" != 0; then
22849                         CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
22850         fi
22851     ;;
22852     * )
22853         { echo "$as_me:$LINENO: checking for long long" >&5
22854 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
22855 if test "${ac_cv_type_long_long+set}" = set; then
22856   echo $ECHO_N "(cached) $ECHO_C" >&6
22857 else
22858   cat >conftest.$ac_ext <<_ACEOF
22859 /* confdefs.h.  */
22860 _ACEOF
22861 cat confdefs.h >>conftest.$ac_ext
22862 cat >>conftest.$ac_ext <<_ACEOF
22863 /* end confdefs.h.  */
22864 $ac_includes_default
22865 typedef long long ac__type_new_;
22866 int
22867 main ()
22868 {
22869 if ((ac__type_new_ *) 0)
22870   return 0;
22871 if (sizeof (ac__type_new_))
22872   return 0;
22873   ;
22874   return 0;
22875 }
22876 _ACEOF
22877 rm -f conftest.$ac_objext
22878 if { (ac_try="$ac_compile"
22879 case "(($ac_try" in
22880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22881   *) ac_try_echo=$ac_try;;
22882 esac
22883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22884   (eval "$ac_compile") 2>conftest.er1
22885   ac_status=$?
22886   grep -v '^ *+' conftest.er1 >conftest.err
22887   rm -f conftest.er1
22888   cat conftest.err >&5
22889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22890   (exit $ac_status); } && {
22891          test -z "$ac_c_werror_flag" ||
22892          test ! -s conftest.err
22893        } && test -s conftest.$ac_objext; then
22894   ac_cv_type_long_long=yes
22895 else
22896   echo "$as_me: failed program was:" >&5
22897 sed 's/^/| /' conftest.$ac_ext >&5
22898
22899         ac_cv_type_long_long=no
22900 fi
22901
22902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22903 fi
22904 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
22905 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
22906
22907 # The cast to long int works around a bug in the HP C Compiler
22908 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22909 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22910 # This bug is HP SR number 8606223364.
22911 { echo "$as_me:$LINENO: checking size of long long" >&5
22912 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
22913 if test "${ac_cv_sizeof_long_long+set}" = set; then
22914   echo $ECHO_N "(cached) $ECHO_C" >&6
22915 else
22916   if test "$cross_compiling" = yes; then
22917   # Depending upon the size, compute the lo and hi bounds.
22918 cat >conftest.$ac_ext <<_ACEOF
22919 /* confdefs.h.  */
22920 _ACEOF
22921 cat confdefs.h >>conftest.$ac_ext
22922 cat >>conftest.$ac_ext <<_ACEOF
22923 /* end confdefs.h.  */
22924 $ac_includes_default
22925    typedef long long ac__type_sizeof_;
22926 int
22927 main ()
22928 {
22929 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22930 test_array [0] = 0
22931
22932   ;
22933   return 0;
22934 }
22935 _ACEOF
22936 rm -f conftest.$ac_objext
22937 if { (ac_try="$ac_compile"
22938 case "(($ac_try" in
22939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22940   *) ac_try_echo=$ac_try;;
22941 esac
22942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22943   (eval "$ac_compile") 2>conftest.er1
22944   ac_status=$?
22945   grep -v '^ *+' conftest.er1 >conftest.err
22946   rm -f conftest.er1
22947   cat conftest.err >&5
22948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22949   (exit $ac_status); } && {
22950          test -z "$ac_c_werror_flag" ||
22951          test ! -s conftest.err
22952        } && test -s conftest.$ac_objext; then
22953   ac_lo=0 ac_mid=0
22954   while :; do
22955     cat >conftest.$ac_ext <<_ACEOF
22956 /* confdefs.h.  */
22957 _ACEOF
22958 cat confdefs.h >>conftest.$ac_ext
22959 cat >>conftest.$ac_ext <<_ACEOF
22960 /* end confdefs.h.  */
22961 $ac_includes_default
22962    typedef long long ac__type_sizeof_;
22963 int
22964 main ()
22965 {
22966 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22967 test_array [0] = 0
22968
22969   ;
22970   return 0;
22971 }
22972 _ACEOF
22973 rm -f conftest.$ac_objext
22974 if { (ac_try="$ac_compile"
22975 case "(($ac_try" in
22976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22977   *) ac_try_echo=$ac_try;;
22978 esac
22979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22980   (eval "$ac_compile") 2>conftest.er1
22981   ac_status=$?
22982   grep -v '^ *+' conftest.er1 >conftest.err
22983   rm -f conftest.er1
22984   cat conftest.err >&5
22985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22986   (exit $ac_status); } && {
22987          test -z "$ac_c_werror_flag" ||
22988          test ! -s conftest.err
22989        } && test -s conftest.$ac_objext; then
22990   ac_hi=$ac_mid; break
22991 else
22992   echo "$as_me: failed program was:" >&5
22993 sed 's/^/| /' conftest.$ac_ext >&5
22994
22995         ac_lo=`expr $ac_mid + 1`
22996                         if test $ac_lo -le $ac_mid; then
22997                           ac_lo= ac_hi=
22998                           break
22999                         fi
23000                         ac_mid=`expr 2 '*' $ac_mid + 1`
23001 fi
23002
23003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23004   done
23005 else
23006   echo "$as_me: failed program was:" >&5
23007 sed 's/^/| /' conftest.$ac_ext >&5
23008
23009         cat >conftest.$ac_ext <<_ACEOF
23010 /* confdefs.h.  */
23011 _ACEOF
23012 cat confdefs.h >>conftest.$ac_ext
23013 cat >>conftest.$ac_ext <<_ACEOF
23014 /* end confdefs.h.  */
23015 $ac_includes_default
23016    typedef long long ac__type_sizeof_;
23017 int
23018 main ()
23019 {
23020 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23021 test_array [0] = 0
23022
23023   ;
23024   return 0;
23025 }
23026 _ACEOF
23027 rm -f conftest.$ac_objext
23028 if { (ac_try="$ac_compile"
23029 case "(($ac_try" in
23030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23031   *) ac_try_echo=$ac_try;;
23032 esac
23033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23034   (eval "$ac_compile") 2>conftest.er1
23035   ac_status=$?
23036   grep -v '^ *+' conftest.er1 >conftest.err
23037   rm -f conftest.er1
23038   cat conftest.err >&5
23039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23040   (exit $ac_status); } && {
23041          test -z "$ac_c_werror_flag" ||
23042          test ! -s conftest.err
23043        } && test -s conftest.$ac_objext; then
23044   ac_hi=-1 ac_mid=-1
23045   while :; do
23046     cat >conftest.$ac_ext <<_ACEOF
23047 /* confdefs.h.  */
23048 _ACEOF
23049 cat confdefs.h >>conftest.$ac_ext
23050 cat >>conftest.$ac_ext <<_ACEOF
23051 /* end confdefs.h.  */
23052 $ac_includes_default
23053    typedef long long ac__type_sizeof_;
23054 int
23055 main ()
23056 {
23057 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23058 test_array [0] = 0
23059
23060   ;
23061   return 0;
23062 }
23063 _ACEOF
23064 rm -f conftest.$ac_objext
23065 if { (ac_try="$ac_compile"
23066 case "(($ac_try" in
23067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23068   *) ac_try_echo=$ac_try;;
23069 esac
23070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23071   (eval "$ac_compile") 2>conftest.er1
23072   ac_status=$?
23073   grep -v '^ *+' conftest.er1 >conftest.err
23074   rm -f conftest.er1
23075   cat conftest.err >&5
23076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23077   (exit $ac_status); } && {
23078          test -z "$ac_c_werror_flag" ||
23079          test ! -s conftest.err
23080        } && test -s conftest.$ac_objext; then
23081   ac_lo=$ac_mid; break
23082 else
23083   echo "$as_me: failed program was:" >&5
23084 sed 's/^/| /' conftest.$ac_ext >&5
23085
23086         ac_hi=`expr '(' $ac_mid ')' - 1`
23087                         if test $ac_mid -le $ac_hi; then
23088                           ac_lo= ac_hi=
23089                           break
23090                         fi
23091                         ac_mid=`expr 2 '*' $ac_mid`
23092 fi
23093
23094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23095   done
23096 else
23097   echo "$as_me: failed program was:" >&5
23098 sed 's/^/| /' conftest.$ac_ext >&5
23099
23100         ac_lo= ac_hi=
23101 fi
23102
23103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23104 fi
23105
23106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23107 # Binary search between lo and hi bounds.
23108 while test "x$ac_lo" != "x$ac_hi"; do
23109   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23110   cat >conftest.$ac_ext <<_ACEOF
23111 /* confdefs.h.  */
23112 _ACEOF
23113 cat confdefs.h >>conftest.$ac_ext
23114 cat >>conftest.$ac_ext <<_ACEOF
23115 /* end confdefs.h.  */
23116 $ac_includes_default
23117    typedef long long ac__type_sizeof_;
23118 int
23119 main ()
23120 {
23121 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23122 test_array [0] = 0
23123
23124   ;
23125   return 0;
23126 }
23127 _ACEOF
23128 rm -f conftest.$ac_objext
23129 if { (ac_try="$ac_compile"
23130 case "(($ac_try" in
23131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23132   *) ac_try_echo=$ac_try;;
23133 esac
23134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23135   (eval "$ac_compile") 2>conftest.er1
23136   ac_status=$?
23137   grep -v '^ *+' conftest.er1 >conftest.err
23138   rm -f conftest.er1
23139   cat conftest.err >&5
23140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23141   (exit $ac_status); } && {
23142          test -z "$ac_c_werror_flag" ||
23143          test ! -s conftest.err
23144        } && test -s conftest.$ac_objext; then
23145   ac_hi=$ac_mid
23146 else
23147   echo "$as_me: failed program was:" >&5
23148 sed 's/^/| /' conftest.$ac_ext >&5
23149
23150         ac_lo=`expr '(' $ac_mid ')' + 1`
23151 fi
23152
23153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23154 done
23155 case $ac_lo in
23156 ?*) ac_cv_sizeof_long_long=$ac_lo;;
23157 '') if test "$ac_cv_type_long_long" = yes; then
23158      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23159 See \`config.log' for more details." >&5
23160 echo "$as_me: error: cannot compute sizeof (long long)
23161 See \`config.log' for more details." >&2;}
23162    { (exit 77); exit 77; }; }
23163    else
23164      ac_cv_sizeof_long_long=0
23165    fi ;;
23166 esac
23167 else
23168   cat >conftest.$ac_ext <<_ACEOF
23169 /* confdefs.h.  */
23170 _ACEOF
23171 cat confdefs.h >>conftest.$ac_ext
23172 cat >>conftest.$ac_ext <<_ACEOF
23173 /* end confdefs.h.  */
23174 $ac_includes_default
23175    typedef long long ac__type_sizeof_;
23176 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23177 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23178 #include <stdio.h>
23179 #include <stdlib.h>
23180 int
23181 main ()
23182 {
23183
23184   FILE *f = fopen ("conftest.val", "w");
23185   if (! f)
23186     return 1;
23187   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23188     {
23189       long int i = longval ();
23190       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23191         return 1;
23192       fprintf (f, "%ld\n", i);
23193     }
23194   else
23195     {
23196       unsigned long int i = ulongval ();
23197       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23198         return 1;
23199       fprintf (f, "%lu\n", i);
23200     }
23201   return ferror (f) || fclose (f) != 0;
23202
23203   ;
23204   return 0;
23205 }
23206 _ACEOF
23207 rm -f conftest$ac_exeext
23208 if { (ac_try="$ac_link"
23209 case "(($ac_try" in
23210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23211   *) ac_try_echo=$ac_try;;
23212 esac
23213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23214   (eval "$ac_link") 2>&5
23215   ac_status=$?
23216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23217   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23218   { (case "(($ac_try" in
23219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23220   *) ac_try_echo=$ac_try;;
23221 esac
23222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23223   (eval "$ac_try") 2>&5
23224   ac_status=$?
23225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23226   (exit $ac_status); }; }; then
23227   ac_cv_sizeof_long_long=`cat conftest.val`
23228 else
23229   echo "$as_me: program exited with status $ac_status" >&5
23230 echo "$as_me: failed program was:" >&5
23231 sed 's/^/| /' conftest.$ac_ext >&5
23232
23233 ( exit $ac_status )
23234 if test "$ac_cv_type_long_long" = yes; then
23235      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23236 See \`config.log' for more details." >&5
23237 echo "$as_me: error: cannot compute sizeof (long long)
23238 See \`config.log' for more details." >&2;}
23239    { (exit 77); exit 77; }; }
23240    else
23241      ac_cv_sizeof_long_long=0
23242    fi
23243 fi
23244 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23245 fi
23246 rm -f conftest.val
23247 fi
23248 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
23249 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
23250
23251
23252
23253 cat >>confdefs.h <<_ACEOF
23254 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23255 _ACEOF
23256
23257
23258 esac
23259
23260 { echo "$as_me:$LINENO: checking for wchar_t" >&5
23261 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
23262 if test "${ac_cv_type_wchar_t+set}" = set; then
23263   echo $ECHO_N "(cached) $ECHO_C" >&6
23264 else
23265   cat >conftest.$ac_ext <<_ACEOF
23266 /* confdefs.h.  */
23267 _ACEOF
23268 cat confdefs.h >>conftest.$ac_ext
23269 cat >>conftest.$ac_ext <<_ACEOF
23270 /* end confdefs.h.  */
23271
23272         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23273         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23274         #  error "fake wchar_t"
23275         #endif
23276         #ifdef HAVE_WCHAR_H
23277         #  ifdef __CYGWIN__
23278         #    include <stddef.h>
23279         #  endif
23280         #  include <wchar.h>
23281         #endif
23282         #ifdef HAVE_STDLIB_H
23283         #  include <stdlib.h>
23284         #endif
23285         #include <stdio.h>
23286
23287
23288
23289 typedef wchar_t ac__type_new_;
23290 int
23291 main ()
23292 {
23293 if ((ac__type_new_ *) 0)
23294   return 0;
23295 if (sizeof (ac__type_new_))
23296   return 0;
23297   ;
23298   return 0;
23299 }
23300 _ACEOF
23301 rm -f conftest.$ac_objext
23302 if { (ac_try="$ac_compile"
23303 case "(($ac_try" in
23304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23305   *) ac_try_echo=$ac_try;;
23306 esac
23307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23308   (eval "$ac_compile") 2>conftest.er1
23309   ac_status=$?
23310   grep -v '^ *+' conftest.er1 >conftest.err
23311   rm -f conftest.er1
23312   cat conftest.err >&5
23313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23314   (exit $ac_status); } && {
23315          test -z "$ac_c_werror_flag" ||
23316          test ! -s conftest.err
23317        } && test -s conftest.$ac_objext; then
23318   ac_cv_type_wchar_t=yes
23319 else
23320   echo "$as_me: failed program was:" >&5
23321 sed 's/^/| /' conftest.$ac_ext >&5
23322
23323         ac_cv_type_wchar_t=no
23324 fi
23325
23326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23327 fi
23328 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
23329 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
23330
23331 # The cast to long int works around a bug in the HP C Compiler
23332 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23333 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23334 # This bug is HP SR number 8606223364.
23335 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
23336 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
23337 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
23338   echo $ECHO_N "(cached) $ECHO_C" >&6
23339 else
23340   if test "$cross_compiling" = yes; then
23341   # Depending upon the size, compute the lo and hi bounds.
23342 cat >conftest.$ac_ext <<_ACEOF
23343 /* confdefs.h.  */
23344 _ACEOF
23345 cat confdefs.h >>conftest.$ac_ext
23346 cat >>conftest.$ac_ext <<_ACEOF
23347 /* end confdefs.h.  */
23348
23349         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23350         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23351         #  error "fake wchar_t"
23352         #endif
23353         #ifdef HAVE_WCHAR_H
23354         #  ifdef __CYGWIN__
23355         #    include <stddef.h>
23356         #  endif
23357         #  include <wchar.h>
23358         #endif
23359         #ifdef HAVE_STDLIB_H
23360         #  include <stdlib.h>
23361         #endif
23362         #include <stdio.h>
23363
23364
23365
23366    typedef wchar_t ac__type_sizeof_;
23367 int
23368 main ()
23369 {
23370 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23371 test_array [0] = 0
23372
23373   ;
23374   return 0;
23375 }
23376 _ACEOF
23377 rm -f conftest.$ac_objext
23378 if { (ac_try="$ac_compile"
23379 case "(($ac_try" in
23380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23381   *) ac_try_echo=$ac_try;;
23382 esac
23383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23384   (eval "$ac_compile") 2>conftest.er1
23385   ac_status=$?
23386   grep -v '^ *+' conftest.er1 >conftest.err
23387   rm -f conftest.er1
23388   cat conftest.err >&5
23389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23390   (exit $ac_status); } && {
23391          test -z "$ac_c_werror_flag" ||
23392          test ! -s conftest.err
23393        } && test -s conftest.$ac_objext; then
23394   ac_lo=0 ac_mid=0
23395   while :; do
23396     cat >conftest.$ac_ext <<_ACEOF
23397 /* confdefs.h.  */
23398 _ACEOF
23399 cat confdefs.h >>conftest.$ac_ext
23400 cat >>conftest.$ac_ext <<_ACEOF
23401 /* end confdefs.h.  */
23402
23403         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23404         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23405         #  error "fake wchar_t"
23406         #endif
23407         #ifdef HAVE_WCHAR_H
23408         #  ifdef __CYGWIN__
23409         #    include <stddef.h>
23410         #  endif
23411         #  include <wchar.h>
23412         #endif
23413         #ifdef HAVE_STDLIB_H
23414         #  include <stdlib.h>
23415         #endif
23416         #include <stdio.h>
23417
23418
23419
23420    typedef wchar_t ac__type_sizeof_;
23421 int
23422 main ()
23423 {
23424 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23425 test_array [0] = 0
23426
23427   ;
23428   return 0;
23429 }
23430 _ACEOF
23431 rm -f conftest.$ac_objext
23432 if { (ac_try="$ac_compile"
23433 case "(($ac_try" in
23434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23435   *) ac_try_echo=$ac_try;;
23436 esac
23437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23438   (eval "$ac_compile") 2>conftest.er1
23439   ac_status=$?
23440   grep -v '^ *+' conftest.er1 >conftest.err
23441   rm -f conftest.er1
23442   cat conftest.err >&5
23443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23444   (exit $ac_status); } && {
23445          test -z "$ac_c_werror_flag" ||
23446          test ! -s conftest.err
23447        } && test -s conftest.$ac_objext; then
23448   ac_hi=$ac_mid; break
23449 else
23450   echo "$as_me: failed program was:" >&5
23451 sed 's/^/| /' conftest.$ac_ext >&5
23452
23453         ac_lo=`expr $ac_mid + 1`
23454                         if test $ac_lo -le $ac_mid; then
23455                           ac_lo= ac_hi=
23456                           break
23457                         fi
23458                         ac_mid=`expr 2 '*' $ac_mid + 1`
23459 fi
23460
23461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23462   done
23463 else
23464   echo "$as_me: failed program was:" >&5
23465 sed 's/^/| /' conftest.$ac_ext >&5
23466
23467         cat >conftest.$ac_ext <<_ACEOF
23468 /* confdefs.h.  */
23469 _ACEOF
23470 cat confdefs.h >>conftest.$ac_ext
23471 cat >>conftest.$ac_ext <<_ACEOF
23472 /* end confdefs.h.  */
23473
23474         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23475         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23476         #  error "fake wchar_t"
23477         #endif
23478         #ifdef HAVE_WCHAR_H
23479         #  ifdef __CYGWIN__
23480         #    include <stddef.h>
23481         #  endif
23482         #  include <wchar.h>
23483         #endif
23484         #ifdef HAVE_STDLIB_H
23485         #  include <stdlib.h>
23486         #endif
23487         #include <stdio.h>
23488
23489
23490
23491    typedef wchar_t ac__type_sizeof_;
23492 int
23493 main ()
23494 {
23495 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23496 test_array [0] = 0
23497
23498   ;
23499   return 0;
23500 }
23501 _ACEOF
23502 rm -f conftest.$ac_objext
23503 if { (ac_try="$ac_compile"
23504 case "(($ac_try" in
23505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23506   *) ac_try_echo=$ac_try;;
23507 esac
23508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23509   (eval "$ac_compile") 2>conftest.er1
23510   ac_status=$?
23511   grep -v '^ *+' conftest.er1 >conftest.err
23512   rm -f conftest.er1
23513   cat conftest.err >&5
23514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23515   (exit $ac_status); } && {
23516          test -z "$ac_c_werror_flag" ||
23517          test ! -s conftest.err
23518        } && test -s conftest.$ac_objext; then
23519   ac_hi=-1 ac_mid=-1
23520   while :; do
23521     cat >conftest.$ac_ext <<_ACEOF
23522 /* confdefs.h.  */
23523 _ACEOF
23524 cat confdefs.h >>conftest.$ac_ext
23525 cat >>conftest.$ac_ext <<_ACEOF
23526 /* end confdefs.h.  */
23527
23528         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23529         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23530         #  error "fake wchar_t"
23531         #endif
23532         #ifdef HAVE_WCHAR_H
23533         #  ifdef __CYGWIN__
23534         #    include <stddef.h>
23535         #  endif
23536         #  include <wchar.h>
23537         #endif
23538         #ifdef HAVE_STDLIB_H
23539         #  include <stdlib.h>
23540         #endif
23541         #include <stdio.h>
23542
23543
23544
23545    typedef wchar_t ac__type_sizeof_;
23546 int
23547 main ()
23548 {
23549 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23550 test_array [0] = 0
23551
23552   ;
23553   return 0;
23554 }
23555 _ACEOF
23556 rm -f conftest.$ac_objext
23557 if { (ac_try="$ac_compile"
23558 case "(($ac_try" in
23559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23560   *) ac_try_echo=$ac_try;;
23561 esac
23562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23563   (eval "$ac_compile") 2>conftest.er1
23564   ac_status=$?
23565   grep -v '^ *+' conftest.er1 >conftest.err
23566   rm -f conftest.er1
23567   cat conftest.err >&5
23568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23569   (exit $ac_status); } && {
23570          test -z "$ac_c_werror_flag" ||
23571          test ! -s conftest.err
23572        } && test -s conftest.$ac_objext; then
23573   ac_lo=$ac_mid; break
23574 else
23575   echo "$as_me: failed program was:" >&5
23576 sed 's/^/| /' conftest.$ac_ext >&5
23577
23578         ac_hi=`expr '(' $ac_mid ')' - 1`
23579                         if test $ac_mid -le $ac_hi; then
23580                           ac_lo= ac_hi=
23581                           break
23582                         fi
23583                         ac_mid=`expr 2 '*' $ac_mid`
23584 fi
23585
23586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23587   done
23588 else
23589   echo "$as_me: failed program was:" >&5
23590 sed 's/^/| /' conftest.$ac_ext >&5
23591
23592         ac_lo= ac_hi=
23593 fi
23594
23595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23596 fi
23597
23598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23599 # Binary search between lo and hi bounds.
23600 while test "x$ac_lo" != "x$ac_hi"; do
23601   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23602   cat >conftest.$ac_ext <<_ACEOF
23603 /* confdefs.h.  */
23604 _ACEOF
23605 cat confdefs.h >>conftest.$ac_ext
23606 cat >>conftest.$ac_ext <<_ACEOF
23607 /* end confdefs.h.  */
23608
23609         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23610         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23611         #  error "fake wchar_t"
23612         #endif
23613         #ifdef HAVE_WCHAR_H
23614         #  ifdef __CYGWIN__
23615         #    include <stddef.h>
23616         #  endif
23617         #  include <wchar.h>
23618         #endif
23619         #ifdef HAVE_STDLIB_H
23620         #  include <stdlib.h>
23621         #endif
23622         #include <stdio.h>
23623
23624
23625
23626    typedef wchar_t ac__type_sizeof_;
23627 int
23628 main ()
23629 {
23630 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23631 test_array [0] = 0
23632
23633   ;
23634   return 0;
23635 }
23636 _ACEOF
23637 rm -f conftest.$ac_objext
23638 if { (ac_try="$ac_compile"
23639 case "(($ac_try" in
23640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23641   *) ac_try_echo=$ac_try;;
23642 esac
23643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23644   (eval "$ac_compile") 2>conftest.er1
23645   ac_status=$?
23646   grep -v '^ *+' conftest.er1 >conftest.err
23647   rm -f conftest.er1
23648   cat conftest.err >&5
23649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23650   (exit $ac_status); } && {
23651          test -z "$ac_c_werror_flag" ||
23652          test ! -s conftest.err
23653        } && test -s conftest.$ac_objext; then
23654   ac_hi=$ac_mid
23655 else
23656   echo "$as_me: failed program was:" >&5
23657 sed 's/^/| /' conftest.$ac_ext >&5
23658
23659         ac_lo=`expr '(' $ac_mid ')' + 1`
23660 fi
23661
23662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23663 done
23664 case $ac_lo in
23665 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
23666 '') if test "$ac_cv_type_wchar_t" = yes; then
23667      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
23668 See \`config.log' for more details." >&5
23669 echo "$as_me: error: cannot compute sizeof (wchar_t)
23670 See \`config.log' for more details." >&2;}
23671    { (exit 77); exit 77; }; }
23672    else
23673      ac_cv_sizeof_wchar_t=0
23674    fi ;;
23675 esac
23676 else
23677   cat >conftest.$ac_ext <<_ACEOF
23678 /* confdefs.h.  */
23679 _ACEOF
23680 cat confdefs.h >>conftest.$ac_ext
23681 cat >>conftest.$ac_ext <<_ACEOF
23682 /* end confdefs.h.  */
23683
23684         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23685         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23686         #  error "fake wchar_t"
23687         #endif
23688         #ifdef HAVE_WCHAR_H
23689         #  ifdef __CYGWIN__
23690         #    include <stddef.h>
23691         #  endif
23692         #  include <wchar.h>
23693         #endif
23694         #ifdef HAVE_STDLIB_H
23695         #  include <stdlib.h>
23696         #endif
23697         #include <stdio.h>
23698
23699
23700
23701    typedef wchar_t ac__type_sizeof_;
23702 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23703 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23704 #include <stdio.h>
23705 #include <stdlib.h>
23706 int
23707 main ()
23708 {
23709
23710   FILE *f = fopen ("conftest.val", "w");
23711   if (! f)
23712     return 1;
23713   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23714     {
23715       long int i = longval ();
23716       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23717         return 1;
23718       fprintf (f, "%ld\n", i);
23719     }
23720   else
23721     {
23722       unsigned long int i = ulongval ();
23723       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23724         return 1;
23725       fprintf (f, "%lu\n", i);
23726     }
23727   return ferror (f) || fclose (f) != 0;
23728
23729   ;
23730   return 0;
23731 }
23732 _ACEOF
23733 rm -f conftest$ac_exeext
23734 if { (ac_try="$ac_link"
23735 case "(($ac_try" in
23736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23737   *) ac_try_echo=$ac_try;;
23738 esac
23739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23740   (eval "$ac_link") 2>&5
23741   ac_status=$?
23742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23743   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23744   { (case "(($ac_try" in
23745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23746   *) ac_try_echo=$ac_try;;
23747 esac
23748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23749   (eval "$ac_try") 2>&5
23750   ac_status=$?
23751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23752   (exit $ac_status); }; }; then
23753   ac_cv_sizeof_wchar_t=`cat conftest.val`
23754 else
23755   echo "$as_me: program exited with status $ac_status" >&5
23756 echo "$as_me: failed program was:" >&5
23757 sed 's/^/| /' conftest.$ac_ext >&5
23758
23759 ( exit $ac_status )
23760 if test "$ac_cv_type_wchar_t" = yes; then
23761      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
23762 See \`config.log' for more details." >&5
23763 echo "$as_me: error: cannot compute sizeof (wchar_t)
23764 See \`config.log' for more details." >&2;}
23765    { (exit 77); exit 77; }; }
23766    else
23767      ac_cv_sizeof_wchar_t=0
23768    fi
23769 fi
23770 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23771 fi
23772 rm -f conftest.val
23773 fi
23774 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
23775 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
23776
23777
23778
23779 cat >>confdefs.h <<_ACEOF
23780 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
23781 _ACEOF
23782
23783
23784 if test "$ac_cv_sizeof_wchar_t" != 0; then
23785     wxUSE_WCHAR_T=yes
23786 else
23787     wxUSE_WCHAR_T=no
23788 fi
23789
23790 { echo "$as_me:$LINENO: checking for va_copy" >&5
23791 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
23792 if test "${wx_cv_func_va_copy+set}" = set; then
23793   echo $ECHO_N "(cached) $ECHO_C" >&6
23794 else
23795
23796         ac_ext=cpp
23797 ac_cpp='$CXXCPP $CPPFLAGS'
23798 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23799 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23800 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23801
23802         cat >conftest.$ac_ext <<_ACEOF
23803
23804             #include <stdarg.h>
23805             void foo(char *f, ...)
23806             {
23807                 va_list ap1, ap2;
23808                 va_start(ap1, f);
23809                 va_copy(ap2, ap1);
23810                 va_end(ap2);
23811                 va_end(ap1);
23812             }
23813             int main()
23814             {
23815                 foo("hi", 17);
23816                 return 0;
23817             }
23818 _ACEOF
23819 rm -f conftest.$ac_objext conftest$ac_exeext
23820 if { (ac_try="$ac_link"
23821 case "(($ac_try" in
23822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23823   *) ac_try_echo=$ac_try;;
23824 esac
23825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23826   (eval "$ac_link") 2>conftest.er1
23827   ac_status=$?
23828   grep -v '^ *+' conftest.er1 >conftest.err
23829   rm -f conftest.er1
23830   cat conftest.err >&5
23831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23832   (exit $ac_status); } && {
23833          test -z "$ac_cxx_werror_flag" ||
23834          test ! -s conftest.err
23835        } && test -s conftest$ac_exeext &&
23836        $as_test_x conftest$ac_exeext; then
23837   wx_cv_func_va_copy=yes
23838 else
23839   echo "$as_me: failed program was:" >&5
23840 sed 's/^/| /' conftest.$ac_ext >&5
23841
23842         wx_cv_func_va_copy=no
23843
23844 fi
23845
23846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23847       conftest$ac_exeext conftest.$ac_ext
23848         ac_ext=c
23849 ac_cpp='$CPP $CPPFLAGS'
23850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23853
23854
23855
23856 fi
23857 { echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
23858 echo "${ECHO_T}$wx_cv_func_va_copy" >&6; }
23859
23860 if test $wx_cv_func_va_copy = "yes"; then
23861     cat >>confdefs.h <<\_ACEOF
23862 #define HAVE_VA_COPY 1
23863 _ACEOF
23864
23865 else
23866         { echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
23867 echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6; }
23868 if test "${wx_cv_type_va_list_lvalue+set}" = set; then
23869   echo $ECHO_N "(cached) $ECHO_C" >&6
23870 else
23871
23872             if test "$cross_compiling" = yes; then
23873                   wx_cv_type_va_list_lvalue=yes
23874
23875 else
23876   cat >conftest.$ac_ext <<_ACEOF
23877
23878                 #include <stdarg.h>
23879                 int foo(char *f, ...)
23880                 {
23881                     va_list ap1, ap2;
23882                     va_start(ap1, f);
23883                     ap2 = ap1;
23884                     if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
23885                         return 1;
23886                     va_end(ap2);
23887                     va_end(ap1);
23888                     return 0;
23889                 }
23890                 int main()
23891                 {
23892                     return foo("hi", 17);
23893                 }
23894 _ACEOF
23895 rm -f conftest$ac_exeext
23896 if { (ac_try="$ac_link"
23897 case "(($ac_try" in
23898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23899   *) ac_try_echo=$ac_try;;
23900 esac
23901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23902   (eval "$ac_link") 2>&5
23903   ac_status=$?
23904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23905   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23906   { (case "(($ac_try" in
23907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23908   *) ac_try_echo=$ac_try;;
23909 esac
23910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23911   (eval "$ac_try") 2>&5
23912   ac_status=$?
23913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23914   (exit $ac_status); }; }; then
23915   wx_cv_type_va_list_lvalue=yes
23916 else
23917   echo "$as_me: program exited with status $ac_status" >&5
23918 echo "$as_me: failed program was:" >&5
23919 sed 's/^/| /' conftest.$ac_ext >&5
23920
23921 ( exit $ac_status )
23922 wx_cv_type_va_list_lvalue=no
23923 fi
23924 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23925 fi
23926
23927
23928
23929
23930 fi
23931 { echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
23932 echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6; }
23933
23934     if test $wx_cv_type_va_list_lvalue != "yes"; then
23935                         cat >>confdefs.h <<\_ACEOF
23936 #define VA_LIST_IS_ARRAY 1
23937 _ACEOF
23938
23939     fi
23940 fi
23941
23942 if test "$wxUSE_VARARG_MACROS" = "yes"; then
23943
23944 { echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
23945 echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6; }
23946 if test "${wx_cv_have_variadic_macros+set}" = set; then
23947   echo $ECHO_N "(cached) $ECHO_C" >&6
23948 else
23949
23950                         ac_ext=cpp
23951 ac_cpp='$CXXCPP $CPPFLAGS'
23952 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23953 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23954 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23955
23956         cat >conftest.$ac_ext <<_ACEOF
23957 /* confdefs.h.  */
23958 _ACEOF
23959 cat confdefs.h >>conftest.$ac_ext
23960 cat >>conftest.$ac_ext <<_ACEOF
23961 /* end confdefs.h.  */
23962
23963                     #include <stdio.h>
23964                     #define test(fmt, ...) printf(fmt, __VA_ARGS__)
23965
23966 int
23967 main ()
23968 {
23969
23970                     test("%s %d %p", "test", 1, 0);
23971
23972
23973   ;
23974   return 0;
23975 }
23976 _ACEOF
23977 rm -f conftest.$ac_objext
23978 if { (ac_try="$ac_compile"
23979 case "(($ac_try" in
23980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23981   *) ac_try_echo=$ac_try;;
23982 esac
23983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23984   (eval "$ac_compile") 2>conftest.er1
23985   ac_status=$?
23986   grep -v '^ *+' conftest.er1 >conftest.err
23987   rm -f conftest.er1
23988   cat conftest.err >&5
23989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23990   (exit $ac_status); } && {
23991          test -z "$ac_cxx_werror_flag" ||
23992          test ! -s conftest.err
23993        } && test -s conftest.$ac_objext; then
23994   wx_cv_have_variadic_macros=yes
23995 else
23996   echo "$as_me: failed program was:" >&5
23997 sed 's/^/| /' conftest.$ac_ext >&5
23998
23999         wx_cv_have_variadic_macros=no
24000
24001 fi
24002
24003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24004         ac_ext=c
24005 ac_cpp='$CPP $CPPFLAGS'
24006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24009
24010
24011
24012 fi
24013 { echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
24014 echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6; }
24015
24016 if test $wx_cv_have_variadic_macros = "yes"; then
24017     cat >>confdefs.h <<\_ACEOF
24018 #define HAVE_VARIADIC_MACROS 1
24019 _ACEOF
24020
24021 fi
24022
24023 fi
24024
24025 LARGEFILE_CPPFLAGS=
24026 # Check whether --enable-largefile was given.
24027 if test "${enable_largefile+set}" = set; then
24028   enableval=$enable_largefile;
24029 fi
24030
24031 if test "$enable_largefile" != no; then
24032             wx_largefile=no
24033
24034     { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
24035 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
24036 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
24037   echo $ECHO_N "(cached) $ECHO_C" >&6
24038 else
24039
24040           cat >conftest.$ac_ext <<_ACEOF
24041 /* confdefs.h.  */
24042 _ACEOF
24043 cat confdefs.h >>conftest.$ac_ext
24044 cat >>conftest.$ac_ext <<_ACEOF
24045 /* end confdefs.h.  */
24046 #define _FILE_OFFSET_BITS 64
24047                           #include <sys/types.h>
24048 int
24049 main ()
24050 {
24051 typedef struct {
24052     unsigned int field: sizeof(off_t) == 8;
24053 } wxlf;
24054
24055   ;
24056   return 0;
24057 }
24058 _ACEOF
24059 rm -f conftest.$ac_objext
24060 if { (ac_try="$ac_compile"
24061 case "(($ac_try" in
24062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24063   *) ac_try_echo=$ac_try;;
24064 esac
24065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24066   (eval "$ac_compile") 2>conftest.er1
24067   ac_status=$?
24068   grep -v '^ *+' conftest.er1 >conftest.err
24069   rm -f conftest.er1
24070   cat conftest.err >&5
24071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24072   (exit $ac_status); } && {
24073          test -z "$ac_c_werror_flag" ||
24074          test ! -s conftest.err
24075        } && test -s conftest.$ac_objext; then
24076   ac_cv_sys_file_offset_bits=64
24077 else
24078   echo "$as_me: failed program was:" >&5
24079 sed 's/^/| /' conftest.$ac_ext >&5
24080
24081         ac_cv_sys_file_offset_bits=no
24082 fi
24083
24084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24085
24086
24087 fi
24088 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
24089 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
24090
24091     if test "$ac_cv_sys_file_offset_bits" != no; then
24092         wx_largefile=yes
24093         cat >>confdefs.h <<_ACEOF
24094 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24095 _ACEOF
24096
24097     fi
24098
24099     if test "x$wx_largefile" != "xyes"; then
24100
24101     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
24102 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
24103 if test "${ac_cv_sys_large_files+set}" = set; then
24104   echo $ECHO_N "(cached) $ECHO_C" >&6
24105 else
24106
24107           cat >conftest.$ac_ext <<_ACEOF
24108 /* confdefs.h.  */
24109 _ACEOF
24110 cat confdefs.h >>conftest.$ac_ext
24111 cat >>conftest.$ac_ext <<_ACEOF
24112 /* end confdefs.h.  */
24113 #define _LARGE_FILES 1
24114                           #include <sys/types.h>
24115 int
24116 main ()
24117 {
24118 typedef struct {
24119     unsigned int field: sizeof(off_t) == 8;
24120 } wxlf;
24121
24122   ;
24123   return 0;
24124 }
24125 _ACEOF
24126 rm -f conftest.$ac_objext
24127 if { (ac_try="$ac_compile"
24128 case "(($ac_try" in
24129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24130   *) ac_try_echo=$ac_try;;
24131 esac
24132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24133   (eval "$ac_compile") 2>conftest.er1
24134   ac_status=$?
24135   grep -v '^ *+' conftest.er1 >conftest.err
24136   rm -f conftest.er1
24137   cat conftest.err >&5
24138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24139   (exit $ac_status); } && {
24140          test -z "$ac_c_werror_flag" ||
24141          test ! -s conftest.err
24142        } && test -s conftest.$ac_objext; then
24143   ac_cv_sys_large_files=1
24144 else
24145   echo "$as_me: failed program was:" >&5
24146 sed 's/^/| /' conftest.$ac_ext >&5
24147
24148         ac_cv_sys_large_files=no
24149 fi
24150
24151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24152
24153
24154 fi
24155 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
24156 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
24157
24158     if test "$ac_cv_sys_large_files" != no; then
24159         wx_largefile=yes
24160         cat >>confdefs.h <<_ACEOF
24161 #define _LARGE_FILES $ac_cv_sys_large_files
24162 _ACEOF
24163
24164     fi
24165
24166     fi
24167
24168     { echo "$as_me:$LINENO: checking if large file support is available" >&5
24169 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6; }
24170     if test "x$wx_largefile" = "xyes"; then
24171         cat >>confdefs.h <<\_ACEOF
24172 #define HAVE_LARGEFILE_SUPPORT 1
24173 _ACEOF
24174
24175     fi
24176     { echo "$as_me:$LINENO: result: $wx_largefile" >&5
24177 echo "${ECHO_T}$wx_largefile" >&6; }
24178 fi
24179
24180 if test "$ac_cv_sys_file_offset_bits" = "64"; then
24181     LARGEFILE_CPPFLAGS="-D_FILE_OFFSET_BITS=64"
24182 elif test "$ac_cv_sys_large_files" = 1; then
24183     LARGEFILE_CPPFLAGS="-D_LARGE_FILES"
24184 fi
24185
24186 if test -n "$LARGEFILE_CPPFLAGS"; then
24187     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $LARGEFILE_CPPFLAGS"
24188
24189                             if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
24190         { echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
24191 echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6; }
24192 if test "${wx_cv_STDC_EXT_required+set}" = set; then
24193   echo $ECHO_N "(cached) $ECHO_C" >&6
24194 else
24195
24196                 ac_ext=cpp
24197 ac_cpp='$CXXCPP $CPPFLAGS'
24198 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24199 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24200 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24201
24202                 cat >conftest.$ac_ext <<_ACEOF
24203 /* confdefs.h.  */
24204 _ACEOF
24205 cat confdefs.h >>conftest.$ac_ext
24206 cat >>conftest.$ac_ext <<_ACEOF
24207 /* end confdefs.h.  */
24208
24209 int
24210 main ()
24211 {
24212
24213                         #ifndef __STDC_EXT__
24214                             choke me
24215                         #endif
24216
24217   ;
24218   return 0;
24219 }
24220 _ACEOF
24221 rm -f conftest.$ac_objext
24222 if { (ac_try="$ac_compile"
24223 case "(($ac_try" in
24224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24225   *) ac_try_echo=$ac_try;;
24226 esac
24227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24228   (eval "$ac_compile") 2>conftest.er1
24229   ac_status=$?
24230   grep -v '^ *+' conftest.er1 >conftest.err
24231   rm -f conftest.er1
24232   cat conftest.err >&5
24233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24234   (exit $ac_status); } && {
24235          test -z "$ac_cxx_werror_flag" ||
24236          test ! -s conftest.err
24237        } && test -s conftest.$ac_objext; then
24238   wx_cv_STDC_EXT_required=no
24239 else
24240   echo "$as_me: failed program was:" >&5
24241 sed 's/^/| /' conftest.$ac_ext >&5
24242
24243         wx_cv_STDC_EXT_required=yes
24244
24245 fi
24246
24247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24248                 ac_ext=c
24249 ac_cpp='$CPP $CPPFLAGS'
24250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24253
24254
24255
24256 fi
24257 { echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
24258 echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6; }
24259         if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
24260             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
24261         fi
24262     fi
24263 fi
24264
24265 ac_ext=cpp
24266 ac_cpp='$CXXCPP $CPPFLAGS'
24267 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24268 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24269 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24270
24271 old_CPPFLAGS="$CPPFLAGS"
24272 CPPFLAGS="$CPPFLAGS $LARGEFILE_CPPFLAGS"
24273 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
24274 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
24275 if test "${ac_cv_sys_largefile_source+set}" = set; then
24276   echo $ECHO_N "(cached) $ECHO_C" >&6
24277 else
24278   while :; do
24279   cat >conftest.$ac_ext <<_ACEOF
24280 /* confdefs.h.  */
24281 _ACEOF
24282 cat confdefs.h >>conftest.$ac_ext
24283 cat >>conftest.$ac_ext <<_ACEOF
24284 /* end confdefs.h.  */
24285 #include <sys/types.h> /* for off_t */
24286      #include <stdio.h>
24287 int
24288 main ()
24289 {
24290 int (*fp) (FILE *, off_t, int) = fseeko;
24291      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
24292   ;
24293   return 0;
24294 }
24295 _ACEOF
24296 rm -f conftest.$ac_objext conftest$ac_exeext
24297 if { (ac_try="$ac_link"
24298 case "(($ac_try" in
24299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24300   *) ac_try_echo=$ac_try;;
24301 esac
24302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24303   (eval "$ac_link") 2>conftest.er1
24304   ac_status=$?
24305   grep -v '^ *+' conftest.er1 >conftest.err
24306   rm -f conftest.er1
24307   cat conftest.err >&5
24308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24309   (exit $ac_status); } && {
24310          test -z "$ac_cxx_werror_flag" ||
24311          test ! -s conftest.err
24312        } && test -s conftest$ac_exeext &&
24313        $as_test_x conftest$ac_exeext; then
24314   ac_cv_sys_largefile_source=no; break
24315 else
24316   echo "$as_me: failed program was:" >&5
24317 sed 's/^/| /' conftest.$ac_ext >&5
24318
24319
24320 fi
24321
24322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24323       conftest$ac_exeext conftest.$ac_ext
24324   cat >conftest.$ac_ext <<_ACEOF
24325 /* confdefs.h.  */
24326 _ACEOF
24327 cat confdefs.h >>conftest.$ac_ext
24328 cat >>conftest.$ac_ext <<_ACEOF
24329 /* end confdefs.h.  */
24330 #define _LARGEFILE_SOURCE 1
24331 #include <sys/types.h> /* for off_t */
24332      #include <stdio.h>
24333 int
24334 main ()
24335 {
24336 int (*fp) (FILE *, off_t, int) = fseeko;
24337      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
24338   ;
24339   return 0;
24340 }
24341 _ACEOF
24342 rm -f conftest.$ac_objext conftest$ac_exeext
24343 if { (ac_try="$ac_link"
24344 case "(($ac_try" in
24345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24346   *) ac_try_echo=$ac_try;;
24347 esac
24348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24349   (eval "$ac_link") 2>conftest.er1
24350   ac_status=$?
24351   grep -v '^ *+' conftest.er1 >conftest.err
24352   rm -f conftest.er1
24353   cat conftest.err >&5
24354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24355   (exit $ac_status); } && {
24356          test -z "$ac_cxx_werror_flag" ||
24357          test ! -s conftest.err
24358        } && test -s conftest$ac_exeext &&
24359        $as_test_x conftest$ac_exeext; then
24360   ac_cv_sys_largefile_source=1; break
24361 else
24362   echo "$as_me: failed program was:" >&5
24363 sed 's/^/| /' conftest.$ac_ext >&5
24364
24365
24366 fi
24367
24368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24369       conftest$ac_exeext conftest.$ac_ext
24370   ac_cv_sys_largefile_source=unknown
24371   break
24372 done
24373 fi
24374 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
24375 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
24376 case $ac_cv_sys_largefile_source in #(
24377   no | unknown) ;;
24378   *)
24379 cat >>confdefs.h <<_ACEOF
24380 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24381 _ACEOF
24382 ;;
24383 esac
24384 rm -f conftest*
24385
24386 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
24387 # in glibc 2.1.3, but that breaks too many other things.
24388 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
24389 if test $ac_cv_sys_largefile_source != unknown; then
24390
24391 cat >>confdefs.h <<\_ACEOF
24392 #define HAVE_FSEEKO 1
24393 _ACEOF
24394
24395 fi
24396
24397 CPPFLAGS="$old_CPPFLAGS"
24398 ac_ext=c
24399 ac_cpp='$CPP $CPPFLAGS'
24400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24403
24404 if test "$ac_cv_sys_largefile_source" != no; then
24405     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
24406 fi
24407
24408 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
24409 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
24410 if test "${ac_cv_c_bigendian+set}" = set; then
24411   echo $ECHO_N "(cached) $ECHO_C" >&6
24412 else
24413   ac_cv_c_bigendian=unknown
24414 # See if sys/param.h defines the BYTE_ORDER macro.
24415 cat >conftest.$ac_ext <<_ACEOF
24416 /* confdefs.h.  */
24417 _ACEOF
24418 cat confdefs.h >>conftest.$ac_ext
24419 cat >>conftest.$ac_ext <<_ACEOF
24420 /* end confdefs.h.  */
24421 #include <sys/types.h>
24422 #include <sys/param.h>
24423 int
24424 main ()
24425 {
24426
24427 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
24428  bogus endian macros
24429 #endif
24430   ;
24431   return 0;
24432 }
24433 _ACEOF
24434 rm -f conftest.$ac_objext
24435 if { (ac_try="$ac_compile"
24436 case "(($ac_try" in
24437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24438   *) ac_try_echo=$ac_try;;
24439 esac
24440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24441   (eval "$ac_compile") 2>conftest.er1
24442   ac_status=$?
24443   grep -v '^ *+' conftest.er1 >conftest.err
24444   rm -f conftest.er1
24445   cat conftest.err >&5
24446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24447   (exit $ac_status); } && {
24448          test -z "$ac_c_werror_flag" ||
24449          test ! -s conftest.err
24450        } && test -s conftest.$ac_objext; then
24451   # It does; now see whether it defined to BIG_ENDIAN or not.
24452 cat >conftest.$ac_ext <<_ACEOF
24453 /* confdefs.h.  */
24454 _ACEOF
24455 cat confdefs.h >>conftest.$ac_ext
24456 cat >>conftest.$ac_ext <<_ACEOF
24457 /* end confdefs.h.  */
24458 #include <sys/types.h>
24459 #include <sys/param.h>
24460 int
24461 main ()
24462 {
24463
24464 #if BYTE_ORDER != BIG_ENDIAN
24465  not big endian
24466 #endif
24467   ;
24468   return 0;
24469 }
24470 _ACEOF
24471 rm -f conftest.$ac_objext
24472 if { (ac_try="$ac_compile"
24473 case "(($ac_try" in
24474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24475   *) ac_try_echo=$ac_try;;
24476 esac
24477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24478   (eval "$ac_compile") 2>conftest.er1
24479   ac_status=$?
24480   grep -v '^ *+' conftest.er1 >conftest.err
24481   rm -f conftest.er1
24482   cat conftest.err >&5
24483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24484   (exit $ac_status); } && {
24485          test -z "$ac_c_werror_flag" ||
24486          test ! -s conftest.err
24487        } && test -s conftest.$ac_objext; then
24488   ac_cv_c_bigendian=yes
24489 else
24490   echo "$as_me: failed program was:" >&5
24491 sed 's/^/| /' conftest.$ac_ext >&5
24492
24493         ac_cv_c_bigendian=no
24494 fi
24495
24496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24497 else
24498   echo "$as_me: failed program was:" >&5
24499 sed 's/^/| /' conftest.$ac_ext >&5
24500
24501
24502 fi
24503
24504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24505 if test $ac_cv_c_bigendian = unknown; then
24506 if test "$cross_compiling" = yes; then
24507   ac_cv_c_bigendian=unknown
24508 else
24509   cat >conftest.$ac_ext <<_ACEOF
24510 /* confdefs.h.  */
24511 _ACEOF
24512 cat confdefs.h >>conftest.$ac_ext
24513 cat >>conftest.$ac_ext <<_ACEOF
24514 /* end confdefs.h.  */
24515 main () {
24516   /* Are we little or big endian?  From Harbison&Steele.  */
24517   union
24518   {
24519     long l;
24520     char c[sizeof (long)];
24521   } u;
24522   u.l = 1;
24523   exit (u.c[sizeof (long) - 1] == 1);
24524 }
24525 _ACEOF
24526 rm -f conftest$ac_exeext
24527 if { (ac_try="$ac_link"
24528 case "(($ac_try" in
24529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24530   *) ac_try_echo=$ac_try;;
24531 esac
24532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24533   (eval "$ac_link") 2>&5
24534   ac_status=$?
24535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24536   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24537   { (case "(($ac_try" in
24538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24539   *) ac_try_echo=$ac_try;;
24540 esac
24541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24542   (eval "$ac_try") 2>&5
24543   ac_status=$?
24544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24545   (exit $ac_status); }; }; then
24546   ac_cv_c_bigendian=no
24547 else
24548   echo "$as_me: program exited with status $ac_status" >&5
24549 echo "$as_me: failed program was:" >&5
24550 sed 's/^/| /' conftest.$ac_ext >&5
24551
24552 ( exit $ac_status )
24553 ac_cv_c_bigendian=yes
24554 fi
24555 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24556 fi
24557
24558
24559 fi
24560 fi
24561 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
24562 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
24563 if test $ac_cv_c_bigendian = unknown; then
24564   { 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
24565 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;}
24566 fi
24567 if test $ac_cv_c_bigendian = yes; then
24568   cat >>confdefs.h <<\_ACEOF
24569 #define WORDS_BIGENDIAN 1
24570 _ACEOF
24571
24572 fi
24573
24574
24575
24576
24577     ac_ext=cpp
24578 ac_cpp='$CXXCPP $CPPFLAGS'
24579 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24580 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24581 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24582
24583
24584
24585 for ac_header in iostream
24586 do
24587 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24588 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24591   echo $ECHO_N "(cached) $ECHO_C" >&6
24592 else
24593   cat >conftest.$ac_ext <<_ACEOF
24594 /* confdefs.h.  */
24595 _ACEOF
24596 cat confdefs.h >>conftest.$ac_ext
24597 cat >>conftest.$ac_ext <<_ACEOF
24598 /* end confdefs.h.  */
24599
24600
24601 #include <$ac_header>
24602 _ACEOF
24603 rm -f conftest.$ac_objext
24604 if { (ac_try="$ac_compile"
24605 case "(($ac_try" in
24606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24607   *) ac_try_echo=$ac_try;;
24608 esac
24609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24610   (eval "$ac_compile") 2>conftest.er1
24611   ac_status=$?
24612   grep -v '^ *+' conftest.er1 >conftest.err
24613   rm -f conftest.er1
24614   cat conftest.err >&5
24615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24616   (exit $ac_status); } && {
24617          test -z "$ac_cxx_werror_flag" ||
24618          test ! -s conftest.err
24619        } && test -s conftest.$ac_objext; then
24620   eval "$as_ac_Header=yes"
24621 else
24622   echo "$as_me: failed program was:" >&5
24623 sed 's/^/| /' conftest.$ac_ext >&5
24624
24625         eval "$as_ac_Header=no"
24626 fi
24627
24628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24629 fi
24630 ac_res=`eval echo '${'$as_ac_Header'}'`
24631                { echo "$as_me:$LINENO: result: $ac_res" >&5
24632 echo "${ECHO_T}$ac_res" >&6; }
24633 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24634   cat >>confdefs.h <<_ACEOF
24635 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24636 _ACEOF
24637
24638 fi
24639
24640 done
24641
24642
24643     if test "$ac_cv_header_iostream" = "yes" ; then
24644       :
24645     else
24646       cat >>confdefs.h <<\_ACEOF
24647 #define wxUSE_IOSTREAMH 1
24648 _ACEOF
24649
24650     fi
24651
24652     ac_ext=c
24653 ac_cpp='$CPP $CPPFLAGS'
24654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24657
24658
24659
24660
24661   { echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
24662 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6; }
24663 if test "${wx_cv_explicit+set}" = set; then
24664   echo $ECHO_N "(cached) $ECHO_C" >&6
24665 else
24666
24667
24668     ac_ext=cpp
24669 ac_cpp='$CXXCPP $CPPFLAGS'
24670 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24671 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24672 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24673
24674
24675             cat >conftest.$ac_ext <<_ACEOF
24676 /* confdefs.h.  */
24677 _ACEOF
24678 cat confdefs.h >>conftest.$ac_ext
24679 cat >>conftest.$ac_ext <<_ACEOF
24680 /* end confdefs.h.  */
24681
24682         class Foo { public: explicit Foo(int) {} };
24683
24684 int
24685 main ()
24686 {
24687
24688         return 0;
24689
24690   ;
24691   return 0;
24692 }
24693 _ACEOF
24694 rm -f conftest.$ac_objext
24695 if { (ac_try="$ac_compile"
24696 case "(($ac_try" in
24697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24698   *) ac_try_echo=$ac_try;;
24699 esac
24700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24701   (eval "$ac_compile") 2>conftest.er1
24702   ac_status=$?
24703   grep -v '^ *+' conftest.er1 >conftest.err
24704   rm -f conftest.er1
24705   cat conftest.err >&5
24706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24707   (exit $ac_status); } && {
24708          test -z "$ac_cxx_werror_flag" ||
24709          test ! -s conftest.err
24710        } && test -s conftest.$ac_objext; then
24711
24712         cat >conftest.$ac_ext <<_ACEOF
24713 /* confdefs.h.  */
24714 _ACEOF
24715 cat confdefs.h >>conftest.$ac_ext
24716 cat >>conftest.$ac_ext <<_ACEOF
24717 /* end confdefs.h.  */
24718
24719                 class Foo { public: explicit Foo(int) {} };
24720                 static void TakeFoo(const Foo& foo) { }
24721
24722 int
24723 main ()
24724 {
24725
24726                 TakeFoo(17);
24727                 return 0;
24728
24729   ;
24730   return 0;
24731 }
24732 _ACEOF
24733 rm -f conftest.$ac_objext
24734 if { (ac_try="$ac_compile"
24735 case "(($ac_try" in
24736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24737   *) ac_try_echo=$ac_try;;
24738 esac
24739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24740   (eval "$ac_compile") 2>conftest.er1
24741   ac_status=$?
24742   grep -v '^ *+' conftest.er1 >conftest.err
24743   rm -f conftest.er1
24744   cat conftest.err >&5
24745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24746   (exit $ac_status); } && {
24747          test -z "$ac_cxx_werror_flag" ||
24748          test ! -s conftest.err
24749        } && test -s conftest.$ac_objext; then
24750   wx_cv_explicit=no
24751 else
24752   echo "$as_me: failed program was:" >&5
24753 sed 's/^/| /' conftest.$ac_ext >&5
24754
24755         wx_cv_explicit=yes
24756
24757 fi
24758
24759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24760
24761 else
24762   echo "$as_me: failed program was:" >&5
24763 sed 's/^/| /' conftest.$ac_ext >&5
24764
24765         wx_cv_explicit=no
24766
24767 fi
24768
24769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24770
24771     ac_ext=c
24772 ac_cpp='$CPP $CPPFLAGS'
24773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24776
24777
24778 fi
24779 { echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
24780 echo "${ECHO_T}$wx_cv_explicit" >&6; }
24781
24782   if test "$wx_cv_explicit" = "yes"; then
24783     cat >>confdefs.h <<\_ACEOF
24784 #define HAVE_EXPLICIT 1
24785 _ACEOF
24786
24787   fi
24788
24789
24790 if test "x$SUNCXX" = xyes; then
24791     CXXFLAGS="-features=tmplife $CXXFLAGS"
24792 fi
24793
24794 if test "x$SUNCC" = xyes; then
24795     CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
24796 fi
24797
24798 if test "x$SGICC" = "xyes"; then
24799     { echo "$as_me:$LINENO: checking if cc version is 7.4.4 or greater" >&5
24800 echo $ECHO_N "checking if cc version is 7.4.4 or greater... $ECHO_C" >&6; }
24801 if test "${wx_cv_prog_sgicc744+set}" = set; then
24802   echo $ECHO_N "(cached) $ECHO_C" >&6
24803 else
24804
24805             cat >conftest.$ac_ext <<_ACEOF
24806 /* confdefs.h.  */
24807 _ACEOF
24808 cat confdefs.h >>conftest.$ac_ext
24809 cat >>conftest.$ac_ext <<_ACEOF
24810 /* end confdefs.h.  */
24811
24812 int
24813 main ()
24814 {
24815
24816                     #if _SGI_COMPILER_VERSION >= 744
24817                     chock me: mipsPro is 7.4.4 or later
24818                     #endif
24819
24820   ;
24821   return 0;
24822 }
24823 _ACEOF
24824 rm -f conftest.$ac_objext
24825 if { (ac_try="$ac_compile"
24826 case "(($ac_try" in
24827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24828   *) ac_try_echo=$ac_try;;
24829 esac
24830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24831   (eval "$ac_compile") 2>conftest.er1
24832   ac_status=$?
24833   grep -v '^ *+' conftest.er1 >conftest.err
24834   rm -f conftest.er1
24835   cat conftest.err >&5
24836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24837   (exit $ac_status); } && {
24838          test -z "$ac_c_werror_flag" ||
24839          test ! -s conftest.err
24840        } && test -s conftest.$ac_objext; then
24841   wx_cv_prog_sgicc744=no
24842 else
24843   echo "$as_me: failed program was:" >&5
24844 sed 's/^/| /' conftest.$ac_ext >&5
24845
24846         wx_cv_prog_sgicc744=yes
24847
24848 fi
24849
24850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24851
24852
24853 fi
24854 { echo "$as_me:$LINENO: result: $wx_cv_prog_sgicc744" >&5
24855 echo "${ECHO_T}$wx_cv_prog_sgicc744" >&6; }
24856
24857     if test "x$wx_cv_prog_sgicc744" = "xyes"; then
24858         CFLAGS="-woff 3970 $CFLAGS"
24859     fi
24860 fi
24861 if test "x$SGICXX" = "xyes"; then
24862     { echo "$as_me:$LINENO: checking if CC version is 7.4.4 or greater" >&5
24863 echo $ECHO_N "checking if CC version is 7.4.4 or greater... $ECHO_C" >&6; }
24864 if test "${wx_cv_prog_sgicxx744+set}" = set; then
24865   echo $ECHO_N "(cached) $ECHO_C" >&6
24866 else
24867
24868             ac_ext=cpp
24869 ac_cpp='$CXXCPP $CPPFLAGS'
24870 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24871 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24872 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24873
24874             cat >conftest.$ac_ext <<_ACEOF
24875 /* confdefs.h.  */
24876 _ACEOF
24877 cat confdefs.h >>conftest.$ac_ext
24878 cat >>conftest.$ac_ext <<_ACEOF
24879 /* end confdefs.h.  */
24880
24881 int
24882 main ()
24883 {
24884
24885                     #if _SGI_COMPILER_VERSION >= 744
24886                     chock me: mipsPro is 7.4.4 or later
24887                     #endif
24888
24889   ;
24890   return 0;
24891 }
24892 _ACEOF
24893 rm -f conftest.$ac_objext
24894 if { (ac_try="$ac_compile"
24895 case "(($ac_try" in
24896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24897   *) ac_try_echo=$ac_try;;
24898 esac
24899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24900   (eval "$ac_compile") 2>conftest.er1
24901   ac_status=$?
24902   grep -v '^ *+' conftest.er1 >conftest.err
24903   rm -f conftest.er1
24904   cat conftest.err >&5
24905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24906   (exit $ac_status); } && {
24907          test -z "$ac_cxx_werror_flag" ||
24908          test ! -s conftest.err
24909        } && test -s conftest.$ac_objext; then
24910   wx_cv_prog_sgicxx744=no
24911 else
24912   echo "$as_me: failed program was:" >&5
24913 sed 's/^/| /' conftest.$ac_ext >&5
24914
24915         wx_cv_prog_sgicxx744=yes
24916
24917 fi
24918
24919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24920             ac_ext=c
24921 ac_cpp='$CPP $CPPFLAGS'
24922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24925
24926
24927
24928 fi
24929 { echo "$as_me:$LINENO: result: $wx_cv_prog_sgicxx744" >&5
24930 echo "${ECHO_T}$wx_cv_prog_sgicxx744" >&6; }
24931
24932     if test "x$wx_cv_prog_sgicxx744" = "xyes"; then
24933         CXXFLAGS="-woff 3970 $CXXFLAGS"
24934     fi
24935 fi
24936
24937 if test "x$HPCC" = "xyes"; then
24938                     CFLAGS="+W 2011,2450 $CFLAGS"
24939 fi
24940 if test "x$HPCXX" = "xyes"; then
24941                             CXXFLAGS="+W 2340,4232 $CXXFLAGS"
24942 fi
24943
24944 if test "x$COMPAQCXX" = "xyes"; then
24945                                 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
24946 fi
24947
24948 ac_ext=cpp
24949 ac_cpp='$CXXCPP $CPPFLAGS'
24950 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24951 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24952 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24953
24954
24955 if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
24956     if test "$wxUSE_UNICODE" = "yes"; then
24957         std_string="std::wstring"
24958         char_type="wchar_t"
24959     else
24960         std_string="std::string"
24961         char_type="char"
24962     fi
24963
24964         { echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
24965 echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6; }
24966 if test "${wx_cv_class_stdstring+set}" = set; then
24967   echo $ECHO_N "(cached) $ECHO_C" >&6
24968 else
24969
24970             cat >conftest.$ac_ext <<_ACEOF
24971 /* confdefs.h.  */
24972 _ACEOF
24973 cat confdefs.h >>conftest.$ac_ext
24974 cat >>conftest.$ac_ext <<_ACEOF
24975 /* end confdefs.h.  */
24976 #include <string>
24977 int
24978 main ()
24979 {
24980 $std_string foo;
24981   ;
24982   return 0;
24983 }
24984 _ACEOF
24985 rm -f conftest.$ac_objext
24986 if { (ac_try="$ac_compile"
24987 case "(($ac_try" in
24988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24989   *) ac_try_echo=$ac_try;;
24990 esac
24991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24992   (eval "$ac_compile") 2>conftest.er1
24993   ac_status=$?
24994   grep -v '^ *+' conftest.er1 >conftest.err
24995   rm -f conftest.er1
24996   cat conftest.err >&5
24997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24998   (exit $ac_status); } && {
24999          test -z "$ac_cxx_werror_flag" ||
25000          test ! -s conftest.err
25001        } && test -s conftest.$ac_objext; then
25002   wx_cv_class_stdstring=yes
25003 else
25004   echo "$as_me: failed program was:" >&5
25005 sed 's/^/| /' conftest.$ac_ext >&5
25006
25007         wx_cv_class_stdstring=no
25008
25009 fi
25010
25011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25012
25013
25014 fi
25015 { echo "$as_me:$LINENO: result: $wx_cv_class_stdstring" >&5
25016 echo "${ECHO_T}$wx_cv_class_stdstring" >&6; }
25017
25018     if test "$wx_cv_class_stdstring" = yes; then
25019         if test "$wxUSE_UNICODE" = "yes"; then
25020             cat >>confdefs.h <<\_ACEOF
25021 #define HAVE_STD_WSTRING 1
25022 _ACEOF
25023
25024         fi
25025                     else
25026         { echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
25027 echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6; }
25028 if test "${wx_cv_class_stdbasicstring+set}" = set; then
25029   echo $ECHO_N "(cached) $ECHO_C" >&6
25030 else
25031
25032                 cat >conftest.$ac_ext <<_ACEOF
25033 /* confdefs.h.  */
25034 _ACEOF
25035 cat confdefs.h >>conftest.$ac_ext
25036 cat >>conftest.$ac_ext <<_ACEOF
25037 /* end confdefs.h.  */
25038
25039                     #ifdef HAVE_WCHAR_H
25040                     #  ifdef __CYGWIN__
25041                     #    include <stddef.h>
25042                     #  endif
25043                     #  include <wchar.h>
25044                     #endif
25045                     #ifdef HAVE_STDLIB_H
25046                     #  include <stdlib.h>
25047                     #endif
25048                     #include <stdio.h>
25049                     #include <string>
25050
25051 int
25052 main ()
25053 {
25054 std::basic_string<$char_type> foo;
25055                      const $char_type* dummy = foo.c_str();
25056   ;
25057   return 0;
25058 }
25059 _ACEOF
25060 rm -f conftest.$ac_objext
25061 if { (ac_try="$ac_compile"
25062 case "(($ac_try" in
25063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25064   *) ac_try_echo=$ac_try;;
25065 esac
25066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25067   (eval "$ac_compile") 2>conftest.er1
25068   ac_status=$?
25069   grep -v '^ *+' conftest.er1 >conftest.err
25070   rm -f conftest.er1
25071   cat conftest.err >&5
25072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25073   (exit $ac_status); } && {
25074          test -z "$ac_cxx_werror_flag" ||
25075          test ! -s conftest.err
25076        } && test -s conftest.$ac_objext; then
25077   wx_cv_class_stdbasicstring=yes
25078 else
25079   echo "$as_me: failed program was:" >&5
25080 sed 's/^/| /' conftest.$ac_ext >&5
25081
25082         wx_cv_class_stdbasicstring=no
25083
25084 fi
25085
25086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25087
25088
25089 fi
25090 { echo "$as_me:$LINENO: result: $wx_cv_class_stdbasicstring" >&5
25091 echo "${ECHO_T}$wx_cv_class_stdbasicstring" >&6; }
25092
25093         if test "$wx_cv_class_stdbasicstring" != yes; then
25094             if test "$wxUSE_STL" = "yes"; then
25095                 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
25096 echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
25097    { (exit 1); exit 1; }; }
25098             elif test "$wxUSE_STD_STRING" = "yes"; then
25099                 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
25100 echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
25101    { (exit 1); exit 1; }; }
25102             else
25103                 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
25104 echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
25105                 wxUSE_STD_STRING=no
25106             fi
25107         fi
25108     fi
25109 fi
25110
25111 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
25112     { echo "$as_me:$LINENO: checking for std::istream" >&5
25113 echo $ECHO_N "checking for std::istream... $ECHO_C" >&6; }
25114 if test "${ac_cv_type_std__istream+set}" = set; then
25115   echo $ECHO_N "(cached) $ECHO_C" >&6
25116 else
25117   cat >conftest.$ac_ext <<_ACEOF
25118 /* confdefs.h.  */
25119 _ACEOF
25120 cat confdefs.h >>conftest.$ac_ext
25121 cat >>conftest.$ac_ext <<_ACEOF
25122 /* end confdefs.h.  */
25123 #include <iostream>
25124
25125 typedef std::istream ac__type_new_;
25126 int
25127 main ()
25128 {
25129 if ((ac__type_new_ *) 0)
25130   return 0;
25131 if (sizeof (ac__type_new_))
25132   return 0;
25133   ;
25134   return 0;
25135 }
25136 _ACEOF
25137 rm -f conftest.$ac_objext
25138 if { (ac_try="$ac_compile"
25139 case "(($ac_try" in
25140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25141   *) ac_try_echo=$ac_try;;
25142 esac
25143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25144   (eval "$ac_compile") 2>conftest.er1
25145   ac_status=$?
25146   grep -v '^ *+' conftest.er1 >conftest.err
25147   rm -f conftest.er1
25148   cat conftest.err >&5
25149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25150   (exit $ac_status); } && {
25151          test -z "$ac_cxx_werror_flag" ||
25152          test ! -s conftest.err
25153        } && test -s conftest.$ac_objext; then
25154   ac_cv_type_std__istream=yes
25155 else
25156   echo "$as_me: failed program was:" >&5
25157 sed 's/^/| /' conftest.$ac_ext >&5
25158
25159         ac_cv_type_std__istream=no
25160 fi
25161
25162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25163 fi
25164 { echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
25165 echo "${ECHO_T}$ac_cv_type_std__istream" >&6; }
25166 if test $ac_cv_type_std__istream = yes; then
25167
25168 cat >>confdefs.h <<_ACEOF
25169 #define HAVE_STD__ISTREAM 1
25170 _ACEOF
25171
25172
25173 else
25174   wxUSE_STD_IOSTREAM=no
25175 fi
25176 { echo "$as_me:$LINENO: checking for std::ostream" >&5
25177 echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6; }
25178 if test "${ac_cv_type_std__ostream+set}" = set; then
25179   echo $ECHO_N "(cached) $ECHO_C" >&6
25180 else
25181   cat >conftest.$ac_ext <<_ACEOF
25182 /* confdefs.h.  */
25183 _ACEOF
25184 cat confdefs.h >>conftest.$ac_ext
25185 cat >>conftest.$ac_ext <<_ACEOF
25186 /* end confdefs.h.  */
25187 #include <iostream>
25188
25189 typedef std::ostream ac__type_new_;
25190 int
25191 main ()
25192 {
25193 if ((ac__type_new_ *) 0)
25194   return 0;
25195 if (sizeof (ac__type_new_))
25196   return 0;
25197   ;
25198   return 0;
25199 }
25200 _ACEOF
25201 rm -f conftest.$ac_objext
25202 if { (ac_try="$ac_compile"
25203 case "(($ac_try" in
25204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25205   *) ac_try_echo=$ac_try;;
25206 esac
25207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25208   (eval "$ac_compile") 2>conftest.er1
25209   ac_status=$?
25210   grep -v '^ *+' conftest.er1 >conftest.err
25211   rm -f conftest.er1
25212   cat conftest.err >&5
25213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25214   (exit $ac_status); } && {
25215          test -z "$ac_cxx_werror_flag" ||
25216          test ! -s conftest.err
25217        } && test -s conftest.$ac_objext; then
25218   ac_cv_type_std__ostream=yes
25219 else
25220   echo "$as_me: failed program was:" >&5
25221 sed 's/^/| /' conftest.$ac_ext >&5
25222
25223         ac_cv_type_std__ostream=no
25224 fi
25225
25226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25227 fi
25228 { echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
25229 echo "${ECHO_T}$ac_cv_type_std__ostream" >&6; }
25230 if test $ac_cv_type_std__ostream = yes; then
25231
25232 cat >>confdefs.h <<_ACEOF
25233 #define HAVE_STD__OSTREAM 1
25234 _ACEOF
25235
25236
25237 else
25238   wxUSE_STD_IOSTREAM=no
25239 fi
25240
25241
25242     if test "$wxUSE_STD_IOSTREAM" != "yes"; then
25243         if test "$wxUSE_STD_IOSTREAM" = "yes"; then
25244             { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
25245 echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
25246    { (exit 1); exit 1; }; }
25247         else
25248             { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
25249 echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
25250         fi
25251     fi
25252 fi
25253
25254 if test "$wxUSE_STL" = "yes"; then
25255         { echo "$as_me:$LINENO: checking for basic STL functionality" >&5
25256 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6; }
25257 if test "${wx_cv_lib_stl+set}" = set; then
25258   echo $ECHO_N "(cached) $ECHO_C" >&6
25259 else
25260   cat >conftest.$ac_ext <<_ACEOF
25261 /* confdefs.h.  */
25262 _ACEOF
25263 cat confdefs.h >>conftest.$ac_ext
25264 cat >>conftest.$ac_ext <<_ACEOF
25265 /* end confdefs.h.  */
25266 #include <string>
25267             #include <functional>
25268             #include <algorithm>
25269             #include <vector>
25270             #include <list>
25271 int
25272 main ()
25273 {
25274 std::vector<int> moo;
25275              std::list<int> foo;
25276              std::vector<int>::iterator it =
25277                  std::find_if(moo.begin(), moo.end(),
25278                               std::bind2nd(std::less<int>(), 3));
25279   ;
25280   return 0;
25281 }
25282 _ACEOF
25283 rm -f conftest.$ac_objext
25284 if { (ac_try="$ac_compile"
25285 case "(($ac_try" in
25286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25287   *) ac_try_echo=$ac_try;;
25288 esac
25289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25290   (eval "$ac_compile") 2>conftest.er1
25291   ac_status=$?
25292   grep -v '^ *+' conftest.er1 >conftest.err
25293   rm -f conftest.er1
25294   cat conftest.err >&5
25295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25296   (exit $ac_status); } && {
25297          test -z "$ac_cxx_werror_flag" ||
25298          test ! -s conftest.err
25299        } && test -s conftest.$ac_objext; then
25300   wx_cv_lib_stl=yes
25301 else
25302   echo "$as_me: failed program was:" >&5
25303 sed 's/^/| /' conftest.$ac_ext >&5
25304
25305         wx_cv_lib_stl=no
25306
25307 fi
25308
25309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25310
25311 fi
25312 { echo "$as_me:$LINENO: result: $wx_cv_lib_stl" >&5
25313 echo "${ECHO_T}$wx_cv_lib_stl" >&6; }
25314
25315     if test "$wx_cv_lib_stl" != yes; then
25316          { { echo "$as_me:$LINENO: error: Can't use --enable-stl as basic STL functionality is missing" >&5
25317 echo "$as_me: error: Can't use --enable-stl as basic STL functionality is missing" >&2;}
25318    { (exit 1); exit 1; }; }
25319     fi
25320
25321         { echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
25322 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6; }
25323 if test "${wx_cv_func_stdstring_compare+set}" = set; then
25324   echo $ECHO_N "(cached) $ECHO_C" >&6
25325 else
25326   cat >conftest.$ac_ext <<_ACEOF
25327 /* confdefs.h.  */
25328 _ACEOF
25329 cat confdefs.h >>conftest.$ac_ext
25330 cat >>conftest.$ac_ext <<_ACEOF
25331 /* end confdefs.h.  */
25332 #include <string>
25333 int
25334 main ()
25335 {
25336 std::string foo, bar;
25337             foo.compare(bar);
25338             foo.compare(1, 1, bar);
25339             foo.compare(1, 1, bar, 1, 1);
25340             foo.compare("");
25341             foo.compare(1, 1, "");
25342             foo.compare(1, 1, "", 2);
25343   ;
25344   return 0;
25345 }
25346 _ACEOF
25347 rm -f conftest.$ac_objext
25348 if { (ac_try="$ac_compile"
25349 case "(($ac_try" in
25350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25351   *) ac_try_echo=$ac_try;;
25352 esac
25353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25354   (eval "$ac_compile") 2>conftest.er1
25355   ac_status=$?
25356   grep -v '^ *+' conftest.er1 >conftest.err
25357   rm -f conftest.er1
25358   cat conftest.err >&5
25359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25360   (exit $ac_status); } && {
25361          test -z "$ac_cxx_werror_flag" ||
25362          test ! -s conftest.err
25363        } && test -s conftest.$ac_objext; then
25364   wx_cv_func_stdstring_compare=yes
25365 else
25366   echo "$as_me: failed program was:" >&5
25367 sed 's/^/| /' conftest.$ac_ext >&5
25368
25369         wx_cv_func_stdstring_compare=no
25370
25371 fi
25372
25373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25374
25375 fi
25376 { echo "$as_me:$LINENO: result: $wx_cv_func_stdstring_compare" >&5
25377 echo "${ECHO_T}$wx_cv_func_stdstring_compare" >&6; }
25378
25379     if test "$wx_cv_func_stdstring_compare" = yes; then
25380         cat >>confdefs.h <<\_ACEOF
25381 #define HAVE_STD_STRING_COMPARE 1
25382 _ACEOF
25383
25384     fi
25385
25386     if test "$wx_cv_class_gnuhashmapset" = yes; then
25387          cat >>confdefs.h <<\_ACEOF
25388 #define HAVE_EXT_HASH_MAP 1
25389 _ACEOF
25390
25391          cat >>confdefs.h <<\_ACEOF
25392 #define HAVE_GNU_CXX_HASH_MAP 1
25393 _ACEOF
25394
25395     fi
25396
25397     { echo "$as_me:$LINENO: checking for unordered_map" >&5
25398 echo $ECHO_N "checking for unordered_map... $ECHO_C" >&6; }
25399 if test "${ac_cv_header_unordered_map+set}" = set; then
25400   echo $ECHO_N "(cached) $ECHO_C" >&6
25401 else
25402   cat >conftest.$ac_ext <<_ACEOF
25403 /* confdefs.h.  */
25404 _ACEOF
25405 cat confdefs.h >>conftest.$ac_ext
25406 cat >>conftest.$ac_ext <<_ACEOF
25407 /* end confdefs.h.  */
25408
25409
25410
25411 #include <unordered_map>
25412 _ACEOF
25413 rm -f conftest.$ac_objext
25414 if { (ac_try="$ac_compile"
25415 case "(($ac_try" in
25416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25417   *) ac_try_echo=$ac_try;;
25418 esac
25419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25420   (eval "$ac_compile") 2>conftest.er1
25421   ac_status=$?
25422   grep -v '^ *+' conftest.er1 >conftest.err
25423   rm -f conftest.er1
25424   cat conftest.err >&5
25425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25426   (exit $ac_status); } && {
25427          test -z "$ac_cxx_werror_flag" ||
25428          test ! -s conftest.err
25429        } && test -s conftest.$ac_objext; then
25430   ac_cv_header_unordered_map=yes
25431 else
25432   echo "$as_me: failed program was:" >&5
25433 sed 's/^/| /' conftest.$ac_ext >&5
25434
25435         ac_cv_header_unordered_map=no
25436 fi
25437
25438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25439 fi
25440 { echo "$as_me:$LINENO: result: $ac_cv_header_unordered_map" >&5
25441 echo "${ECHO_T}$ac_cv_header_unordered_map" >&6; }
25442 if test $ac_cv_header_unordered_map = yes; then
25443   { echo "$as_me:$LINENO: checking for unordered_map and unordered_set in std" >&5
25444 echo $ECHO_N "checking for unordered_map and unordered_set in std... $ECHO_C" >&6; }
25445 if test "${wx_cv_class_stdunorderedmapset+set}" = set; then
25446   echo $ECHO_N "(cached) $ECHO_C" >&6
25447 else
25448   cat >conftest.$ac_ext <<_ACEOF
25449 /* confdefs.h.  */
25450 _ACEOF
25451 cat confdefs.h >>conftest.$ac_ext
25452 cat >>conftest.$ac_ext <<_ACEOF
25453 /* end confdefs.h.  */
25454 #include <unordered_map>
25455                 #include <unordered_set>
25456 int
25457 main ()
25458 {
25459 std::unordered_map<double*, char*> test1;
25460                  std::unordered_set<char*> test2;
25461   ;
25462   return 0;
25463 }
25464 _ACEOF
25465 rm -f conftest.$ac_objext
25466 if { (ac_try="$ac_compile"
25467 case "(($ac_try" in
25468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25469   *) ac_try_echo=$ac_try;;
25470 esac
25471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25472   (eval "$ac_compile") 2>conftest.er1
25473   ac_status=$?
25474   grep -v '^ *+' conftest.er1 >conftest.err
25475   rm -f conftest.er1
25476   cat conftest.err >&5
25477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25478   (exit $ac_status); } && {
25479          test -z "$ac_cxx_werror_flag" ||
25480          test ! -s conftest.err
25481        } && test -s conftest.$ac_objext; then
25482   wx_cv_class_stdunorderedmapset=yes
25483 else
25484   echo "$as_me: failed program was:" >&5
25485 sed 's/^/| /' conftest.$ac_ext >&5
25486
25487         wx_cv_class_stdunorderedmapset=no
25488 fi
25489
25490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25491
25492
25493 fi
25494 { echo "$as_me:$LINENO: result: $wx_cv_class_stdunorderedmapset" >&5
25495 echo "${ECHO_T}$wx_cv_class_stdunorderedmapset" >&6; }
25496 fi
25497
25498
25499
25500     if test "$wx_cv_class_stdunorderedmapset" = yes; then
25501          cat >>confdefs.h <<\_ACEOF
25502 #define HAVE_STD_UNORDERED_MAP 1
25503 _ACEOF
25504
25505          cat >>confdefs.h <<\_ACEOF
25506 #define HAVE_STD_UNORDERED_SET 1
25507 _ACEOF
25508
25509     else
25510         { echo "$as_me:$LINENO: checking for tr1/unordered_map" >&5
25511 echo $ECHO_N "checking for tr1/unordered_map... $ECHO_C" >&6; }
25512 if test "${ac_cv_header_tr1_unordered_map+set}" = set; then
25513   echo $ECHO_N "(cached) $ECHO_C" >&6
25514 else
25515   cat >conftest.$ac_ext <<_ACEOF
25516 /* confdefs.h.  */
25517 _ACEOF
25518 cat confdefs.h >>conftest.$ac_ext
25519 cat >>conftest.$ac_ext <<_ACEOF
25520 /* end confdefs.h.  */
25521
25522
25523
25524 #include <tr1/unordered_map>
25525 _ACEOF
25526 rm -f conftest.$ac_objext
25527 if { (ac_try="$ac_compile"
25528 case "(($ac_try" in
25529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25530   *) ac_try_echo=$ac_try;;
25531 esac
25532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25533   (eval "$ac_compile") 2>conftest.er1
25534   ac_status=$?
25535   grep -v '^ *+' conftest.er1 >conftest.err
25536   rm -f conftest.er1
25537   cat conftest.err >&5
25538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25539   (exit $ac_status); } && {
25540          test -z "$ac_cxx_werror_flag" ||
25541          test ! -s conftest.err
25542        } && test -s conftest.$ac_objext; then
25543   ac_cv_header_tr1_unordered_map=yes
25544 else
25545   echo "$as_me: failed program was:" >&5
25546 sed 's/^/| /' conftest.$ac_ext >&5
25547
25548         ac_cv_header_tr1_unordered_map=no
25549 fi
25550
25551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25552 fi
25553 { echo "$as_me:$LINENO: result: $ac_cv_header_tr1_unordered_map" >&5
25554 echo "${ECHO_T}$ac_cv_header_tr1_unordered_map" >&6; }
25555 if test $ac_cv_header_tr1_unordered_map = yes; then
25556   { echo "$as_me:$LINENO: checking for unordered_map and unordered_set in std::tr1" >&5
25557 echo $ECHO_N "checking for unordered_map and unordered_set in std::tr1... $ECHO_C" >&6; }
25558 if test "${wx_cv_class_tr1unorderedmapset+set}" = set; then
25559   echo $ECHO_N "(cached) $ECHO_C" >&6
25560 else
25561   cat >conftest.$ac_ext <<_ACEOF
25562 /* confdefs.h.  */
25563 _ACEOF
25564 cat confdefs.h >>conftest.$ac_ext
25565 cat >>conftest.$ac_ext <<_ACEOF
25566 /* end confdefs.h.  */
25567 #include <tr1/unordered_map>
25568                     #include <tr1/unordered_set>
25569 int
25570 main ()
25571 {
25572 std::tr1::unordered_map<double*, char*> test1;
25573                      std::tr1::unordered_set<char*> test2;
25574             #if defined(__GNUC__) && (__GNUC__==4) && (__GNUC_MINOR__<2)
25575             #error can't use unordered_{map,set} with gcc-4.[01]: http://gcc.gnu.org/PR24389
25576             #endif
25577   ;
25578   return 0;
25579 }
25580 _ACEOF
25581 rm -f conftest.$ac_objext
25582 if { (ac_try="$ac_compile"
25583 case "(($ac_try" in
25584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25585   *) ac_try_echo=$ac_try;;
25586 esac
25587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25588   (eval "$ac_compile") 2>conftest.er1
25589   ac_status=$?
25590   grep -v '^ *+' conftest.er1 >conftest.err
25591   rm -f conftest.er1
25592   cat conftest.err >&5
25593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25594   (exit $ac_status); } && {
25595          test -z "$ac_cxx_werror_flag" ||
25596          test ! -s conftest.err
25597        } && test -s conftest.$ac_objext; then
25598   wx_cv_class_tr1unorderedmapset=yes
25599 else
25600   echo "$as_me: failed program was:" >&5
25601 sed 's/^/| /' conftest.$ac_ext >&5
25602
25603         wx_cv_class_tr1unorderedmapset=no
25604 fi
25605
25606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25607
25608
25609 fi
25610 { echo "$as_me:$LINENO: result: $wx_cv_class_tr1unorderedmapset" >&5
25611 echo "${ECHO_T}$wx_cv_class_tr1unorderedmapset" >&6; }
25612 fi
25613
25614
25615
25616         if test "$wx_cv_class_tr1unorderedmapset" = yes; then
25617             cat >>confdefs.h <<\_ACEOF
25618 #define HAVE_TR1_UNORDERED_MAP 1
25619 _ACEOF
25620
25621             cat >>confdefs.h <<\_ACEOF
25622 #define HAVE_TR1_UNORDERED_SET 1
25623 _ACEOF
25624
25625         else
25626                         { echo "$as_me:$LINENO: checking for hash_map" >&5
25627 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6; }
25628 if test "${ac_cv_header_hash_map+set}" = set; then
25629   echo $ECHO_N "(cached) $ECHO_C" >&6
25630 else
25631   cat >conftest.$ac_ext <<_ACEOF
25632 /* confdefs.h.  */
25633 _ACEOF
25634 cat confdefs.h >>conftest.$ac_ext
25635 cat >>conftest.$ac_ext <<_ACEOF
25636 /* end confdefs.h.  */
25637
25638
25639
25640 #include <hash_map>
25641 _ACEOF
25642 rm -f conftest.$ac_objext
25643 if { (ac_try="$ac_compile"
25644 case "(($ac_try" in
25645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25646   *) ac_try_echo=$ac_try;;
25647 esac
25648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25649   (eval "$ac_compile") 2>conftest.er1
25650   ac_status=$?
25651   grep -v '^ *+' conftest.er1 >conftest.err
25652   rm -f conftest.er1
25653   cat conftest.err >&5
25654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25655   (exit $ac_status); } && {
25656          test -z "$ac_cxx_werror_flag" ||
25657          test ! -s conftest.err
25658        } && test -s conftest.$ac_objext; then
25659   ac_cv_header_hash_map=yes
25660 else
25661   echo "$as_me: failed program was:" >&5
25662 sed 's/^/| /' conftest.$ac_ext >&5
25663
25664         ac_cv_header_hash_map=no
25665 fi
25666
25667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25668 fi
25669 { echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
25670 echo "${ECHO_T}$ac_cv_header_hash_map" >&6; }
25671 if test $ac_cv_header_hash_map = yes; then
25672   { echo "$as_me:$LINENO: checking for std::hash_map and hash_set" >&5
25673 echo $ECHO_N "checking for std::hash_map and hash_set... $ECHO_C" >&6; }
25674 if test "${wx_cv_class_stdhashmapset+set}" = set; then
25675   echo $ECHO_N "(cached) $ECHO_C" >&6
25676 else
25677   cat >conftest.$ac_ext <<_ACEOF
25678 /* confdefs.h.  */
25679 _ACEOF
25680 cat confdefs.h >>conftest.$ac_ext
25681 cat >>conftest.$ac_ext <<_ACEOF
25682 /* end confdefs.h.  */
25683 #include <hash_map>
25684                         #include <hash_set>
25685 int
25686 main ()
25687 {
25688 std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
25689                          std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
25690   ;
25691   return 0;
25692 }
25693 _ACEOF
25694 rm -f conftest.$ac_objext
25695 if { (ac_try="$ac_compile"
25696 case "(($ac_try" in
25697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25698   *) ac_try_echo=$ac_try;;
25699 esac
25700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25701   (eval "$ac_compile") 2>conftest.er1
25702   ac_status=$?
25703   grep -v '^ *+' conftest.er1 >conftest.err
25704   rm -f conftest.er1
25705   cat conftest.err >&5
25706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25707   (exit $ac_status); } && {
25708          test -z "$ac_cxx_werror_flag" ||
25709          test ! -s conftest.err
25710        } && test -s conftest.$ac_objext; then
25711   wx_cv_class_stdhashmapset=yes
25712 else
25713   echo "$as_me: failed program was:" >&5
25714 sed 's/^/| /' conftest.$ac_ext >&5
25715
25716         wx_cv_class_stdhashmapset=no
25717 fi
25718
25719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25720
25721
25722 fi
25723 { echo "$as_me:$LINENO: result: $wx_cv_class_stdhashmapset" >&5
25724 echo "${ECHO_T}$wx_cv_class_stdhashmapset" >&6; }
25725 fi
25726
25727
25728
25729             if test "$wx_cv_class_stdhashmapset" = yes; then
25730                 cat >>confdefs.h <<\_ACEOF
25731 #define HAVE_HASH_MAP 1
25732 _ACEOF
25733
25734                 cat >>confdefs.h <<\_ACEOF
25735 #define HAVE_STD_HASH_MAP 1
25736 _ACEOF
25737
25738             fi
25739
25740             { echo "$as_me:$LINENO: checking for ext/hash_map" >&5
25741 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6; }
25742 if test "${ac_cv_header_ext_hash_map+set}" = set; then
25743   echo $ECHO_N "(cached) $ECHO_C" >&6
25744 else
25745   cat >conftest.$ac_ext <<_ACEOF
25746 /* confdefs.h.  */
25747 _ACEOF
25748 cat confdefs.h >>conftest.$ac_ext
25749 cat >>conftest.$ac_ext <<_ACEOF
25750 /* end confdefs.h.  */
25751
25752
25753
25754 #include <ext/hash_map>
25755 _ACEOF
25756 rm -f conftest.$ac_objext
25757 if { (ac_try="$ac_compile"
25758 case "(($ac_try" in
25759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25760   *) ac_try_echo=$ac_try;;
25761 esac
25762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25763   (eval "$ac_compile") 2>conftest.er1
25764   ac_status=$?
25765   grep -v '^ *+' conftest.er1 >conftest.err
25766   rm -f conftest.er1
25767   cat conftest.err >&5
25768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25769   (exit $ac_status); } && {
25770          test -z "$ac_cxx_werror_flag" ||
25771          test ! -s conftest.err
25772        } && test -s conftest.$ac_objext; then
25773   ac_cv_header_ext_hash_map=yes
25774 else
25775   echo "$as_me: failed program was:" >&5
25776 sed 's/^/| /' conftest.$ac_ext >&5
25777
25778         ac_cv_header_ext_hash_map=no
25779 fi
25780
25781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25782 fi
25783 { echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
25784 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6; }
25785 if test $ac_cv_header_ext_hash_map = yes; then
25786   { echo "$as_me:$LINENO: checking for GNU hash_map and hash_set" >&5
25787 echo $ECHO_N "checking for GNU hash_map and hash_set... $ECHO_C" >&6; }
25788 if test "${wx_cv_class_gnuhashmapset+set}" = set; then
25789   echo $ECHO_N "(cached) $ECHO_C" >&6
25790 else
25791   cat >conftest.$ac_ext <<_ACEOF
25792 /* confdefs.h.  */
25793 _ACEOF
25794 cat confdefs.h >>conftest.$ac_ext
25795 cat >>conftest.$ac_ext <<_ACEOF
25796 /* end confdefs.h.  */
25797 #include <ext/hash_map>
25798                         #include <ext/hash_set>
25799 int
25800 main ()
25801 {
25802 __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
25803                          __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
25804   ;
25805   return 0;
25806 }
25807 _ACEOF
25808 rm -f conftest.$ac_objext
25809 if { (ac_try="$ac_compile"
25810 case "(($ac_try" in
25811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25812   *) ac_try_echo=$ac_try;;
25813 esac
25814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25815   (eval "$ac_compile") 2>conftest.er1
25816   ac_status=$?
25817   grep -v '^ *+' conftest.er1 >conftest.err
25818   rm -f conftest.er1
25819   cat conftest.err >&5
25820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25821   (exit $ac_status); } && {
25822          test -z "$ac_cxx_werror_flag" ||
25823          test ! -s conftest.err
25824        } && test -s conftest.$ac_objext; then
25825   wx_cv_class_gnuhashmapset=yes
25826 else
25827   echo "$as_me: failed program was:" >&5
25828 sed 's/^/| /' conftest.$ac_ext >&5
25829
25830         wx_cv_class_gnuhashmapset=no
25831 fi
25832
25833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25834
25835
25836 fi
25837 { echo "$as_me:$LINENO: result: $wx_cv_class_gnuhashmapset" >&5
25838 echo "${ECHO_T}$wx_cv_class_gnuhashmapset" >&6; }
25839 fi
25840
25841
25842
25843         fi
25844     fi
25845 fi
25846
25847
25848
25849   if test -n "$GCC"; then
25850     { echo "$as_me:$LINENO: checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins" >&5
25851 echo $ECHO_N "checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins... $ECHO_C" >&6; }
25852     if test "${wx_cv_cc_gcc_atomic_builtins+set}" = set; then
25853   echo $ECHO_N "(cached) $ECHO_C" >&6
25854 else
25855
25856       cat >conftest.$ac_ext <<_ACEOF
25857 /* confdefs.h.  */
25858 _ACEOF
25859 cat confdefs.h >>conftest.$ac_ext
25860 cat >>conftest.$ac_ext <<_ACEOF
25861 /* end confdefs.h.  */
25862
25863 int
25864 main ()
25865 {
25866
25867           unsigned int value=0;
25868           /* wxAtomicInc doesn't use return value here */
25869           __sync_fetch_and_add(&value, 2);
25870           __sync_sub_and_fetch(&value, 1);
25871           /* but wxAtomicDec does, so mimic that: */
25872           unsigned int r2 = __sync_sub_and_fetch(&value, 1);
25873
25874   ;
25875   return 0;
25876 }
25877 _ACEOF
25878 rm -f conftest.$ac_objext conftest$ac_exeext
25879 if { (ac_try="$ac_link"
25880 case "(($ac_try" in
25881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25882   *) ac_try_echo=$ac_try;;
25883 esac
25884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25885   (eval "$ac_link") 2>conftest.er1
25886   ac_status=$?
25887   grep -v '^ *+' conftest.er1 >conftest.err
25888   rm -f conftest.er1
25889   cat conftest.err >&5
25890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25891   (exit $ac_status); } && {
25892          test -z "$ac_cxx_werror_flag" ||
25893          test ! -s conftest.err
25894        } && test -s conftest$ac_exeext &&
25895        $as_test_x conftest$ac_exeext; then
25896   wx_cv_cc_gcc_atomic_builtins=yes
25897 else
25898   echo "$as_me: failed program was:" >&5
25899 sed 's/^/| /' conftest.$ac_ext >&5
25900
25901         wx_cv_cc_gcc_atomic_builtins=no
25902 fi
25903
25904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25905       conftest$ac_exeext conftest.$ac_ext
25906
25907 fi
25908
25909     { echo "$as_me:$LINENO: result: $wx_cv_cc_gcc_atomic_builtins" >&5
25910 echo "${ECHO_T}$wx_cv_cc_gcc_atomic_builtins" >&6; }
25911     if test $wx_cv_cc_gcc_atomic_builtins = yes; then
25912       cat >>confdefs.h <<\_ACEOF
25913 #define HAVE_GCC_ATOMIC_BUILTINS 1
25914 _ACEOF
25915
25916     fi
25917   fi
25918
25919
25920 ac_ext=c
25921 ac_cpp='$CPP $CPPFLAGS'
25922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25925
25926
25927
25928 SEARCH_INCLUDE="\
25929     /usr/local/include        \
25930     /usr/local/X11/include    \
25931     /usr/local/include/X11    \
25932     /usr/local/X11R7/include  \
25933     /usr/local/X11R6/include  \
25934     /usr/local/include/X11R7  \
25935     /usr/local/include/X11R6  \
25936                               \
25937     /usr/Motif-2.1/include    \
25938     /usr/Motif-1.2/include    \
25939     /usr/include/Motif1.2     \
25940                               \
25941     /usr/dt/include           \
25942     /usr/openwin/include      \
25943                               \
25944     /usr/include/Xm           \
25945                               \
25946     /usr/X11R7/include        \
25947     /usr/X11R6/include        \
25948     /usr/X11R6.4/include      \
25949                               \
25950     /usr/include/X11R7        \
25951     /usr/include/X11R6        \
25952                               \
25953     /usr/X11/include          \
25954     /usr/include/X11          \
25955                               \
25956     /usr/XFree86/include/X11  \
25957     /usr/pkg/include          \
25958                               \
25959     /usr/local/X1R5/include  \
25960     /usr/local/include/X11R5  \
25961     /usr/X11R5/include        \
25962     /usr/include/X11R5        \
25963                               \
25964     /usr/local/X11R4/include  \
25965     /usr/local/include/X11R4  \
25966     /usr/X11R4/include        \
25967     /usr/include/X11R4        \
25968                               \
25969     /usr/openwin/share/include"
25970
25971 { echo "$as_me:$LINENO: checking for libraries directory" >&5
25972 echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6; }
25973
25974 case "${host}" in
25975     *-*-irix6* )
25976         if test "${wx_cv_std_libpath+set}" = set; then
25977   echo $ECHO_N "(cached) $ECHO_C" >&6
25978 else
25979
25980                 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
25981                     for e in a so sl dylib dll.a; do
25982                         libc="$d/libc.$e"
25983                         if test -f $libc; then
25984                             save_LIBS="$LIBS"
25985                             LIBS="$libc"
25986                             cat >conftest.$ac_ext <<_ACEOF
25987 int main() { return 0; }
25988 _ACEOF
25989 rm -f conftest.$ac_objext conftest$ac_exeext
25990 if { (ac_try="$ac_link"
25991 case "(($ac_try" in
25992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25993   *) ac_try_echo=$ac_try;;
25994 esac
25995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25996   (eval "$ac_link") 2>conftest.er1
25997   ac_status=$?
25998   grep -v '^ *+' conftest.er1 >conftest.err
25999   rm -f conftest.er1
26000   cat conftest.err >&5
26001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26002   (exit $ac_status); } && {
26003          test -z "$ac_c_werror_flag" ||
26004          test ! -s conftest.err
26005        } && test -s conftest$ac_exeext &&
26006        $as_test_x conftest$ac_exeext; then
26007   wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
26008 else
26009   echo "$as_me: failed program was:" >&5
26010 sed 's/^/| /' conftest.$ac_ext >&5
26011
26012
26013 fi
26014
26015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26016       conftest$ac_exeext conftest.$ac_ext
26017                             LIBS="$save_LIBS"
26018                             if test "x$wx_cv_std_libpath" != "x"; then
26019                                 break 2
26020                             fi
26021                         fi
26022                     done
26023                 done
26024                 if test "x$wx_cv_std_libpath" = "x"; then
26025                     wx_cv_std_libpath="lib"
26026                 fi
26027
26028
26029 fi
26030
26031         ;;
26032
26033     *-*-solaris2* )
26034                 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
26035             wx_cv_std_libpath="lib/64"
26036         else
26037             wx_cv_std_libpath="lib"
26038         fi
26039         ;;
26040
26041     *-*-linux* )
26042                 if test "$ac_cv_sizeof_void_p" = 8 -a \
26043                 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
26044             wx_cv_std_libpath="lib64"
26045         else
26046             wx_cv_std_libpath="lib"
26047         fi
26048         ;;
26049
26050     *)
26051         wx_cv_std_libpath="lib";
26052         ;;
26053 esac
26054
26055 { echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
26056 echo "${ECHO_T}$wx_cv_std_libpath" >&6; }
26057
26058 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
26059
26060 if test "$build" != "$host" -a "$GCC" = yes; then
26061                     if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
26062         cross_root=`dirname $cross_root`
26063         cross_root=`dirname $cross_root`
26064
26065                         SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
26066         SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
26067         SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
26068
26069                 if test -z "$PKG_CONFIG_PATH"; then
26070             PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
26071             export PKG_CONFIG_PATH
26072         fi
26073
26074                                 if test -z "$x_includes" -o "$x_includes" = NONE; then
26075
26076 ac_find_includes=
26077 for ac_dir in $SEARCH_INCLUDE /usr/include;
26078   do
26079     if test -f "$ac_dir/X11/Intrinsic.h"; then
26080       ac_find_includes=$ac_dir
26081       break
26082     fi
26083   done
26084
26085             x_includes=$ac_find_includes
26086         fi
26087         if test -z "$x_libraries" -o "$x_libraries" = NONE; then
26088
26089   ac_find_libraries=
26090   for ac_dir in $SEARCH_LIB;
26091   do
26092     for ac_extension in a so sl dylib dll.a; do
26093       if test -f "$ac_dir/libXt.$ac_extension"; then
26094         ac_find_libraries=$ac_dir
26095         break 2
26096       fi
26097     done
26098   done
26099
26100             x_libraries=$ac_find_libraries
26101         fi
26102     fi
26103 fi
26104
26105
26106 cat >confcache <<\_ACEOF
26107 # This file is a shell script that caches the results of configure
26108 # tests run on this system so they can be shared between configure
26109 # scripts and configure runs, see configure's option --config-cache.
26110 # It is not useful on other systems.  If it contains results you don't
26111 # want to keep, you may remove or edit it.
26112 #
26113 # config.status only pays attention to the cache file if you give it
26114 # the --recheck option to rerun configure.
26115 #
26116 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26117 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26118 # following values.
26119
26120 _ACEOF
26121
26122 # The following way of writing the cache mishandles newlines in values,
26123 # but we know of no workaround that is simple, portable, and efficient.
26124 # So, we kill variables containing newlines.
26125 # Ultrix sh set writes to stderr and can't be redirected directly,
26126 # and sets the high bit in the cache file unless we assign to the vars.
26127 (
26128   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26129     eval ac_val=\$$ac_var
26130     case $ac_val in #(
26131     *${as_nl}*)
26132       case $ac_var in #(
26133       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26134 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26135       esac
26136       case $ac_var in #(
26137       _ | IFS | as_nl) ;; #(
26138       *) $as_unset $ac_var ;;
26139       esac ;;
26140     esac
26141   done
26142
26143   (set) 2>&1 |
26144     case $as_nl`(ac_space=' '; set) 2>&1` in #(
26145     *${as_nl}ac_space=\ *)
26146       # `set' does not quote correctly, so add quotes (double-quote
26147       # substitution turns \\\\ into \\, and sed turns \\ into \).
26148       sed -n \
26149         "s/'/'\\\\''/g;
26150           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26151       ;; #(
26152     *)
26153       # `set' quotes correctly as required by POSIX, so do not add quotes.
26154       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26155       ;;
26156     esac |
26157     sort
26158 ) |
26159   sed '
26160      /^ac_cv_env_/b end
26161      t clear
26162      :clear
26163      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26164      t end
26165      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26166      :end' >>confcache
26167 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26168   if test -w "$cache_file"; then
26169     test "x$cache_file" != "x/dev/null" &&
26170       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26171 echo "$as_me: updating cache $cache_file" >&6;}
26172     cat confcache >$cache_file
26173   else
26174     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26175 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26176   fi
26177 fi
26178 rm -f confcache
26179
26180 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
26181     { echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
26182 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6; }
26183 if test "${wx_cv_lib_glibc21+set}" = set; then
26184   echo $ECHO_N "(cached) $ECHO_C" >&6
26185 else
26186
26187         cat >conftest.$ac_ext <<_ACEOF
26188 /* confdefs.h.  */
26189 _ACEOF
26190 cat confdefs.h >>conftest.$ac_ext
26191 cat >>conftest.$ac_ext <<_ACEOF
26192 /* end confdefs.h.  */
26193 #include <features.h>
26194 int
26195 main ()
26196 {
26197
26198                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
26199                 not glibc 2.1
26200                 #endif
26201
26202   ;
26203   return 0;
26204 }
26205 _ACEOF
26206 rm -f conftest.$ac_objext
26207 if { (ac_try="$ac_compile"
26208 case "(($ac_try" in
26209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26210   *) ac_try_echo=$ac_try;;
26211 esac
26212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26213   (eval "$ac_compile") 2>conftest.er1
26214   ac_status=$?
26215   grep -v '^ *+' conftest.er1 >conftest.err
26216   rm -f conftest.er1
26217   cat conftest.err >&5
26218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26219   (exit $ac_status); } && {
26220          test -z "$ac_c_werror_flag" ||
26221          test ! -s conftest.err
26222        } && test -s conftest.$ac_objext; then
26223
26224                 wx_cv_lib_glibc21=yes
26225
26226 else
26227   echo "$as_me: failed program was:" >&5
26228 sed 's/^/| /' conftest.$ac_ext >&5
26229
26230
26231                 wx_cv_lib_glibc21=no
26232
26233
26234 fi
26235
26236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26237
26238 fi
26239 { echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
26240 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6; }
26241     if test "$wx_cv_lib_glibc21" = "yes"; then
26242         cat >>confdefs.h <<\_ACEOF
26243 #define wxHAVE_GLIBC2 1
26244 _ACEOF
26245
26246     fi
26247 fi
26248
26249 if test "x$wx_cv_lib_glibc21" = "xyes"; then
26250     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
26251         cat >>confdefs.h <<\_ACEOF
26252 #define _GNU_SOURCE 1
26253 _ACEOF
26254
26255     fi
26256 fi
26257
26258 have_cos=0
26259 have_floor=0
26260
26261 for ac_func in cos
26262 do
26263 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26264 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26265 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26266 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26267   echo $ECHO_N "(cached) $ECHO_C" >&6
26268 else
26269   cat >conftest.$ac_ext <<_ACEOF
26270 /* confdefs.h.  */
26271 _ACEOF
26272 cat confdefs.h >>conftest.$ac_ext
26273 cat >>conftest.$ac_ext <<_ACEOF
26274 /* end confdefs.h.  */
26275 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26276    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26277 #define $ac_func innocuous_$ac_func
26278
26279 /* System header to define __stub macros and hopefully few prototypes,
26280     which can conflict with char $ac_func (); below.
26281     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26282     <limits.h> exists even on freestanding compilers.  */
26283
26284 #ifdef __STDC__
26285 # include <limits.h>
26286 #else
26287 # include <assert.h>
26288 #endif
26289
26290 #undef $ac_func
26291
26292 /* Override any GCC internal prototype to avoid an error.
26293    Use char because int might match the return type of a GCC
26294    builtin and then its argument prototype would still apply.  */
26295 #ifdef __cplusplus
26296 extern "C"
26297 #endif
26298 char $ac_func ();
26299 /* The GNU C library defines this for functions which it implements
26300     to always fail with ENOSYS.  Some functions are actually named
26301     something starting with __ and the normal name is an alias.  */
26302 #if defined __stub_$ac_func || defined __stub___$ac_func
26303 choke me
26304 #endif
26305
26306 int
26307 main ()
26308 {
26309 return $ac_func ();
26310   ;
26311   return 0;
26312 }
26313 _ACEOF
26314 rm -f conftest.$ac_objext conftest$ac_exeext
26315 if { (ac_try="$ac_link"
26316 case "(($ac_try" in
26317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26318   *) ac_try_echo=$ac_try;;
26319 esac
26320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26321   (eval "$ac_link") 2>conftest.er1
26322   ac_status=$?
26323   grep -v '^ *+' conftest.er1 >conftest.err
26324   rm -f conftest.er1
26325   cat conftest.err >&5
26326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26327   (exit $ac_status); } && {
26328          test -z "$ac_c_werror_flag" ||
26329          test ! -s conftest.err
26330        } && test -s conftest$ac_exeext &&
26331        $as_test_x conftest$ac_exeext; then
26332   eval "$as_ac_var=yes"
26333 else
26334   echo "$as_me: failed program was:" >&5
26335 sed 's/^/| /' conftest.$ac_ext >&5
26336
26337         eval "$as_ac_var=no"
26338 fi
26339
26340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26341       conftest$ac_exeext conftest.$ac_ext
26342 fi
26343 ac_res=`eval echo '${'$as_ac_var'}'`
26344                { echo "$as_me:$LINENO: result: $ac_res" >&5
26345 echo "${ECHO_T}$ac_res" >&6; }
26346 if test `eval echo '${'$as_ac_var'}'` = yes; then
26347   cat >>confdefs.h <<_ACEOF
26348 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26349 _ACEOF
26350  have_cos=1
26351 fi
26352 done
26353
26354
26355 for ac_func in floor
26356 do
26357 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26358 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26359 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26360 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26361   echo $ECHO_N "(cached) $ECHO_C" >&6
26362 else
26363   cat >conftest.$ac_ext <<_ACEOF
26364 /* confdefs.h.  */
26365 _ACEOF
26366 cat confdefs.h >>conftest.$ac_ext
26367 cat >>conftest.$ac_ext <<_ACEOF
26368 /* end confdefs.h.  */
26369 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26370    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26371 #define $ac_func innocuous_$ac_func
26372
26373 /* System header to define __stub macros and hopefully few prototypes,
26374     which can conflict with char $ac_func (); below.
26375     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26376     <limits.h> exists even on freestanding compilers.  */
26377
26378 #ifdef __STDC__
26379 # include <limits.h>
26380 #else
26381 # include <assert.h>
26382 #endif
26383
26384 #undef $ac_func
26385
26386 /* Override any GCC internal prototype to avoid an error.
26387    Use char because int might match the return type of a GCC
26388    builtin and then its argument prototype would still apply.  */
26389 #ifdef __cplusplus
26390 extern "C"
26391 #endif
26392 char $ac_func ();
26393 /* The GNU C library defines this for functions which it implements
26394     to always fail with ENOSYS.  Some functions are actually named
26395     something starting with __ and the normal name is an alias.  */
26396 #if defined __stub_$ac_func || defined __stub___$ac_func
26397 choke me
26398 #endif
26399
26400 int
26401 main ()
26402 {
26403 return $ac_func ();
26404   ;
26405   return 0;
26406 }
26407 _ACEOF
26408 rm -f conftest.$ac_objext conftest$ac_exeext
26409 if { (ac_try="$ac_link"
26410 case "(($ac_try" in
26411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26412   *) ac_try_echo=$ac_try;;
26413 esac
26414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26415   (eval "$ac_link") 2>conftest.er1
26416   ac_status=$?
26417   grep -v '^ *+' conftest.er1 >conftest.err
26418   rm -f conftest.er1
26419   cat conftest.err >&5
26420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26421   (exit $ac_status); } && {
26422          test -z "$ac_c_werror_flag" ||
26423          test ! -s conftest.err
26424        } && test -s conftest$ac_exeext &&
26425        $as_test_x conftest$ac_exeext; then
26426   eval "$as_ac_var=yes"
26427 else
26428   echo "$as_me: failed program was:" >&5
26429 sed 's/^/| /' conftest.$ac_ext >&5
26430
26431         eval "$as_ac_var=no"
26432 fi
26433
26434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26435       conftest$ac_exeext conftest.$ac_ext
26436 fi
26437 ac_res=`eval echo '${'$as_ac_var'}'`
26438                { echo "$as_me:$LINENO: result: $ac_res" >&5
26439 echo "${ECHO_T}$ac_res" >&6; }
26440 if test `eval echo '${'$as_ac_var'}'` = yes; then
26441   cat >>confdefs.h <<_ACEOF
26442 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26443 _ACEOF
26444  have_floor=1
26445 fi
26446 done
26447
26448 { echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
26449 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6; }
26450 if test "$have_cos" = 1 -a "$have_floor" = 1; then
26451     { echo "$as_me:$LINENO: result: yes" >&5
26452 echo "${ECHO_T}yes" >&6; }
26453 else
26454     { echo "$as_me:$LINENO: result: no" >&5
26455 echo "${ECHO_T}no" >&6; }
26456     LIBS="$LIBS -lm"
26457     # use different functions to avoid configure caching
26458     have_sin=0
26459     have_ceil=0
26460
26461 for ac_func in sin
26462 do
26463 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26464 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26465 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26466 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26467   echo $ECHO_N "(cached) $ECHO_C" >&6
26468 else
26469   cat >conftest.$ac_ext <<_ACEOF
26470 /* confdefs.h.  */
26471 _ACEOF
26472 cat confdefs.h >>conftest.$ac_ext
26473 cat >>conftest.$ac_ext <<_ACEOF
26474 /* end confdefs.h.  */
26475 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26476    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26477 #define $ac_func innocuous_$ac_func
26478
26479 /* System header to define __stub macros and hopefully few prototypes,
26480     which can conflict with char $ac_func (); below.
26481     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26482     <limits.h> exists even on freestanding compilers.  */
26483
26484 #ifdef __STDC__
26485 # include <limits.h>
26486 #else
26487 # include <assert.h>
26488 #endif
26489
26490 #undef $ac_func
26491
26492 /* Override any GCC internal prototype to avoid an error.
26493    Use char because int might match the return type of a GCC
26494    builtin and then its argument prototype would still apply.  */
26495 #ifdef __cplusplus
26496 extern "C"
26497 #endif
26498 char $ac_func ();
26499 /* The GNU C library defines this for functions which it implements
26500     to always fail with ENOSYS.  Some functions are actually named
26501     something starting with __ and the normal name is an alias.  */
26502 #if defined __stub_$ac_func || defined __stub___$ac_func
26503 choke me
26504 #endif
26505
26506 int
26507 main ()
26508 {
26509 return $ac_func ();
26510   ;
26511   return 0;
26512 }
26513 _ACEOF
26514 rm -f conftest.$ac_objext conftest$ac_exeext
26515 if { (ac_try="$ac_link"
26516 case "(($ac_try" in
26517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26518   *) ac_try_echo=$ac_try;;
26519 esac
26520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26521   (eval "$ac_link") 2>conftest.er1
26522   ac_status=$?
26523   grep -v '^ *+' conftest.er1 >conftest.err
26524   rm -f conftest.er1
26525   cat conftest.err >&5
26526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26527   (exit $ac_status); } && {
26528          test -z "$ac_c_werror_flag" ||
26529          test ! -s conftest.err
26530        } && test -s conftest$ac_exeext &&
26531        $as_test_x conftest$ac_exeext; then
26532   eval "$as_ac_var=yes"
26533 else
26534   echo "$as_me: failed program was:" >&5
26535 sed 's/^/| /' conftest.$ac_ext >&5
26536
26537         eval "$as_ac_var=no"
26538 fi
26539
26540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26541       conftest$ac_exeext conftest.$ac_ext
26542 fi
26543 ac_res=`eval echo '${'$as_ac_var'}'`
26544                { echo "$as_me:$LINENO: result: $ac_res" >&5
26545 echo "${ECHO_T}$ac_res" >&6; }
26546 if test `eval echo '${'$as_ac_var'}'` = yes; then
26547   cat >>confdefs.h <<_ACEOF
26548 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26549 _ACEOF
26550  have_sin=1
26551 fi
26552 done
26553
26554
26555 for ac_func in ceil
26556 do
26557 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26558 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26559 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26560 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26561   echo $ECHO_N "(cached) $ECHO_C" >&6
26562 else
26563   cat >conftest.$ac_ext <<_ACEOF
26564 /* confdefs.h.  */
26565 _ACEOF
26566 cat confdefs.h >>conftest.$ac_ext
26567 cat >>conftest.$ac_ext <<_ACEOF
26568 /* end confdefs.h.  */
26569 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26570    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26571 #define $ac_func innocuous_$ac_func
26572
26573 /* System header to define __stub macros and hopefully few prototypes,
26574     which can conflict with char $ac_func (); below.
26575     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26576     <limits.h> exists even on freestanding compilers.  */
26577
26578 #ifdef __STDC__
26579 # include <limits.h>
26580 #else
26581 # include <assert.h>
26582 #endif
26583
26584 #undef $ac_func
26585
26586 /* Override any GCC internal prototype to avoid an error.
26587    Use char because int might match the return type of a GCC
26588    builtin and then its argument prototype would still apply.  */
26589 #ifdef __cplusplus
26590 extern "C"
26591 #endif
26592 char $ac_func ();
26593 /* The GNU C library defines this for functions which it implements
26594     to always fail with ENOSYS.  Some functions are actually named
26595     something starting with __ and the normal name is an alias.  */
26596 #if defined __stub_$ac_func || defined __stub___$ac_func
26597 choke me
26598 #endif
26599
26600 int
26601 main ()
26602 {
26603 return $ac_func ();
26604   ;
26605   return 0;
26606 }
26607 _ACEOF
26608 rm -f conftest.$ac_objext conftest$ac_exeext
26609 if { (ac_try="$ac_link"
26610 case "(($ac_try" in
26611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26612   *) ac_try_echo=$ac_try;;
26613 esac
26614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26615   (eval "$ac_link") 2>conftest.er1
26616   ac_status=$?
26617   grep -v '^ *+' conftest.er1 >conftest.err
26618   rm -f conftest.er1
26619   cat conftest.err >&5
26620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26621   (exit $ac_status); } && {
26622          test -z "$ac_c_werror_flag" ||
26623          test ! -s conftest.err
26624        } && test -s conftest$ac_exeext &&
26625        $as_test_x conftest$ac_exeext; then
26626   eval "$as_ac_var=yes"
26627 else
26628   echo "$as_me: failed program was:" >&5
26629 sed 's/^/| /' conftest.$ac_ext >&5
26630
26631         eval "$as_ac_var=no"
26632 fi
26633
26634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26635       conftest$ac_exeext conftest.$ac_ext
26636 fi
26637 ac_res=`eval echo '${'$as_ac_var'}'`
26638                { echo "$as_me:$LINENO: result: $ac_res" >&5
26639 echo "${ECHO_T}$ac_res" >&6; }
26640 if test `eval echo '${'$as_ac_var'}'` = yes; then
26641   cat >>confdefs.h <<_ACEOF
26642 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26643 _ACEOF
26644  have_ceil=1
26645 fi
26646 done
26647
26648     { echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
26649 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6; }
26650     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
26651         { echo "$as_me:$LINENO: result: yes" >&5
26652 echo "${ECHO_T}yes" >&6; }
26653     else
26654         { echo "$as_me:$LINENO: result: no" >&5
26655 echo "${ECHO_T}no" >&6; }
26656         # not sure we should warn the user, crash, etc.
26657     fi
26658 fi
26659
26660 ac_ext=cpp
26661 ac_cpp='$CXXCPP $CPPFLAGS'
26662 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26663 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26664 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26665
26666 if test "wxUSE_UNICODE" = "yes"; then
26667
26668   for wx_func in wcstoull
26669   do
26670     { echo "$as_me:$LINENO: checking for $wx_func" >&5
26671 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
26672 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
26673   echo $ECHO_N "(cached) $ECHO_C" >&6
26674 else
26675
26676         cat >conftest.$ac_ext <<_ACEOF
26677
26678             /* confdefs.h.  */
26679 _ACEOF
26680 cat confdefs.h >>conftest.$ac_ext
26681 cat >>conftest.$ac_ext <<_ACEOF
26682 /* end confdefs.h.  */
26683
26684
26685                 $ac_includes_default
26686
26687 int
26688 main ()
26689 {
26690
26691                 #ifndef $wx_func
26692                   &$wx_func;
26693                 #endif
26694
26695
26696   ;
26697   return 0;
26698 }
26699
26700 _ACEOF
26701 rm -f conftest.$ac_objext conftest$ac_exeext
26702 if { (ac_try="$ac_link"
26703 case "(($ac_try" in
26704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26705   *) ac_try_echo=$ac_try;;
26706 esac
26707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26708   (eval "$ac_link") 2>conftest.er1
26709   ac_status=$?
26710   grep -v '^ *+' conftest.er1 >conftest.err
26711   rm -f conftest.er1
26712   cat conftest.err >&5
26713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26714   (exit $ac_status); } && {
26715          test -z "$ac_cxx_werror_flag" ||
26716          test ! -s conftest.err
26717        } && test -s conftest$ac_exeext &&
26718        $as_test_x conftest$ac_exeext; then
26719   eval wx_cv_func_$wx_func=yes
26720 else
26721   echo "$as_me: failed program was:" >&5
26722 sed 's/^/| /' conftest.$ac_ext >&5
26723
26724         eval wx_cv_func_$wx_func=no
26725 fi
26726
26727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26728       conftest$ac_exeext conftest.$ac_ext
26729
26730 fi
26731 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
26732                { echo "$as_me:$LINENO: result: $ac_res" >&5
26733 echo "${ECHO_T}$ac_res" >&6; }
26734
26735     if eval test \$wx_cv_func_$wx_func = yes
26736     then
26737       cat >>confdefs.h <<_ACEOF
26738 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
26739 _ACEOF
26740
26741
26742     else
26743       :
26744
26745     fi
26746   done
26747
26748 else
26749
26750   for wx_func in strtoull
26751   do
26752     { echo "$as_me:$LINENO: checking for $wx_func" >&5
26753 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
26754 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
26755   echo $ECHO_N "(cached) $ECHO_C" >&6
26756 else
26757
26758         cat >conftest.$ac_ext <<_ACEOF
26759
26760             /* confdefs.h.  */
26761 _ACEOF
26762 cat confdefs.h >>conftest.$ac_ext
26763 cat >>conftest.$ac_ext <<_ACEOF
26764 /* end confdefs.h.  */
26765
26766
26767                 $ac_includes_default
26768
26769 int
26770 main ()
26771 {
26772
26773                 #ifndef $wx_func
26774                   &$wx_func;
26775                 #endif
26776
26777
26778   ;
26779   return 0;
26780 }
26781
26782 _ACEOF
26783 rm -f conftest.$ac_objext conftest$ac_exeext
26784 if { (ac_try="$ac_link"
26785 case "(($ac_try" in
26786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26787   *) ac_try_echo=$ac_try;;
26788 esac
26789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26790   (eval "$ac_link") 2>conftest.er1
26791   ac_status=$?
26792   grep -v '^ *+' conftest.er1 >conftest.err
26793   rm -f conftest.er1
26794   cat conftest.err >&5
26795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26796   (exit $ac_status); } && {
26797          test -z "$ac_cxx_werror_flag" ||
26798          test ! -s conftest.err
26799        } && test -s conftest$ac_exeext &&
26800        $as_test_x conftest$ac_exeext; then
26801   eval wx_cv_func_$wx_func=yes
26802 else
26803   echo "$as_me: failed program was:" >&5
26804 sed 's/^/| /' conftest.$ac_ext >&5
26805
26806         eval wx_cv_func_$wx_func=no
26807 fi
26808
26809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26810       conftest$ac_exeext conftest.$ac_ext
26811
26812 fi
26813 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
26814                { echo "$as_me:$LINENO: result: $ac_res" >&5
26815 echo "${ECHO_T}$ac_res" >&6; }
26816
26817     if eval test \$wx_cv_func_$wx_func = yes
26818     then
26819       cat >>confdefs.h <<_ACEOF
26820 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
26821 _ACEOF
26822
26823
26824     else
26825       :
26826
26827     fi
26828   done
26829
26830 fi
26831 ac_ext=c
26832 ac_cpp='$CPP $CPPFLAGS'
26833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26836
26837
26838
26839
26840 if test "$wxUSE_REGEX" != "no"; then
26841     cat >>confdefs.h <<\_ACEOF
26842 #define wxUSE_REGEX 1
26843 _ACEOF
26844
26845
26846     if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
26847         { echo "$as_me:$LINENO: WARNING: Defaulting to the builtin regex library for Unicode build." >&5
26848 echo "$as_me: WARNING: Defaulting to the builtin regex library for Unicode build." >&2;}
26849         wxUSE_REGEX=builtin
26850     fi
26851
26852     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
26853                         { echo "$as_me:$LINENO: checking for regex.h" >&5
26854 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
26855 if test "${ac_cv_header_regex_h+set}" = set; then
26856   echo $ECHO_N "(cached) $ECHO_C" >&6
26857 else
26858   cat >conftest.$ac_ext <<_ACEOF
26859 /* confdefs.h.  */
26860 _ACEOF
26861 cat confdefs.h >>conftest.$ac_ext
26862 cat >>conftest.$ac_ext <<_ACEOF
26863 /* end confdefs.h.  */
26864
26865
26866 #include <regex.h>
26867 _ACEOF
26868 rm -f conftest.$ac_objext
26869 if { (ac_try="$ac_compile"
26870 case "(($ac_try" in
26871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26872   *) ac_try_echo=$ac_try;;
26873 esac
26874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26875   (eval "$ac_compile") 2>conftest.er1
26876   ac_status=$?
26877   grep -v '^ *+' conftest.er1 >conftest.err
26878   rm -f conftest.er1
26879   cat conftest.err >&5
26880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26881   (exit $ac_status); } && {
26882          test -z "$ac_c_werror_flag" ||
26883          test ! -s conftest.err
26884        } && test -s conftest.$ac_objext; then
26885   ac_cv_header_regex_h=yes
26886 else
26887   echo "$as_me: failed program was:" >&5
26888 sed 's/^/| /' conftest.$ac_ext >&5
26889
26890         ac_cv_header_regex_h=no
26891 fi
26892
26893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26894 fi
26895 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
26896 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
26897 if test $ac_cv_header_regex_h = yes; then
26898
26899
26900 for ac_func in regcomp re_search
26901 do
26902 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26903 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26904 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26905 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26906   echo $ECHO_N "(cached) $ECHO_C" >&6
26907 else
26908   cat >conftest.$ac_ext <<_ACEOF
26909 /* confdefs.h.  */
26910 _ACEOF
26911 cat confdefs.h >>conftest.$ac_ext
26912 cat >>conftest.$ac_ext <<_ACEOF
26913 /* end confdefs.h.  */
26914 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26915    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26916 #define $ac_func innocuous_$ac_func
26917
26918 /* System header to define __stub macros and hopefully few prototypes,
26919     which can conflict with char $ac_func (); below.
26920     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26921     <limits.h> exists even on freestanding compilers.  */
26922
26923 #ifdef __STDC__
26924 # include <limits.h>
26925 #else
26926 # include <assert.h>
26927 #endif
26928
26929 #undef $ac_func
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 $ac_func ();
26938 /* The GNU C library defines this for functions which it implements
26939     to always fail with ENOSYS.  Some functions are actually named
26940     something starting with __ and the normal name is an alias.  */
26941 #if defined __stub_$ac_func || defined __stub___$ac_func
26942 choke me
26943 #endif
26944
26945 int
26946 main ()
26947 {
26948 return $ac_func ();
26949   ;
26950   return 0;
26951 }
26952 _ACEOF
26953 rm -f conftest.$ac_objext conftest$ac_exeext
26954 if { (ac_try="$ac_link"
26955 case "(($ac_try" in
26956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26957   *) ac_try_echo=$ac_try;;
26958 esac
26959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26960   (eval "$ac_link") 2>conftest.er1
26961   ac_status=$?
26962   grep -v '^ *+' conftest.er1 >conftest.err
26963   rm -f conftest.er1
26964   cat conftest.err >&5
26965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26966   (exit $ac_status); } && {
26967          test -z "$ac_c_werror_flag" ||
26968          test ! -s conftest.err
26969        } && test -s conftest$ac_exeext &&
26970        $as_test_x conftest$ac_exeext; then
26971   eval "$as_ac_var=yes"
26972 else
26973   echo "$as_me: failed program was:" >&5
26974 sed 's/^/| /' conftest.$ac_ext >&5
26975
26976         eval "$as_ac_var=no"
26977 fi
26978
26979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26980       conftest$ac_exeext conftest.$ac_ext
26981 fi
26982 ac_res=`eval echo '${'$as_ac_var'}'`
26983                { echo "$as_me:$LINENO: result: $ac_res" >&5
26984 echo "${ECHO_T}$ac_res" >&6; }
26985 if test `eval echo '${'$as_ac_var'}'` = yes; then
26986   cat >>confdefs.h <<_ACEOF
26987 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26988 _ACEOF
26989
26990 fi
26991 done
26992
26993 fi
26994
26995
26996
26997         if test "x$ac_cv_func_regcomp" != "xyes"; then
26998             if test "$wxUSE_REGEX" = "sys" ; then
26999                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
27000 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
27001    { (exit 1); exit 1; }; }
27002             else
27003                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
27004 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
27005                 wxUSE_REGEX=builtin
27006             fi
27007         else
27008                         wxUSE_REGEX=sys
27009                         cat >>confdefs.h <<\_ACEOF
27010 #define WX_NO_REGEX_ADVANCED 1
27011 _ACEOF
27012
27013         fi
27014     fi
27015 fi
27016
27017
27018 ZLIB_LINK=
27019 if test "$wxUSE_ZLIB" != "no" ; then
27020     cat >>confdefs.h <<\_ACEOF
27021 #define wxUSE_ZLIB 1
27022 _ACEOF
27023
27024
27025     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
27026                                                 if test "$USE_DARWIN" = 1; then
27027             system_zlib_h_ok="yes"
27028         else
27029                                                                                     { echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
27030 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6; }
27031 if test "${ac_cv_header_zlib_h+set}" = set; then
27032   echo $ECHO_N "(cached) $ECHO_C" >&6
27033 else
27034   if test "$cross_compiling" = yes; then
27035                       unset ac_cv_header_zlib_h
27036
27037 else
27038   cat >conftest.$ac_ext <<_ACEOF
27039 /* confdefs.h.  */
27040 _ACEOF
27041 cat confdefs.h >>conftest.$ac_ext
27042 cat >>conftest.$ac_ext <<_ACEOF
27043 /* end confdefs.h.  */
27044
27045                         #include <zlib.h>
27046                         #include <stdio.h>
27047
27048                         int main()
27049                         {
27050                             FILE *f=fopen("conftestval", "w");
27051                             if (!f) exit(1);
27052                             fprintf(f, "%s",
27053                                     ZLIB_VERSION[0] == '1' &&
27054                                     (ZLIB_VERSION[2] > '1' ||
27055                                     (ZLIB_VERSION[2] == '1' &&
27056                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
27057                             exit(0);
27058                         }
27059
27060 _ACEOF
27061 rm -f conftest$ac_exeext
27062 if { (ac_try="$ac_link"
27063 case "(($ac_try" in
27064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27065   *) ac_try_echo=$ac_try;;
27066 esac
27067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27068   (eval "$ac_link") 2>&5
27069   ac_status=$?
27070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27071   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27072   { (case "(($ac_try" in
27073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27074   *) ac_try_echo=$ac_try;;
27075 esac
27076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27077   (eval "$ac_try") 2>&5
27078   ac_status=$?
27079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27080   (exit $ac_status); }; }; then
27081   ac_cv_header_zlib_h=`cat conftestval`
27082 else
27083   echo "$as_me: program exited with status $ac_status" >&5
27084 echo "$as_me: failed program was:" >&5
27085 sed 's/^/| /' conftest.$ac_ext >&5
27086
27087 ( exit $ac_status )
27088 ac_cv_header_zlib_h=no
27089 fi
27090 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27091 fi
27092
27093
27094
27095 fi
27096 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
27097 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
27098                                     { echo "$as_me:$LINENO: checking for zlib.h" >&5
27099 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
27100 if test "${ac_cv_header_zlib_h+set}" = set; then
27101   echo $ECHO_N "(cached) $ECHO_C" >&6
27102 else
27103   cat >conftest.$ac_ext <<_ACEOF
27104 /* confdefs.h.  */
27105 _ACEOF
27106 cat confdefs.h >>conftest.$ac_ext
27107 cat >>conftest.$ac_ext <<_ACEOF
27108 /* end confdefs.h.  */
27109
27110
27111 #include <zlib.h>
27112 _ACEOF
27113 rm -f conftest.$ac_objext
27114 if { (ac_try="$ac_compile"
27115 case "(($ac_try" in
27116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27117   *) ac_try_echo=$ac_try;;
27118 esac
27119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27120   (eval "$ac_compile") 2>conftest.er1
27121   ac_status=$?
27122   grep -v '^ *+' conftest.er1 >conftest.err
27123   rm -f conftest.er1
27124   cat conftest.err >&5
27125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27126   (exit $ac_status); } && {
27127          test -z "$ac_c_werror_flag" ||
27128          test ! -s conftest.err
27129        } && test -s conftest.$ac_objext; then
27130   ac_cv_header_zlib_h=yes
27131 else
27132   echo "$as_me: failed program was:" >&5
27133 sed 's/^/| /' conftest.$ac_ext >&5
27134
27135         ac_cv_header_zlib_h=no
27136 fi
27137
27138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27139 fi
27140 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
27141 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
27142
27143
27144
27145             system_zlib_h_ok=$ac_cv_header_zlib_h
27146         fi
27147
27148         if test "$system_zlib_h_ok" = "yes"; then
27149             { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
27150 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
27151 if test "${ac_cv_lib_z_deflate+set}" = set; then
27152   echo $ECHO_N "(cached) $ECHO_C" >&6
27153 else
27154   ac_check_lib_save_LIBS=$LIBS
27155 LIBS="-lz  $LIBS"
27156 cat >conftest.$ac_ext <<_ACEOF
27157 /* confdefs.h.  */
27158 _ACEOF
27159 cat confdefs.h >>conftest.$ac_ext
27160 cat >>conftest.$ac_ext <<_ACEOF
27161 /* end confdefs.h.  */
27162
27163 /* Override any GCC internal prototype to avoid an error.
27164    Use char because int might match the return type of a GCC
27165    builtin and then its argument prototype would still apply.  */
27166 #ifdef __cplusplus
27167 extern "C"
27168 #endif
27169 char deflate ();
27170 int
27171 main ()
27172 {
27173 return deflate ();
27174   ;
27175   return 0;
27176 }
27177 _ACEOF
27178 rm -f conftest.$ac_objext conftest$ac_exeext
27179 if { (ac_try="$ac_link"
27180 case "(($ac_try" in
27181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27182   *) ac_try_echo=$ac_try;;
27183 esac
27184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27185   (eval "$ac_link") 2>conftest.er1
27186   ac_status=$?
27187   grep -v '^ *+' conftest.er1 >conftest.err
27188   rm -f conftest.er1
27189   cat conftest.err >&5
27190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27191   (exit $ac_status); } && {
27192          test -z "$ac_c_werror_flag" ||
27193          test ! -s conftest.err
27194        } && test -s conftest$ac_exeext &&
27195        $as_test_x conftest$ac_exeext; then
27196   ac_cv_lib_z_deflate=yes
27197 else
27198   echo "$as_me: failed program was:" >&5
27199 sed 's/^/| /' conftest.$ac_ext >&5
27200
27201         ac_cv_lib_z_deflate=no
27202 fi
27203
27204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27205       conftest$ac_exeext conftest.$ac_ext
27206 LIBS=$ac_check_lib_save_LIBS
27207 fi
27208 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
27209 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
27210 if test $ac_cv_lib_z_deflate = yes; then
27211   ZLIB_LINK=" -lz"
27212 fi
27213
27214         fi
27215
27216         if test "x$ZLIB_LINK" = "x" ; then
27217             if test "$wxUSE_ZLIB" = "sys" ; then
27218                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
27219 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
27220    { (exit 1); exit 1; }; }
27221             else
27222                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
27223 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
27224                 wxUSE_ZLIB=builtin
27225             fi
27226         else
27227                         wxUSE_ZLIB=sys
27228         fi
27229     fi
27230 fi
27231
27232
27233 PNG_LINK=
27234 if test "$wxUSE_LIBPNG" != "no" ; then
27235     cat >>confdefs.h <<\_ACEOF
27236 #define wxUSE_LIBPNG 1
27237 _ACEOF
27238
27239
27240     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
27241         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
27242 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
27243         wxUSE_LIBPNG=sys
27244     fi
27245
27246                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
27247         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
27248 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
27249         wxUSE_LIBPNG=builtin
27250     fi
27251
27252     if test "$wxUSE_MGL" != 1 ; then
27253                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
27254                                     { echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
27255 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6; }
27256 if test "${ac_cv_header_png_h+set}" = set; then
27257   echo $ECHO_N "(cached) $ECHO_C" >&6
27258 else
27259   if test "$cross_compiling" = yes; then
27260                       unset ac_cv_header_png_h
27261
27262 else
27263   cat >conftest.$ac_ext <<_ACEOF
27264 /* confdefs.h.  */
27265 _ACEOF
27266 cat confdefs.h >>conftest.$ac_ext
27267 cat >>conftest.$ac_ext <<_ACEOF
27268 /* end confdefs.h.  */
27269
27270                         #include <png.h>
27271                         #include <stdio.h>
27272
27273                         int main()
27274                         {
27275                             FILE *f=fopen("conftestval", "w");
27276                             if (!f) exit(1);
27277                             fprintf(f, "%s",
27278                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
27279                             exit(0);
27280                         }
27281
27282 _ACEOF
27283 rm -f conftest$ac_exeext
27284 if { (ac_try="$ac_link"
27285 case "(($ac_try" in
27286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27287   *) ac_try_echo=$ac_try;;
27288 esac
27289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27290   (eval "$ac_link") 2>&5
27291   ac_status=$?
27292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27293   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27294   { (case "(($ac_try" in
27295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27296   *) ac_try_echo=$ac_try;;
27297 esac
27298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27299   (eval "$ac_try") 2>&5
27300   ac_status=$?
27301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27302   (exit $ac_status); }; }; then
27303   ac_cv_header_png_h=`cat conftestval`
27304 else
27305   echo "$as_me: program exited with status $ac_status" >&5
27306 echo "$as_me: failed program was:" >&5
27307 sed 's/^/| /' conftest.$ac_ext >&5
27308
27309 ( exit $ac_status )
27310 ac_cv_header_png_h=no
27311 fi
27312 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27313 fi
27314
27315
27316
27317 fi
27318 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
27319 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
27320             { echo "$as_me:$LINENO: checking for png.h" >&5
27321 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
27322 if test "${ac_cv_header_png_h+set}" = set; then
27323   echo $ECHO_N "(cached) $ECHO_C" >&6
27324 else
27325   cat >conftest.$ac_ext <<_ACEOF
27326 /* confdefs.h.  */
27327 _ACEOF
27328 cat confdefs.h >>conftest.$ac_ext
27329 cat >>conftest.$ac_ext <<_ACEOF
27330 /* end confdefs.h.  */
27331
27332
27333 #include <png.h>
27334 _ACEOF
27335 rm -f conftest.$ac_objext
27336 if { (ac_try="$ac_compile"
27337 case "(($ac_try" in
27338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27339   *) ac_try_echo=$ac_try;;
27340 esac
27341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27342   (eval "$ac_compile") 2>conftest.er1
27343   ac_status=$?
27344   grep -v '^ *+' conftest.er1 >conftest.err
27345   rm -f conftest.er1
27346   cat conftest.err >&5
27347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27348   (exit $ac_status); } && {
27349          test -z "$ac_c_werror_flag" ||
27350          test ! -s conftest.err
27351        } && test -s conftest.$ac_objext; then
27352   ac_cv_header_png_h=yes
27353 else
27354   echo "$as_me: failed program was:" >&5
27355 sed 's/^/| /' conftest.$ac_ext >&5
27356
27357         ac_cv_header_png_h=no
27358 fi
27359
27360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27361 fi
27362 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
27363 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
27364
27365
27366
27367             if test "$ac_cv_header_png_h" = "yes"; then
27368                 { echo "$as_me:$LINENO: checking for png_sig_cmp in -lpng" >&5
27369 echo $ECHO_N "checking for png_sig_cmp in -lpng... $ECHO_C" >&6; }
27370 if test "${ac_cv_lib_png_png_sig_cmp+set}" = set; then
27371   echo $ECHO_N "(cached) $ECHO_C" >&6
27372 else
27373   ac_check_lib_save_LIBS=$LIBS
27374 LIBS="-lpng -lz -lm $LIBS"
27375 cat >conftest.$ac_ext <<_ACEOF
27376 /* confdefs.h.  */
27377 _ACEOF
27378 cat confdefs.h >>conftest.$ac_ext
27379 cat >>conftest.$ac_ext <<_ACEOF
27380 /* end confdefs.h.  */
27381
27382 /* Override any GCC internal prototype to avoid an error.
27383    Use char because int might match the return type of a GCC
27384    builtin and then its argument prototype would still apply.  */
27385 #ifdef __cplusplus
27386 extern "C"
27387 #endif
27388 char png_sig_cmp ();
27389 int
27390 main ()
27391 {
27392 return png_sig_cmp ();
27393   ;
27394   return 0;
27395 }
27396 _ACEOF
27397 rm -f conftest.$ac_objext conftest$ac_exeext
27398 if { (ac_try="$ac_link"
27399 case "(($ac_try" in
27400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27401   *) ac_try_echo=$ac_try;;
27402 esac
27403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27404   (eval "$ac_link") 2>conftest.er1
27405   ac_status=$?
27406   grep -v '^ *+' conftest.er1 >conftest.err
27407   rm -f conftest.er1
27408   cat conftest.err >&5
27409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27410   (exit $ac_status); } && {
27411          test -z "$ac_c_werror_flag" ||
27412          test ! -s conftest.err
27413        } && test -s conftest$ac_exeext &&
27414        $as_test_x conftest$ac_exeext; then
27415   ac_cv_lib_png_png_sig_cmp=yes
27416 else
27417   echo "$as_me: failed program was:" >&5
27418 sed 's/^/| /' conftest.$ac_ext >&5
27419
27420         ac_cv_lib_png_png_sig_cmp=no
27421 fi
27422
27423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27424       conftest$ac_exeext conftest.$ac_ext
27425 LIBS=$ac_check_lib_save_LIBS
27426 fi
27427 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_sig_cmp" >&5
27428 echo "${ECHO_T}$ac_cv_lib_png_png_sig_cmp" >&6; }
27429 if test $ac_cv_lib_png_png_sig_cmp = yes; then
27430   PNG_LINK=" -lpng -lz"
27431 fi
27432
27433             fi
27434
27435             if test "x$PNG_LINK" = "x" ; then
27436                 if test "$wxUSE_LIBPNG" = "sys" ; then
27437                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
27438 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
27439    { (exit 1); exit 1; }; }
27440                 else
27441                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
27442 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
27443                     wxUSE_LIBPNG=builtin
27444                 fi
27445             else
27446                                 wxUSE_LIBPNG=sys
27447             fi
27448         fi
27449     fi
27450 fi
27451
27452
27453 JPEG_LINK=
27454 if test "$wxUSE_LIBJPEG" != "no" ; then
27455     cat >>confdefs.h <<\_ACEOF
27456 #define wxUSE_LIBJPEG 1
27457 _ACEOF
27458
27459
27460     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
27461         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
27462 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
27463         wxUSE_LIBJPEG=sys
27464     fi
27465
27466     if test "$wxUSE_MGL" != 1 ; then
27467                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
27468                                                 { echo "$as_me:$LINENO: checking for jpeglib.h" >&5
27469 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
27470             if test "${ac_cv_header_jpeglib_h+set}" = set; then
27471   echo $ECHO_N "(cached) $ECHO_C" >&6
27472 else
27473   cat >conftest.$ac_ext <<_ACEOF
27474 /* confdefs.h.  */
27475 _ACEOF
27476 cat confdefs.h >>conftest.$ac_ext
27477 cat >>conftest.$ac_ext <<_ACEOF
27478 /* end confdefs.h.  */
27479
27480                         #undef HAVE_STDLIB_H
27481                         #include <stdio.h>
27482                         #include <jpeglib.h>
27483
27484 int
27485 main ()
27486 {
27487
27488
27489   ;
27490   return 0;
27491 }
27492 _ACEOF
27493 rm -f conftest.$ac_objext
27494 if { (ac_try="$ac_compile"
27495 case "(($ac_try" in
27496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27497   *) ac_try_echo=$ac_try;;
27498 esac
27499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27500   (eval "$ac_compile") 2>conftest.er1
27501   ac_status=$?
27502   grep -v '^ *+' conftest.er1 >conftest.err
27503   rm -f conftest.er1
27504   cat conftest.err >&5
27505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27506   (exit $ac_status); } && {
27507          test -z "$ac_c_werror_flag" ||
27508          test ! -s conftest.err
27509        } && test -s conftest.$ac_objext; then
27510   ac_cv_header_jpeglib_h=yes
27511 else
27512   echo "$as_me: failed program was:" >&5
27513 sed 's/^/| /' conftest.$ac_ext >&5
27514
27515         ac_cv_header_jpeglib_h=no
27516
27517 fi
27518
27519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27520
27521 fi
27522
27523             { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
27524 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
27525
27526             if test "$ac_cv_header_jpeglib_h" = "yes"; then
27527                 { echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
27528 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6; }
27529 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
27530   echo $ECHO_N "(cached) $ECHO_C" >&6
27531 else
27532   ac_check_lib_save_LIBS=$LIBS
27533 LIBS="-ljpeg  $LIBS"
27534 cat >conftest.$ac_ext <<_ACEOF
27535 /* confdefs.h.  */
27536 _ACEOF
27537 cat confdefs.h >>conftest.$ac_ext
27538 cat >>conftest.$ac_ext <<_ACEOF
27539 /* end confdefs.h.  */
27540
27541 /* Override any GCC internal prototype to avoid an error.
27542    Use char because int might match the return type of a GCC
27543    builtin and then its argument prototype would still apply.  */
27544 #ifdef __cplusplus
27545 extern "C"
27546 #endif
27547 char jpeg_read_header ();
27548 int
27549 main ()
27550 {
27551 return jpeg_read_header ();
27552   ;
27553   return 0;
27554 }
27555 _ACEOF
27556 rm -f conftest.$ac_objext conftest$ac_exeext
27557 if { (ac_try="$ac_link"
27558 case "(($ac_try" in
27559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27560   *) ac_try_echo=$ac_try;;
27561 esac
27562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27563   (eval "$ac_link") 2>conftest.er1
27564   ac_status=$?
27565   grep -v '^ *+' conftest.er1 >conftest.err
27566   rm -f conftest.er1
27567   cat conftest.err >&5
27568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27569   (exit $ac_status); } && {
27570          test -z "$ac_c_werror_flag" ||
27571          test ! -s conftest.err
27572        } && test -s conftest$ac_exeext &&
27573        $as_test_x conftest$ac_exeext; then
27574   ac_cv_lib_jpeg_jpeg_read_header=yes
27575 else
27576   echo "$as_me: failed program was:" >&5
27577 sed 's/^/| /' conftest.$ac_ext >&5
27578
27579         ac_cv_lib_jpeg_jpeg_read_header=no
27580 fi
27581
27582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27583       conftest$ac_exeext conftest.$ac_ext
27584 LIBS=$ac_check_lib_save_LIBS
27585 fi
27586 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
27587 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
27588 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
27589   JPEG_LINK=" -ljpeg"
27590 fi
27591
27592             fi
27593
27594             if test "x$JPEG_LINK" = "x" ; then
27595                 if test "$wxUSE_LIBJPEG" = "sys" ; then
27596                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
27597 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
27598    { (exit 1); exit 1; }; }
27599                 else
27600                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
27601 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
27602                     wxUSE_LIBJPEG=builtin
27603                 fi
27604             else
27605                                 wxUSE_LIBJPEG=sys
27606
27607                 if test "$wxUSE_MSW" = 1; then
27608                                                                                                     { echo "$as_me:$LINENO: checking for boolean" >&5
27609 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
27610 if test "${ac_cv_type_boolean+set}" = set; then
27611   echo $ECHO_N "(cached) $ECHO_C" >&6
27612 else
27613   cat >conftest.$ac_ext <<_ACEOF
27614 /* confdefs.h.  */
27615 _ACEOF
27616 cat confdefs.h >>conftest.$ac_ext
27617 cat >>conftest.$ac_ext <<_ACEOF
27618 /* end confdefs.h.  */
27619 #include <windows.h>
27620
27621 typedef boolean ac__type_new_;
27622 int
27623 main ()
27624 {
27625 if ((ac__type_new_ *) 0)
27626   return 0;
27627 if (sizeof (ac__type_new_))
27628   return 0;
27629   ;
27630   return 0;
27631 }
27632 _ACEOF
27633 rm -f conftest.$ac_objext
27634 if { (ac_try="$ac_compile"
27635 case "(($ac_try" in
27636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27637   *) ac_try_echo=$ac_try;;
27638 esac
27639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27640   (eval "$ac_compile") 2>conftest.er1
27641   ac_status=$?
27642   grep -v '^ *+' conftest.er1 >conftest.err
27643   rm -f conftest.er1
27644   cat conftest.err >&5
27645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27646   (exit $ac_status); } && {
27647          test -z "$ac_c_werror_flag" ||
27648          test ! -s conftest.err
27649        } && test -s conftest.$ac_objext; then
27650   ac_cv_type_boolean=yes
27651 else
27652   echo "$as_me: failed program was:" >&5
27653 sed 's/^/| /' conftest.$ac_ext >&5
27654
27655         ac_cv_type_boolean=no
27656 fi
27657
27658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27659 fi
27660 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
27661 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
27662 if test $ac_cv_type_boolean = yes; then
27663
27664 cat >>confdefs.h <<_ACEOF
27665 #define HAVE_BOOLEAN 1
27666 _ACEOF
27667
27668
27669                             { echo "$as_me:$LINENO: checking for boolean" >&5
27670 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
27671 if test "${ac_cv_type_boolean+set}" = set; then
27672   echo $ECHO_N "(cached) $ECHO_C" >&6
27673 else
27674   cat >conftest.$ac_ext <<_ACEOF
27675 /* confdefs.h.  */
27676 _ACEOF
27677 cat confdefs.h >>conftest.$ac_ext
27678 cat >>conftest.$ac_ext <<_ACEOF
27679 /* end confdefs.h.  */
27680
27681                                     #undef HAVE_BOOLEAN
27682                                     #include <stdio.h>
27683                                     #include <jpeglib.h>
27684
27685
27686 typedef boolean ac__type_new_;
27687 int
27688 main ()
27689 {
27690 if ((ac__type_new_ *) 0)
27691   return 0;
27692 if (sizeof (ac__type_new_))
27693   return 0;
27694   ;
27695   return 0;
27696 }
27697 _ACEOF
27698 rm -f conftest.$ac_objext
27699 if { (ac_try="$ac_compile"
27700 case "(($ac_try" in
27701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27702   *) ac_try_echo=$ac_try;;
27703 esac
27704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27705   (eval "$ac_compile") 2>conftest.er1
27706   ac_status=$?
27707   grep -v '^ *+' conftest.er1 >conftest.err
27708   rm -f conftest.er1
27709   cat conftest.err >&5
27710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27711   (exit $ac_status); } && {
27712          test -z "$ac_c_werror_flag" ||
27713          test ! -s conftest.err
27714        } && test -s conftest.$ac_objext; then
27715   ac_cv_type_boolean=yes
27716 else
27717   echo "$as_me: failed program was:" >&5
27718 sed 's/^/| /' conftest.$ac_ext >&5
27719
27720         ac_cv_type_boolean=no
27721 fi
27722
27723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27724 fi
27725 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
27726 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
27727
27728 # The cast to long int works around a bug in the HP C Compiler
27729 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27730 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27731 # This bug is HP SR number 8606223364.
27732 { echo "$as_me:$LINENO: checking size of boolean" >&5
27733 echo $ECHO_N "checking size of boolean... $ECHO_C" >&6; }
27734 if test "${ac_cv_sizeof_boolean+set}" = set; then
27735   echo $ECHO_N "(cached) $ECHO_C" >&6
27736 else
27737   if test "$cross_compiling" = yes; then
27738   # Depending upon the size, compute the lo and hi bounds.
27739 cat >conftest.$ac_ext <<_ACEOF
27740 /* confdefs.h.  */
27741 _ACEOF
27742 cat confdefs.h >>conftest.$ac_ext
27743 cat >>conftest.$ac_ext <<_ACEOF
27744 /* end confdefs.h.  */
27745
27746                                     #undef HAVE_BOOLEAN
27747                                     #include <stdio.h>
27748                                     #include <jpeglib.h>
27749
27750
27751    typedef boolean ac__type_sizeof_;
27752 int
27753 main ()
27754 {
27755 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27756 test_array [0] = 0
27757
27758   ;
27759   return 0;
27760 }
27761 _ACEOF
27762 rm -f conftest.$ac_objext
27763 if { (ac_try="$ac_compile"
27764 case "(($ac_try" in
27765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27766   *) ac_try_echo=$ac_try;;
27767 esac
27768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27769   (eval "$ac_compile") 2>conftest.er1
27770   ac_status=$?
27771   grep -v '^ *+' conftest.er1 >conftest.err
27772   rm -f conftest.er1
27773   cat conftest.err >&5
27774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27775   (exit $ac_status); } && {
27776          test -z "$ac_c_werror_flag" ||
27777          test ! -s conftest.err
27778        } && test -s conftest.$ac_objext; then
27779   ac_lo=0 ac_mid=0
27780   while :; do
27781     cat >conftest.$ac_ext <<_ACEOF
27782 /* confdefs.h.  */
27783 _ACEOF
27784 cat confdefs.h >>conftest.$ac_ext
27785 cat >>conftest.$ac_ext <<_ACEOF
27786 /* end confdefs.h.  */
27787
27788                                     #undef HAVE_BOOLEAN
27789                                     #include <stdio.h>
27790                                     #include <jpeglib.h>
27791
27792
27793    typedef boolean ac__type_sizeof_;
27794 int
27795 main ()
27796 {
27797 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27798 test_array [0] = 0
27799
27800   ;
27801   return 0;
27802 }
27803 _ACEOF
27804 rm -f conftest.$ac_objext
27805 if { (ac_try="$ac_compile"
27806 case "(($ac_try" in
27807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27808   *) ac_try_echo=$ac_try;;
27809 esac
27810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27811   (eval "$ac_compile") 2>conftest.er1
27812   ac_status=$?
27813   grep -v '^ *+' conftest.er1 >conftest.err
27814   rm -f conftest.er1
27815   cat conftest.err >&5
27816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27817   (exit $ac_status); } && {
27818          test -z "$ac_c_werror_flag" ||
27819          test ! -s conftest.err
27820        } && test -s conftest.$ac_objext; then
27821   ac_hi=$ac_mid; break
27822 else
27823   echo "$as_me: failed program was:" >&5
27824 sed 's/^/| /' conftest.$ac_ext >&5
27825
27826         ac_lo=`expr $ac_mid + 1`
27827                         if test $ac_lo -le $ac_mid; then
27828                           ac_lo= ac_hi=
27829                           break
27830                         fi
27831                         ac_mid=`expr 2 '*' $ac_mid + 1`
27832 fi
27833
27834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27835   done
27836 else
27837   echo "$as_me: failed program was:" >&5
27838 sed 's/^/| /' conftest.$ac_ext >&5
27839
27840         cat >conftest.$ac_ext <<_ACEOF
27841 /* confdefs.h.  */
27842 _ACEOF
27843 cat confdefs.h >>conftest.$ac_ext
27844 cat >>conftest.$ac_ext <<_ACEOF
27845 /* end confdefs.h.  */
27846
27847                                     #undef HAVE_BOOLEAN
27848                                     #include <stdio.h>
27849                                     #include <jpeglib.h>
27850
27851
27852    typedef boolean ac__type_sizeof_;
27853 int
27854 main ()
27855 {
27856 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27857 test_array [0] = 0
27858
27859   ;
27860   return 0;
27861 }
27862 _ACEOF
27863 rm -f conftest.$ac_objext
27864 if { (ac_try="$ac_compile"
27865 case "(($ac_try" in
27866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27867   *) ac_try_echo=$ac_try;;
27868 esac
27869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27870   (eval "$ac_compile") 2>conftest.er1
27871   ac_status=$?
27872   grep -v '^ *+' conftest.er1 >conftest.err
27873   rm -f conftest.er1
27874   cat conftest.err >&5
27875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27876   (exit $ac_status); } && {
27877          test -z "$ac_c_werror_flag" ||
27878          test ! -s conftest.err
27879        } && test -s conftest.$ac_objext; then
27880   ac_hi=-1 ac_mid=-1
27881   while :; do
27882     cat >conftest.$ac_ext <<_ACEOF
27883 /* confdefs.h.  */
27884 _ACEOF
27885 cat confdefs.h >>conftest.$ac_ext
27886 cat >>conftest.$ac_ext <<_ACEOF
27887 /* end confdefs.h.  */
27888
27889                                     #undef HAVE_BOOLEAN
27890                                     #include <stdio.h>
27891                                     #include <jpeglib.h>
27892
27893
27894    typedef boolean ac__type_sizeof_;
27895 int
27896 main ()
27897 {
27898 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27899 test_array [0] = 0
27900
27901   ;
27902   return 0;
27903 }
27904 _ACEOF
27905 rm -f conftest.$ac_objext
27906 if { (ac_try="$ac_compile"
27907 case "(($ac_try" in
27908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27909   *) ac_try_echo=$ac_try;;
27910 esac
27911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27912   (eval "$ac_compile") 2>conftest.er1
27913   ac_status=$?
27914   grep -v '^ *+' conftest.er1 >conftest.err
27915   rm -f conftest.er1
27916   cat conftest.err >&5
27917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27918   (exit $ac_status); } && {
27919          test -z "$ac_c_werror_flag" ||
27920          test ! -s conftest.err
27921        } && test -s conftest.$ac_objext; then
27922   ac_lo=$ac_mid; break
27923 else
27924   echo "$as_me: failed program was:" >&5
27925 sed 's/^/| /' conftest.$ac_ext >&5
27926
27927         ac_hi=`expr '(' $ac_mid ')' - 1`
27928                         if test $ac_mid -le $ac_hi; then
27929                           ac_lo= ac_hi=
27930                           break
27931                         fi
27932                         ac_mid=`expr 2 '*' $ac_mid`
27933 fi
27934
27935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27936   done
27937 else
27938   echo "$as_me: failed program was:" >&5
27939 sed 's/^/| /' conftest.$ac_ext >&5
27940
27941         ac_lo= ac_hi=
27942 fi
27943
27944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27945 fi
27946
27947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27948 # Binary search between lo and hi bounds.
27949 while test "x$ac_lo" != "x$ac_hi"; do
27950   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27951   cat >conftest.$ac_ext <<_ACEOF
27952 /* confdefs.h.  */
27953 _ACEOF
27954 cat confdefs.h >>conftest.$ac_ext
27955 cat >>conftest.$ac_ext <<_ACEOF
27956 /* end confdefs.h.  */
27957
27958                                     #undef HAVE_BOOLEAN
27959                                     #include <stdio.h>
27960                                     #include <jpeglib.h>
27961
27962
27963    typedef boolean ac__type_sizeof_;
27964 int
27965 main ()
27966 {
27967 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27968 test_array [0] = 0
27969
27970   ;
27971   return 0;
27972 }
27973 _ACEOF
27974 rm -f conftest.$ac_objext
27975 if { (ac_try="$ac_compile"
27976 case "(($ac_try" in
27977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27978   *) ac_try_echo=$ac_try;;
27979 esac
27980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27981   (eval "$ac_compile") 2>conftest.er1
27982   ac_status=$?
27983   grep -v '^ *+' conftest.er1 >conftest.err
27984   rm -f conftest.er1
27985   cat conftest.err >&5
27986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27987   (exit $ac_status); } && {
27988          test -z "$ac_c_werror_flag" ||
27989          test ! -s conftest.err
27990        } && test -s conftest.$ac_objext; then
27991   ac_hi=$ac_mid
27992 else
27993   echo "$as_me: failed program was:" >&5
27994 sed 's/^/| /' conftest.$ac_ext >&5
27995
27996         ac_lo=`expr '(' $ac_mid ')' + 1`
27997 fi
27998
27999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28000 done
28001 case $ac_lo in
28002 ?*) ac_cv_sizeof_boolean=$ac_lo;;
28003 '') if test "$ac_cv_type_boolean" = yes; then
28004      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
28005 See \`config.log' for more details." >&5
28006 echo "$as_me: error: cannot compute sizeof (boolean)
28007 See \`config.log' for more details." >&2;}
28008    { (exit 77); exit 77; }; }
28009    else
28010      ac_cv_sizeof_boolean=0
28011    fi ;;
28012 esac
28013 else
28014   cat >conftest.$ac_ext <<_ACEOF
28015 /* confdefs.h.  */
28016 _ACEOF
28017 cat confdefs.h >>conftest.$ac_ext
28018 cat >>conftest.$ac_ext <<_ACEOF
28019 /* end confdefs.h.  */
28020
28021                                     #undef HAVE_BOOLEAN
28022                                     #include <stdio.h>
28023                                     #include <jpeglib.h>
28024
28025
28026    typedef boolean ac__type_sizeof_;
28027 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28028 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28029 #include <stdio.h>
28030 #include <stdlib.h>
28031 int
28032 main ()
28033 {
28034
28035   FILE *f = fopen ("conftest.val", "w");
28036   if (! f)
28037     return 1;
28038   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28039     {
28040       long int i = longval ();
28041       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28042         return 1;
28043       fprintf (f, "%ld\n", i);
28044     }
28045   else
28046     {
28047       unsigned long int i = ulongval ();
28048       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28049         return 1;
28050       fprintf (f, "%lu\n", i);
28051     }
28052   return ferror (f) || fclose (f) != 0;
28053
28054   ;
28055   return 0;
28056 }
28057 _ACEOF
28058 rm -f conftest$ac_exeext
28059 if { (ac_try="$ac_link"
28060 case "(($ac_try" in
28061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28062   *) ac_try_echo=$ac_try;;
28063 esac
28064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28065   (eval "$ac_link") 2>&5
28066   ac_status=$?
28067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28068   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28069   { (case "(($ac_try" in
28070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28071   *) ac_try_echo=$ac_try;;
28072 esac
28073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28074   (eval "$ac_try") 2>&5
28075   ac_status=$?
28076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28077   (exit $ac_status); }; }; then
28078   ac_cv_sizeof_boolean=`cat conftest.val`
28079 else
28080   echo "$as_me: program exited with status $ac_status" >&5
28081 echo "$as_me: failed program was:" >&5
28082 sed 's/^/| /' conftest.$ac_ext >&5
28083
28084 ( exit $ac_status )
28085 if test "$ac_cv_type_boolean" = yes; then
28086      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
28087 See \`config.log' for more details." >&5
28088 echo "$as_me: error: cannot compute sizeof (boolean)
28089 See \`config.log' for more details." >&2;}
28090    { (exit 77); exit 77; }; }
28091    else
28092      ac_cv_sizeof_boolean=0
28093    fi
28094 fi
28095 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28096 fi
28097 rm -f conftest.val
28098 fi
28099 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_boolean" >&5
28100 echo "${ECHO_T}$ac_cv_sizeof_boolean" >&6; }
28101
28102
28103
28104 cat >>confdefs.h <<_ACEOF
28105 #define SIZEOF_BOOLEAN $ac_cv_sizeof_boolean
28106 _ACEOF
28107
28108
28109                             cat >>confdefs.h <<_ACEOF
28110 #define wxHACK_BOOLEAN wxInt`expr 8 \* $ac_cv_sizeof_boolean`
28111 _ACEOF
28112
28113
28114 fi
28115
28116                 fi
28117             fi
28118         fi
28119     fi
28120 fi
28121
28122
28123 TIFF_LINK=
28124 TIFF_PREREQ_LINKS=-lm
28125 if test "$wxUSE_LIBTIFF" != "no" ; then
28126     cat >>confdefs.h <<\_ACEOF
28127 #define wxUSE_LIBTIFF 1
28128 _ACEOF
28129
28130
28131     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
28132                         if test "$wxUSE_LIBJPEG" = "sys"; then
28133             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
28134         fi
28135         if test "$wxUSE_ZLIB" = "sys"; then
28136             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
28137         fi
28138         { echo "$as_me:$LINENO: checking for tiffio.h" >&5
28139 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
28140 if test "${ac_cv_header_tiffio_h+set}" = set; then
28141   echo $ECHO_N "(cached) $ECHO_C" >&6
28142 else
28143   cat >conftest.$ac_ext <<_ACEOF
28144 /* confdefs.h.  */
28145 _ACEOF
28146 cat confdefs.h >>conftest.$ac_ext
28147 cat >>conftest.$ac_ext <<_ACEOF
28148 /* end confdefs.h.  */
28149
28150
28151
28152 #include <tiffio.h>
28153 _ACEOF
28154 rm -f conftest.$ac_objext
28155 if { (ac_try="$ac_compile"
28156 case "(($ac_try" in
28157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28158   *) ac_try_echo=$ac_try;;
28159 esac
28160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28161   (eval "$ac_compile") 2>conftest.er1
28162   ac_status=$?
28163   grep -v '^ *+' conftest.er1 >conftest.err
28164   rm -f conftest.er1
28165   cat conftest.err >&5
28166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28167   (exit $ac_status); } && {
28168          test -z "$ac_c_werror_flag" ||
28169          test ! -s conftest.err
28170        } && test -s conftest.$ac_objext; then
28171   ac_cv_header_tiffio_h=yes
28172 else
28173   echo "$as_me: failed program was:" >&5
28174 sed 's/^/| /' conftest.$ac_ext >&5
28175
28176         ac_cv_header_tiffio_h=no
28177 fi
28178
28179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28180 fi
28181 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
28182 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
28183 if test $ac_cv_header_tiffio_h = yes; then
28184
28185                             { echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
28186 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6; }
28187 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
28188   echo $ECHO_N "(cached) $ECHO_C" >&6
28189 else
28190   ac_check_lib_save_LIBS=$LIBS
28191 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
28192 cat >conftest.$ac_ext <<_ACEOF
28193 /* confdefs.h.  */
28194 _ACEOF
28195 cat confdefs.h >>conftest.$ac_ext
28196 cat >>conftest.$ac_ext <<_ACEOF
28197 /* end confdefs.h.  */
28198
28199 /* Override any GCC internal prototype to avoid an error.
28200    Use char because int might match the return type of a GCC
28201    builtin and then its argument prototype would still apply.  */
28202 #ifdef __cplusplus
28203 extern "C"
28204 #endif
28205 char TIFFError ();
28206 int
28207 main ()
28208 {
28209 return TIFFError ();
28210   ;
28211   return 0;
28212 }
28213 _ACEOF
28214 rm -f conftest.$ac_objext conftest$ac_exeext
28215 if { (ac_try="$ac_link"
28216 case "(($ac_try" in
28217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28218   *) ac_try_echo=$ac_try;;
28219 esac
28220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28221   (eval "$ac_link") 2>conftest.er1
28222   ac_status=$?
28223   grep -v '^ *+' conftest.er1 >conftest.err
28224   rm -f conftest.er1
28225   cat conftest.err >&5
28226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28227   (exit $ac_status); } && {
28228          test -z "$ac_c_werror_flag" ||
28229          test ! -s conftest.err
28230        } && test -s conftest$ac_exeext &&
28231        $as_test_x conftest$ac_exeext; then
28232   ac_cv_lib_tiff_TIFFError=yes
28233 else
28234   echo "$as_me: failed program was:" >&5
28235 sed 's/^/| /' conftest.$ac_ext >&5
28236
28237         ac_cv_lib_tiff_TIFFError=no
28238 fi
28239
28240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28241       conftest$ac_exeext conftest.$ac_ext
28242 LIBS=$ac_check_lib_save_LIBS
28243 fi
28244 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
28245 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6; }
28246 if test $ac_cv_lib_tiff_TIFFError = yes; then
28247   TIFF_LINK=" -ltiff"
28248 fi
28249
28250
28251 fi
28252
28253
28254
28255         if test "x$TIFF_LINK" = "x" ; then
28256             if test "$wxUSE_LIBTIFF" = "sys" ; then
28257                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
28258 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
28259    { (exit 1); exit 1; }; }
28260             else
28261                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
28262 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
28263                 wxUSE_LIBTIFF=builtin
28264             fi
28265         else
28266                         wxUSE_LIBTIFF=sys
28267         fi
28268     fi
28269     if test "$wxUSE_LIBTIFF" = "builtin" ; then
28270         if test "$wxUSE_LIBJPEG" = "no"; then
28271                                                                                     ac_configure_args="$ac_configure_args --disable-jpeg"
28272         fi
28273         subdirs="$subdirs src/tiff"
28274
28275     fi
28276 fi
28277
28278
28279 if test "$wxUSE_WCHAR_T" != "yes"; then
28280     if test "$wxUSE_EXPAT" != "no"; then
28281         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
28282 echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
28283         wxUSE_EXPAT=no
28284     fi
28285     if test "$wxUSE_XML" != "no"; then
28286         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
28287 echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
28288         wxUSE_XML=no
28289     fi
28290 fi
28291
28292 if test "$wxUSE_EXPAT" != "no"; then
28293     wxUSE_XML=yes
28294     cat >>confdefs.h <<\_ACEOF
28295 #define wxUSE_EXPAT 1
28296 _ACEOF
28297
28298     cat >>confdefs.h <<\_ACEOF
28299 #define wxUSE_XML 1
28300 _ACEOF
28301
28302
28303     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
28304         { echo "$as_me:$LINENO: checking for expat.h" >&5
28305 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; }
28306 if test "${ac_cv_header_expat_h+set}" = set; then
28307   echo $ECHO_N "(cached) $ECHO_C" >&6
28308 else
28309   cat >conftest.$ac_ext <<_ACEOF
28310 /* confdefs.h.  */
28311 _ACEOF
28312 cat confdefs.h >>conftest.$ac_ext
28313 cat >>conftest.$ac_ext <<_ACEOF
28314 /* end confdefs.h.  */
28315
28316
28317 #include <expat.h>
28318 _ACEOF
28319 rm -f conftest.$ac_objext
28320 if { (ac_try="$ac_compile"
28321 case "(($ac_try" in
28322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28323   *) ac_try_echo=$ac_try;;
28324 esac
28325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28326   (eval "$ac_compile") 2>conftest.er1
28327   ac_status=$?
28328   grep -v '^ *+' conftest.er1 >conftest.err
28329   rm -f conftest.er1
28330   cat conftest.err >&5
28331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28332   (exit $ac_status); } && {
28333          test -z "$ac_c_werror_flag" ||
28334          test ! -s conftest.err
28335        } && test -s conftest.$ac_objext; then
28336   ac_cv_header_expat_h=yes
28337 else
28338   echo "$as_me: failed program was:" >&5
28339 sed 's/^/| /' conftest.$ac_ext >&5
28340
28341         ac_cv_header_expat_h=no
28342 fi
28343
28344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28345 fi
28346 { echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
28347 echo "${ECHO_T}$ac_cv_header_expat_h" >&6; }
28348 if test $ac_cv_header_expat_h = yes; then
28349   found_expat_h=1
28350 fi
28351
28352
28353         if test "x$found_expat_h" = "x1"; then
28354                         { echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
28355 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6; }
28356 if test "${wx_cv_expat_is_not_broken+set}" = set; then
28357   echo $ECHO_N "(cached) $ECHO_C" >&6
28358 else
28359
28360                 ac_ext=cpp
28361 ac_cpp='$CXXCPP $CPPFLAGS'
28362 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28363 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28364 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28365
28366                 cat >conftest.$ac_ext <<_ACEOF
28367 /* confdefs.h.  */
28368 _ACEOF
28369 cat confdefs.h >>conftest.$ac_ext
28370 cat >>conftest.$ac_ext <<_ACEOF
28371 /* end confdefs.h.  */
28372 #include <expat.h>
28373 int
28374 main ()
28375 {
28376
28377   ;
28378   return 0;
28379 }
28380 _ACEOF
28381 rm -f conftest.$ac_objext
28382 if { (ac_try="$ac_compile"
28383 case "(($ac_try" in
28384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28385   *) ac_try_echo=$ac_try;;
28386 esac
28387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28388   (eval "$ac_compile") 2>conftest.er1
28389   ac_status=$?
28390   grep -v '^ *+' conftest.er1 >conftest.err
28391   rm -f conftest.er1
28392   cat conftest.err >&5
28393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28394   (exit $ac_status); } && {
28395          test -z "$ac_cxx_werror_flag" ||
28396          test ! -s conftest.err
28397        } && test -s conftest.$ac_objext; then
28398   wx_cv_expat_is_not_broken=yes
28399 else
28400   echo "$as_me: failed program was:" >&5
28401 sed 's/^/| /' conftest.$ac_ext >&5
28402
28403         wx_cv_expat_is_not_broken=no
28404
28405 fi
28406
28407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28408                 ac_ext=c
28409 ac_cpp='$CPP $CPPFLAGS'
28410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28413
28414
28415
28416 fi
28417 { echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
28418 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6; }
28419             if test "$wx_cv_expat_is_not_broken" = "yes" ; then
28420                 { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
28421 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
28422 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
28423   echo $ECHO_N "(cached) $ECHO_C" >&6
28424 else
28425   ac_check_lib_save_LIBS=$LIBS
28426 LIBS="-lexpat  $LIBS"
28427 cat >conftest.$ac_ext <<_ACEOF
28428 /* confdefs.h.  */
28429 _ACEOF
28430 cat confdefs.h >>conftest.$ac_ext
28431 cat >>conftest.$ac_ext <<_ACEOF
28432 /* end confdefs.h.  */
28433
28434 /* Override any GCC internal prototype to avoid an error.
28435    Use char because int might match the return type of a GCC
28436    builtin and then its argument prototype would still apply.  */
28437 #ifdef __cplusplus
28438 extern "C"
28439 #endif
28440 char XML_ParserCreate ();
28441 int
28442 main ()
28443 {
28444 return XML_ParserCreate ();
28445   ;
28446   return 0;
28447 }
28448 _ACEOF
28449 rm -f conftest.$ac_objext conftest$ac_exeext
28450 if { (ac_try="$ac_link"
28451 case "(($ac_try" in
28452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28453   *) ac_try_echo=$ac_try;;
28454 esac
28455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28456   (eval "$ac_link") 2>conftest.er1
28457   ac_status=$?
28458   grep -v '^ *+' conftest.er1 >conftest.err
28459   rm -f conftest.er1
28460   cat conftest.err >&5
28461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28462   (exit $ac_status); } && {
28463          test -z "$ac_c_werror_flag" ||
28464          test ! -s conftest.err
28465        } && test -s conftest$ac_exeext &&
28466        $as_test_x conftest$ac_exeext; then
28467   ac_cv_lib_expat_XML_ParserCreate=yes
28468 else
28469   echo "$as_me: failed program was:" >&5
28470 sed 's/^/| /' conftest.$ac_ext >&5
28471
28472         ac_cv_lib_expat_XML_ParserCreate=no
28473 fi
28474
28475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28476       conftest$ac_exeext conftest.$ac_ext
28477 LIBS=$ac_check_lib_save_LIBS
28478 fi
28479 { echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
28480 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
28481 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
28482   EXPAT_LINK=" -lexpat"
28483 fi
28484
28485             fi
28486         fi
28487         if test "x$EXPAT_LINK" = "x" ; then
28488             if test "$wxUSE_EXPAT" = "sys" ; then
28489                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
28490 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
28491    { (exit 1); exit 1; }; }
28492             else
28493                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
28494 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
28495                 wxUSE_EXPAT=builtin
28496             fi
28497         else
28498                         wxUSE_EXPAT=sys
28499         fi
28500     fi
28501     if test "$wxUSE_EXPAT" = "builtin" ; then
28502                 subdirs="$subdirs src/expat"
28503
28504     fi
28505 fi
28506
28507
28508
28509 if test "$wxUSE_LIBMSPACK" != "no"; then
28510     { echo "$as_me:$LINENO: checking for mspack.h" >&5
28511 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6; }
28512 if test "${ac_cv_header_mspack_h+set}" = set; then
28513   echo $ECHO_N "(cached) $ECHO_C" >&6
28514 else
28515   cat >conftest.$ac_ext <<_ACEOF
28516 /* confdefs.h.  */
28517 _ACEOF
28518 cat confdefs.h >>conftest.$ac_ext
28519 cat >>conftest.$ac_ext <<_ACEOF
28520 /* end confdefs.h.  */
28521
28522
28523 #include <mspack.h>
28524 _ACEOF
28525 rm -f conftest.$ac_objext
28526 if { (ac_try="$ac_compile"
28527 case "(($ac_try" in
28528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28529   *) ac_try_echo=$ac_try;;
28530 esac
28531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28532   (eval "$ac_compile") 2>conftest.er1
28533   ac_status=$?
28534   grep -v '^ *+' conftest.er1 >conftest.err
28535   rm -f conftest.er1
28536   cat conftest.err >&5
28537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28538   (exit $ac_status); } && {
28539          test -z "$ac_c_werror_flag" ||
28540          test ! -s conftest.err
28541        } && test -s conftest.$ac_objext; then
28542   ac_cv_header_mspack_h=yes
28543 else
28544   echo "$as_me: failed program was:" >&5
28545 sed 's/^/| /' conftest.$ac_ext >&5
28546
28547         ac_cv_header_mspack_h=no
28548 fi
28549
28550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28551 fi
28552 { echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
28553 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6; }
28554 if test $ac_cv_header_mspack_h = yes; then
28555   found_mspack_h=1
28556 fi
28557
28558
28559     if test "x$found_mspack_h" = "x1"; then
28560         { echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
28561 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6; }
28562 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
28563   echo $ECHO_N "(cached) $ECHO_C" >&6
28564 else
28565   ac_check_lib_save_LIBS=$LIBS
28566 LIBS="-lmspack  $LIBS"
28567 cat >conftest.$ac_ext <<_ACEOF
28568 /* confdefs.h.  */
28569 _ACEOF
28570 cat confdefs.h >>conftest.$ac_ext
28571 cat >>conftest.$ac_ext <<_ACEOF
28572 /* end confdefs.h.  */
28573
28574 /* Override any GCC internal prototype to avoid an error.
28575    Use char because int might match the return type of a GCC
28576    builtin and then its argument prototype would still apply.  */
28577 #ifdef __cplusplus
28578 extern "C"
28579 #endif
28580 char mspack_create_chm_decompressor ();
28581 int
28582 main ()
28583 {
28584 return mspack_create_chm_decompressor ();
28585   ;
28586   return 0;
28587 }
28588 _ACEOF
28589 rm -f conftest.$ac_objext conftest$ac_exeext
28590 if { (ac_try="$ac_link"
28591 case "(($ac_try" in
28592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28593   *) ac_try_echo=$ac_try;;
28594 esac
28595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28596   (eval "$ac_link") 2>conftest.er1
28597   ac_status=$?
28598   grep -v '^ *+' conftest.er1 >conftest.err
28599   rm -f conftest.er1
28600   cat conftest.err >&5
28601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28602   (exit $ac_status); } && {
28603          test -z "$ac_c_werror_flag" ||
28604          test ! -s conftest.err
28605        } && test -s conftest$ac_exeext &&
28606        $as_test_x conftest$ac_exeext; then
28607   ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
28608 else
28609   echo "$as_me: failed program was:" >&5
28610 sed 's/^/| /' conftest.$ac_ext >&5
28611
28612         ac_cv_lib_mspack_mspack_create_chm_decompressor=no
28613 fi
28614
28615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28616       conftest$ac_exeext conftest.$ac_ext
28617 LIBS=$ac_check_lib_save_LIBS
28618 fi
28619 { echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
28620 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6; }
28621 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
28622   MSPACK_LINK=" -lmspack"
28623 fi
28624
28625     fi
28626     if test "x$MSPACK_LINK" = "x" ; then
28627         wxUSE_LIBMSPACK=no
28628     fi
28629 fi
28630
28631 if test "$wxUSE_LIBMSPACK" != "no"; then
28632     cat >>confdefs.h <<\_ACEOF
28633 #define wxUSE_LIBMSPACK 1
28634 _ACEOF
28635
28636 fi
28637
28638
28639
28640 AFMINSTALL=
28641 WIN32INSTALL=
28642
28643 TOOLKIT=
28644 TOOLKIT_INCLUDE=
28645 WIDGET_SET=
28646
28647 if test "$USE_WIN32" = 1 ; then
28648
28649 for ac_header in w32api.h
28650 do
28651 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28652 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28655   echo $ECHO_N "(cached) $ECHO_C" >&6
28656 else
28657   cat >conftest.$ac_ext <<_ACEOF
28658 /* confdefs.h.  */
28659 _ACEOF
28660 cat confdefs.h >>conftest.$ac_ext
28661 cat >>conftest.$ac_ext <<_ACEOF
28662 /* end confdefs.h.  */
28663
28664
28665 #include <$ac_header>
28666 _ACEOF
28667 rm -f conftest.$ac_objext
28668 if { (ac_try="$ac_compile"
28669 case "(($ac_try" in
28670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28671   *) ac_try_echo=$ac_try;;
28672 esac
28673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28674   (eval "$ac_compile") 2>conftest.er1
28675   ac_status=$?
28676   grep -v '^ *+' conftest.er1 >conftest.err
28677   rm -f conftest.er1
28678   cat conftest.err >&5
28679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28680   (exit $ac_status); } && {
28681          test -z "$ac_c_werror_flag" ||
28682          test ! -s conftest.err
28683        } && test -s conftest.$ac_objext; then
28684   eval "$as_ac_Header=yes"
28685 else
28686   echo "$as_me: failed program was:" >&5
28687 sed 's/^/| /' conftest.$ac_ext >&5
28688
28689         eval "$as_ac_Header=no"
28690 fi
28691
28692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28693 fi
28694 ac_res=`eval echo '${'$as_ac_Header'}'`
28695                { echo "$as_me:$LINENO: result: $ac_res" >&5
28696 echo "${ECHO_T}$ac_res" >&6; }
28697 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28698   cat >>confdefs.h <<_ACEOF
28699 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28700 _ACEOF
28701
28702 fi
28703
28704 done
28705
28706     { echo "$as_me:$LINENO: checking for windows.h" >&5
28707 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
28708 if test "${ac_cv_header_windows_h+set}" = set; then
28709   echo $ECHO_N "(cached) $ECHO_C" >&6
28710 else
28711   cat >conftest.$ac_ext <<_ACEOF
28712 /* confdefs.h.  */
28713 _ACEOF
28714 cat confdefs.h >>conftest.$ac_ext
28715 cat >>conftest.$ac_ext <<_ACEOF
28716 /* end confdefs.h.  */
28717
28718
28719 #include <windows.h>
28720 _ACEOF
28721 rm -f conftest.$ac_objext
28722 if { (ac_try="$ac_compile"
28723 case "(($ac_try" in
28724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28725   *) ac_try_echo=$ac_try;;
28726 esac
28727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28728   (eval "$ac_compile") 2>conftest.er1
28729   ac_status=$?
28730   grep -v '^ *+' conftest.er1 >conftest.err
28731   rm -f conftest.er1
28732   cat conftest.err >&5
28733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28734   (exit $ac_status); } && {
28735          test -z "$ac_c_werror_flag" ||
28736          test ! -s conftest.err
28737        } && test -s conftest.$ac_objext; then
28738   ac_cv_header_windows_h=yes
28739 else
28740   echo "$as_me: failed program was:" >&5
28741 sed 's/^/| /' conftest.$ac_ext >&5
28742
28743         ac_cv_header_windows_h=no
28744 fi
28745
28746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28747 fi
28748 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
28749 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
28750 if test $ac_cv_header_windows_h = yes; then
28751   :
28752 else
28753
28754         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
28755 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
28756    { (exit 1); exit 1; }; }
28757
28758 fi
28759
28760
28761
28762             case "${host}" in
28763         x86_64-*-mingw32* )
28764                         LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lwctl3d32 -ladvapi32 -lwsock32 -lgdi32"
28765
28766                                                 WINDRES_CPU_DEFINE="--define WX_CPU_AMD64"
28767         ;;
28768         * )
28769             LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
28770         ;;
28771     esac
28772     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
28773         LIBS="$LIBS -loleacc"
28774     fi
28775
28776     case "${host}" in
28777         *-*-cygwin* )
28778                         LIBS="$LIBS -lkernel32 -luser32"
28779     esac
28780
28781         RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
28782     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
28783
28784                 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
28785
28786         WIN32INSTALL=win32install
28787
28788         { echo "$as_me:$LINENO: checking for pbt.h" >&5
28789 echo $ECHO_N "checking for pbt.h... $ECHO_C" >&6; }
28790 if test "${ac_cv_header_pbt_h+set}" = set; then
28791   echo $ECHO_N "(cached) $ECHO_C" >&6
28792 else
28793   cat >conftest.$ac_ext <<_ACEOF
28794 /* confdefs.h.  */
28795 _ACEOF
28796 cat confdefs.h >>conftest.$ac_ext
28797 cat >>conftest.$ac_ext <<_ACEOF
28798 /* end confdefs.h.  */
28799
28800
28801 #include <pbt.h>
28802 _ACEOF
28803 rm -f conftest.$ac_objext
28804 if { (ac_try="$ac_compile"
28805 case "(($ac_try" in
28806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28807   *) ac_try_echo=$ac_try;;
28808 esac
28809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28810   (eval "$ac_compile") 2>conftest.er1
28811   ac_status=$?
28812   grep -v '^ *+' conftest.er1 >conftest.err
28813   rm -f conftest.er1
28814   cat conftest.err >&5
28815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28816   (exit $ac_status); } && {
28817          test -z "$ac_c_werror_flag" ||
28818          test ! -s conftest.err
28819        } && test -s conftest.$ac_objext; then
28820   ac_cv_header_pbt_h=yes
28821 else
28822   echo "$as_me: failed program was:" >&5
28823 sed 's/^/| /' conftest.$ac_ext >&5
28824
28825         ac_cv_header_pbt_h=no
28826 fi
28827
28828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28829 fi
28830 { echo "$as_me:$LINENO: result: $ac_cv_header_pbt_h" >&5
28831 echo "${ECHO_T}$ac_cv_header_pbt_h" >&6; }
28832 if test $ac_cv_header_pbt_h = yes; then
28833   :
28834 else
28835   cat >>confdefs.h <<\_ACEOF
28836 #define NEED_PBT_H 1
28837 _ACEOF
28838
28839 fi
28840
28841
28842 fi
28843
28844 if test "$wxUSE_GUI" = "yes"; then
28845     USE_GUI=1
28846
28847     GUI_TK_LIBRARY=
28848
28849     WXGTK12=
28850     WXGTK127=
28851     WXGTK2=
28852     WXGPE=
28853
28854     if test "$wxUSE_OLD_COCOA" = 1 ; then
28855         if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
28856             { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
28857 echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
28858             wxUSE_PRINTING_ARCHITECTURE=no
28859         fi
28860         if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
28861             { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
28862 echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
28863             wxUSE_DRAG_AND_DROP=no
28864         fi
28865         if test "$wxUSE_DRAGIMAGE" = "yes"; then
28866             { echo "$as_me:$LINENO: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&5
28867 echo "$as_me: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&2;}
28868             wxUSE_DRAGIMAGE=no
28869         fi
28870     fi
28871
28872     if test "$wxUSE_MSW" = 1 ; then
28873         TOOLKIT=MSW
28874         GUIDIST=MSW_DIST
28875
28876                 case "${host}" in
28877             *-*-mingw32* )
28878                 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
28879         esac
28880     fi
28881
28882     if test "$wxUSE_GTK" = 1; then
28883                 { echo "$as_me:$LINENO: checking for GTK+ version" >&5
28884 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6; }
28885
28886         gtk_version_cached=1
28887         if test "${wx_cv_lib_gtk+set}" = set; then
28888   echo $ECHO_N "(cached) $ECHO_C" >&6
28889 else
28890
28891                                                 gtk_version_cached=0
28892                 { echo "$as_me:$LINENO: result: " >&5
28893 echo "${ECHO_T}" >&6; }
28894
28895                                                 GTK_MODULES=
28896                 if test "$wxUSE_THREADS" = "yes"; then
28897                     GTK_MODULES=gthread
28898                 fi
28899
28900                                 wx_cv_lib_gtk=
28901                 if test "x$wxGTK_VERSION" != "x1"
28902                 then
28903                                                                                 case "${host}" in
28904                         *-*-solaris2* )
28905                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
28906                                 enable_gtktest=no
28907                             fi
28908                     esac
28909
28910                     # Check whether --enable-gtktest was given.
28911 if test "${enable_gtktest+set}" = set; then
28912   enableval=$enable_gtktest;
28913 else
28914   enable_gtktest=yes
28915 fi
28916
28917
28918   pkg_config_args=gtk+-2.0
28919   for module in . $GTK_MODULES
28920   do
28921       case "$module" in
28922          gthread)
28923              pkg_config_args="$pkg_config_args gthread-2.0"
28924          ;;
28925       esac
28926   done
28927
28928   no_gtk=""
28929
28930   # Extract the first word of "pkg-config", so it can be a program name with args.
28931 set dummy pkg-config; ac_word=$2
28932 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28934 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28935   echo $ECHO_N "(cached) $ECHO_C" >&6
28936 else
28937   case $PKG_CONFIG in
28938   [\\/]* | ?:[\\/]*)
28939   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28940   ;;
28941   *)
28942   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28943 for as_dir in $PATH
28944 do
28945   IFS=$as_save_IFS
28946   test -z "$as_dir" && as_dir=.
28947   for ac_exec_ext in '' $ac_executable_extensions; do
28948   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28949     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28950     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28951     break 2
28952   fi
28953 done
28954 done
28955 IFS=$as_save_IFS
28956
28957   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28958   ;;
28959 esac
28960 fi
28961 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28962 if test -n "$PKG_CONFIG"; then
28963   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28964 echo "${ECHO_T}$PKG_CONFIG" >&6; }
28965 else
28966   { echo "$as_me:$LINENO: result: no" >&5
28967 echo "${ECHO_T}no" >&6; }
28968 fi
28969
28970
28971
28972   if test x$PKG_CONFIG != xno ; then
28973     if pkg-config --atleast-pkgconfig-version 0.7 ; then
28974       :
28975     else
28976       echo "*** pkg-config too old; version 0.7 or better required."
28977       no_gtk=yes
28978       PKG_CONFIG=no
28979     fi
28980   else
28981     no_gtk=yes
28982   fi
28983
28984   min_gtk_version=2.4.0
28985   { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
28986 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; }
28987
28988   if test x$PKG_CONFIG != xno ; then
28989     ## don't try to run the test against uninstalled libtool libs
28990     if $PKG_CONFIG --uninstalled $pkg_config_args; then
28991           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
28992           enable_gtktest=no
28993     fi
28994
28995     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
28996           :
28997     else
28998           no_gtk=yes
28999     fi
29000   fi
29001
29002   if test x"$no_gtk" = x ; then
29003     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
29004     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
29005     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
29006            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
29007     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
29008            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
29009     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
29010            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
29011     if test "x$enable_gtktest" = "xyes" ; then
29012       ac_save_CFLAGS="$CFLAGS"
29013       ac_save_LIBS="$LIBS"
29014       CFLAGS="$CFLAGS $GTK_CFLAGS"
29015       LIBS="$GTK_LIBS $LIBS"
29016       rm -f conf.gtktest
29017       if test "$cross_compiling" = yes; then
29018   echo $ac_n "cross compiling; assumed OK... $ac_c"
29019 else
29020   cat >conftest.$ac_ext <<_ACEOF
29021 /* confdefs.h.  */
29022 _ACEOF
29023 cat confdefs.h >>conftest.$ac_ext
29024 cat >>conftest.$ac_ext <<_ACEOF
29025 /* end confdefs.h.  */
29026
29027 #include <gtk/gtk.h>
29028 #include <stdio.h>
29029 #include <stdlib.h>
29030
29031 int
29032 main ()
29033 {
29034   int major, minor, micro;
29035   char *tmp_version;
29036
29037   system ("touch conf.gtktest");
29038
29039   /* HP/UX 9 (%@#!) writes to sscanf strings */
29040   tmp_version = g_strdup("$min_gtk_version");
29041   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
29042      printf("%s, bad version string\n", "$min_gtk_version");
29043      exit(1);
29044    }
29045
29046   if ((gtk_major_version != $gtk_config_major_version) ||
29047       (gtk_minor_version != $gtk_config_minor_version) ||
29048       (gtk_micro_version != $gtk_config_micro_version))
29049     {
29050       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
29051              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
29052              gtk_major_version, gtk_minor_version, gtk_micro_version);
29053       printf ("*** was found! If pkg-config was correct, then it is best\n");
29054       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
29055       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
29056       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
29057       printf("*** required on your system.\n");
29058       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
29059       printf("*** to point to the correct configuration files\n");
29060     }
29061   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
29062            (gtk_minor_version != GTK_MINOR_VERSION) ||
29063            (gtk_micro_version != GTK_MICRO_VERSION))
29064     {
29065       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
29066              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
29067       printf("*** library (version %d.%d.%d)\n",
29068              gtk_major_version, gtk_minor_version, gtk_micro_version);
29069     }
29070   else
29071     {
29072       if ((gtk_major_version > major) ||
29073         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
29074         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
29075       {
29076         return 0;
29077        }
29078      else
29079       {
29080         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
29081                gtk_major_version, gtk_minor_version, gtk_micro_version);
29082         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
29083                major, minor, micro);
29084         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
29085         printf("***\n");
29086         printf("*** If you have already installed a sufficiently new version, this error\n");
29087         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
29088         printf("*** being found. The easiest way to fix this is to remove the old version\n");
29089         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
29090         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
29091         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
29092         printf("*** so that the correct libraries are found at run-time))\n");
29093       }
29094     }
29095   return 1;
29096 }
29097
29098 _ACEOF
29099 rm -f conftest$ac_exeext
29100 if { (ac_try="$ac_link"
29101 case "(($ac_try" in
29102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29103   *) ac_try_echo=$ac_try;;
29104 esac
29105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29106   (eval "$ac_link") 2>&5
29107   ac_status=$?
29108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29109   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29110   { (case "(($ac_try" in
29111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29112   *) ac_try_echo=$ac_try;;
29113 esac
29114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29115   (eval "$ac_try") 2>&5
29116   ac_status=$?
29117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29118   (exit $ac_status); }; }; then
29119   :
29120 else
29121   echo "$as_me: program exited with status $ac_status" >&5
29122 echo "$as_me: failed program was:" >&5
29123 sed 's/^/| /' conftest.$ac_ext >&5
29124
29125 ( exit $ac_status )
29126 no_gtk=yes
29127 fi
29128 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29129 fi
29130
29131
29132        CFLAGS="$ac_save_CFLAGS"
29133        LIBS="$ac_save_LIBS"
29134      fi
29135   fi
29136   if test "x$no_gtk" = x ; then
29137      { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
29138 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
29139      wx_cv_lib_gtk=2.0
29140   else
29141      { echo "$as_me:$LINENO: result: no" >&5
29142 echo "${ECHO_T}no" >&6; }
29143      if test "$PKG_CONFIG" = "no" ; then
29144        echo "*** A new enough version of pkg-config was not found."
29145        echo "*** See http://pkgconfig.sourceforge.net"
29146      else
29147        if test -f conf.gtktest ; then
29148         :
29149        else
29150           echo "*** Could not run GTK+ test program, checking why..."
29151           ac_save_CFLAGS="$CFLAGS"
29152           ac_save_LIBS="$LIBS"
29153           CFLAGS="$CFLAGS $GTK_CFLAGS"
29154           LIBS="$LIBS $GTK_LIBS"
29155           cat >conftest.$ac_ext <<_ACEOF
29156 /* confdefs.h.  */
29157 _ACEOF
29158 cat confdefs.h >>conftest.$ac_ext
29159 cat >>conftest.$ac_ext <<_ACEOF
29160 /* end confdefs.h.  */
29161
29162 #include <gtk/gtk.h>
29163 #include <stdio.h>
29164
29165 int
29166 main ()
29167 {
29168  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
29169   ;
29170   return 0;
29171 }
29172 _ACEOF
29173 rm -f conftest.$ac_objext conftest$ac_exeext
29174 if { (ac_try="$ac_link"
29175 case "(($ac_try" in
29176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29177   *) ac_try_echo=$ac_try;;
29178 esac
29179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29180   (eval "$ac_link") 2>conftest.er1
29181   ac_status=$?
29182   grep -v '^ *+' conftest.er1 >conftest.err
29183   rm -f conftest.er1
29184   cat conftest.err >&5
29185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29186   (exit $ac_status); } && {
29187          test -z "$ac_c_werror_flag" ||
29188          test ! -s conftest.err
29189        } && test -s conftest$ac_exeext &&
29190        $as_test_x conftest$ac_exeext; then
29191    echo "*** The test program compiled, but did not run. This usually means"
29192           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
29193           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
29194           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
29195           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
29196           echo "*** is required on your system"
29197           echo "***"
29198           echo "*** If you have an old version installed, it is best to remove it, although"
29199           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
29200 else
29201   echo "$as_me: failed program was:" >&5
29202 sed 's/^/| /' conftest.$ac_ext >&5
29203
29204          echo "*** The test program failed to compile or link. See the file config.log for the"
29205           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
29206 fi
29207
29208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29209       conftest$ac_exeext conftest.$ac_ext
29210           CFLAGS="$ac_save_CFLAGS"
29211           LIBS="$ac_save_LIBS"
29212        fi
29213      fi
29214      GTK_CFLAGS=""
29215      GTK_LIBS=""
29216      :
29217   fi
29218
29219
29220   rm -f conf.gtktest
29221
29222
29223                                         case "${host}" in
29224                         *-*-solaris2* )
29225                             if test "$wxUSE_SHARED" != "yes"; then
29226                                 GTK_LIBS="$GTK_LIBS -lX11"
29227                             fi
29228                     esac
29229                 fi
29230
29231                                 if test -z "$wx_cv_lib_gtk"; then
29232                     if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
29233
29234 # Check whether --with-gtk-prefix was given.
29235 if test "${with_gtk_prefix+set}" = set; then
29236   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
29237 else
29238   gtk_config_prefix=""
29239 fi
29240
29241
29242 # Check whether --with-gtk-exec-prefix was given.
29243 if test "${with_gtk_exec_prefix+set}" = set; then
29244   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
29245 else
29246   gtk_config_exec_prefix=""
29247 fi
29248
29249 # Check whether --enable-gtktest was given.
29250 if test "${enable_gtktest+set}" = set; then
29251   enableval=$enable_gtktest;
29252 else
29253   enable_gtktest=yes
29254 fi
29255
29256
29257   for module in . $GTK_MODULES
29258   do
29259       case "$module" in
29260          gthread)
29261              gtk_config_args="$gtk_config_args gthread"
29262          ;;
29263       esac
29264   done
29265
29266   if test x$gtk_config_exec_prefix != x ; then
29267      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
29268      if test x${GTK_CONFIG+set} != xset ; then
29269         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
29270      fi
29271   fi
29272   if test x$gtk_config_prefix != x ; then
29273      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
29274      if test x${GTK_CONFIG+set} != xset ; then
29275         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
29276      fi
29277   fi
29278
29279   # Extract the first word of "gtk-config", so it can be a program name with args.
29280 set dummy gtk-config; ac_word=$2
29281 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29283 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
29284   echo $ECHO_N "(cached) $ECHO_C" >&6
29285 else
29286   case $GTK_CONFIG in
29287   [\\/]* | ?:[\\/]*)
29288   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
29289   ;;
29290   *)
29291   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29292 for as_dir in $PATH
29293 do
29294   IFS=$as_save_IFS
29295   test -z "$as_dir" && as_dir=.
29296   for ac_exec_ext in '' $ac_executable_extensions; do
29297   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29298     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29299     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29300     break 2
29301   fi
29302 done
29303 done
29304 IFS=$as_save_IFS
29305
29306   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
29307   ;;
29308 esac
29309 fi
29310 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
29311 if test -n "$GTK_CONFIG"; then
29312   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
29313 echo "${ECHO_T}$GTK_CONFIG" >&6; }
29314 else
29315   { echo "$as_me:$LINENO: result: no" >&5
29316 echo "${ECHO_T}no" >&6; }
29317 fi
29318
29319
29320   min_gtk_version=1.2.7
29321   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
29322 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
29323   no_gtk=""
29324   if test "$GTK_CONFIG" = "no" ; then
29325     no_gtk=yes
29326   else
29327     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
29328     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
29329     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
29330            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
29331     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
29332            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
29333     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
29334            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
29335     if test "x$enable_gtktest" = "xyes" ; then
29336       ac_save_CFLAGS="$CFLAGS"
29337       ac_save_LIBS="$LIBS"
29338       CFLAGS="$CFLAGS $GTK_CFLAGS"
29339       LIBS="$GTK_LIBS $LIBS"
29340       rm -f conf.gtktest
29341       if test "$cross_compiling" = yes; then
29342   echo $ac_n "cross compiling; assumed OK... $ac_c"
29343 else
29344   cat >conftest.$ac_ext <<_ACEOF
29345 /* confdefs.h.  */
29346 _ACEOF
29347 cat confdefs.h >>conftest.$ac_ext
29348 cat >>conftest.$ac_ext <<_ACEOF
29349 /* end confdefs.h.  */
29350
29351 #include <gtk/gtk.h>
29352 #include <stdio.h>
29353 #include <stdlib.h>
29354
29355 int
29356 main ()
29357 {
29358   int major, minor, micro;
29359   char *tmp_version;
29360
29361   system ("touch conf.gtktest");
29362
29363   /* HP/UX 9 (%@#!) writes to sscanf strings */
29364   tmp_version = g_strdup("$min_gtk_version");
29365   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
29366      printf("%s, bad version string\n", "$min_gtk_version");
29367      exit(1);
29368    }
29369
29370   if ((gtk_major_version != $gtk_config_major_version) ||
29371       (gtk_minor_version != $gtk_config_minor_version) ||
29372       (gtk_micro_version != $gtk_config_micro_version))
29373     {
29374       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
29375              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
29376              gtk_major_version, gtk_minor_version, gtk_micro_version);
29377       printf ("*** was found! If gtk-config was correct, then it is best\n");
29378       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
29379       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
29380       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
29381       printf("*** required on your system.\n");
29382       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
29383       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
29384       printf("*** before re-running configure\n");
29385     }
29386 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
29387   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
29388            (gtk_minor_version != GTK_MINOR_VERSION) ||
29389            (gtk_micro_version != GTK_MICRO_VERSION))
29390     {
29391       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
29392              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
29393       printf("*** library (version %d.%d.%d)\n",
29394              gtk_major_version, gtk_minor_version, gtk_micro_version);
29395     }
29396 #endif /* defined (GTK_MAJOR_VERSION) ... */
29397   else
29398     {
29399       if ((gtk_major_version > major) ||
29400         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
29401         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
29402       {
29403         return 0;
29404        }
29405      else
29406       {
29407         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
29408                gtk_major_version, gtk_minor_version, gtk_micro_version);
29409         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
29410                major, minor, micro);
29411         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
29412         printf("***\n");
29413         printf("*** If you have already installed a sufficiently new version, this error\n");
29414         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
29415         printf("*** being found. The easiest way to fix this is to remove the old version\n");
29416         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
29417         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
29418         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
29419         printf("*** so that the correct libraries are found at run-time))\n");
29420       }
29421     }
29422   return 1;
29423 }
29424
29425 _ACEOF
29426 rm -f conftest$ac_exeext
29427 if { (ac_try="$ac_link"
29428 case "(($ac_try" in
29429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29430   *) ac_try_echo=$ac_try;;
29431 esac
29432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29433   (eval "$ac_link") 2>&5
29434   ac_status=$?
29435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29436   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29437   { (case "(($ac_try" in
29438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29439   *) ac_try_echo=$ac_try;;
29440 esac
29441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29442   (eval "$ac_try") 2>&5
29443   ac_status=$?
29444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29445   (exit $ac_status); }; }; then
29446   :
29447 else
29448   echo "$as_me: program exited with status $ac_status" >&5
29449 echo "$as_me: failed program was:" >&5
29450 sed 's/^/| /' conftest.$ac_ext >&5
29451
29452 ( exit $ac_status )
29453 no_gtk=yes
29454 fi
29455 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29456 fi
29457
29458
29459        CFLAGS="$ac_save_CFLAGS"
29460        LIBS="$ac_save_LIBS"
29461      fi
29462   fi
29463   if test "x$no_gtk" = x ; then
29464      { echo "$as_me:$LINENO: result: yes" >&5
29465 echo "${ECHO_T}yes" >&6; }
29466      wx_cv_lib_gtk=1.2.7
29467   else
29468      { echo "$as_me:$LINENO: result: no" >&5
29469 echo "${ECHO_T}no" >&6; }
29470      if test "$GTK_CONFIG" = "no" ; then
29471        echo "*** The gtk-config script installed by GTK could not be found"
29472        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
29473        echo "*** your path, or set the GTK_CONFIG environment variable to the"
29474        echo "*** full path to gtk-config."
29475      else
29476        if test -f conf.gtktest ; then
29477         :
29478        else
29479           echo "*** Could not run GTK test program, checking why..."
29480           CFLAGS="$CFLAGS $GTK_CFLAGS"
29481           LIBS="$LIBS $GTK_LIBS"
29482           cat >conftest.$ac_ext <<_ACEOF
29483 /* confdefs.h.  */
29484 _ACEOF
29485 cat confdefs.h >>conftest.$ac_ext
29486 cat >>conftest.$ac_ext <<_ACEOF
29487 /* end confdefs.h.  */
29488
29489 #include <gtk/gtk.h>
29490 #include <stdio.h>
29491
29492 int
29493 main ()
29494 {
29495  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
29496   ;
29497   return 0;
29498 }
29499 _ACEOF
29500 rm -f conftest.$ac_objext conftest$ac_exeext
29501 if { (ac_try="$ac_link"
29502 case "(($ac_try" in
29503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29504   *) ac_try_echo=$ac_try;;
29505 esac
29506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29507   (eval "$ac_link") 2>conftest.er1
29508   ac_status=$?
29509   grep -v '^ *+' conftest.er1 >conftest.err
29510   rm -f conftest.er1
29511   cat conftest.err >&5
29512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29513   (exit $ac_status); } && {
29514          test -z "$ac_c_werror_flag" ||
29515          test ! -s conftest.err
29516        } && test -s conftest$ac_exeext &&
29517        $as_test_x conftest$ac_exeext; then
29518    echo "*** The test program compiled, but did not run. This usually means"
29519           echo "*** that the run-time linker is not finding GTK or finding the wrong"
29520           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
29521           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
29522           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
29523           echo "*** is required on your system"
29524           echo "***"
29525           echo "*** If you have an old version installed, it is best to remove it, although"
29526           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
29527           echo "***"
29528           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
29529           echo "*** came with the system with the command"
29530           echo "***"
29531           echo "***    rpm --erase --nodeps gtk gtk-devel"
29532 else
29533   echo "$as_me: failed program was:" >&5
29534 sed 's/^/| /' conftest.$ac_ext >&5
29535
29536          echo "*** The test program failed to compile or link. See the file config.log for the"
29537           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
29538           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
29539           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
29540 fi
29541
29542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29543       conftest$ac_exeext conftest.$ac_ext
29544           CFLAGS="$ac_save_CFLAGS"
29545           LIBS="$ac_save_LIBS"
29546        fi
29547      fi
29548      GTK_CFLAGS=""
29549      GTK_LIBS=""
29550      :
29551   fi
29552
29553
29554   rm -f conf.gtktest
29555
29556
29557                         if test -z "$wx_cv_lib_gtk"; then
29558
29559 # Check whether --with-gtk-prefix was given.
29560 if test "${with_gtk_prefix+set}" = set; then
29561   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
29562 else
29563   gtk_config_prefix=""
29564 fi
29565
29566
29567 # Check whether --with-gtk-exec-prefix was given.
29568 if test "${with_gtk_exec_prefix+set}" = set; then
29569   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
29570 else
29571   gtk_config_exec_prefix=""
29572 fi
29573
29574 # Check whether --enable-gtktest was given.
29575 if test "${enable_gtktest+set}" = set; then
29576   enableval=$enable_gtktest;
29577 else
29578   enable_gtktest=yes
29579 fi
29580
29581
29582   for module in . $GTK_MODULES
29583   do
29584       case "$module" in
29585          gthread)
29586              gtk_config_args="$gtk_config_args gthread"
29587          ;;
29588       esac
29589   done
29590
29591   if test x$gtk_config_exec_prefix != x ; then
29592      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
29593      if test x${GTK_CONFIG+set} != xset ; then
29594         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
29595      fi
29596   fi
29597   if test x$gtk_config_prefix != x ; then
29598      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
29599      if test x${GTK_CONFIG+set} != xset ; then
29600         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
29601      fi
29602   fi
29603
29604   # Extract the first word of "gtk-config", so it can be a program name with args.
29605 set dummy gtk-config; ac_word=$2
29606 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29608 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
29609   echo $ECHO_N "(cached) $ECHO_C" >&6
29610 else
29611   case $GTK_CONFIG in
29612   [\\/]* | ?:[\\/]*)
29613   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
29614   ;;
29615   *)
29616   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29617 for as_dir in $PATH
29618 do
29619   IFS=$as_save_IFS
29620   test -z "$as_dir" && as_dir=.
29621   for ac_exec_ext in '' $ac_executable_extensions; do
29622   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29623     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29624     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29625     break 2
29626   fi
29627 done
29628 done
29629 IFS=$as_save_IFS
29630
29631   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
29632   ;;
29633 esac
29634 fi
29635 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
29636 if test -n "$GTK_CONFIG"; then
29637   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
29638 echo "${ECHO_T}$GTK_CONFIG" >&6; }
29639 else
29640   { echo "$as_me:$LINENO: result: no" >&5
29641 echo "${ECHO_T}no" >&6; }
29642 fi
29643
29644
29645   min_gtk_version=1.2.3
29646   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
29647 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
29648   no_gtk=""
29649   if test "$GTK_CONFIG" = "no" ; then
29650     no_gtk=yes
29651   else
29652     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
29653     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
29654     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
29655            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
29656     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
29657            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
29658     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
29659            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
29660     if test "x$enable_gtktest" = "xyes" ; then
29661       ac_save_CFLAGS="$CFLAGS"
29662       ac_save_LIBS="$LIBS"
29663       CFLAGS="$CFLAGS $GTK_CFLAGS"
29664       LIBS="$GTK_LIBS $LIBS"
29665       rm -f conf.gtktest
29666       if test "$cross_compiling" = yes; then
29667   echo $ac_n "cross compiling; assumed OK... $ac_c"
29668 else
29669   cat >conftest.$ac_ext <<_ACEOF
29670 /* confdefs.h.  */
29671 _ACEOF
29672 cat confdefs.h >>conftest.$ac_ext
29673 cat >>conftest.$ac_ext <<_ACEOF
29674 /* end confdefs.h.  */
29675
29676 #include <gtk/gtk.h>
29677 #include <stdio.h>
29678 #include <stdlib.h>
29679
29680 int
29681 main ()
29682 {
29683   int major, minor, micro;
29684   char *tmp_version;
29685
29686   system ("touch conf.gtktest");
29687
29688   /* HP/UX 9 (%@#!) writes to sscanf strings */
29689   tmp_version = g_strdup("$min_gtk_version");
29690   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
29691      printf("%s, bad version string\n", "$min_gtk_version");
29692      exit(1);
29693    }
29694
29695   if ((gtk_major_version != $gtk_config_major_version) ||
29696       (gtk_minor_version != $gtk_config_minor_version) ||
29697       (gtk_micro_version != $gtk_config_micro_version))
29698     {
29699       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
29700              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
29701              gtk_major_version, gtk_minor_version, gtk_micro_version);
29702       printf ("*** was found! If gtk-config was correct, then it is best\n");
29703       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
29704       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
29705       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
29706       printf("*** required on your system.\n");
29707       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
29708       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
29709       printf("*** before re-running configure\n");
29710     }
29711 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
29712   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
29713            (gtk_minor_version != GTK_MINOR_VERSION) ||
29714            (gtk_micro_version != GTK_MICRO_VERSION))
29715     {
29716       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
29717              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
29718       printf("*** library (version %d.%d.%d)\n",
29719              gtk_major_version, gtk_minor_version, gtk_micro_version);
29720     }
29721 #endif /* defined (GTK_MAJOR_VERSION) ... */
29722   else
29723     {
29724       if ((gtk_major_version > major) ||
29725         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
29726         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
29727       {
29728         return 0;
29729        }
29730      else
29731       {
29732         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
29733                gtk_major_version, gtk_minor_version, gtk_micro_version);
29734         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
29735                major, minor, micro);
29736         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
29737         printf("***\n");
29738         printf("*** If you have already installed a sufficiently new version, this error\n");
29739         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
29740         printf("*** being found. The easiest way to fix this is to remove the old version\n");
29741         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
29742         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
29743         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
29744         printf("*** so that the correct libraries are found at run-time))\n");
29745       }
29746     }
29747   return 1;
29748 }
29749
29750 _ACEOF
29751 rm -f conftest$ac_exeext
29752 if { (ac_try="$ac_link"
29753 case "(($ac_try" in
29754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29755   *) ac_try_echo=$ac_try;;
29756 esac
29757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29758   (eval "$ac_link") 2>&5
29759   ac_status=$?
29760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29761   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29762   { (case "(($ac_try" in
29763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29764   *) ac_try_echo=$ac_try;;
29765 esac
29766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29767   (eval "$ac_try") 2>&5
29768   ac_status=$?
29769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29770   (exit $ac_status); }; }; then
29771   :
29772 else
29773   echo "$as_me: program exited with status $ac_status" >&5
29774 echo "$as_me: failed program was:" >&5
29775 sed 's/^/| /' conftest.$ac_ext >&5
29776
29777 ( exit $ac_status )
29778 no_gtk=yes
29779 fi
29780 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29781 fi
29782
29783
29784        CFLAGS="$ac_save_CFLAGS"
29785        LIBS="$ac_save_LIBS"
29786      fi
29787   fi
29788   if test "x$no_gtk" = x ; then
29789      { echo "$as_me:$LINENO: result: yes" >&5
29790 echo "${ECHO_T}yes" >&6; }
29791      wx_cv_lib_gtk=1.2.3
29792   else
29793      { echo "$as_me:$LINENO: result: no" >&5
29794 echo "${ECHO_T}no" >&6; }
29795      if test "$GTK_CONFIG" = "no" ; then
29796        echo "*** The gtk-config script installed by GTK could not be found"
29797        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
29798        echo "*** your path, or set the GTK_CONFIG environment variable to the"
29799        echo "*** full path to gtk-config."
29800      else
29801        if test -f conf.gtktest ; then
29802         :
29803        else
29804           echo "*** Could not run GTK test program, checking why..."
29805           CFLAGS="$CFLAGS $GTK_CFLAGS"
29806           LIBS="$LIBS $GTK_LIBS"
29807           cat >conftest.$ac_ext <<_ACEOF
29808 /* confdefs.h.  */
29809 _ACEOF
29810 cat confdefs.h >>conftest.$ac_ext
29811 cat >>conftest.$ac_ext <<_ACEOF
29812 /* end confdefs.h.  */
29813
29814 #include <gtk/gtk.h>
29815 #include <stdio.h>
29816
29817 int
29818 main ()
29819 {
29820  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
29821   ;
29822   return 0;
29823 }
29824 _ACEOF
29825 rm -f conftest.$ac_objext conftest$ac_exeext
29826 if { (ac_try="$ac_link"
29827 case "(($ac_try" in
29828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29829   *) ac_try_echo=$ac_try;;
29830 esac
29831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29832   (eval "$ac_link") 2>conftest.er1
29833   ac_status=$?
29834   grep -v '^ *+' conftest.er1 >conftest.err
29835   rm -f conftest.er1
29836   cat conftest.err >&5
29837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29838   (exit $ac_status); } && {
29839          test -z "$ac_c_werror_flag" ||
29840          test ! -s conftest.err
29841        } && test -s conftest$ac_exeext &&
29842        $as_test_x conftest$ac_exeext; then
29843    echo "*** The test program compiled, but did not run. This usually means"
29844           echo "*** that the run-time linker is not finding GTK or finding the wrong"
29845           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
29846           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
29847           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
29848           echo "*** is required on your system"
29849           echo "***"
29850           echo "*** If you have an old version installed, it is best to remove it, although"
29851           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
29852           echo "***"
29853           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
29854           echo "*** came with the system with the command"
29855           echo "***"
29856           echo "***    rpm --erase --nodeps gtk gtk-devel"
29857 else
29858   echo "$as_me: failed program was:" >&5
29859 sed 's/^/| /' conftest.$ac_ext >&5
29860
29861          echo "*** The test program failed to compile or link. See the file config.log for the"
29862           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
29863           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
29864           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
29865 fi
29866
29867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29868       conftest$ac_exeext conftest.$ac_ext
29869           CFLAGS="$ac_save_CFLAGS"
29870           LIBS="$ac_save_LIBS"
29871        fi
29872      fi
29873      GTK_CFLAGS=""
29874      GTK_LIBS=""
29875      :
29876   fi
29877
29878
29879   rm -f conf.gtktest
29880
29881                         fi
29882                     fi
29883                 fi
29884
29885                 if test -z "$wx_cv_lib_gtk"; then
29886                                         wx_cv_lib_gtk=none
29887                 else
29888                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
29889                     wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
29890                 fi
29891
29892
29893 fi
29894
29895
29896                         if test "$gtk_version_cached" = 1; then
29897             { echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
29898 echo "${ECHO_T}$wx_cv_lib_gtk" >&6; }
29899         fi
29900
29901         case "$wx_cv_lib_gtk" in
29902             2.0)    WXGTK2=1
29903                     TOOLKIT_VERSION=2
29904                     ;;
29905             1.2.7)  WXGTK127=1
29906                     WXGTK12=1
29907                     ;;
29908             1.2.3)  WXGTK12=1
29909                     ;;
29910             *)      { { echo "$as_me:$LINENO: error:
29911 The development files for GTK+ were not found. For GTK+ 2, please
29912 ensure that pkg-config is in the path and that gtk+-2.0.pc is
29913 installed. For GTK+ 1.2 please check that gtk-config is in the path,
29914 and that the version is 1.2.3 or above. Also check that the
29915 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
29916 --libs' are in the LD_LIBRARY_PATH or equivalent.
29917                             " >&5
29918 echo "$as_me: error:
29919 The development files for GTK+ were not found. For GTK+ 2, please
29920 ensure that pkg-config is in the path and that gtk+-2.0.pc is
29921 installed. For GTK+ 1.2 please check that gtk-config is in the path,
29922 and that the version is 1.2.3 or above. Also check that the
29923 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
29924 --libs' are in the LD_LIBRARY_PATH or equivalent.
29925                             " >&2;}
29926    { (exit 1); exit 1; }; }
29927                     ;;
29928         esac
29929
29930         if test "$WXGTK2" = 1; then
29931             save_CFLAGS="$CFLAGS"
29932             save_LIBS="$LIBS"
29933             CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
29934             LIBS="$LIBS $wx_cv_libs_gtk"
29935
29936                         { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.18" >&5
29937 echo $ECHO_N "checking if GTK+ is version >= 2.18... $ECHO_C" >&6; }
29938             cat >conftest.$ac_ext <<_ACEOF
29939 /* confdefs.h.  */
29940 _ACEOF
29941 cat confdefs.h >>conftest.$ac_ext
29942 cat >>conftest.$ac_ext <<_ACEOF
29943 /* end confdefs.h.  */
29944
29945                             #include <gtk/gtk.h>
29946
29947 int
29948 main ()
29949 {
29950
29951                             #if !GTK_CHECK_VERSION(2,18,0)
29952                             Not GTK+ 2.18
29953                             #endif
29954
29955   ;
29956   return 0;
29957 }
29958 _ACEOF
29959 rm -f conftest.$ac_objext
29960 if { (ac_try="$ac_compile"
29961 case "(($ac_try" in
29962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29963   *) ac_try_echo=$ac_try;;
29964 esac
29965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29966   (eval "$ac_compile") 2>conftest.er1
29967   ac_status=$?
29968   grep -v '^ *+' conftest.er1 >conftest.err
29969   rm -f conftest.er1
29970   cat conftest.err >&5
29971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29972   (exit $ac_status); } && {
29973          test -z "$ac_c_werror_flag" ||
29974          test ! -s conftest.err
29975        } && test -s conftest.$ac_objext; then
29976
29977                             cat >>confdefs.h <<\_ACEOF
29978 #define __WXGTK218__ 1
29979 _ACEOF
29980
29981                             cat >>confdefs.h <<\_ACEOF
29982 #define __WXGTK210__ 1
29983 _ACEOF
29984
29985                             cat >>confdefs.h <<\_ACEOF
29986 #define __WXGTK26__ 1
29987 _ACEOF
29988
29989                             { echo "$as_me:$LINENO: result: yes" >&5
29990 echo "${ECHO_T}yes" >&6; }
29991                             ac_wxgtk218=1
29992
29993 else
29994   echo "$as_me: failed program was:" >&5
29995 sed 's/^/| /' conftest.$ac_ext >&5
29996
29997
29998                             { echo "$as_me:$LINENO: result: no" >&5
29999 echo "${ECHO_T}no" >&6; }
30000                             ac_wxgtk218=0
30001
30002 fi
30003
30004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30005
30006             if test "$ac_wxgtk218" = 0; then
30007                                 { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.10" >&5
30008 echo $ECHO_N "checking if GTK+ is version >= 2.10... $ECHO_C" >&6; }
30009                 cat >conftest.$ac_ext <<_ACEOF
30010 /* confdefs.h.  */
30011 _ACEOF
30012 cat confdefs.h >>conftest.$ac_ext
30013 cat >>conftest.$ac_ext <<_ACEOF
30014 /* end confdefs.h.  */
30015
30016                                 #include <gtk/gtk.h>
30017
30018 int
30019 main ()
30020 {
30021
30022                                 #if !GTK_CHECK_VERSION(2,10,0)
30023                                 Not GTK+ 2.10
30024                                 #endif
30025
30026   ;
30027   return 0;
30028 }
30029 _ACEOF
30030 rm -f conftest.$ac_objext
30031 if { (ac_try="$ac_compile"
30032 case "(($ac_try" in
30033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30034   *) ac_try_echo=$ac_try;;
30035 esac
30036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30037   (eval "$ac_compile") 2>conftest.er1
30038   ac_status=$?
30039   grep -v '^ *+' conftest.er1 >conftest.err
30040   rm -f conftest.er1
30041   cat conftest.err >&5
30042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30043   (exit $ac_status); } && {
30044          test -z "$ac_c_werror_flag" ||
30045          test ! -s conftest.err
30046        } && test -s conftest.$ac_objext; then
30047
30048                                 cat >>confdefs.h <<\_ACEOF
30049 #define __WXGTK210__ 1
30050 _ACEOF
30051
30052                                 cat >>confdefs.h <<\_ACEOF
30053 #define __WXGTK26__ 1
30054 _ACEOF
30055
30056                                 { echo "$as_me:$LINENO: result: yes" >&5
30057 echo "${ECHO_T}yes" >&6; }
30058                                 ac_wxgtk210=1
30059
30060 else
30061   echo "$as_me: failed program was:" >&5
30062 sed 's/^/| /' conftest.$ac_ext >&5
30063
30064
30065                                 { echo "$as_me:$LINENO: result: no" >&5
30066 echo "${ECHO_T}no" >&6; }
30067                                 ac_wxgtk210=0
30068
30069 fi
30070
30071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30072
30073                 if test "$ac_wxgtk210" = 0; then
30074                                         { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
30075 echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6; }
30076                     cat >conftest.$ac_ext <<_ACEOF
30077 /* confdefs.h.  */
30078 _ACEOF
30079 cat confdefs.h >>conftest.$ac_ext
30080 cat >>conftest.$ac_ext <<_ACEOF
30081 /* end confdefs.h.  */
30082
30083                                     #include <gtk/gtk.h>
30084
30085 int
30086 main ()
30087 {
30088
30089                                     #if !GTK_CHECK_VERSION(2,6,0)
30090                                     Not GTK+ 2.6
30091                                     #endif
30092
30093   ;
30094   return 0;
30095 }
30096 _ACEOF
30097 rm -f conftest.$ac_objext
30098 if { (ac_try="$ac_compile"
30099 case "(($ac_try" in
30100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30101   *) ac_try_echo=$ac_try;;
30102 esac
30103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30104   (eval "$ac_compile") 2>conftest.er1
30105   ac_status=$?
30106   grep -v '^ *+' conftest.er1 >conftest.err
30107   rm -f conftest.er1
30108   cat conftest.err >&5
30109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30110   (exit $ac_status); } && {
30111          test -z "$ac_c_werror_flag" ||
30112          test ! -s conftest.err
30113        } && test -s conftest.$ac_objext; then
30114
30115                                     cat >>confdefs.h <<\_ACEOF
30116 #define __WXGTK26__ 1
30117 _ACEOF
30118
30119                                     { echo "$as_me:$LINENO: result: yes" >&5
30120 echo "${ECHO_T}yes" >&6; }
30121                                     ac_wxgtk26=1
30122
30123 else
30124   echo "$as_me: failed program was:" >&5
30125 sed 's/^/| /' conftest.$ac_ext >&5
30126
30127
30128                                     { echo "$as_me:$LINENO: result: no" >&5
30129 echo "${ECHO_T}no" >&6; }
30130                                     ac_wxgtk26=0
30131
30132 fi
30133
30134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30135                 fi
30136             fi
30137
30138             CFLAGS="$save_CFLAGS"
30139             LIBS="$save_LIBS"
30140         else
30141             if test "$wxUSE_UNICODE" = "yes"; then
30142                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
30143 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
30144                 wxUSE_UNICODE=no
30145             fi
30146
30147                         { echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
30148 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6; }
30149 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
30150   echo $ECHO_N "(cached) $ECHO_C" >&6
30151 else
30152   ac_check_lib_save_LIBS=$LIBS
30153 LIBS="-lgdk  $LIBS"
30154 cat >conftest.$ac_ext <<_ACEOF
30155 /* confdefs.h.  */
30156 _ACEOF
30157 cat confdefs.h >>conftest.$ac_ext
30158 cat >>conftest.$ac_ext <<_ACEOF
30159 /* end confdefs.h.  */
30160
30161 /* Override any GCC internal prototype to avoid an error.
30162    Use char because int might match the return type of a GCC
30163    builtin and then its argument prototype would still apply.  */
30164 #ifdef __cplusplus
30165 extern "C"
30166 #endif
30167 char gdk_im_open ();
30168 int
30169 main ()
30170 {
30171 return gdk_im_open ();
30172   ;
30173   return 0;
30174 }
30175 _ACEOF
30176 rm -f conftest.$ac_objext conftest$ac_exeext
30177 if { (ac_try="$ac_link"
30178 case "(($ac_try" in
30179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30180   *) ac_try_echo=$ac_try;;
30181 esac
30182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30183   (eval "$ac_link") 2>conftest.er1
30184   ac_status=$?
30185   grep -v '^ *+' conftest.er1 >conftest.err
30186   rm -f conftest.er1
30187   cat conftest.err >&5
30188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30189   (exit $ac_status); } && {
30190          test -z "$ac_c_werror_flag" ||
30191          test ! -s conftest.err
30192        } && test -s conftest$ac_exeext &&
30193        $as_test_x conftest$ac_exeext; then
30194   ac_cv_lib_gdk_gdk_im_open=yes
30195 else
30196   echo "$as_me: failed program was:" >&5
30197 sed 's/^/| /' conftest.$ac_ext >&5
30198
30199         ac_cv_lib_gdk_gdk_im_open=no
30200 fi
30201
30202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30203       conftest$ac_exeext conftest.$ac_ext
30204 LIBS=$ac_check_lib_save_LIBS
30205 fi
30206 { echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
30207 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6; }
30208 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
30209   cat >>confdefs.h <<\_ACEOF
30210 #define HAVE_XIM 1
30211 _ACEOF
30212
30213 fi
30214
30215
30216                                     if test "$USE_DARWIN" != 1; then
30217
30218 for ac_func in poll
30219 do
30220 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30221 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30222 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30223 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30224   echo $ECHO_N "(cached) $ECHO_C" >&6
30225 else
30226   cat >conftest.$ac_ext <<_ACEOF
30227 /* confdefs.h.  */
30228 _ACEOF
30229 cat confdefs.h >>conftest.$ac_ext
30230 cat >>conftest.$ac_ext <<_ACEOF
30231 /* end confdefs.h.  */
30232 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30233    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30234 #define $ac_func innocuous_$ac_func
30235
30236 /* System header to define __stub macros and hopefully few prototypes,
30237     which can conflict with char $ac_func (); below.
30238     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30239     <limits.h> exists even on freestanding compilers.  */
30240
30241 #ifdef __STDC__
30242 # include <limits.h>
30243 #else
30244 # include <assert.h>
30245 #endif
30246
30247 #undef $ac_func
30248
30249 /* Override any GCC internal prototype to avoid an error.
30250    Use char because int might match the return type of a GCC
30251    builtin and then its argument prototype would still apply.  */
30252 #ifdef __cplusplus
30253 extern "C"
30254 #endif
30255 char $ac_func ();
30256 /* The GNU C library defines this for functions which it implements
30257     to always fail with ENOSYS.  Some functions are actually named
30258     something starting with __ and the normal name is an alias.  */
30259 #if defined __stub_$ac_func || defined __stub___$ac_func
30260 choke me
30261 #endif
30262
30263 int
30264 main ()
30265 {
30266 return $ac_func ();
30267   ;
30268   return 0;
30269 }
30270 _ACEOF
30271 rm -f conftest.$ac_objext conftest$ac_exeext
30272 if { (ac_try="$ac_link"
30273 case "(($ac_try" in
30274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30275   *) ac_try_echo=$ac_try;;
30276 esac
30277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30278   (eval "$ac_link") 2>conftest.er1
30279   ac_status=$?
30280   grep -v '^ *+' conftest.er1 >conftest.err
30281   rm -f conftest.er1
30282   cat conftest.err >&5
30283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30284   (exit $ac_status); } && {
30285          test -z "$ac_c_werror_flag" ||
30286          test ! -s conftest.err
30287        } && test -s conftest$ac_exeext &&
30288        $as_test_x conftest$ac_exeext; then
30289   eval "$as_ac_var=yes"
30290 else
30291   echo "$as_me: failed program was:" >&5
30292 sed 's/^/| /' conftest.$ac_ext >&5
30293
30294         eval "$as_ac_var=no"
30295 fi
30296
30297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30298       conftest$ac_exeext conftest.$ac_ext
30299 fi
30300 ac_res=`eval echo '${'$as_ac_var'}'`
30301                { echo "$as_me:$LINENO: result: $ac_res" >&5
30302 echo "${ECHO_T}$ac_res" >&6; }
30303 if test `eval echo '${'$as_ac_var'}'` = yes; then
30304   cat >>confdefs.h <<_ACEOF
30305 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30306 _ACEOF
30307
30308 fi
30309 done
30310
30311             fi
30312         fi
30313
30314         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
30315         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
30316
30317                 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -DG_DISABLE_CAST_CHECKS"
30318
30319         AFMINSTALL=afminstall
30320         TOOLKIT=GTK
30321         GUIDIST=GTK_DIST
30322
30323                 if test "$wxUSE_GPE" = "yes"; then
30324             { echo "$as_me:$LINENO: checking for gpewidget library" >&5
30325 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6; }
30326
30327   ac_find_libraries=
30328   for ac_dir in $SEARCH_LIB;
30329   do
30330     for ac_extension in a so sl dylib dll.a; do
30331       if test -f "$ac_dir/libgpewidget.$ac_extension"; then
30332         ac_find_libraries=$ac_dir
30333         break 2
30334       fi
30335     done
30336   done
30337
30338             if test "$ac_find_libraries" != "" ; then
30339
30340     if test "$ac_find_libraries" = "default location"; then
30341     ac_path_to_link=""
30342   else
30343     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
30344     result=$?
30345     if test $result = 0; then
30346       ac_path_to_link=""
30347     else
30348       ac_path_to_link=" -L$ac_find_libraries"
30349     fi
30350   fi
30351
30352                                                 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
30353                 WXGPE=1
30354                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
30355 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
30356             else
30357                 { echo "$as_me:$LINENO: result: not found" >&5
30358 echo "${ECHO_T}not found" >&6; }
30359             fi
30360
30361                                                                                                                     fi
30362     fi
30363
30364     if test "$wxUSE_MGL" = 1; then
30365        { echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
30366 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6; }
30367         if test "x$MGL_ROOT" = x ; then
30368             { echo "$as_me:$LINENO: result: not found" >&5
30369 echo "${ECHO_T}not found" >&6; }
30370             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
30371 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
30372    { (exit 1); exit 1; }; }
30373         else
30374             { echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
30375 echo "${ECHO_T}$MGL_ROOT" >&6; }
30376         fi
30377
30378         { echo "$as_me:$LINENO: checking for libmgl location" >&5
30379 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6; }
30380                                 case "${host}" in
30381             *-*-linux* )
30382                                           if test "x$wxUSE_SHARED" = xyes ; then
30383                   mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
30384               else
30385                   mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
30386               fi
30387               ;;
30388             *-pc-msdosdjgpp )
30389               mgl_os_candidates="dos32/dj2"
30390               ;;
30391             *)
30392               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
30393 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
30394    { (exit 1); exit 1; }; }
30395         esac
30396
30397         mgl_lib_type=""
30398         mgl_os=""
30399
30400         for mgl_os_i in $mgl_os_candidates ; do
30401             if test "x$mgl_os" = x ; then
30402                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
30403                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
30404                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
30405                         mgl_lib_type=debug
30406                         mgl_os=$mgl_os_i
30407                     fi
30408                 fi
30409                 if test "x$mgl_lib_type" = x ; then
30410                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
30411                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
30412                         mgl_lib_type=release
30413                         mgl_os=$mgl_os_i
30414                     fi
30415                 fi
30416             fi
30417         done
30418
30419         if test "x$mgl_os" = x ; then
30420             { echo "$as_me:$LINENO: result: not found" >&5
30421 echo "${ECHO_T}not found" >&6; }
30422             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
30423 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
30424    { (exit 1); exit 1; }; }
30425         fi
30426         { echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
30427 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6; }
30428
30429         wxUSE_UNIVERSAL="yes"
30430
30431         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
30432         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
30433
30434         AFMINSTALL=afminstall
30435         TOOLKIT=MGL
30436         GUIDIST=MGL_DIST
30437     fi
30438
30439     if test "$wxUSE_DFB" = 1; then
30440
30441
30442 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
30443         if test -n "$ac_tool_prefix"; then
30444   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30445 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
30446 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30448 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
30449   echo $ECHO_N "(cached) $ECHO_C" >&6
30450 else
30451   case $PKG_CONFIG in
30452   [\\/]* | ?:[\\/]*)
30453   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
30454   ;;
30455   *)
30456   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30457 for as_dir in $PATH
30458 do
30459   IFS=$as_save_IFS
30460   test -z "$as_dir" && as_dir=.
30461   for ac_exec_ext in '' $ac_executable_extensions; do
30462   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30463     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30464     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30465     break 2
30466   fi
30467 done
30468 done
30469 IFS=$as_save_IFS
30470
30471   ;;
30472 esac
30473 fi
30474 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
30475 if test -n "$PKG_CONFIG"; then
30476   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
30477 echo "${ECHO_T}$PKG_CONFIG" >&6; }
30478 else
30479   { echo "$as_me:$LINENO: result: no" >&5
30480 echo "${ECHO_T}no" >&6; }
30481 fi
30482
30483
30484 fi
30485 if test -z "$ac_cv_path_PKG_CONFIG"; then
30486   ac_pt_PKG_CONFIG=$PKG_CONFIG
30487   # Extract the first word of "pkg-config", so it can be a program name with args.
30488 set dummy pkg-config; ac_word=$2
30489 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30491 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
30492   echo $ECHO_N "(cached) $ECHO_C" >&6
30493 else
30494   case $ac_pt_PKG_CONFIG in
30495   [\\/]* | ?:[\\/]*)
30496   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
30497   ;;
30498   *)
30499   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30500 for as_dir in $PATH
30501 do
30502   IFS=$as_save_IFS
30503   test -z "$as_dir" && as_dir=.
30504   for ac_exec_ext in '' $ac_executable_extensions; do
30505   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30506     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30507     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30508     break 2
30509   fi
30510 done
30511 done
30512 IFS=$as_save_IFS
30513
30514   ;;
30515 esac
30516 fi
30517 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
30518 if test -n "$ac_pt_PKG_CONFIG"; then
30519   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
30520 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
30521 else
30522   { echo "$as_me:$LINENO: result: no" >&5
30523 echo "${ECHO_T}no" >&6; }
30524 fi
30525
30526   if test "x$ac_pt_PKG_CONFIG" = x; then
30527     PKG_CONFIG=""
30528   else
30529     case $cross_compiling:$ac_tool_warned in
30530 yes:)
30531 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
30532 whose name does not start with the host triplet.  If you think this
30533 configuration is useful to you, please write to autoconf@gnu.org." >&5
30534 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
30535 whose name does not start with the host triplet.  If you think this
30536 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
30537 ac_tool_warned=yes ;;
30538 esac
30539     PKG_CONFIG=$ac_pt_PKG_CONFIG
30540   fi
30541 else
30542   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
30543 fi
30544
30545 fi
30546 if test -n "$PKG_CONFIG"; then
30547         _pkg_min_version=0.9.0
30548         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
30549 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
30550         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
30551                 { echo "$as_me:$LINENO: result: yes" >&5
30552 echo "${ECHO_T}yes" >&6; }
30553         else
30554                 { echo "$as_me:$LINENO: result: no" >&5
30555 echo "${ECHO_T}no" >&6; }
30556                 PKG_CONFIG=""
30557         fi
30558
30559 fi
30560
30561
30562 pkg_failed=no
30563 { echo "$as_me:$LINENO: checking for DIRECTFB" >&5
30564 echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6; }
30565
30566 if test -n "$PKG_CONFIG"; then
30567     if test -n "$DIRECTFB_CFLAGS"; then
30568         pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
30569     else
30570         if test -n "$PKG_CONFIG" && \
30571     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
30572   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
30573   ac_status=$?
30574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30575   (exit $ac_status); }; then
30576   pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.23" 2>/dev/null`
30577 else
30578   pkg_failed=yes
30579 fi
30580     fi
30581 else
30582         pkg_failed=untried
30583 fi
30584 if test -n "$PKG_CONFIG"; then
30585     if test -n "$DIRECTFB_LIBS"; then
30586         pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
30587     else
30588         if test -n "$PKG_CONFIG" && \
30589     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
30590   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
30591   ac_status=$?
30592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30593   (exit $ac_status); }; then
30594   pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.23" 2>/dev/null`
30595 else
30596   pkg_failed=yes
30597 fi
30598     fi
30599 else
30600         pkg_failed=untried
30601 fi
30602
30603
30604
30605 if test $pkg_failed = yes; then
30606
30607 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30608         _pkg_short_errors_supported=yes
30609 else
30610         _pkg_short_errors_supported=no
30611 fi
30612         if test $_pkg_short_errors_supported = yes; then
30613                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.23"`
30614         else
30615                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.23"`
30616         fi
30617         # Put the nasty error message in config.log where it belongs
30618         echo "$DIRECTFB_PKG_ERRORS" >&5
30619
30620
30621                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
30622 echo "$as_me: error: DirectFB not found." >&2;}
30623    { (exit 1); exit 1; }; }
30624
30625
30626 elif test $pkg_failed = untried; then
30627
30628                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
30629 echo "$as_me: error: DirectFB not found." >&2;}
30630    { (exit 1); exit 1; }; }
30631
30632
30633 else
30634         DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
30635         DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
30636         { echo "$as_me:$LINENO: result: yes" >&5
30637 echo "${ECHO_T}yes" >&6; }
30638
30639                            wxUSE_UNIVERSAL="yes"
30640                            TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
30641                            GUI_TK_LIBRARY="$DIRECTFB_LIBS"
30642                            TOOLKIT=DFB
30643                            GUIDIST=DFB_DIST
30644
30645 fi
30646     fi
30647
30648     if test "$wxUSE_MICROWIN" = 1; then
30649         { echo "$as_me:$LINENO: checking for MicroWindows" >&5
30650 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6; }
30651         if test "x$MICROWINDOWS" = x ; then
30652             { echo "$as_me:$LINENO: result: not found" >&5
30653 echo "${ECHO_T}not found" >&6; }
30654             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
30655 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
30656    { (exit 1); exit 1; }; }
30657         else
30658             { echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
30659 echo "${ECHO_T}$MICROWINDOWS" >&6; }
30660         fi
30661
30662         if test -f $MICROWINDOWS/lib/libmwin.a; then
30663             { echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
30664 echo "${ECHO_T}MicroWindows' libraries found." >&6; }
30665         else
30666             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
30667 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
30668    { (exit 1); exit 1; }; }
30669         fi
30670
30671         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
30672         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
30673
30674         wxUSE_UNIVERSAL="yes"
30675
30676         AFMINSTALL=afminstall
30677         TOOLKIT=MICROWIN
30678         GUIDIST=MICROWIN_DIST
30679
30680         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
30681     fi
30682
30683         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
30684                                 { echo "$as_me:$LINENO: checking for X" >&5
30685 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
30686
30687
30688 # Check whether --with-x was given.
30689 if test "${with_x+set}" = set; then
30690   withval=$with_x;
30691 fi
30692
30693 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
30694 if test "x$with_x" = xno; then
30695   # The user explicitly disabled X.
30696   have_x=disabled
30697 else
30698   case $x_includes,$x_libraries in #(
30699     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
30700 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
30701    { (exit 1); exit 1; }; };; #(
30702     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
30703   echo $ECHO_N "(cached) $ECHO_C" >&6
30704 else
30705   # One or both of the vars are not set, and there is no cached value.
30706 ac_x_includes=no ac_x_libraries=no
30707 rm -f -r conftest.dir
30708 if mkdir conftest.dir; then
30709   cd conftest.dir
30710   cat >Imakefile <<'_ACEOF'
30711 incroot:
30712         @echo incroot='${INCROOT}'
30713 usrlibdir:
30714         @echo usrlibdir='${USRLIBDIR}'
30715 libdir:
30716         @echo libdir='${LIBDIR}'
30717 _ACEOF
30718   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
30719     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
30720     for ac_var in incroot usrlibdir libdir; do
30721       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
30722     done
30723     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
30724     for ac_extension in a so sl; do
30725       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
30726          test -f "$ac_im_libdir/libX11.$ac_extension"; then
30727         ac_im_usrlibdir=$ac_im_libdir; break
30728       fi
30729     done
30730     # Screen out bogus values from the imake configuration.  They are
30731     # bogus both because they are the default anyway, and because
30732     # using them would break gcc on systems where it needs fixed includes.
30733     case $ac_im_incroot in
30734         /usr/include) ac_x_includes= ;;
30735         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
30736     esac
30737     case $ac_im_usrlibdir in
30738         /usr/lib | /lib) ;;
30739         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
30740     esac
30741   fi
30742   cd ..
30743   rm -f -r conftest.dir
30744 fi
30745
30746 # Standard set of common directories for X headers.
30747 # Check X11 before X11Rn because it is often a symlink to the current release.
30748 ac_x_header_dirs='
30749 /usr/X11/include
30750 /usr/X11R6/include
30751 /usr/X11R5/include
30752 /usr/X11R4/include
30753
30754 /usr/include/X11
30755 /usr/include/X11R6
30756 /usr/include/X11R5
30757 /usr/include/X11R4
30758
30759 /usr/local/X11/include
30760 /usr/local/X11R6/include
30761 /usr/local/X11R5/include
30762 /usr/local/X11R4/include
30763
30764 /usr/local/include/X11
30765 /usr/local/include/X11R6
30766 /usr/local/include/X11R5
30767 /usr/local/include/X11R4
30768
30769 /usr/X386/include
30770 /usr/x386/include
30771 /usr/XFree86/include/X11
30772
30773 /usr/include
30774 /usr/local/include
30775 /usr/unsupported/include
30776 /usr/athena/include
30777 /usr/local/x11r5/include
30778 /usr/lpp/Xamples/include
30779
30780 /usr/openwin/include
30781 /usr/openwin/share/include'
30782
30783 if test "$ac_x_includes" = no; then
30784   # Guess where to find include files, by looking for Xlib.h.
30785   # First, try using that file with no special directory specified.
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 #include <X11/Xlib.h>
30793 _ACEOF
30794 if { (ac_try="$ac_cpp conftest.$ac_ext"
30795 case "(($ac_try" in
30796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30797   *) ac_try_echo=$ac_try;;
30798 esac
30799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30800   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30801   ac_status=$?
30802   grep -v '^ *+' conftest.er1 >conftest.err
30803   rm -f conftest.er1
30804   cat conftest.err >&5
30805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30806   (exit $ac_status); } >/dev/null && {
30807          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30808          test ! -s conftest.err
30809        }; then
30810   # We can compile using X headers with no special include directory.
30811 ac_x_includes=
30812 else
30813   echo "$as_me: failed program was:" >&5
30814 sed 's/^/| /' conftest.$ac_ext >&5
30815
30816   for ac_dir in $ac_x_header_dirs; do
30817   if test -r "$ac_dir/X11/Xlib.h"; then
30818     ac_x_includes=$ac_dir
30819     break
30820   fi
30821 done
30822 fi
30823
30824 rm -f conftest.err conftest.$ac_ext
30825 fi # $ac_x_includes = no
30826
30827 if test "$ac_x_libraries" = no; then
30828   # Check for the libraries.
30829   # See if we find them without any special options.
30830   # Don't add to $LIBS permanently.
30831   ac_save_LIBS=$LIBS
30832   LIBS="-lX11 $LIBS"
30833   cat >conftest.$ac_ext <<_ACEOF
30834 /* confdefs.h.  */
30835 _ACEOF
30836 cat confdefs.h >>conftest.$ac_ext
30837 cat >>conftest.$ac_ext <<_ACEOF
30838 /* end confdefs.h.  */
30839 #include <X11/Xlib.h>
30840 int
30841 main ()
30842 {
30843 XrmInitialize ()
30844   ;
30845   return 0;
30846 }
30847 _ACEOF
30848 rm -f conftest.$ac_objext conftest$ac_exeext
30849 if { (ac_try="$ac_link"
30850 case "(($ac_try" in
30851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30852   *) ac_try_echo=$ac_try;;
30853 esac
30854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30855   (eval "$ac_link") 2>conftest.er1
30856   ac_status=$?
30857   grep -v '^ *+' conftest.er1 >conftest.err
30858   rm -f conftest.er1
30859   cat conftest.err >&5
30860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30861   (exit $ac_status); } && {
30862          test -z "$ac_c_werror_flag" ||
30863          test ! -s conftest.err
30864        } && test -s conftest$ac_exeext &&
30865        $as_test_x conftest$ac_exeext; then
30866   LIBS=$ac_save_LIBS
30867 # We can link X programs with no special library path.
30868 ac_x_libraries=
30869 else
30870   echo "$as_me: failed program was:" >&5
30871 sed 's/^/| /' conftest.$ac_ext >&5
30872
30873         LIBS=$ac_save_LIBS
30874 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
30875 do
30876   # Don't even attempt the hair of trying to link an X program!
30877   for ac_extension in a so sl; do
30878     if test -r "$ac_dir/libX11.$ac_extension"; then
30879       ac_x_libraries=$ac_dir
30880       break 2
30881     fi
30882   done
30883 done
30884 fi
30885
30886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30887       conftest$ac_exeext conftest.$ac_ext
30888 fi # $ac_x_libraries = no
30889
30890 case $ac_x_includes,$ac_x_libraries in #(
30891   no,* | *,no | *\'*)
30892     # Didn't find X, or a directory has "'" in its name.
30893     ac_cv_have_x="have_x=no";; #(
30894   *)
30895     # Record where we found X for the cache.
30896     ac_cv_have_x="have_x=yes\
30897         ac_x_includes='$ac_x_includes'\
30898         ac_x_libraries='$ac_x_libraries'"
30899 esac
30900 fi
30901 ;; #(
30902     *) have_x=yes;;
30903   esac
30904   eval "$ac_cv_have_x"
30905 fi # $with_x != no
30906
30907 if test "$have_x" != yes; then
30908   { echo "$as_me:$LINENO: result: $have_x" >&5
30909 echo "${ECHO_T}$have_x" >&6; }
30910   no_x=yes
30911 else
30912   # If each of the values was on the command line, it overrides each guess.
30913   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
30914   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
30915   # Update the cache value to reflect the command line values.
30916   ac_cv_have_x="have_x=yes\
30917         ac_x_includes='$x_includes'\
30918         ac_x_libraries='$x_libraries'"
30919   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
30920 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
30921 fi
30922
30923 if test "$no_x" = yes; then
30924   # Not all programs may use this symbol, but it does not hurt to define it.
30925
30926 cat >>confdefs.h <<\_ACEOF
30927 #define X_DISPLAY_MISSING 1
30928 _ACEOF
30929
30930   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
30931 else
30932   if test -n "$x_includes"; then
30933     X_CFLAGS="$X_CFLAGS -I$x_includes"
30934   fi
30935
30936   # It would also be nice to do this for all -L options, not just this one.
30937   if test -n "$x_libraries"; then
30938     X_LIBS="$X_LIBS -L$x_libraries"
30939     # For Solaris; some versions of Sun CC require a space after -R and
30940     # others require no space.  Words are not sufficient . . . .
30941     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
30942 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
30943     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
30944     ac_xsave_c_werror_flag=$ac_c_werror_flag
30945     ac_c_werror_flag=yes
30946     cat >conftest.$ac_ext <<_ACEOF
30947 /* confdefs.h.  */
30948 _ACEOF
30949 cat confdefs.h >>conftest.$ac_ext
30950 cat >>conftest.$ac_ext <<_ACEOF
30951 /* end confdefs.h.  */
30952
30953 int
30954 main ()
30955 {
30956
30957   ;
30958   return 0;
30959 }
30960 _ACEOF
30961 rm -f conftest.$ac_objext conftest$ac_exeext
30962 if { (ac_try="$ac_link"
30963 case "(($ac_try" in
30964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30965   *) ac_try_echo=$ac_try;;
30966 esac
30967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30968   (eval "$ac_link") 2>conftest.er1
30969   ac_status=$?
30970   grep -v '^ *+' conftest.er1 >conftest.err
30971   rm -f conftest.er1
30972   cat conftest.err >&5
30973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30974   (exit $ac_status); } && {
30975          test -z "$ac_c_werror_flag" ||
30976          test ! -s conftest.err
30977        } && test -s conftest$ac_exeext &&
30978        $as_test_x conftest$ac_exeext; then
30979   { echo "$as_me:$LINENO: result: no" >&5
30980 echo "${ECHO_T}no" >&6; }
30981        X_LIBS="$X_LIBS -R$x_libraries"
30982 else
30983   echo "$as_me: failed program was:" >&5
30984 sed 's/^/| /' conftest.$ac_ext >&5
30985
30986         LIBS="$ac_xsave_LIBS -R $x_libraries"
30987        cat >conftest.$ac_ext <<_ACEOF
30988 /* confdefs.h.  */
30989 _ACEOF
30990 cat confdefs.h >>conftest.$ac_ext
30991 cat >>conftest.$ac_ext <<_ACEOF
30992 /* end confdefs.h.  */
30993
30994 int
30995 main ()
30996 {
30997
30998   ;
30999   return 0;
31000 }
31001 _ACEOF
31002 rm -f conftest.$ac_objext conftest$ac_exeext
31003 if { (ac_try="$ac_link"
31004 case "(($ac_try" in
31005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31006   *) ac_try_echo=$ac_try;;
31007 esac
31008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31009   (eval "$ac_link") 2>conftest.er1
31010   ac_status=$?
31011   grep -v '^ *+' conftest.er1 >conftest.err
31012   rm -f conftest.er1
31013   cat conftest.err >&5
31014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31015   (exit $ac_status); } && {
31016          test -z "$ac_c_werror_flag" ||
31017          test ! -s conftest.err
31018        } && test -s conftest$ac_exeext &&
31019        $as_test_x conftest$ac_exeext; then
31020   { echo "$as_me:$LINENO: result: yes" >&5
31021 echo "${ECHO_T}yes" >&6; }
31022           X_LIBS="$X_LIBS -R $x_libraries"
31023 else
31024   echo "$as_me: failed program was:" >&5
31025 sed 's/^/| /' conftest.$ac_ext >&5
31026
31027         { echo "$as_me:$LINENO: result: neither works" >&5
31028 echo "${ECHO_T}neither works" >&6; }
31029 fi
31030
31031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31032       conftest$ac_exeext conftest.$ac_ext
31033 fi
31034
31035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31036       conftest$ac_exeext conftest.$ac_ext
31037     ac_c_werror_flag=$ac_xsave_c_werror_flag
31038     LIBS=$ac_xsave_LIBS
31039   fi
31040
31041   # Check for system-dependent libraries X programs must link with.
31042   # Do this before checking for the system-independent R6 libraries
31043   # (-lICE), since we may need -lsocket or whatever for X linking.
31044
31045   if test "$ISC" = yes; then
31046     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
31047   else
31048     # Martyn Johnson says this is needed for Ultrix, if the X
31049     # libraries were built with DECnet support.  And Karl Berry says
31050     # the Alpha needs dnet_stub (dnet does not exist).
31051     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
31052     cat >conftest.$ac_ext <<_ACEOF
31053 /* confdefs.h.  */
31054 _ACEOF
31055 cat confdefs.h >>conftest.$ac_ext
31056 cat >>conftest.$ac_ext <<_ACEOF
31057 /* end confdefs.h.  */
31058
31059 /* Override any GCC internal prototype to avoid an error.
31060    Use char because int might match the return type of a GCC
31061    builtin and then its argument prototype would still apply.  */
31062 #ifdef __cplusplus
31063 extern "C"
31064 #endif
31065 char XOpenDisplay ();
31066 int
31067 main ()
31068 {
31069 return XOpenDisplay ();
31070   ;
31071   return 0;
31072 }
31073 _ACEOF
31074 rm -f conftest.$ac_objext conftest$ac_exeext
31075 if { (ac_try="$ac_link"
31076 case "(($ac_try" in
31077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31078   *) ac_try_echo=$ac_try;;
31079 esac
31080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31081   (eval "$ac_link") 2>conftest.er1
31082   ac_status=$?
31083   grep -v '^ *+' conftest.er1 >conftest.err
31084   rm -f conftest.er1
31085   cat conftest.err >&5
31086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31087   (exit $ac_status); } && {
31088          test -z "$ac_c_werror_flag" ||
31089          test ! -s conftest.err
31090        } && test -s conftest$ac_exeext &&
31091        $as_test_x conftest$ac_exeext; then
31092   :
31093 else
31094   echo "$as_me: failed program was:" >&5
31095 sed 's/^/| /' conftest.$ac_ext >&5
31096
31097         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
31098 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
31099 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
31100   echo $ECHO_N "(cached) $ECHO_C" >&6
31101 else
31102   ac_check_lib_save_LIBS=$LIBS
31103 LIBS="-ldnet  $LIBS"
31104 cat >conftest.$ac_ext <<_ACEOF
31105 /* confdefs.h.  */
31106 _ACEOF
31107 cat confdefs.h >>conftest.$ac_ext
31108 cat >>conftest.$ac_ext <<_ACEOF
31109 /* end confdefs.h.  */
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 dnet_ntoa ();
31118 int
31119 main ()
31120 {
31121 return dnet_ntoa ();
31122   ;
31123   return 0;
31124 }
31125 _ACEOF
31126 rm -f conftest.$ac_objext conftest$ac_exeext
31127 if { (ac_try="$ac_link"
31128 case "(($ac_try" in
31129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31130   *) ac_try_echo=$ac_try;;
31131 esac
31132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31133   (eval "$ac_link") 2>conftest.er1
31134   ac_status=$?
31135   grep -v '^ *+' conftest.er1 >conftest.err
31136   rm -f conftest.er1
31137   cat conftest.err >&5
31138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31139   (exit $ac_status); } && {
31140          test -z "$ac_c_werror_flag" ||
31141          test ! -s conftest.err
31142        } && test -s conftest$ac_exeext &&
31143        $as_test_x conftest$ac_exeext; then
31144   ac_cv_lib_dnet_dnet_ntoa=yes
31145 else
31146   echo "$as_me: failed program was:" >&5
31147 sed 's/^/| /' conftest.$ac_ext >&5
31148
31149         ac_cv_lib_dnet_dnet_ntoa=no
31150 fi
31151
31152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31153       conftest$ac_exeext conftest.$ac_ext
31154 LIBS=$ac_check_lib_save_LIBS
31155 fi
31156 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
31157 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
31158 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
31159   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
31160 fi
31161
31162     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
31163       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
31164 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
31165 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
31166   echo $ECHO_N "(cached) $ECHO_C" >&6
31167 else
31168   ac_check_lib_save_LIBS=$LIBS
31169 LIBS="-ldnet_stub  $LIBS"
31170 cat >conftest.$ac_ext <<_ACEOF
31171 /* confdefs.h.  */
31172 _ACEOF
31173 cat confdefs.h >>conftest.$ac_ext
31174 cat >>conftest.$ac_ext <<_ACEOF
31175 /* end confdefs.h.  */
31176
31177 /* Override any GCC internal prototype to avoid an error.
31178    Use char because int might match the return type of a GCC
31179    builtin and then its argument prototype would still apply.  */
31180 #ifdef __cplusplus
31181 extern "C"
31182 #endif
31183 char dnet_ntoa ();
31184 int
31185 main ()
31186 {
31187 return dnet_ntoa ();
31188   ;
31189   return 0;
31190 }
31191 _ACEOF
31192 rm -f conftest.$ac_objext conftest$ac_exeext
31193 if { (ac_try="$ac_link"
31194 case "(($ac_try" in
31195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31196   *) ac_try_echo=$ac_try;;
31197 esac
31198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31199   (eval "$ac_link") 2>conftest.er1
31200   ac_status=$?
31201   grep -v '^ *+' conftest.er1 >conftest.err
31202   rm -f conftest.er1
31203   cat conftest.err >&5
31204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31205   (exit $ac_status); } && {
31206          test -z "$ac_c_werror_flag" ||
31207          test ! -s conftest.err
31208        } && test -s conftest$ac_exeext &&
31209        $as_test_x conftest$ac_exeext; then
31210   ac_cv_lib_dnet_stub_dnet_ntoa=yes
31211 else
31212   echo "$as_me: failed program was:" >&5
31213 sed 's/^/| /' conftest.$ac_ext >&5
31214
31215         ac_cv_lib_dnet_stub_dnet_ntoa=no
31216 fi
31217
31218 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31219       conftest$ac_exeext conftest.$ac_ext
31220 LIBS=$ac_check_lib_save_LIBS
31221 fi
31222 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
31223 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
31224 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
31225   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
31226 fi
31227
31228     fi
31229 fi
31230
31231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31232       conftest$ac_exeext conftest.$ac_ext
31233     LIBS="$ac_xsave_LIBS"
31234
31235     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
31236     # to get the SysV transport functions.
31237     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
31238     # needs -lnsl.
31239     # The nsl library prevents programs from opening the X display
31240     # on Irix 5.2, according to T.E. Dickey.
31241     # The functions gethostbyname, getservbyname, and inet_addr are
31242     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
31243     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
31244 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
31245 if test "${ac_cv_func_gethostbyname+set}" = set; then
31246   echo $ECHO_N "(cached) $ECHO_C" >&6
31247 else
31248   cat >conftest.$ac_ext <<_ACEOF
31249 /* confdefs.h.  */
31250 _ACEOF
31251 cat confdefs.h >>conftest.$ac_ext
31252 cat >>conftest.$ac_ext <<_ACEOF
31253 /* end confdefs.h.  */
31254 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
31255    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31256 #define gethostbyname innocuous_gethostbyname
31257
31258 /* System header to define __stub macros and hopefully few prototypes,
31259     which can conflict with char gethostbyname (); below.
31260     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31261     <limits.h> exists even on freestanding compilers.  */
31262
31263 #ifdef __STDC__
31264 # include <limits.h>
31265 #else
31266 # include <assert.h>
31267 #endif
31268
31269 #undef gethostbyname
31270
31271 /* Override any GCC internal prototype to avoid an error.
31272    Use char because int might match the return type of a GCC
31273    builtin and then its argument prototype would still apply.  */
31274 #ifdef __cplusplus
31275 extern "C"
31276 #endif
31277 char gethostbyname ();
31278 /* The GNU C library defines this for functions which it implements
31279     to always fail with ENOSYS.  Some functions are actually named
31280     something starting with __ and the normal name is an alias.  */
31281 #if defined __stub_gethostbyname || defined __stub___gethostbyname
31282 choke me
31283 #endif
31284
31285 int
31286 main ()
31287 {
31288 return gethostbyname ();
31289   ;
31290   return 0;
31291 }
31292 _ACEOF
31293 rm -f conftest.$ac_objext conftest$ac_exeext
31294 if { (ac_try="$ac_link"
31295 case "(($ac_try" in
31296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31297   *) ac_try_echo=$ac_try;;
31298 esac
31299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31300   (eval "$ac_link") 2>conftest.er1
31301   ac_status=$?
31302   grep -v '^ *+' conftest.er1 >conftest.err
31303   rm -f conftest.er1
31304   cat conftest.err >&5
31305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31306   (exit $ac_status); } && {
31307          test -z "$ac_c_werror_flag" ||
31308          test ! -s conftest.err
31309        } && test -s conftest$ac_exeext &&
31310        $as_test_x conftest$ac_exeext; then
31311   ac_cv_func_gethostbyname=yes
31312 else
31313   echo "$as_me: failed program was:" >&5
31314 sed 's/^/| /' conftest.$ac_ext >&5
31315
31316         ac_cv_func_gethostbyname=no
31317 fi
31318
31319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31320       conftest$ac_exeext conftest.$ac_ext
31321 fi
31322 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
31323 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
31324
31325     if test $ac_cv_func_gethostbyname = no; then
31326       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
31327 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
31328 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
31329   echo $ECHO_N "(cached) $ECHO_C" >&6
31330 else
31331   ac_check_lib_save_LIBS=$LIBS
31332 LIBS="-lnsl  $LIBS"
31333 cat >conftest.$ac_ext <<_ACEOF
31334 /* confdefs.h.  */
31335 _ACEOF
31336 cat confdefs.h >>conftest.$ac_ext
31337 cat >>conftest.$ac_ext <<_ACEOF
31338 /* end confdefs.h.  */
31339
31340 /* Override any GCC internal prototype to avoid an error.
31341    Use char because int might match the return type of a GCC
31342    builtin and then its argument prototype would still apply.  */
31343 #ifdef __cplusplus
31344 extern "C"
31345 #endif
31346 char gethostbyname ();
31347 int
31348 main ()
31349 {
31350 return gethostbyname ();
31351   ;
31352   return 0;
31353 }
31354 _ACEOF
31355 rm -f conftest.$ac_objext conftest$ac_exeext
31356 if { (ac_try="$ac_link"
31357 case "(($ac_try" in
31358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31359   *) ac_try_echo=$ac_try;;
31360 esac
31361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31362   (eval "$ac_link") 2>conftest.er1
31363   ac_status=$?
31364   grep -v '^ *+' conftest.er1 >conftest.err
31365   rm -f conftest.er1
31366   cat conftest.err >&5
31367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31368   (exit $ac_status); } && {
31369          test -z "$ac_c_werror_flag" ||
31370          test ! -s conftest.err
31371        } && test -s conftest$ac_exeext &&
31372        $as_test_x conftest$ac_exeext; then
31373   ac_cv_lib_nsl_gethostbyname=yes
31374 else
31375   echo "$as_me: failed program was:" >&5
31376 sed 's/^/| /' conftest.$ac_ext >&5
31377
31378         ac_cv_lib_nsl_gethostbyname=no
31379 fi
31380
31381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31382       conftest$ac_exeext conftest.$ac_ext
31383 LIBS=$ac_check_lib_save_LIBS
31384 fi
31385 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
31386 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
31387 if test $ac_cv_lib_nsl_gethostbyname = yes; then
31388   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
31389 fi
31390
31391       if test $ac_cv_lib_nsl_gethostbyname = no; then
31392         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
31393 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
31394 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
31395   echo $ECHO_N "(cached) $ECHO_C" >&6
31396 else
31397   ac_check_lib_save_LIBS=$LIBS
31398 LIBS="-lbsd  $LIBS"
31399 cat >conftest.$ac_ext <<_ACEOF
31400 /* confdefs.h.  */
31401 _ACEOF
31402 cat confdefs.h >>conftest.$ac_ext
31403 cat >>conftest.$ac_ext <<_ACEOF
31404 /* end confdefs.h.  */
31405
31406 /* Override any GCC internal prototype to avoid an error.
31407    Use char because int might match the return type of a GCC
31408    builtin and then its argument prototype would still apply.  */
31409 #ifdef __cplusplus
31410 extern "C"
31411 #endif
31412 char gethostbyname ();
31413 int
31414 main ()
31415 {
31416 return gethostbyname ();
31417   ;
31418   return 0;
31419 }
31420 _ACEOF
31421 rm -f conftest.$ac_objext conftest$ac_exeext
31422 if { (ac_try="$ac_link"
31423 case "(($ac_try" in
31424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31425   *) ac_try_echo=$ac_try;;
31426 esac
31427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31428   (eval "$ac_link") 2>conftest.er1
31429   ac_status=$?
31430   grep -v '^ *+' conftest.er1 >conftest.err
31431   rm -f conftest.er1
31432   cat conftest.err >&5
31433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31434   (exit $ac_status); } && {
31435          test -z "$ac_c_werror_flag" ||
31436          test ! -s conftest.err
31437        } && test -s conftest$ac_exeext &&
31438        $as_test_x conftest$ac_exeext; then
31439   ac_cv_lib_bsd_gethostbyname=yes
31440 else
31441   echo "$as_me: failed program was:" >&5
31442 sed 's/^/| /' conftest.$ac_ext >&5
31443
31444         ac_cv_lib_bsd_gethostbyname=no
31445 fi
31446
31447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31448       conftest$ac_exeext conftest.$ac_ext
31449 LIBS=$ac_check_lib_save_LIBS
31450 fi
31451 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
31452 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
31453 if test $ac_cv_lib_bsd_gethostbyname = yes; then
31454   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
31455 fi
31456
31457       fi
31458     fi
31459
31460     # lieder@skyler.mavd.honeywell.com says without -lsocket,
31461     # socket/setsockopt and other routines are undefined under SCO ODT
31462     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
31463     # on later versions), says Simon Leinen: it contains gethostby*
31464     # variants that don't use the name server (or something).  -lsocket
31465     # must be given before -lnsl if both are needed.  We assume that
31466     # if connect needs -lnsl, so does gethostbyname.
31467     { echo "$as_me:$LINENO: checking for connect" >&5
31468 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
31469 if test "${ac_cv_func_connect+set}" = set; then
31470   echo $ECHO_N "(cached) $ECHO_C" >&6
31471 else
31472   cat >conftest.$ac_ext <<_ACEOF
31473 /* confdefs.h.  */
31474 _ACEOF
31475 cat confdefs.h >>conftest.$ac_ext
31476 cat >>conftest.$ac_ext <<_ACEOF
31477 /* end confdefs.h.  */
31478 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
31479    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31480 #define connect innocuous_connect
31481
31482 /* System header to define __stub macros and hopefully few prototypes,
31483     which can conflict with char connect (); below.
31484     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31485     <limits.h> exists even on freestanding compilers.  */
31486
31487 #ifdef __STDC__
31488 # include <limits.h>
31489 #else
31490 # include <assert.h>
31491 #endif
31492
31493 #undef connect
31494
31495 /* Override any GCC internal prototype to avoid an error.
31496    Use char because int might match the return type of a GCC
31497    builtin and then its argument prototype would still apply.  */
31498 #ifdef __cplusplus
31499 extern "C"
31500 #endif
31501 char connect ();
31502 /* The GNU C library defines this for functions which it implements
31503     to always fail with ENOSYS.  Some functions are actually named
31504     something starting with __ and the normal name is an alias.  */
31505 #if defined __stub_connect || defined __stub___connect
31506 choke me
31507 #endif
31508
31509 int
31510 main ()
31511 {
31512 return connect ();
31513   ;
31514   return 0;
31515 }
31516 _ACEOF
31517 rm -f conftest.$ac_objext conftest$ac_exeext
31518 if { (ac_try="$ac_link"
31519 case "(($ac_try" in
31520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31521   *) ac_try_echo=$ac_try;;
31522 esac
31523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31524   (eval "$ac_link") 2>conftest.er1
31525   ac_status=$?
31526   grep -v '^ *+' conftest.er1 >conftest.err
31527   rm -f conftest.er1
31528   cat conftest.err >&5
31529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31530   (exit $ac_status); } && {
31531          test -z "$ac_c_werror_flag" ||
31532          test ! -s conftest.err
31533        } && test -s conftest$ac_exeext &&
31534        $as_test_x conftest$ac_exeext; then
31535   ac_cv_func_connect=yes
31536 else
31537   echo "$as_me: failed program was:" >&5
31538 sed 's/^/| /' conftest.$ac_ext >&5
31539
31540         ac_cv_func_connect=no
31541 fi
31542
31543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31544       conftest$ac_exeext conftest.$ac_ext
31545 fi
31546 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
31547 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
31548
31549     if test $ac_cv_func_connect = no; then
31550       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
31551 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
31552 if test "${ac_cv_lib_socket_connect+set}" = set; then
31553   echo $ECHO_N "(cached) $ECHO_C" >&6
31554 else
31555   ac_check_lib_save_LIBS=$LIBS
31556 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
31557 cat >conftest.$ac_ext <<_ACEOF
31558 /* confdefs.h.  */
31559 _ACEOF
31560 cat confdefs.h >>conftest.$ac_ext
31561 cat >>conftest.$ac_ext <<_ACEOF
31562 /* end confdefs.h.  */
31563
31564 /* Override any GCC internal prototype to avoid an error.
31565    Use char because int might match the return type of a GCC
31566    builtin and then its argument prototype would still apply.  */
31567 #ifdef __cplusplus
31568 extern "C"
31569 #endif
31570 char connect ();
31571 int
31572 main ()
31573 {
31574 return connect ();
31575   ;
31576   return 0;
31577 }
31578 _ACEOF
31579 rm -f conftest.$ac_objext conftest$ac_exeext
31580 if { (ac_try="$ac_link"
31581 case "(($ac_try" in
31582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31583   *) ac_try_echo=$ac_try;;
31584 esac
31585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31586   (eval "$ac_link") 2>conftest.er1
31587   ac_status=$?
31588   grep -v '^ *+' conftest.er1 >conftest.err
31589   rm -f conftest.er1
31590   cat conftest.err >&5
31591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31592   (exit $ac_status); } && {
31593          test -z "$ac_c_werror_flag" ||
31594          test ! -s conftest.err
31595        } && test -s conftest$ac_exeext &&
31596        $as_test_x conftest$ac_exeext; then
31597   ac_cv_lib_socket_connect=yes
31598 else
31599   echo "$as_me: failed program was:" >&5
31600 sed 's/^/| /' conftest.$ac_ext >&5
31601
31602         ac_cv_lib_socket_connect=no
31603 fi
31604
31605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31606       conftest$ac_exeext conftest.$ac_ext
31607 LIBS=$ac_check_lib_save_LIBS
31608 fi
31609 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
31610 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
31611 if test $ac_cv_lib_socket_connect = yes; then
31612   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
31613 fi
31614
31615     fi
31616
31617     # Guillermo Gomez says -lposix is necessary on A/UX.
31618     { echo "$as_me:$LINENO: checking for remove" >&5
31619 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
31620 if test "${ac_cv_func_remove+set}" = set; then
31621   echo $ECHO_N "(cached) $ECHO_C" >&6
31622 else
31623   cat >conftest.$ac_ext <<_ACEOF
31624 /* confdefs.h.  */
31625 _ACEOF
31626 cat confdefs.h >>conftest.$ac_ext
31627 cat >>conftest.$ac_ext <<_ACEOF
31628 /* end confdefs.h.  */
31629 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
31630    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31631 #define remove innocuous_remove
31632
31633 /* System header to define __stub macros and hopefully few prototypes,
31634     which can conflict with char remove (); below.
31635     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31636     <limits.h> exists even on freestanding compilers.  */
31637
31638 #ifdef __STDC__
31639 # include <limits.h>
31640 #else
31641 # include <assert.h>
31642 #endif
31643
31644 #undef remove
31645
31646 /* Override any GCC internal prototype to avoid an error.
31647    Use char because int might match the return type of a GCC
31648    builtin and then its argument prototype would still apply.  */
31649 #ifdef __cplusplus
31650 extern "C"
31651 #endif
31652 char remove ();
31653 /* The GNU C library defines this for functions which it implements
31654     to always fail with ENOSYS.  Some functions are actually named
31655     something starting with __ and the normal name is an alias.  */
31656 #if defined __stub_remove || defined __stub___remove
31657 choke me
31658 #endif
31659
31660 int
31661 main ()
31662 {
31663 return remove ();
31664   ;
31665   return 0;
31666 }
31667 _ACEOF
31668 rm -f conftest.$ac_objext conftest$ac_exeext
31669 if { (ac_try="$ac_link"
31670 case "(($ac_try" in
31671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31672   *) ac_try_echo=$ac_try;;
31673 esac
31674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31675   (eval "$ac_link") 2>conftest.er1
31676   ac_status=$?
31677   grep -v '^ *+' conftest.er1 >conftest.err
31678   rm -f conftest.er1
31679   cat conftest.err >&5
31680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31681   (exit $ac_status); } && {
31682          test -z "$ac_c_werror_flag" ||
31683          test ! -s conftest.err
31684        } && test -s conftest$ac_exeext &&
31685        $as_test_x conftest$ac_exeext; then
31686   ac_cv_func_remove=yes
31687 else
31688   echo "$as_me: failed program was:" >&5
31689 sed 's/^/| /' conftest.$ac_ext >&5
31690
31691         ac_cv_func_remove=no
31692 fi
31693
31694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31695       conftest$ac_exeext conftest.$ac_ext
31696 fi
31697 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
31698 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
31699
31700     if test $ac_cv_func_remove = no; then
31701       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
31702 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
31703 if test "${ac_cv_lib_posix_remove+set}" = set; then
31704   echo $ECHO_N "(cached) $ECHO_C" >&6
31705 else
31706   ac_check_lib_save_LIBS=$LIBS
31707 LIBS="-lposix  $LIBS"
31708 cat >conftest.$ac_ext <<_ACEOF
31709 /* confdefs.h.  */
31710 _ACEOF
31711 cat confdefs.h >>conftest.$ac_ext
31712 cat >>conftest.$ac_ext <<_ACEOF
31713 /* end confdefs.h.  */
31714
31715 /* Override any GCC internal prototype to avoid an error.
31716    Use char because int might match the return type of a GCC
31717    builtin and then its argument prototype would still apply.  */
31718 #ifdef __cplusplus
31719 extern "C"
31720 #endif
31721 char remove ();
31722 int
31723 main ()
31724 {
31725 return remove ();
31726   ;
31727   return 0;
31728 }
31729 _ACEOF
31730 rm -f conftest.$ac_objext conftest$ac_exeext
31731 if { (ac_try="$ac_link"
31732 case "(($ac_try" in
31733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31734   *) ac_try_echo=$ac_try;;
31735 esac
31736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31737   (eval "$ac_link") 2>conftest.er1
31738   ac_status=$?
31739   grep -v '^ *+' conftest.er1 >conftest.err
31740   rm -f conftest.er1
31741   cat conftest.err >&5
31742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31743   (exit $ac_status); } && {
31744          test -z "$ac_c_werror_flag" ||
31745          test ! -s conftest.err
31746        } && test -s conftest$ac_exeext &&
31747        $as_test_x conftest$ac_exeext; then
31748   ac_cv_lib_posix_remove=yes
31749 else
31750   echo "$as_me: failed program was:" >&5
31751 sed 's/^/| /' conftest.$ac_ext >&5
31752
31753         ac_cv_lib_posix_remove=no
31754 fi
31755
31756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31757       conftest$ac_exeext conftest.$ac_ext
31758 LIBS=$ac_check_lib_save_LIBS
31759 fi
31760 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
31761 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
31762 if test $ac_cv_lib_posix_remove = yes; then
31763   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
31764 fi
31765
31766     fi
31767
31768     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
31769     { echo "$as_me:$LINENO: checking for shmat" >&5
31770 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
31771 if test "${ac_cv_func_shmat+set}" = set; then
31772   echo $ECHO_N "(cached) $ECHO_C" >&6
31773 else
31774   cat >conftest.$ac_ext <<_ACEOF
31775 /* confdefs.h.  */
31776 _ACEOF
31777 cat confdefs.h >>conftest.$ac_ext
31778 cat >>conftest.$ac_ext <<_ACEOF
31779 /* end confdefs.h.  */
31780 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
31781    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31782 #define shmat innocuous_shmat
31783
31784 /* System header to define __stub macros and hopefully few prototypes,
31785     which can conflict with char shmat (); below.
31786     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31787     <limits.h> exists even on freestanding compilers.  */
31788
31789 #ifdef __STDC__
31790 # include <limits.h>
31791 #else
31792 # include <assert.h>
31793 #endif
31794
31795 #undef shmat
31796
31797 /* Override any GCC internal prototype to avoid an error.
31798    Use char because int might match the return type of a GCC
31799    builtin and then its argument prototype would still apply.  */
31800 #ifdef __cplusplus
31801 extern "C"
31802 #endif
31803 char shmat ();
31804 /* The GNU C library defines this for functions which it implements
31805     to always fail with ENOSYS.  Some functions are actually named
31806     something starting with __ and the normal name is an alias.  */
31807 #if defined __stub_shmat || defined __stub___shmat
31808 choke me
31809 #endif
31810
31811 int
31812 main ()
31813 {
31814 return shmat ();
31815   ;
31816   return 0;
31817 }
31818 _ACEOF
31819 rm -f conftest.$ac_objext conftest$ac_exeext
31820 if { (ac_try="$ac_link"
31821 case "(($ac_try" in
31822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31823   *) ac_try_echo=$ac_try;;
31824 esac
31825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31826   (eval "$ac_link") 2>conftest.er1
31827   ac_status=$?
31828   grep -v '^ *+' conftest.er1 >conftest.err
31829   rm -f conftest.er1
31830   cat conftest.err >&5
31831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31832   (exit $ac_status); } && {
31833          test -z "$ac_c_werror_flag" ||
31834          test ! -s conftest.err
31835        } && test -s conftest$ac_exeext &&
31836        $as_test_x conftest$ac_exeext; then
31837   ac_cv_func_shmat=yes
31838 else
31839   echo "$as_me: failed program was:" >&5
31840 sed 's/^/| /' conftest.$ac_ext >&5
31841
31842         ac_cv_func_shmat=no
31843 fi
31844
31845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31846       conftest$ac_exeext conftest.$ac_ext
31847 fi
31848 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
31849 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
31850
31851     if test $ac_cv_func_shmat = no; then
31852       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
31853 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
31854 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
31855   echo $ECHO_N "(cached) $ECHO_C" >&6
31856 else
31857   ac_check_lib_save_LIBS=$LIBS
31858 LIBS="-lipc  $LIBS"
31859 cat >conftest.$ac_ext <<_ACEOF
31860 /* confdefs.h.  */
31861 _ACEOF
31862 cat confdefs.h >>conftest.$ac_ext
31863 cat >>conftest.$ac_ext <<_ACEOF
31864 /* end confdefs.h.  */
31865
31866 /* Override any GCC internal prototype to avoid an error.
31867    Use char because int might match the return type of a GCC
31868    builtin and then its argument prototype would still apply.  */
31869 #ifdef __cplusplus
31870 extern "C"
31871 #endif
31872 char shmat ();
31873 int
31874 main ()
31875 {
31876 return shmat ();
31877   ;
31878   return 0;
31879 }
31880 _ACEOF
31881 rm -f conftest.$ac_objext conftest$ac_exeext
31882 if { (ac_try="$ac_link"
31883 case "(($ac_try" in
31884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31885   *) ac_try_echo=$ac_try;;
31886 esac
31887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31888   (eval "$ac_link") 2>conftest.er1
31889   ac_status=$?
31890   grep -v '^ *+' conftest.er1 >conftest.err
31891   rm -f conftest.er1
31892   cat conftest.err >&5
31893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31894   (exit $ac_status); } && {
31895          test -z "$ac_c_werror_flag" ||
31896          test ! -s conftest.err
31897        } && test -s conftest$ac_exeext &&
31898        $as_test_x conftest$ac_exeext; then
31899   ac_cv_lib_ipc_shmat=yes
31900 else
31901   echo "$as_me: failed program was:" >&5
31902 sed 's/^/| /' conftest.$ac_ext >&5
31903
31904         ac_cv_lib_ipc_shmat=no
31905 fi
31906
31907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31908       conftest$ac_exeext conftest.$ac_ext
31909 LIBS=$ac_check_lib_save_LIBS
31910 fi
31911 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
31912 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
31913 if test $ac_cv_lib_ipc_shmat = yes; then
31914   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
31915 fi
31916
31917     fi
31918   fi
31919
31920   # Check for libraries that X11R6 Xt/Xaw programs need.
31921   ac_save_LDFLAGS=$LDFLAGS
31922   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
31923   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
31924   # check for ICE first), but we must link in the order -lSM -lICE or
31925   # we get undefined symbols.  So assume we have SM if we have ICE.
31926   # These have to be linked with before -lX11, unlike the other
31927   # libraries we check for below, so use a different variable.
31928   # John Interrante, Karl Berry
31929   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
31930 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
31931 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
31932   echo $ECHO_N "(cached) $ECHO_C" >&6
31933 else
31934   ac_check_lib_save_LIBS=$LIBS
31935 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
31936 cat >conftest.$ac_ext <<_ACEOF
31937 /* confdefs.h.  */
31938 _ACEOF
31939 cat confdefs.h >>conftest.$ac_ext
31940 cat >>conftest.$ac_ext <<_ACEOF
31941 /* end confdefs.h.  */
31942
31943 /* Override any GCC internal prototype to avoid an error.
31944    Use char because int might match the return type of a GCC
31945    builtin and then its argument prototype would still apply.  */
31946 #ifdef __cplusplus
31947 extern "C"
31948 #endif
31949 char IceConnectionNumber ();
31950 int
31951 main ()
31952 {
31953 return IceConnectionNumber ();
31954   ;
31955   return 0;
31956 }
31957 _ACEOF
31958 rm -f conftest.$ac_objext conftest$ac_exeext
31959 if { (ac_try="$ac_link"
31960 case "(($ac_try" in
31961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31962   *) ac_try_echo=$ac_try;;
31963 esac
31964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31965   (eval "$ac_link") 2>conftest.er1
31966   ac_status=$?
31967   grep -v '^ *+' conftest.er1 >conftest.err
31968   rm -f conftest.er1
31969   cat conftest.err >&5
31970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31971   (exit $ac_status); } && {
31972          test -z "$ac_c_werror_flag" ||
31973          test ! -s conftest.err
31974        } && test -s conftest$ac_exeext &&
31975        $as_test_x conftest$ac_exeext; then
31976   ac_cv_lib_ICE_IceConnectionNumber=yes
31977 else
31978   echo "$as_me: failed program was:" >&5
31979 sed 's/^/| /' conftest.$ac_ext >&5
31980
31981         ac_cv_lib_ICE_IceConnectionNumber=no
31982 fi
31983
31984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31985       conftest$ac_exeext conftest.$ac_ext
31986 LIBS=$ac_check_lib_save_LIBS
31987 fi
31988 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
31989 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
31990 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
31991   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
31992 fi
31993
31994   LDFLAGS=$ac_save_LDFLAGS
31995
31996 fi
31997
31998
31999         if test "$no_x" = "yes"; then
32000           { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
32001 echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
32002    { (exit 1); exit 1; }; }
32003         fi
32004
32005                                 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
32006         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
32007         AFMINSTALL=afminstall
32008         COMPILED_X_PROGRAM=0
32009
32010     fi
32011
32012     if test "$wxUSE_X11" = 1; then
32013         if test "$wxUSE_NANOX" = "yes"; then
32014             { echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
32015 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6; }
32016             if test "x$MICROWIN" = x ; then
32017                 { echo "$as_me:$LINENO: result: not found" >&5
32018 echo "${ECHO_T}not found" >&6; }
32019                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
32020 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
32021    { (exit 1); exit 1; }; }
32022             else
32023                 { echo "$as_me:$LINENO: result: $MICROWIN" >&5
32024 echo "${ECHO_T}$MICROWIN" >&6; }
32025                 cat >>confdefs.h <<\_ACEOF
32026 #define wxUSE_NANOX 1
32027 _ACEOF
32028
32029             fi
32030         fi
32031
32032         if test "$wxUSE_UNICODE" = "yes"; then
32033
32034
32035 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
32036         if test -n "$ac_tool_prefix"; then
32037   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
32038 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
32039 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32041 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
32042   echo $ECHO_N "(cached) $ECHO_C" >&6
32043 else
32044   case $PKG_CONFIG in
32045   [\\/]* | ?:[\\/]*)
32046   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
32047   ;;
32048   *)
32049   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32050 for as_dir in $PATH
32051 do
32052   IFS=$as_save_IFS
32053   test -z "$as_dir" && as_dir=.
32054   for ac_exec_ext in '' $ac_executable_extensions; do
32055   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32056     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
32057     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32058     break 2
32059   fi
32060 done
32061 done
32062 IFS=$as_save_IFS
32063
32064   ;;
32065 esac
32066 fi
32067 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
32068 if test -n "$PKG_CONFIG"; then
32069   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
32070 echo "${ECHO_T}$PKG_CONFIG" >&6; }
32071 else
32072   { echo "$as_me:$LINENO: result: no" >&5
32073 echo "${ECHO_T}no" >&6; }
32074 fi
32075
32076
32077 fi
32078 if test -z "$ac_cv_path_PKG_CONFIG"; then
32079   ac_pt_PKG_CONFIG=$PKG_CONFIG
32080   # Extract the first word of "pkg-config", so it can be a program name with args.
32081 set dummy pkg-config; ac_word=$2
32082 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32084 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
32085   echo $ECHO_N "(cached) $ECHO_C" >&6
32086 else
32087   case $ac_pt_PKG_CONFIG in
32088   [\\/]* | ?:[\\/]*)
32089   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
32090   ;;
32091   *)
32092   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32093 for as_dir in $PATH
32094 do
32095   IFS=$as_save_IFS
32096   test -z "$as_dir" && as_dir=.
32097   for ac_exec_ext in '' $ac_executable_extensions; do
32098   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32099     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
32100     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32101     break 2
32102   fi
32103 done
32104 done
32105 IFS=$as_save_IFS
32106
32107   ;;
32108 esac
32109 fi
32110 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
32111 if test -n "$ac_pt_PKG_CONFIG"; then
32112   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
32113 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
32114 else
32115   { echo "$as_me:$LINENO: result: no" >&5
32116 echo "${ECHO_T}no" >&6; }
32117 fi
32118
32119   if test "x$ac_pt_PKG_CONFIG" = x; then
32120     PKG_CONFIG=""
32121   else
32122     case $cross_compiling:$ac_tool_warned in
32123 yes:)
32124 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
32125 whose name does not start with the host triplet.  If you think this
32126 configuration is useful to you, please write to autoconf@gnu.org." >&5
32127 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
32128 whose name does not start with the host triplet.  If you think this
32129 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
32130 ac_tool_warned=yes ;;
32131 esac
32132     PKG_CONFIG=$ac_pt_PKG_CONFIG
32133   fi
32134 else
32135   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
32136 fi
32137
32138 fi
32139 if test -n "$PKG_CONFIG"; then
32140         _pkg_min_version=0.9.0
32141         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
32142 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
32143         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
32144                 { echo "$as_me:$LINENO: result: yes" >&5
32145 echo "${ECHO_T}yes" >&6; }
32146         else
32147                 { echo "$as_me:$LINENO: result: no" >&5
32148 echo "${ECHO_T}no" >&6; }
32149                 PKG_CONFIG=""
32150         fi
32151
32152 fi
32153
32154
32155 pkg_failed=no
32156 { echo "$as_me:$LINENO: checking for PANGOX" >&5
32157 echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6; }
32158
32159 if test -n "$PKG_CONFIG"; then
32160     if test -n "$PANGOX_CFLAGS"; then
32161         pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
32162     else
32163         if test -n "$PKG_CONFIG" && \
32164     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
32165   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
32166   ac_status=$?
32167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32168   (exit $ac_status); }; then
32169   pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
32170 else
32171   pkg_failed=yes
32172 fi
32173     fi
32174 else
32175         pkg_failed=untried
32176 fi
32177 if test -n "$PKG_CONFIG"; then
32178     if test -n "$PANGOX_LIBS"; then
32179         pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
32180     else
32181         if test -n "$PKG_CONFIG" && \
32182     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
32183   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
32184   ac_status=$?
32185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32186   (exit $ac_status); }; then
32187   pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
32188 else
32189   pkg_failed=yes
32190 fi
32191     fi
32192 else
32193         pkg_failed=untried
32194 fi
32195
32196
32197
32198 if test $pkg_failed = yes; then
32199
32200 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32201         _pkg_short_errors_supported=yes
32202 else
32203         _pkg_short_errors_supported=no
32204 fi
32205         if test $_pkg_short_errors_supported = yes; then
32206                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
32207         else
32208                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
32209         fi
32210         # Put the nasty error message in config.log where it belongs
32211         echo "$PANGOX_PKG_ERRORS" >&5
32212
32213
32214                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
32215 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
32216    { (exit 1); exit 1; }; }
32217
32218
32219 elif test $pkg_failed = untried; then
32220
32221                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
32222 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
32223    { (exit 1); exit 1; }; }
32224
32225
32226 else
32227         PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
32228         PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
32229         { echo "$as_me:$LINENO: result: yes" >&5
32230 echo "${ECHO_T}yes" >&6; }
32231
32232                     CFLAGS="$PANGOX_CFLAGS $CFLAGS"
32233                     CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
32234                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
32235
32236 fi
32237
32238 pkg_failed=no
32239 { echo "$as_me:$LINENO: checking for PANGOFT2" >&5
32240 echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6; }
32241
32242 if test -n "$PKG_CONFIG"; then
32243     if test -n "$PANGOFT2_CFLAGS"; then
32244         pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
32245     else
32246         if test -n "$PKG_CONFIG" && \
32247     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
32248   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
32249   ac_status=$?
32250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32251   (exit $ac_status); }; then
32252   pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
32253 else
32254   pkg_failed=yes
32255 fi
32256     fi
32257 else
32258         pkg_failed=untried
32259 fi
32260 if test -n "$PKG_CONFIG"; then
32261     if test -n "$PANGOFT2_LIBS"; then
32262         pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
32263     else
32264         if test -n "$PKG_CONFIG" && \
32265     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
32266   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
32267   ac_status=$?
32268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32269   (exit $ac_status); }; then
32270   pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
32271 else
32272   pkg_failed=yes
32273 fi
32274     fi
32275 else
32276         pkg_failed=untried
32277 fi
32278
32279
32280
32281 if test $pkg_failed = yes; then
32282
32283 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32284         _pkg_short_errors_supported=yes
32285 else
32286         _pkg_short_errors_supported=no
32287 fi
32288         if test $_pkg_short_errors_supported = yes; then
32289                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
32290         else
32291                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
32292         fi
32293         # Put the nasty error message in config.log where it belongs
32294         echo "$PANGOFT2_PKG_ERRORS" >&5
32295
32296
32297                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
32298 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
32299                     wxUSE_PRINTING_ARCHITECTURE="no"
32300
32301
32302 elif test $pkg_failed = untried; then
32303
32304                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
32305 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
32306                     wxUSE_PRINTING_ARCHITECTURE="no"
32307
32308
32309 else
32310         PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
32311         PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
32312         { echo "$as_me:$LINENO: result: yes" >&5
32313 echo "${ECHO_T}yes" >&6; }
32314
32315                     CFLAGS="$PANGOFT2_CFLAGS $CFLAGS"
32316                     CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
32317                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
32318
32319 fi
32320
32321 pkg_failed=no
32322 { echo "$as_me:$LINENO: checking for PANGOXFT" >&5
32323 echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6; }
32324
32325 if test -n "$PKG_CONFIG"; then
32326     if test -n "$PANGOXFT_CFLAGS"; then
32327         pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
32328     else
32329         if test -n "$PKG_CONFIG" && \
32330     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
32331   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
32332   ac_status=$?
32333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32334   (exit $ac_status); }; then
32335   pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
32336 else
32337   pkg_failed=yes
32338 fi
32339     fi
32340 else
32341         pkg_failed=untried
32342 fi
32343 if test -n "$PKG_CONFIG"; then
32344     if test -n "$PANGOXFT_LIBS"; then
32345         pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
32346     else
32347         if test -n "$PKG_CONFIG" && \
32348     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
32349   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
32350   ac_status=$?
32351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32352   (exit $ac_status); }; then
32353   pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
32354 else
32355   pkg_failed=yes
32356 fi
32357     fi
32358 else
32359         pkg_failed=untried
32360 fi
32361
32362
32363
32364 if test $pkg_failed = yes; then
32365
32366 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32367         _pkg_short_errors_supported=yes
32368 else
32369         _pkg_short_errors_supported=no
32370 fi
32371         if test $_pkg_short_errors_supported = yes; then
32372                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
32373         else
32374                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
32375         fi
32376         # Put the nasty error message in config.log where it belongs
32377         echo "$PANGOXFT_PKG_ERRORS" >&5
32378
32379
32380                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
32381 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
32382
32383
32384 elif test $pkg_failed = untried; then
32385
32386                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
32387 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
32388
32389
32390 else
32391         PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
32392         PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
32393         { echo "$as_me:$LINENO: result: yes" >&5
32394 echo "${ECHO_T}yes" >&6; }
32395
32396                     cat >>confdefs.h <<\_ACEOF
32397 #define HAVE_PANGO_XFT 1
32398 _ACEOF
32399
32400                     CFLAGS="$PANGOXFT_CFLAGS $CFLAGS"
32401                     CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
32402                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
32403
32404 fi
32405             save_LIBS="$LIBS"
32406             LIBS="$LIBS $PANGOX_LIBS"
32407
32408 for ac_func in pango_font_family_is_monospace
32409 do
32410 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32411 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32412 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32413 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32414   echo $ECHO_N "(cached) $ECHO_C" >&6
32415 else
32416   cat >conftest.$ac_ext <<_ACEOF
32417 /* confdefs.h.  */
32418 _ACEOF
32419 cat confdefs.h >>conftest.$ac_ext
32420 cat >>conftest.$ac_ext <<_ACEOF
32421 /* end confdefs.h.  */
32422 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32423    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32424 #define $ac_func innocuous_$ac_func
32425
32426 /* System header to define __stub macros and hopefully few prototypes,
32427     which can conflict with char $ac_func (); below.
32428     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32429     <limits.h> exists even on freestanding compilers.  */
32430
32431 #ifdef __STDC__
32432 # include <limits.h>
32433 #else
32434 # include <assert.h>
32435 #endif
32436
32437 #undef $ac_func
32438
32439 /* Override any GCC internal prototype to avoid an error.
32440    Use char because int might match the return type of a GCC
32441    builtin and then its argument prototype would still apply.  */
32442 #ifdef __cplusplus
32443 extern "C"
32444 #endif
32445 char $ac_func ();
32446 /* The GNU C library defines this for functions which it implements
32447     to always fail with ENOSYS.  Some functions are actually named
32448     something starting with __ and the normal name is an alias.  */
32449 #if defined __stub_$ac_func || defined __stub___$ac_func
32450 choke me
32451 #endif
32452
32453 int
32454 main ()
32455 {
32456 return $ac_func ();
32457   ;
32458   return 0;
32459 }
32460 _ACEOF
32461 rm -f conftest.$ac_objext conftest$ac_exeext
32462 if { (ac_try="$ac_link"
32463 case "(($ac_try" in
32464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32465   *) ac_try_echo=$ac_try;;
32466 esac
32467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32468   (eval "$ac_link") 2>conftest.er1
32469   ac_status=$?
32470   grep -v '^ *+' conftest.er1 >conftest.err
32471   rm -f conftest.er1
32472   cat conftest.err >&5
32473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32474   (exit $ac_status); } && {
32475          test -z "$ac_c_werror_flag" ||
32476          test ! -s conftest.err
32477        } && test -s conftest$ac_exeext &&
32478        $as_test_x conftest$ac_exeext; then
32479   eval "$as_ac_var=yes"
32480 else
32481   echo "$as_me: failed program was:" >&5
32482 sed 's/^/| /' conftest.$ac_ext >&5
32483
32484         eval "$as_ac_var=no"
32485 fi
32486
32487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32488       conftest$ac_exeext conftest.$ac_ext
32489 fi
32490 ac_res=`eval echo '${'$as_ac_var'}'`
32491                { echo "$as_me:$LINENO: result: $ac_res" >&5
32492 echo "${ECHO_T}$ac_res" >&6; }
32493 if test `eval echo '${'$as_ac_var'}'` = yes; then
32494   cat >>confdefs.h <<_ACEOF
32495 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32496 _ACEOF
32497
32498 fi
32499 done
32500
32501             LIBS="$save_LIBS"
32502         fi
32503
32504         wxUSE_UNIVERSAL="yes"
32505
32506         if test "$wxUSE_NANOX" = "yes"; then
32507             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
32508             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"
32509             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
32510         else
32511             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
32512         fi
32513
32514         TOOLKIT=X11
32515         GUIDIST=X11_DIST
32516     fi
32517
32518     if test "$wxUSE_MOTIF" = 1; then
32519         { echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
32520 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6; }
32521
32522 ac_find_includes=
32523 for ac_dir in $SEARCH_INCLUDE /usr/include;
32524   do
32525     if test -f "$ac_dir/Xm/Xm.h"; then
32526       ac_find_includes=$ac_dir
32527       break
32528     fi
32529   done
32530
32531         if test "$ac_find_includes" != "" ; then
32532             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
32533 echo "${ECHO_T}found in $ac_find_includes" >&6; }
32534
32535     if test "x$ac_find_includes" = "x/usr/include"; then
32536     ac_path_to_include=""
32537   else
32538     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
32539     result=$?
32540     if test $result = 0; then
32541       ac_path_to_include=""
32542     else
32543       ac_path_to_include=" -I$ac_find_includes"
32544     fi
32545   fi
32546
32547             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
32548         else
32549             save_CFLAGS=$CFLAGS
32550             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32551
32552             cat >conftest.$ac_ext <<_ACEOF
32553 /* confdefs.h.  */
32554 _ACEOF
32555 cat confdefs.h >>conftest.$ac_ext
32556 cat >>conftest.$ac_ext <<_ACEOF
32557 /* end confdefs.h.  */
32558
32559                     #include <Xm/Xm.h>
32560
32561 int
32562 main ()
32563 {
32564
32565                     int version;
32566                     version = xmUseVersion;
32567
32568   ;
32569   return 0;
32570 }
32571 _ACEOF
32572 rm -f conftest.$ac_objext
32573 if { (ac_try="$ac_compile"
32574 case "(($ac_try" in
32575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32576   *) ac_try_echo=$ac_try;;
32577 esac
32578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32579   (eval "$ac_compile") 2>conftest.er1
32580   ac_status=$?
32581   grep -v '^ *+' conftest.er1 >conftest.err
32582   rm -f conftest.er1
32583   cat conftest.err >&5
32584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32585   (exit $ac_status); } && {
32586          test -z "$ac_c_werror_flag" ||
32587          test ! -s conftest.err
32588        } && test -s conftest.$ac_objext; then
32589
32590                     { echo "$as_me:$LINENO: result: found in default search path" >&5
32591 echo "${ECHO_T}found in default search path" >&6; }
32592                     COMPILED_X_PROGRAM=1
32593
32594 else
32595   echo "$as_me: failed program was:" >&5
32596 sed 's/^/| /' conftest.$ac_ext >&5
32597
32598
32599                     { echo "$as_me:$LINENO: result: no" >&5
32600 echo "${ECHO_T}no" >&6; }
32601                     { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
32602 echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
32603    { (exit 1); exit 1; }; }
32604
32605
32606 fi
32607
32608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32609
32610             CFLAGS=$save_CFLAGS
32611         fi
32612
32613
32614         { echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
32615 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6; }
32616
32617   ac_find_libraries=
32618   for ac_dir in $SEARCH_LIB;
32619   do
32620     for ac_extension in a so sl dylib dll.a; do
32621       if test -f "$ac_dir/libXm.$ac_extension"; then
32622         ac_find_libraries=$ac_dir
32623         break 2
32624       fi
32625     done
32626   done
32627
32628
32629         if test "x$ac_find_libraries" != "x" ; then
32630             { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
32631 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
32632
32633
32634     if test "$ac_find_libraries" = "default location"; then
32635     ac_path_to_link=""
32636   else
32637     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
32638     result=$?
32639     if test $result = 0; then
32640       ac_path_to_link=""
32641     else
32642       ac_path_to_link=" -L$ac_find_libraries"
32643     fi
32644   fi
32645
32646             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
32647         else
32648                                                 save_CFLAGS=$CFLAGS
32649             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32650             save_LIBS="$LIBS"
32651             LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
32652
32653             cat >conftest.$ac_ext <<_ACEOF
32654 /* confdefs.h.  */
32655 _ACEOF
32656 cat confdefs.h >>conftest.$ac_ext
32657 cat >>conftest.$ac_ext <<_ACEOF
32658 /* end confdefs.h.  */
32659
32660                     #include <Xm/Xm.h>
32661
32662 int
32663 main ()
32664 {
32665
32666                     int version;
32667                     version = xmUseVersion;
32668
32669   ;
32670   return 0;
32671 }
32672 _ACEOF
32673 rm -f conftest.$ac_objext conftest$ac_exeext
32674 if { (ac_try="$ac_link"
32675 case "(($ac_try" in
32676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32677   *) ac_try_echo=$ac_try;;
32678 esac
32679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32680   (eval "$ac_link") 2>conftest.er1
32681   ac_status=$?
32682   grep -v '^ *+' conftest.er1 >conftest.err
32683   rm -f conftest.er1
32684   cat conftest.err >&5
32685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32686   (exit $ac_status); } && {
32687          test -z "$ac_c_werror_flag" ||
32688          test ! -s conftest.err
32689        } && test -s conftest$ac_exeext &&
32690        $as_test_x conftest$ac_exeext; then
32691
32692                     { echo "$as_me:$LINENO: result: found in default search path" >&5
32693 echo "${ECHO_T}found in default search path" >&6; }
32694                     COMPILED_X_PROGRAM=1
32695
32696 else
32697   echo "$as_me: failed program was:" >&5
32698 sed 's/^/| /' conftest.$ac_ext >&5
32699
32700
32701                     { echo "$as_me:$LINENO: result: no" >&5
32702 echo "${ECHO_T}no" >&6; }
32703                     { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
32704 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
32705    { (exit 1); exit 1; }; }
32706
32707
32708 fi
32709
32710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32711       conftest$ac_exeext conftest.$ac_ext
32712
32713             CFLAGS=$save_CFLAGS
32714             LIBS="$save_LIBS"
32715         fi
32716
32717         { echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
32718 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6; }
32719         libp_link=""
32720         libsm_ice_link=""
32721         libs_found=0
32722         for libp in "" " -lXp"; do
32723             if test "$libs_found" = 0; then
32724                 for libsm_ice in "" " -lSM -lICE"; do
32725                     if test "$libs_found" = 0; then
32726                         save_LIBS="$LIBS"
32727                         LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
32728                         save_CFLAGS=$CFLAGS
32729                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32730
32731                         cat >conftest.$ac_ext <<_ACEOF
32732 /* confdefs.h.  */
32733 _ACEOF
32734 cat confdefs.h >>conftest.$ac_ext
32735 cat >>conftest.$ac_ext <<_ACEOF
32736 /* end confdefs.h.  */
32737
32738                                 #include <Xm/Xm.h>
32739                                 #include <Xm/List.h>
32740
32741 int
32742 main ()
32743 {
32744
32745                                 XmString string = NULL;
32746                                 Widget w = NULL;
32747                                 int position = 0;
32748                                 XmListAddItem(w, string, position);
32749
32750   ;
32751   return 0;
32752 }
32753 _ACEOF
32754 rm -f conftest.$ac_objext conftest$ac_exeext
32755 if { (ac_try="$ac_link"
32756 case "(($ac_try" in
32757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32758   *) ac_try_echo=$ac_try;;
32759 esac
32760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32761   (eval "$ac_link") 2>conftest.er1
32762   ac_status=$?
32763   grep -v '^ *+' conftest.er1 >conftest.err
32764   rm -f conftest.er1
32765   cat conftest.err >&5
32766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32767   (exit $ac_status); } && {
32768          test -z "$ac_c_werror_flag" ||
32769          test ! -s conftest.err
32770        } && test -s conftest$ac_exeext &&
32771        $as_test_x conftest$ac_exeext; then
32772
32773                                 libp_link="$libp"
32774                                 libsm_ice_link="$libsm_ice"
32775                                 { echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
32776 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6; }
32777                                 libs_found=1
32778
32779 else
32780   echo "$as_me: failed program was:" >&5
32781 sed 's/^/| /' conftest.$ac_ext >&5
32782
32783
32784
32785 fi
32786
32787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32788       conftest$ac_exeext conftest.$ac_ext
32789
32790                         LIBS="$save_LIBS"
32791                         CFLAGS=$save_CFLAGS
32792                     fi
32793                 done
32794             fi
32795         done
32796
32797         if test "$libs_found" = 0; then
32798             { echo "$as_me:$LINENO: result: can't find the right libraries" >&5
32799 echo "${ECHO_T}can't find the right libraries" >&6; }
32800             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
32801 echo "$as_me: error: can't link a simple motif program" >&2;}
32802    { (exit 1); exit 1; }; }
32803         fi
32804
32805                         { echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
32806 echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6; }
32807 if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
32808   echo $ECHO_N "(cached) $ECHO_C" >&6
32809 else
32810   ac_check_lib_save_LIBS=$LIBS
32811 LIBS="-lSgm  $LIBS"
32812 cat >conftest.$ac_ext <<_ACEOF
32813 /* confdefs.h.  */
32814 _ACEOF
32815 cat confdefs.h >>conftest.$ac_ext
32816 cat >>conftest.$ac_ext <<_ACEOF
32817 /* end confdefs.h.  */
32818
32819 /* Override any GCC internal prototype to avoid an error.
32820    Use char because int might match the return type of a GCC
32821    builtin and then its argument prototype would still apply.  */
32822 #ifdef __cplusplus
32823 extern "C"
32824 #endif
32825 char SgCreateList ();
32826 int
32827 main ()
32828 {
32829 return SgCreateList ();
32830   ;
32831   return 0;
32832 }
32833 _ACEOF
32834 rm -f conftest.$ac_objext conftest$ac_exeext
32835 if { (ac_try="$ac_link"
32836 case "(($ac_try" in
32837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32838   *) ac_try_echo=$ac_try;;
32839 esac
32840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32841   (eval "$ac_link") 2>conftest.er1
32842   ac_status=$?
32843   grep -v '^ *+' conftest.er1 >conftest.err
32844   rm -f conftest.er1
32845   cat conftest.err >&5
32846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32847   (exit $ac_status); } && {
32848          test -z "$ac_c_werror_flag" ||
32849          test ! -s conftest.err
32850        } && test -s conftest$ac_exeext &&
32851        $as_test_x conftest$ac_exeext; then
32852   ac_cv_lib_Sgm_SgCreateList=yes
32853 else
32854   echo "$as_me: failed program was:" >&5
32855 sed 's/^/| /' conftest.$ac_ext >&5
32856
32857         ac_cv_lib_Sgm_SgCreateList=no
32858 fi
32859
32860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32861       conftest$ac_exeext conftest.$ac_ext
32862 LIBS=$ac_check_lib_save_LIBS
32863 fi
32864 { echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
32865 echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6; }
32866 if test $ac_cv_lib_Sgm_SgCreateList = yes; then
32867   libsgm_link=" -lSgm"
32868 fi
32869
32870
32871         save_CFLAGS=$CFLAGS
32872         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32873
32874         { echo "$as_me:$LINENO: checking for Motif 2" >&5
32875 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6; }
32876 if test "${wx_cv_lib_motif2+set}" = set; then
32877   echo $ECHO_N "(cached) $ECHO_C" >&6
32878 else
32879   cat >conftest.$ac_ext <<_ACEOF
32880 /* confdefs.h.  */
32881 _ACEOF
32882 cat confdefs.h >>conftest.$ac_ext
32883 cat >>conftest.$ac_ext <<_ACEOF
32884 /* end confdefs.h.  */
32885
32886                             #include <Xm/Xm.h>
32887
32888 int
32889 main ()
32890 {
32891
32892                             #if XmVersion < 2000
32893                             Not Motif 2
32894                             #endif
32895
32896   ;
32897   return 0;
32898 }
32899 _ACEOF
32900 rm -f conftest.$ac_objext
32901 if { (ac_try="$ac_compile"
32902 case "(($ac_try" in
32903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32904   *) ac_try_echo=$ac_try;;
32905 esac
32906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32907   (eval "$ac_compile") 2>conftest.er1
32908   ac_status=$?
32909   grep -v '^ *+' conftest.er1 >conftest.err
32910   rm -f conftest.er1
32911   cat conftest.err >&5
32912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32913   (exit $ac_status); } && {
32914          test -z "$ac_c_werror_flag" ||
32915          test ! -s conftest.err
32916        } && test -s conftest.$ac_objext; then
32917   wx_cv_lib_motif2="yes"
32918 else
32919   echo "$as_me: failed program was:" >&5
32920 sed 's/^/| /' conftest.$ac_ext >&5
32921
32922         wx_cv_lib_motif2="no"
32923 fi
32924
32925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32926 fi
32927 { echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
32928 echo "${ECHO_T}$wx_cv_lib_motif2" >&6; }
32929         if test "$wx_cv_lib_motif2" = "yes"; then
32930             cat >>confdefs.h <<\_ACEOF
32931 #define __WXMOTIF20__ 1
32932 _ACEOF
32933
32934         else
32935             cat >>confdefs.h <<\_ACEOF
32936 #define __WXMOTIF20__ 0
32937 _ACEOF
32938
32939         fi
32940
32941         { echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
32942 echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6; }
32943 if test "${wx_cv_lib_lesstif+set}" = set; then
32944   echo $ECHO_N "(cached) $ECHO_C" >&6
32945 else
32946   cat >conftest.$ac_ext <<_ACEOF
32947 /* confdefs.h.  */
32948 _ACEOF
32949 cat confdefs.h >>conftest.$ac_ext
32950 cat >>conftest.$ac_ext <<_ACEOF
32951 /* end confdefs.h.  */
32952
32953                             #include <Xm/Xm.h>
32954
32955 int
32956 main ()
32957 {
32958
32959                             #if !defined(LesstifVersion) || LesstifVersion <= 0
32960                             Not Lesstif
32961                             #endif
32962
32963   ;
32964   return 0;
32965 }
32966 _ACEOF
32967 rm -f conftest.$ac_objext
32968 if { (ac_try="$ac_compile"
32969 case "(($ac_try" in
32970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32971   *) ac_try_echo=$ac_try;;
32972 esac
32973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32974   (eval "$ac_compile") 2>conftest.er1
32975   ac_status=$?
32976   grep -v '^ *+' conftest.er1 >conftest.err
32977   rm -f conftest.er1
32978   cat conftest.err >&5
32979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32980   (exit $ac_status); } && {
32981          test -z "$ac_c_werror_flag" ||
32982          test ! -s conftest.err
32983        } && test -s conftest.$ac_objext; then
32984   wx_cv_lib_lesstif="yes"
32985 else
32986   echo "$as_me: failed program was:" >&5
32987 sed 's/^/| /' conftest.$ac_ext >&5
32988
32989         wx_cv_lib_lesstif="no"
32990 fi
32991
32992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32993
32994 fi
32995 { echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
32996 echo "${ECHO_T}$wx_cv_lib_lesstif" >&6; }
32997         if test "$wx_cv_lib_lesstif" = "yes"; then
32998             cat >>confdefs.h <<\_ACEOF
32999 #define __WXLESSTIF__ 1
33000 _ACEOF
33001
33002         else
33003             cat >>confdefs.h <<\_ACEOF
33004 #define __WXLESSTIF__ 0
33005 _ACEOF
33006
33007         fi
33008
33009         CFLAGS=$save_CFLAGS
33010
33011         GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
33012         TOOLKIT=MOTIF
33013         GUIDIST=MOTIF_DIST
33014     fi
33015
33016         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
33017                 if test "$wxUSE_LIBXPM" = "sys"; then
33018             { echo "$as_me:$LINENO: checking for Xpm library" >&5
33019 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6; }
33020
33021   ac_find_libraries=
33022   for ac_dir in $SEARCH_LIB;
33023   do
33024     for ac_extension in a so sl dylib dll.a; do
33025       if test -f "$ac_dir/libXpm.$ac_extension"; then
33026         ac_find_libraries=$ac_dir
33027         break 2
33028       fi
33029     done
33030   done
33031
33032             if test "$ac_find_libraries" != "" ; then
33033
33034     if test "$ac_find_libraries" = "default location"; then
33035     ac_path_to_link=""
33036   else
33037     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
33038     result=$?
33039     if test $result = 0; then
33040       ac_path_to_link=""
33041     else
33042       ac_path_to_link=" -L$ac_find_libraries"
33043     fi
33044   fi
33045
33046                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
33047                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
33048 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
33049
33050                 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
33051 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
33052 if test "${wx_cv_x11_xpm_h+set}" = set; then
33053   echo $ECHO_N "(cached) $ECHO_C" >&6
33054 else
33055
33056                         save_CFLAGS=$CFLAGS
33057                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33058
33059                         cat >conftest.$ac_ext <<_ACEOF
33060 /* confdefs.h.  */
33061 _ACEOF
33062 cat confdefs.h >>conftest.$ac_ext
33063 cat >>conftest.$ac_ext <<_ACEOF
33064 /* end confdefs.h.  */
33065
33066                                 #include <X11/xpm.h>
33067
33068 int
33069 main ()
33070 {
33071
33072                                 int version;
33073                                 version = XpmLibraryVersion();
33074
33075   ;
33076   return 0;
33077 }
33078 _ACEOF
33079 rm -f conftest.$ac_objext
33080 if { (ac_try="$ac_compile"
33081 case "(($ac_try" in
33082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33083   *) ac_try_echo=$ac_try;;
33084 esac
33085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33086   (eval "$ac_compile") 2>conftest.er1
33087   ac_status=$?
33088   grep -v '^ *+' conftest.er1 >conftest.err
33089   rm -f conftest.er1
33090   cat conftest.err >&5
33091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33092   (exit $ac_status); } && {
33093          test -z "$ac_c_werror_flag" ||
33094          test ! -s conftest.err
33095        } && test -s conftest.$ac_objext; then
33096   wx_cv_x11_xpm_h=yes
33097 else
33098   echo "$as_me: failed program was:" >&5
33099 sed 's/^/| /' conftest.$ac_ext >&5
33100
33101         wx_cv_x11_xpm_h=no
33102
33103 fi
33104
33105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33106
33107                         CFLAGS=$save_CFLAGS
33108
33109
33110 fi
33111 { echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
33112 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6; }
33113
33114                 if test $wx_cv_x11_xpm_h = "yes"; then
33115                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
33116                     cat >>confdefs.h <<\_ACEOF
33117 #define wxHAVE_LIB_XPM 1
33118 _ACEOF
33119
33120                 else
33121                     { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
33122 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
33123                 fi
33124             fi
33125
33126         fi
33127
33128                 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
33129 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
33130 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
33131   echo $ECHO_N "(cached) $ECHO_C" >&6
33132 else
33133   ac_check_lib_save_LIBS=$LIBS
33134 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
33135 cat >conftest.$ac_ext <<_ACEOF
33136 /* confdefs.h.  */
33137 _ACEOF
33138 cat confdefs.h >>conftest.$ac_ext
33139 cat >>conftest.$ac_ext <<_ACEOF
33140 /* end confdefs.h.  */
33141
33142 /* Override any GCC internal prototype to avoid an error.
33143    Use char because int might match the return type of a GCC
33144    builtin and then its argument prototype would still apply.  */
33145 #ifdef __cplusplus
33146 extern "C"
33147 #endif
33148 char XShapeQueryExtension ();
33149 int
33150 main ()
33151 {
33152 return XShapeQueryExtension ();
33153   ;
33154   return 0;
33155 }
33156 _ACEOF
33157 rm -f conftest.$ac_objext conftest$ac_exeext
33158 if { (ac_try="$ac_link"
33159 case "(($ac_try" in
33160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33161   *) ac_try_echo=$ac_try;;
33162 esac
33163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33164   (eval "$ac_link") 2>conftest.er1
33165   ac_status=$?
33166   grep -v '^ *+' conftest.er1 >conftest.err
33167   rm -f conftest.er1
33168   cat conftest.err >&5
33169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33170   (exit $ac_status); } && {
33171          test -z "$ac_c_werror_flag" ||
33172          test ! -s conftest.err
33173        } && test -s conftest$ac_exeext &&
33174        $as_test_x conftest$ac_exeext; then
33175   ac_cv_lib_Xext_XShapeQueryExtension=yes
33176 else
33177   echo "$as_me: failed program was:" >&5
33178 sed 's/^/| /' conftest.$ac_ext >&5
33179
33180         ac_cv_lib_Xext_XShapeQueryExtension=no
33181 fi
33182
33183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33184       conftest$ac_exeext conftest.$ac_ext
33185 LIBS=$ac_check_lib_save_LIBS
33186 fi
33187 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
33188 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
33189 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
33190
33191                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
33192                       wxHAVE_XEXT_LIB=1
33193
33194 fi
33195
33196
33197         if test "$wxHAVE_XEXT_LIB" = 1; then
33198             save_CFLAGS="$CFLAGS"
33199             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33200
33201             { echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
33202 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6; }
33203             cat >conftest.$ac_ext <<_ACEOF
33204 /* confdefs.h.  */
33205 _ACEOF
33206 cat confdefs.h >>conftest.$ac_ext
33207 cat >>conftest.$ac_ext <<_ACEOF
33208 /* end confdefs.h.  */
33209
33210                             #include <X11/Xlib.h>
33211                             #include <X11/extensions/shape.h>
33212
33213 int
33214 main ()
33215 {
33216
33217                             int dummy1, dummy2;
33218                             XShapeQueryExtension((Display*)NULL,
33219                                                  (int*)NULL, (int*)NULL);
33220
33221   ;
33222   return 0;
33223 }
33224 _ACEOF
33225 rm -f conftest.$ac_objext
33226 if { (ac_try="$ac_compile"
33227 case "(($ac_try" in
33228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33229   *) ac_try_echo=$ac_try;;
33230 esac
33231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33232   (eval "$ac_compile") 2>conftest.er1
33233   ac_status=$?
33234   grep -v '^ *+' conftest.er1 >conftest.err
33235   rm -f conftest.er1
33236   cat conftest.err >&5
33237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33238   (exit $ac_status); } && {
33239          test -z "$ac_c_werror_flag" ||
33240          test ! -s conftest.err
33241        } && test -s conftest.$ac_objext; then
33242
33243                             cat >>confdefs.h <<\_ACEOF
33244 #define HAVE_XSHAPE 1
33245 _ACEOF
33246
33247                             { echo "$as_me:$LINENO: result: found" >&5
33248 echo "${ECHO_T}found" >&6; }
33249
33250 else
33251   echo "$as_me: failed program was:" >&5
33252 sed 's/^/| /' conftest.$ac_ext >&5
33253
33254
33255                             { echo "$as_me:$LINENO: result: not found" >&5
33256 echo "${ECHO_T}not found" >&6; }
33257
33258 fi
33259
33260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33261             CFLAGS="$save_CFLAGS"
33262
33263         fi
33264     fi
33265
33266     if test "$wxUSE_OSX_CARBON" = 1; then
33267         { echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
33268 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6; }
33269         if test "$GCC" = yes; then
33270             { echo "$as_me:$LINENO: result: gcc" >&5
33271 echo "${ECHO_T}gcc" >&6; }
33272             CPPFLAGS_PASCAL="-fpascal-strings"
33273         elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
33274             { echo "$as_me:$LINENO: result: xlc" >&5
33275 echo "${ECHO_T}xlc" >&6; }
33276             CPPFLAGS_PASCAL="-qmacpstr"
33277         else
33278             { echo "$as_me:$LINENO: result: none" >&5
33279 echo "${ECHO_T}none" >&6; }
33280         fi
33281
33282         if test "x$wxUSE_UNIX" = "xyes"; then
33283             CPPFLAGS="$CPPFLAGS_PASCAL -I/Developer/Headers/FlatCarbon $CPPFLAGS"
33284         else
33285                         CPPFLAGS="$CPPFLAGS_PASCAL -DTARGET_CARBON $CPPFLAGS"
33286         fi
33287
33288         TOOLKIT=OSX_CARBON
33289                 GUIDIST=OSX_CARBON_DIST
33290                         WXBASEPORT="_carbon"
33291
33292                                         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMAC__ -D__WXOSX__"
33293     fi
33294
33295     if test "$wxUSE_OSX_COCOA" = 1; then
33296         TOOLKIT=OSX_COCOA
33297         GUIDIST=OSX_COCOA_DIST
33298
33299                 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMAC__ -D__WXOSX__"
33300     fi
33301
33302     if test "$wxUSE_OSX_IPHONE" = 1; then
33303         TOOLKIT=OSX_IPHONE
33304     fi
33305
33306     if test "$wxUSE_OLD_COCOA" = 1; then
33307         TOOLKIT=COCOA
33308         GUIDIST=COCOA_DIST
33309     fi
33310
33311     if test "$wxUSE_PM" = 1; then
33312         TOOLKIT=PM
33313         GUIDIST=PM_DIST
33314         { echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
33315 echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6; }
33316 if test "${wx_cv_spbcdata+set}" = set; then
33317   echo $ECHO_N "(cached) $ECHO_C" >&6
33318 else
33319
33320                 cat >conftest.$ac_ext <<_ACEOF
33321 /* confdefs.h.  */
33322 _ACEOF
33323 cat confdefs.h >>conftest.$ac_ext
33324 cat >>conftest.$ac_ext <<_ACEOF
33325 /* end confdefs.h.  */
33326
33327                         #define INCL_PM
33328                         #include <os2.h>
33329
33330 int
33331 main ()
33332 {
33333
33334                         SPBCDATA test;
33335
33336   ;
33337   return 0;
33338 }
33339 _ACEOF
33340 rm -f conftest.$ac_objext
33341 if { (ac_try="$ac_compile"
33342 case "(($ac_try" in
33343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33344   *) ac_try_echo=$ac_try;;
33345 esac
33346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33347   (eval "$ac_compile") 2>conftest.er1
33348   ac_status=$?
33349   grep -v '^ *+' conftest.er1 >conftest.err
33350   rm -f conftest.er1
33351   cat conftest.err >&5
33352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33353   (exit $ac_status); } && {
33354          test -z "$ac_c_werror_flag" ||
33355          test ! -s conftest.err
33356        } && test -s conftest.$ac_objext; then
33357   wx_cv_spbcdata=yes
33358 else
33359   echo "$as_me: failed program was:" >&5
33360 sed 's/^/| /' conftest.$ac_ext >&5
33361
33362         wx_cv_spbcdata=no
33363
33364 fi
33365
33366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33367
33368
33369 fi
33370 { echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
33371 echo "${ECHO_T}$wx_cv_spbcdata" >&6; }
33372
33373         if test $wx_cv_spbcdata = "yes"; then
33374             cat >>confdefs.h <<\_ACEOF
33375 #define HAVE_SPBCDATA 1
33376 _ACEOF
33377
33378         fi
33379     fi
33380
33381         if test "$TOOLKIT" = "PM" ; then
33382         TOOLKIT_DIR="os2"
33383     else
33384         TOOLKIT_DIR=`echo ${TOOLKIT} | tr '[A-Z]' '[a-z]'`
33385     fi
33386
33387     if test "$wxUSE_UNIVERSAL" = "yes"; then
33388         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
33389         WIDGET_SET=univ
33390     fi
33391
33392         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
33393     DISTDIR="wx\$(TOOLKIT)"
33394 else
33395     USE_GUI=0
33396
33397             TOOLKIT_DIR="base"
33398
33399         if test "$USE_WIN32" = 1 ; then
33400                         TOOLKIT="MSW"
33401     fi
33402
33403         GUIDIST="BASE_DIST"
33404     DISTDIR="wxBase"
33405 fi
33406
33407
33408
33409 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "auto" ; then
33410     if test "$USE_UNIX" = 1 -a "$wxUSE_DARWIN" != 1 ; then
33411         wxUSE_UNICODE_UTF8=yes
33412     elif test "$USE_OS2" = 1 ; then
33413                                 wxUSE_UNICODE_UTF8=yes
33414     else
33415         wxUSE_UNICODE_UTF8=no
33416     fi
33417 fi
33418
33419
33420 if test "$wxUSE_GUI" = "yes"; then
33421     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
33422
33423 for ac_header in X11/Xlib.h
33424 do
33425 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33426 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33429   echo $ECHO_N "(cached) $ECHO_C" >&6
33430 else
33431   cat >conftest.$ac_ext <<_ACEOF
33432 /* confdefs.h.  */
33433 _ACEOF
33434 cat confdefs.h >>conftest.$ac_ext
33435 cat >>conftest.$ac_ext <<_ACEOF
33436 /* end confdefs.h.  */
33437
33438
33439 #include <$ac_header>
33440 _ACEOF
33441 rm -f conftest.$ac_objext
33442 if { (ac_try="$ac_compile"
33443 case "(($ac_try" in
33444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33445   *) ac_try_echo=$ac_try;;
33446 esac
33447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33448   (eval "$ac_compile") 2>conftest.er1
33449   ac_status=$?
33450   grep -v '^ *+' conftest.er1 >conftest.err
33451   rm -f conftest.er1
33452   cat conftest.err >&5
33453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33454   (exit $ac_status); } && {
33455          test -z "$ac_c_werror_flag" ||
33456          test ! -s conftest.err
33457        } && test -s conftest.$ac_objext; then
33458   eval "$as_ac_Header=yes"
33459 else
33460   echo "$as_me: failed program was:" >&5
33461 sed 's/^/| /' conftest.$ac_ext >&5
33462
33463         eval "$as_ac_Header=no"
33464 fi
33465
33466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33467 fi
33468 ac_res=`eval echo '${'$as_ac_Header'}'`
33469                { echo "$as_me:$LINENO: result: $ac_res" >&5
33470 echo "${ECHO_T}$ac_res" >&6; }
33471 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33472   cat >>confdefs.h <<_ACEOF
33473 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33474 _ACEOF
33475
33476 fi
33477
33478 done
33479
33480
33481 for ac_header in X11/XKBlib.h
33482 do
33483 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33484 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33486 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33487   echo $ECHO_N "(cached) $ECHO_C" >&6
33488 else
33489   cat >conftest.$ac_ext <<_ACEOF
33490 /* confdefs.h.  */
33491 _ACEOF
33492 cat confdefs.h >>conftest.$ac_ext
33493 cat >>conftest.$ac_ext <<_ACEOF
33494 /* end confdefs.h.  */
33495
33496                           #if HAVE_X11_XLIB_H
33497                             #include <X11/Xlib.h>
33498                           #endif
33499
33500
33501 #include <$ac_header>
33502 _ACEOF
33503 rm -f conftest.$ac_objext
33504 if { (ac_try="$ac_compile"
33505 case "(($ac_try" in
33506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33507   *) ac_try_echo=$ac_try;;
33508 esac
33509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33510   (eval "$ac_compile") 2>conftest.er1
33511   ac_status=$?
33512   grep -v '^ *+' conftest.er1 >conftest.err
33513   rm -f conftest.er1
33514   cat conftest.err >&5
33515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33516   (exit $ac_status); } && {
33517          test -z "$ac_c_werror_flag" ||
33518          test ! -s conftest.err
33519        } && test -s conftest.$ac_objext; then
33520   eval "$as_ac_Header=yes"
33521 else
33522   echo "$as_me: failed program was:" >&5
33523 sed 's/^/| /' conftest.$ac_ext >&5
33524
33525         eval "$as_ac_Header=no"
33526 fi
33527
33528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33529 fi
33530 ac_res=`eval echo '${'$as_ac_Header'}'`
33531                { echo "$as_me:$LINENO: result: $ac_res" >&5
33532 echo "${ECHO_T}$ac_res" >&6; }
33533 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33534   cat >>confdefs.h <<_ACEOF
33535 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33536 _ACEOF
33537
33538 fi
33539
33540 done
33541
33542     fi
33543 fi
33544
33545
33546
33547 USE_XINERAMA=0
33548 if test "$wxUSE_DISPLAY" = "yes"; then
33549         if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_GTK1" = 1; then
33550         { echo "$as_me:$LINENO: checking for Xinerama" >&5
33551 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6; }
33552
33553   ac_find_libraries=
33554   for ac_dir in $SEARCH_LIB;
33555   do
33556     for ac_extension in a so sl dylib dll.a; do
33557       if test -f "$ac_dir/libXinerama.$ac_extension"; then
33558         ac_find_libraries=$ac_dir
33559         break 2
33560       fi
33561     done
33562   done
33563
33564         if test "$ac_find_libraries" != "" ; then
33565
33566     if test "$ac_find_libraries" = "default location"; then
33567     ac_path_to_link=""
33568   else
33569     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33570     result=$?
33571     if test $result = 0; then
33572       ac_path_to_link=""
33573     else
33574       ac_path_to_link=" -L$ac_find_libraries"
33575     fi
33576   fi
33577
33578             if test "$ac_path_to_link" != " -L/usr/lib" ; then
33579                 LDFLAGS="$LDFLAGS $ac_path_to_link"
33580             fi
33581             USE_XINERAMA=1
33582             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
33583             { echo "$as_me:$LINENO: result: yes" >&5
33584 echo "${ECHO_T}yes" >&6; }
33585         else
33586             { echo "$as_me:$LINENO: result: no" >&5
33587 echo "${ECHO_T}no" >&6; }
33588             { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
33589 echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
33590             wxUSE_DISPLAY="no"
33591         fi
33592     elif test "$wxUSE_MSW" = 1; then
33593                 { echo "$as_me:$LINENO: checking for ddraw.h" >&5
33594 echo $ECHO_N "checking for ddraw.h... $ECHO_C" >&6; }
33595 if test "${ac_cv_header_ddraw_h+set}" = set; then
33596   echo $ECHO_N "(cached) $ECHO_C" >&6
33597 else
33598   cat >conftest.$ac_ext <<_ACEOF
33599 /* confdefs.h.  */
33600 _ACEOF
33601 cat confdefs.h >>conftest.$ac_ext
33602 cat >>conftest.$ac_ext <<_ACEOF
33603 /* end confdefs.h.  */
33604 #include <windows.h>
33605
33606 #include <ddraw.h>
33607 _ACEOF
33608 rm -f conftest.$ac_objext
33609 if { (ac_try="$ac_compile"
33610 case "(($ac_try" in
33611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33612   *) ac_try_echo=$ac_try;;
33613 esac
33614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33615   (eval "$ac_compile") 2>conftest.er1
33616   ac_status=$?
33617   grep -v '^ *+' conftest.er1 >conftest.err
33618   rm -f conftest.er1
33619   cat conftest.err >&5
33620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33621   (exit $ac_status); } && {
33622          test -z "$ac_c_werror_flag" ||
33623          test ! -s conftest.err
33624        } && test -s conftest.$ac_objext; then
33625   ac_cv_header_ddraw_h=yes
33626 else
33627   echo "$as_me: failed program was:" >&5
33628 sed 's/^/| /' conftest.$ac_ext >&5
33629
33630         ac_cv_header_ddraw_h=no
33631 fi
33632
33633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33634 fi
33635 { echo "$as_me:$LINENO: result: $ac_cv_header_ddraw_h" >&5
33636 echo "${ECHO_T}$ac_cv_header_ddraw_h" >&6; }
33637
33638
33639     fi
33640 fi
33641
33642 if test "$wxUSE_DISPLAY" = "yes"; then
33643         if test "$USE_XINERAMA" = 1 -o "$wxUSE_GTK" = 1; then
33644         { echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
33645 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6; }
33646
33647   ac_find_libraries=
33648   for ac_dir in $SEARCH_LIB;
33649   do
33650     for ac_extension in a so sl dylib dll.a; do
33651       if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
33652         ac_find_libraries=$ac_dir
33653         break 2
33654       fi
33655     done
33656   done
33657
33658         if test "$ac_find_libraries" != "" ; then
33659             { echo "$as_me:$LINENO: result: yes" >&5
33660 echo "${ECHO_T}yes" >&6; }
33661
33662 for ac_header in X11/extensions/xf86vmode.h
33663 do
33664 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33665 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33668   echo $ECHO_N "(cached) $ECHO_C" >&6
33669 else
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                                   #if HAVE_X11_XLIB_H
33678                                     #include <X11/Xlib.h>
33679                                   #endif
33680
33681
33682 #include <$ac_header>
33683 _ACEOF
33684 rm -f conftest.$ac_objext
33685 if { (ac_try="$ac_compile"
33686 case "(($ac_try" in
33687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33688   *) ac_try_echo=$ac_try;;
33689 esac
33690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33691   (eval "$ac_compile") 2>conftest.er1
33692   ac_status=$?
33693   grep -v '^ *+' conftest.er1 >conftest.err
33694   rm -f conftest.er1
33695   cat conftest.err >&5
33696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33697   (exit $ac_status); } && {
33698          test -z "$ac_c_werror_flag" ||
33699          test ! -s conftest.err
33700        } && test -s conftest.$ac_objext; then
33701   eval "$as_ac_Header=yes"
33702 else
33703   echo "$as_me: failed program was:" >&5
33704 sed 's/^/| /' conftest.$ac_ext >&5
33705
33706         eval "$as_ac_Header=no"
33707 fi
33708
33709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33710 fi
33711 ac_res=`eval echo '${'$as_ac_Header'}'`
33712                { echo "$as_me:$LINENO: result: $ac_res" >&5
33713 echo "${ECHO_T}$ac_res" >&6; }
33714 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33715   cat >>confdefs.h <<_ACEOF
33716 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33717 _ACEOF
33718
33719                               GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
33720
33721 fi
33722
33723 done
33724
33725         else
33726             { echo "$as_me:$LINENO: result: no" >&5
33727 echo "${ECHO_T}no" >&6; }
33728         fi
33729     fi
33730 fi
33731
33732 if test "$wxUSE_DETECT_SM" = "yes"; then
33733     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_OLD_COCOA" != 1; then
33734         { echo "$as_me:$LINENO: checking for -lSM - X11 session management" >&5
33735 echo $ECHO_N "checking for -lSM - X11 session management... $ECHO_C" >&6; }
33736
33737   ac_find_libraries=
33738   for ac_dir in $SEARCH_LIB;
33739   do
33740     for ac_extension in a so sl dylib dll.a; do
33741       if test -f "$ac_dir/libSM.$ac_extension"; then
33742         ac_find_libraries=$ac_dir
33743         break 2
33744       fi
33745     done
33746   done
33747
33748         if test "$ac_find_libraries" != "" ; then
33749
33750     if test "$ac_find_libraries" = "default location"; then
33751     ac_path_to_link=""
33752   else
33753     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33754     result=$?
33755     if test $result = 0; then
33756       ac_path_to_link=""
33757     else
33758       ac_path_to_link=" -L$ac_find_libraries"
33759     fi
33760   fi
33761
33762             if test "$ac_path_to_link" != " -L/usr/lib" ; then
33763                 LDFLAGS="$LDFLAGS $ac_path_to_link"
33764             fi
33765             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lSM"
33766             { echo "$as_me:$LINENO: result: yes" >&5
33767 echo "${ECHO_T}yes" >&6; }
33768         else
33769             { echo "$as_me:$LINENO: result: no" >&5
33770 echo "${ECHO_T}no" >&6; }
33771             { echo "$as_me:$LINENO: WARNING: libSM not found; disabling session management detection" >&5
33772 echo "$as_me: WARNING: libSM not found; disabling session management detection" >&2;}
33773             wxUSE_DETECT_SM="no"
33774         fi
33775     else
33776         wxUSE_DETECT_SM="no"
33777     fi
33778 fi
33779
33780
33781
33782 USE_OPENGL=0
33783 if test "$wxUSE_OPENGL" = "yes" -o "$wxUSE_OPENGL" = "auto"; then
33784
33785
33786     if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1 -o "$wxUSE_OLD_COCOA" = 1; then
33787         OPENGL_LIBS="-framework OpenGL -framework AGL"
33788     elif test "$wxUSE_MSW" = 1; then
33789         OPENGL_LIBS="-lopengl32 -lglu32"
33790     elif test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_GTK2" = 1 -o "$wxUSE_GTK" = 1; then
33791
33792                         { echo "$as_me:$LINENO: checking for OpenGL headers" >&5
33793 echo $ECHO_N "checking for OpenGL headers... $ECHO_C" >&6; }
33794
33795 ac_find_includes=
33796 for ac_dir in $SEARCH_INCLUDE /opt/graphics/OpenGL/include /usr/include;
33797   do
33798     if test -f "$ac_dir/GL/gl.h"; then
33799       ac_find_includes=$ac_dir
33800       break
33801     fi
33802   done
33803
33804         if test "$ac_find_includes" != "" ; then
33805             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
33806 echo "${ECHO_T}found in $ac_find_includes" >&6; }
33807
33808     if test "x$ac_find_includes" = "x/usr/include"; then
33809     ac_path_to_include=""
33810   else
33811     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
33812     result=$?
33813     if test $result = 0; then
33814       ac_path_to_include=""
33815     else
33816       ac_path_to_include=" -I$ac_find_includes"
33817     fi
33818   fi
33819
33820             CPPFLAGS="$ac_path_to_include $CPPFLAGS"
33821         else
33822             { echo "$as_me:$LINENO: result: not found" >&5
33823 echo "${ECHO_T}not found" >&6; }
33824         fi
33825
33826         { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
33827 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
33828 if test "${ac_cv_header_GL_gl_h+set}" = set; then
33829   echo $ECHO_N "(cached) $ECHO_C" >&6
33830 else
33831   cat >conftest.$ac_ext <<_ACEOF
33832 /* confdefs.h.  */
33833 _ACEOF
33834 cat confdefs.h >>conftest.$ac_ext
33835 cat >>conftest.$ac_ext <<_ACEOF
33836 /* end confdefs.h.  */
33837
33838
33839 #include <GL/gl.h>
33840 _ACEOF
33841 rm -f conftest.$ac_objext
33842 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
33858   ac_cv_header_GL_gl_h=yes
33859 else
33860   echo "$as_me: failed program was:" >&5
33861 sed 's/^/| /' conftest.$ac_ext >&5
33862
33863         ac_cv_header_GL_gl_h=no
33864 fi
33865
33866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33867 fi
33868 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
33869 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
33870 if test $ac_cv_header_GL_gl_h = yes; then
33871
33872             { echo "$as_me:$LINENO: checking for GL/glu.h" >&5
33873 echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6; }
33874 if test "${ac_cv_header_GL_glu_h+set}" = set; then
33875   echo $ECHO_N "(cached) $ECHO_C" >&6
33876 else
33877   cat >conftest.$ac_ext <<_ACEOF
33878 /* confdefs.h.  */
33879 _ACEOF
33880 cat confdefs.h >>conftest.$ac_ext
33881 cat >>conftest.$ac_ext <<_ACEOF
33882 /* end confdefs.h.  */
33883
33884
33885 #include <GL/glu.h>
33886 _ACEOF
33887 rm -f conftest.$ac_objext
33888 if { (ac_try="$ac_compile"
33889 case "(($ac_try" in
33890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33891   *) ac_try_echo=$ac_try;;
33892 esac
33893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33894   (eval "$ac_compile") 2>conftest.er1
33895   ac_status=$?
33896   grep -v '^ *+' conftest.er1 >conftest.err
33897   rm -f conftest.er1
33898   cat conftest.err >&5
33899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33900   (exit $ac_status); } && {
33901          test -z "$ac_c_werror_flag" ||
33902          test ! -s conftest.err
33903        } && test -s conftest.$ac_objext; then
33904   ac_cv_header_GL_glu_h=yes
33905 else
33906   echo "$as_me: failed program was:" >&5
33907 sed 's/^/| /' conftest.$ac_ext >&5
33908
33909         ac_cv_header_GL_glu_h=no
33910 fi
33911
33912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33913 fi
33914 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
33915 echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6; }
33916 if test $ac_cv_header_GL_glu_h = yes; then
33917
33918                 found_gl=0
33919
33920                 { echo "$as_me:$LINENO: checking for -lGL" >&5
33921 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6; }
33922
33923   ac_find_libraries=
33924   for ac_dir in $SEARCH_LIB /opt/graphics/OpenGL/lib;
33925   do
33926     for ac_extension in a so sl dylib dll.a; do
33927       if test -f "$ac_dir/libGL.$ac_extension"; then
33928         ac_find_libraries=$ac_dir
33929         break 2
33930       fi
33931     done
33932   done
33933
33934                 if test "$ac_find_libraries" != "" ; then
33935                     { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
33936 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
33937
33938
33939     if test "$ac_find_libraries" = "default location"; then
33940     ac_path_to_link=""
33941   else
33942     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33943     result=$?
33944     if test $result = 0; then
33945       ac_path_to_link=""
33946     else
33947       ac_path_to_link=" -L$ac_find_libraries"
33948     fi
33949   fi
33950
33951                     if test "$ac_path_to_link" != " -L/usr/lib" ; then
33952                         LDFLAGS_GL="$ac_path_to_link"
33953                     fi
33954
33955                                                                                 { echo "$as_me:$LINENO: checking for -lGLU" >&5
33956 echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6; }
33957
33958   ac_find_libraries=
33959   for ac_dir in $SEARCH_LIB;
33960   do
33961     for ac_extension in a so sl dylib dll.a; do
33962       if test -f "$ac_dir/libGLU.$ac_extension"; then
33963         ac_find_libraries=$ac_dir
33964         break 2
33965       fi
33966     done
33967   done
33968
33969                     if test "$ac_find_libraries" != "" ; then
33970
33971     if test "$ac_find_libraries" = "default location"; then
33972     ac_path_to_link=""
33973   else
33974     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33975     result=$?
33976     if test $result = 0; then
33977       ac_path_to_link=""
33978     else
33979       ac_path_to_link=" -L$ac_find_libraries"
33980     fi
33981   fi
33982
33983                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
33984                                     "$ac_path_to_link" != "$LDFLAGS_GL"; then
33985                             LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
33986                         fi
33987
33988                         found_gl=1
33989                         OPENGL_LIBS="-lGL -lGLU"
33990                         { echo "$as_me:$LINENO: result: yes" >&5
33991 echo "${ECHO_T}yes" >&6; }
33992                     else
33993                         { echo "$as_me:$LINENO: result: no" >&5
33994 echo "${ECHO_T}no" >&6; }
33995                     fi
33996                 else
33997                     { echo "$as_me:$LINENO: result: no" >&5
33998 echo "${ECHO_T}no" >&6; }
33999                 fi
34000
34001                 if test "$found_gl" != 1; then
34002                     { echo "$as_me:$LINENO: checking for -lMesaGL" >&5
34003 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6; }
34004
34005   ac_find_libraries=
34006   for ac_dir in $SEARCH_LIB;
34007   do
34008     for ac_extension in a so sl dylib dll.a; do
34009       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
34010         ac_find_libraries=$ac_dir
34011         break 2
34012       fi
34013     done
34014   done
34015
34016                     if test "$ac_find_libraries" != "" ; then
34017
34018     if test "$ac_find_libraries" = "default location"; then
34019     ac_path_to_link=""
34020   else
34021     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
34022     result=$?
34023     if test $result = 0; then
34024       ac_path_to_link=""
34025     else
34026       ac_path_to_link=" -L$ac_find_libraries"
34027     fi
34028   fi
34029
34030                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
34031                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
34032                         { echo "$as_me:$LINENO: result: yes" >&5
34033 echo "${ECHO_T}yes" >&6; }
34034                     else
34035                         { echo "$as_me:$LINENO: result: no" >&5
34036 echo "${ECHO_T}no" >&6; }
34037                     fi
34038                 fi
34039
34040 fi
34041
34042
34043
34044 fi
34045
34046
34047
34048         if test "x$OPENGL_LIBS" = "x"; then
34049             if test "$wxUSE_OPENGL" = "yes"; then
34050                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
34051 echo "$as_me: error: OpenGL libraries not available" >&2;}
34052    { (exit 1); exit 1; }; }
34053             else
34054                                 { echo "$as_me:$LINENO: WARNING: OpenGL libraries not available, disabling support for OpenGL" >&5
34055 echo "$as_me: WARNING: OpenGL libraries not available, disabling support for OpenGL" >&2;}
34056                 wxUSE_OPENGL=no
34057                 USE_OPENGL=0
34058             fi
34059         fi
34060     else
34061         { echo "$as_me:$LINENO: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&5
34062 echo "$as_me: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&2;}
34063         wxUSE_OPENGL="no"
34064     fi
34065
34066     if test "$wxUSE_OPENGL" = "auto"; then
34067                                 wxUSE_OPENGL=yes
34068     fi
34069
34070     if test "$wxUSE_OPENGL" = "yes"; then
34071         USE_OPENGL=1
34072         cat >>confdefs.h <<\_ACEOF
34073 #define wxUSE_OPENGL 1
34074 _ACEOF
34075
34076         cat >>confdefs.h <<\_ACEOF
34077 #define wxUSE_GLCANVAS 1
34078 _ACEOF
34079
34080         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
34081     fi
34082 fi
34083
34084
34085 if test -n "$TOOLKIT" ; then
34086     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
34087 fi
34088
34089
34090
34091 if test "$wxUSE_SHARED" = "yes"; then
34092     case "${host}" in
34093       *-pc-msdosdjgpp )
34094                 wxUSE_SHARED=no
34095         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
34096 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
34097       ;;
34098     esac
34099 fi
34100
34101 if test "$wxUSE_SHARED" = "yes"; then
34102
34103
34104     case "${host}" in
34105         *-*-cygwin* | *-*-mingw* )
34106                                                                                                 wx_cv_version_script=no
34107             ;;
34108
34109         *)
34110             { echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
34111 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6; }
34112 if test "${wx_cv_version_script+set}" = set; then
34113   echo $ECHO_N "(cached) $ECHO_C" >&6
34114 else
34115
34116                 echo "VER_1 { *; };" >conftest.sym
34117                 echo "int main() { return 0; }" >conftest.cpp
34118
34119                 if { ac_try='
34120                         $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
34121                         -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
34122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34123   (eval $ac_try) 2>&5
34124   ac_status=$?
34125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34126   (exit $ac_status); }; } ; then
34127                   if test -s conftest.stderr ; then
34128                       wx_cv_version_script=no
34129                   else
34130                       wx_cv_version_script=yes
34131                   fi
34132                 else
34133                   wx_cv_version_script=no
34134                 fi
34135
34136                                                                                                                                                                                                 if test $wx_cv_version_script = yes
34137                 then
34138                   echo "struct B { virtual ~B() { } }; \
34139                         struct D : public B { }; \
34140                         void F() { D d; }" > conftest.cpp
34141
34142                   if { ac_try='
34143                         $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
34144                         -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
34145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34146   (eval $ac_try) 2>&5
34147   ac_status=$?
34148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34149   (exit $ac_status); }; } &&
34150                      { ac_try='
34151                         $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
34152                         -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
34153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34154   (eval $ac_try) 2>&5
34155   ac_status=$?
34156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34157   (exit $ac_status); }; }
34158                   then
34159                     if { ac_try='
34160                           $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
34161                           -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
34162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34163   (eval $ac_try) 2>&5
34164   ac_status=$?
34165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34166   (exit $ac_status); }; }
34167                     then
34168                       wx_cv_version_script=yes
34169                     else
34170                       wx_cv_version_script=no
34171                     fi
34172                   fi
34173                 fi
34174
34175                 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
34176                 rm -f conftest1.output conftest2.output conftest3.output
34177
34178 fi
34179 { echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
34180 echo "${ECHO_T}$wx_cv_version_script" >&6; }
34181
34182             if test $wx_cv_version_script = yes ; then
34183                 LDFLAGS_VERSIONING="-Wl,--version-script,\$(wx_top_builddir)/version-script"
34184             fi
34185             ;;
34186     esac
34187
34188
34189             if test "$wxUSE_VISIBILITY" != "no"; then
34190
34191
34192   if test -n "$GCC"; then
34193     CFLAGS_VISIBILITY="-fvisibility=hidden"
34194     CXXFLAGS_VISIBILITY="-fvisibility=hidden -fvisibility-inlines-hidden"
34195     { echo "$as_me:$LINENO: checking for symbols visibility support" >&5
34196 echo $ECHO_N "checking for symbols visibility support... $ECHO_C" >&6; }
34197     if test "${wx_cv_cc_visibility+set}" = set; then
34198   echo $ECHO_N "(cached) $ECHO_C" >&6
34199 else
34200
34201       wx_save_CXXFLAGS="$CXXFLAGS"
34202       CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
34203       ac_ext=cpp
34204 ac_cpp='$CXXCPP $CPPFLAGS'
34205 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34206 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34207 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34208
34209       cat >conftest.$ac_ext <<_ACEOF
34210 /* confdefs.h.  */
34211 _ACEOF
34212 cat confdefs.h >>conftest.$ac_ext
34213 cat >>conftest.$ac_ext <<_ACEOF
34214 /* end confdefs.h.  */
34215
34216          /* we need gcc >= 4.0, older versions with visibility support
34217             didn't have class visibility: */
34218          #if defined(__GNUC__) && __GNUC__ < 4
34219          error this gcc is too old;
34220          #endif
34221
34222          /* visibility only makes sense for ELF shared libs: */
34223          #if !defined(__ELF__) && !defined(__APPLE__)
34224          error this platform has no visibility;
34225          #endif
34226
34227          extern __attribute__((__visibility__("hidden"))) int hiddenvar;
34228          extern __attribute__((__visibility__("default"))) int exportedvar;
34229          extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
34230          extern __attribute__((__visibility__("default"))) int exportedfunc (void);
34231          class __attribute__((__visibility__("default"))) Foo {
34232            Foo() {}
34233          };
34234
34235 int
34236 main ()
34237 {
34238
34239   ;
34240   return 0;
34241 }
34242 _ACEOF
34243 rm -f conftest.$ac_objext
34244 if { (ac_try="$ac_compile"
34245 case "(($ac_try" in
34246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34247   *) ac_try_echo=$ac_try;;
34248 esac
34249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34250   (eval "$ac_compile") 2>conftest.er1
34251   ac_status=$?
34252   grep -v '^ *+' conftest.er1 >conftest.err
34253   rm -f conftest.er1
34254   cat conftest.err >&5
34255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34256   (exit $ac_status); } && {
34257          test -z "$ac_cxx_werror_flag" ||
34258          test ! -s conftest.err
34259        } && test -s conftest.$ac_objext; then
34260   wx_cv_cc_visibility=yes
34261 else
34262   echo "$as_me: failed program was:" >&5
34263 sed 's/^/| /' conftest.$ac_ext >&5
34264
34265         wx_cv_cc_visibility=no
34266 fi
34267
34268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34269       ac_ext=c
34270 ac_cpp='$CPP $CPPFLAGS'
34271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34274
34275       CXXFLAGS="$wx_save_CXXFLAGS"
34276 fi
34277
34278     { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility" >&5
34279 echo "${ECHO_T}$wx_cv_cc_visibility" >&6; }
34280     if test $wx_cv_cc_visibility = yes; then
34281                               { echo "$as_me:$LINENO: checking for broken libstdc++ visibility" >&5
34282 echo $ECHO_N "checking for broken libstdc++ visibility... $ECHO_C" >&6; }
34283       if test "${wx_cv_cc_broken_libstdcxx_visibility+set}" = set; then
34284   echo $ECHO_N "(cached) $ECHO_C" >&6
34285 else
34286
34287         wx_save_CXXFLAGS="$CXXFLAGS"
34288         wx_save_LDFLAGS="$LDFLAGS"
34289         CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
34290         LDFLAGS="$LDFLAGS -shared -fPIC"
34291         ac_ext=cpp
34292 ac_cpp='$CXXCPP $CPPFLAGS'
34293 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34294 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34295 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34296
34297         cat >conftest.$ac_ext <<_ACEOF
34298 /* confdefs.h.  */
34299 _ACEOF
34300 cat confdefs.h >>conftest.$ac_ext
34301 cat >>conftest.$ac_ext <<_ACEOF
34302 /* end confdefs.h.  */
34303
34304             #include <string>
34305
34306 int
34307 main ()
34308 {
34309
34310             std::string s("hello");
34311             return s.length();
34312
34313   ;
34314   return 0;
34315 }
34316 _ACEOF
34317 rm -f conftest.$ac_objext conftest$ac_exeext
34318 if { (ac_try="$ac_link"
34319 case "(($ac_try" in
34320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34321   *) ac_try_echo=$ac_try;;
34322 esac
34323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34324   (eval "$ac_link") 2>conftest.er1
34325   ac_status=$?
34326   grep -v '^ *+' conftest.er1 >conftest.err
34327   rm -f conftest.er1
34328   cat conftest.err >&5
34329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34330   (exit $ac_status); } && {
34331          test -z "$ac_cxx_werror_flag" ||
34332          test ! -s conftest.err
34333        } && test -s conftest$ac_exeext &&
34334        $as_test_x conftest$ac_exeext; then
34335   wx_cv_cc_broken_libstdcxx_visibility=no
34336 else
34337   echo "$as_me: failed program was:" >&5
34338 sed 's/^/| /' conftest.$ac_ext >&5
34339
34340         wx_cv_cc_broken_libstdcxx_visibility=yes
34341 fi
34342
34343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34344       conftest$ac_exeext conftest.$ac_ext
34345         ac_ext=c
34346 ac_cpp='$CPP $CPPFLAGS'
34347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34350
34351         CXXFLAGS="$wx_save_CXXFLAGS"
34352         LDFLAGS="$wx_save_LDFLAGS"
34353 fi
34354
34355       { echo "$as_me:$LINENO: result: $wx_cv_cc_broken_libstdcxx_visibility" >&5
34356 echo "${ECHO_T}$wx_cv_cc_broken_libstdcxx_visibility" >&6; }
34357
34358       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
34359         { echo "$as_me:$LINENO: checking whether we can work around it" >&5
34360 echo $ECHO_N "checking whether we can work around it... $ECHO_C" >&6; }
34361         if test "${wx_cv_cc_visibility_workaround+set}" = set; then
34362   echo $ECHO_N "(cached) $ECHO_C" >&6
34363 else
34364
34365           ac_ext=cpp
34366 ac_cpp='$CXXCPP $CPPFLAGS'
34367 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34368 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34369 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34370
34371           cat >conftest.$ac_ext <<_ACEOF
34372 /* confdefs.h.  */
34373 _ACEOF
34374 cat confdefs.h >>conftest.$ac_ext
34375 cat >>conftest.$ac_ext <<_ACEOF
34376 /* end confdefs.h.  */
34377
34378               #pragma GCC visibility push(default)
34379               #include <string>
34380               #pragma GCC visibility pop
34381
34382 int
34383 main ()
34384 {
34385
34386               std::string s("hello");
34387               return s.length();
34388
34389   ;
34390   return 0;
34391 }
34392 _ACEOF
34393 rm -f conftest.$ac_objext conftest$ac_exeext
34394 if { (ac_try="$ac_link"
34395 case "(($ac_try" in
34396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34397   *) ac_try_echo=$ac_try;;
34398 esac
34399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34400   (eval "$ac_link") 2>conftest.er1
34401   ac_status=$?
34402   grep -v '^ *+' conftest.er1 >conftest.err
34403   rm -f conftest.er1
34404   cat conftest.err >&5
34405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34406   (exit $ac_status); } && {
34407          test -z "$ac_cxx_werror_flag" ||
34408          test ! -s conftest.err
34409        } && test -s conftest$ac_exeext &&
34410        $as_test_x conftest$ac_exeext; then
34411   wx_cv_cc_visibility_workaround=no
34412 else
34413   echo "$as_me: failed program was:" >&5
34414 sed 's/^/| /' conftest.$ac_ext >&5
34415
34416         wx_cv_cc_visibility_workaround=yes
34417 fi
34418
34419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34420       conftest$ac_exeext conftest.$ac_ext
34421           ac_ext=c
34422 ac_cpp='$CPP $CPPFLAGS'
34423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34426
34427
34428 fi
34429
34430         { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility_workaround" >&5
34431 echo "${ECHO_T}$wx_cv_cc_visibility_workaround" >&6; }
34432
34433         if test $wx_cv_cc_visibility_workaround = no; then
34434                     wx_cv_cc_visibility=no
34435         fi
34436       fi
34437     fi
34438
34439     if test $wx_cv_cc_visibility = yes; then
34440       cat >>confdefs.h <<\_ACEOF
34441 #define HAVE_VISIBILITY 1
34442 _ACEOF
34443
34444       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
34445         cat >>confdefs.h <<\_ACEOF
34446 #define HAVE_BROKEN_LIBSTDCXX_VISIBILITY 1
34447 _ACEOF
34448
34449       fi
34450     else
34451       CFLAGS_VISIBILITY=""
34452       CXXFLAGS_VISIBILITY=""
34453     fi
34454
34455
34456   fi
34457
34458     fi
34459
34460         if test "x$SUNCXX" = xyes; then
34461         SAMPLES_RPATH_FLAG="-R\$(wx_top_builddir)/lib"
34462         WXCONFIG_RPATH="-R\$libdir"
34463     else
34464     case "${host}" in
34465       *-*-linux* | *-*-gnu* )
34466         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
34467         WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
34468         ;;
34469
34470       *-*-solaris2* )
34471
34472                         CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
34473
34474                         saveLdflags="$LDFLAGS"
34475         LDFLAGS="$saveLdflags -Wl,-rpath,/"
34476         { echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
34477 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6; }
34478         cat >conftest.$ac_ext <<_ACEOF
34479 /* confdefs.h.  */
34480 _ACEOF
34481 cat confdefs.h >>conftest.$ac_ext
34482 cat >>conftest.$ac_ext <<_ACEOF
34483 /* end confdefs.h.  */
34484
34485 int
34486 main ()
34487 {
34488
34489   ;
34490   return 0;
34491 }
34492 _ACEOF
34493 rm -f conftest.$ac_objext conftest$ac_exeext
34494 if { (ac_try="$ac_link"
34495 case "(($ac_try" in
34496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34497   *) ac_try_echo=$ac_try;;
34498 esac
34499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34500   (eval "$ac_link") 2>conftest.er1
34501   ac_status=$?
34502   grep -v '^ *+' conftest.er1 >conftest.err
34503   rm -f conftest.er1
34504   cat conftest.err >&5
34505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34506   (exit $ac_status); } && {
34507          test -z "$ac_c_werror_flag" ||
34508          test ! -s conftest.err
34509        } && test -s conftest$ac_exeext &&
34510        $as_test_x conftest$ac_exeext; then
34511
34512                 { echo "$as_me:$LINENO: result: yes" >&5
34513 echo "${ECHO_T}yes" >&6; }
34514                 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
34515                 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
34516
34517 else
34518   echo "$as_me: failed program was:" >&5
34519 sed 's/^/| /' conftest.$ac_ext >&5
34520
34521
34522                 { echo "$as_me:$LINENO: result: no" >&5
34523 echo "${ECHO_T}no" >&6; }
34524                 { echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
34525 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6; }
34526                 LDFLAGS="$saveLdflags -Wl,-R,/"
34527                 cat >conftest.$ac_ext <<_ACEOF
34528 /* confdefs.h.  */
34529 _ACEOF
34530 cat confdefs.h >>conftest.$ac_ext
34531 cat >>conftest.$ac_ext <<_ACEOF
34532 /* end confdefs.h.  */
34533
34534 int
34535 main ()
34536 {
34537
34538   ;
34539   return 0;
34540 }
34541 _ACEOF
34542 rm -f conftest.$ac_objext conftest$ac_exeext
34543 if { (ac_try="$ac_link"
34544 case "(($ac_try" in
34545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34546   *) ac_try_echo=$ac_try;;
34547 esac
34548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34549   (eval "$ac_link") 2>conftest.er1
34550   ac_status=$?
34551   grep -v '^ *+' conftest.er1 >conftest.err
34552   rm -f conftest.er1
34553   cat conftest.err >&5
34554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34555   (exit $ac_status); } && {
34556          test -z "$ac_c_werror_flag" ||
34557          test ! -s conftest.err
34558        } && test -s conftest$ac_exeext &&
34559        $as_test_x conftest$ac_exeext; then
34560
34561                         { echo "$as_me:$LINENO: result: yes" >&5
34562 echo "${ECHO_T}yes" >&6; }
34563                         SAMPLES_RPATH_FLAG="-Wl,-R,\$(wx_top_builddir)/lib"
34564                         WXCONFIG_RPATH="-Wl,-R,\$libdir"
34565
34566 else
34567   echo "$as_me: failed program was:" >&5
34568 sed 's/^/| /' conftest.$ac_ext >&5
34569
34570
34571                         { echo "$as_me:$LINENO: result: no" >&5
34572 echo "${ECHO_T}no" >&6; }
34573
34574 fi
34575
34576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34577       conftest$ac_exeext conftest.$ac_ext
34578
34579 fi
34580
34581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34582       conftest$ac_exeext conftest.$ac_ext
34583         LDFLAGS="$saveLdflags"
34584       ;;
34585
34586       *-*-darwin* )
34587         install_name_tool=`which ${HOST_PREFIX}install_name_tool`
34588         if test "$install_name_tool" -a -x "$install_name_tool"; then
34589             DYLIB_RPATH_POSTLINK="${HOST_PREFIX}install_name_tool -id \$@ \$@"
34590             cat <<EOF >change-install-names
34591 #!/bin/sh
34592 libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
34593 for i in \${libnames} ; do
34594     ${HOST_PREFIX}install_name_tool -id \${1}/\${i} \${1}/\${i}
34595     for dep in \${libnames} ; do
34596         ${HOST_PREFIX}install_name_tool -change \${2}/\${dep} \${1}/\${dep} \${1}/\${i}
34597     done
34598 done
34599 EOF
34600             chmod +x change-install-names
34601             DYLIB_RPATH_INSTALL="\$(wx_top_builddir)/change-install-names \${libdir} \$(wx_top_builddir)/lib"
34602         fi
34603
34604                                         HEADER_PAD_OPTION="-headerpad_max_install_names"
34605       ;;
34606
34607       *-*-cygwin* | *-*-mingw32* )
34608         ;;
34609
34610       *-*-hpux* )
34611         SAMPLES_RPATH_FLAG="-Wl,+b,\$(wx_top_builddir)/lib"
34612         WXCONFIG_RPATH="-Wl,+b,\$libdir"
34613         ;;
34614
34615     esac
34616     fi
34617
34618             WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
34619
34620     if test $wxUSE_RPATH = "no"; then
34621         SAMPLES_RPATH_FLAG=''
34622         DYLIB_PATH_POSTLINK=''
34623         WXCONFIG_RPATH=''
34624     fi
34625
34626     SHARED=1
34627
34628 else
34629
34630     config_linkage_component="-static"
34631     SHARED=0
34632
34633 fi
34634
34635
34636 UNICODE=0
34637 lib_unicode_suffix=
34638 WX_CHARTYPE="ansi"
34639 if test "$wxUSE_UNICODE" = "yes"; then
34640     lib_unicode_suffix=u
34641     WX_CHARTYPE="unicode"
34642     UNICODE=1
34643 fi
34644
34645 WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
34646 WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
34647
34648 DEBUG_INFO=0
34649 if test "$wxUSE_DEBUG_INFO" = "yes"; then
34650     DEBUG_INFO=1
34651 fi
34652
34653 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr '[a-z]' '[A-Z]'`
34654
34655 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
34656
34657 TOOLCHAIN_FULLNAME="${HOST_PREFIX}${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
34658
34659
34660 if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1 -o "$wxUSE_OLD_COCOA" = 1; then
34661     WX_LIBRARY_BASENAME_NOGUI="wx_base${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
34662 else
34663     WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
34664 fi
34665 if test "${TOOLKIT_DIR}" = "os2"; then
34666     WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
34667 else
34668     WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
34669 fi
34670
34671
34672
34673 if test "$wxUSE_OLD_COCOA" = 1; then
34674
34675     ac_ext=c
34676 ac_cpp='$CPP $CPPFLAGS'
34677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34680
34681 ac_ext=m
34682
34683     { echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
34684 echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6; }
34685     cat >conftest.$ac_ext <<_ACEOF
34686 /* confdefs.h.  */
34687 _ACEOF
34688 cat confdefs.h >>conftest.$ac_ext
34689 cat >>conftest.$ac_ext <<_ACEOF
34690 /* end confdefs.h.  */
34691 #include <AppKit/NSEvent.h>
34692 #include <CoreFoundation/CoreFoundation.h>
34693
34694 int
34695 main ()
34696 {
34697
34698   ;
34699   return 0;
34700 }
34701 _ACEOF
34702 rm -f conftest.$ac_objext
34703 if { (ac_try="$ac_compile"
34704 case "(($ac_try" in
34705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34706   *) ac_try_echo=$ac_try;;
34707 esac
34708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34709   (eval "$ac_compile") 2>conftest.er1
34710   ac_status=$?
34711   grep -v '^ *+' conftest.er1 >conftest.err
34712   rm -f conftest.er1
34713   cat conftest.err >&5
34714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34715   (exit $ac_status); } && {
34716          test -z "$ac_c_werror_flag" ||
34717          test ! -s conftest.err
34718        } && test -s conftest.$ac_objext; then
34719   { echo "$as_me:$LINENO: result: no" >&5
34720 echo "${ECHO_T}no" >&6; }
34721 else
34722   echo "$as_me: failed program was:" >&5
34723 sed 's/^/| /' conftest.$ac_ext >&5
34724
34725         { echo "$as_me:$LINENO: result: yes" >&5
34726 echo "${ECHO_T}yes" >&6; }
34727         { echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
34728 echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6; }
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 __Point__ 1
34736 #include <AppKit/NSEvent.h>
34737 #include <CoreFoundation/CoreFoundation.h>
34738
34739 int
34740 main ()
34741 {
34742
34743   ;
34744   return 0;
34745 }
34746 _ACEOF
34747 rm -f conftest.$ac_objext
34748 if { (ac_try="$ac_compile"
34749 case "(($ac_try" in
34750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34751   *) ac_try_echo=$ac_try;;
34752 esac
34753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34754   (eval "$ac_compile") 2>conftest.er1
34755   ac_status=$?
34756   grep -v '^ *+' conftest.er1 >conftest.err
34757   rm -f conftest.er1
34758   cat conftest.err >&5
34759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34760   (exit $ac_status); } && {
34761          test -z "$ac_c_werror_flag" ||
34762          test ! -s conftest.err
34763        } && test -s conftest.$ac_objext; then
34764   { echo "$as_me:$LINENO: result: yes" >&5
34765 echo "${ECHO_T}yes" >&6; }
34766             cat >>confdefs.h <<\_ACEOF
34767 #define __Point__ 1
34768 _ACEOF
34769
34770
34771 else
34772   echo "$as_me: failed program was:" >&5
34773 sed 's/^/| /' conftest.$ac_ext >&5
34774
34775         { { echo "$as_me:$LINENO: error: no
34776 See \`config.log' for more details." >&5
34777 echo "$as_me: error: no
34778 See \`config.log' for more details." >&2;}
34779    { (exit 1); exit 1; }; }
34780
34781 fi
34782
34783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34784
34785 fi
34786
34787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34788     ac_ext=c
34789 ac_cpp='$CPP $CPPFLAGS'
34790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34793
34794 fi
34795
34796
34797 { echo "$as_me:$LINENO: checking for mode_t" >&5
34798 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
34799 if test "${ac_cv_type_mode_t+set}" = set; then
34800   echo $ECHO_N "(cached) $ECHO_C" >&6
34801 else
34802   cat >conftest.$ac_ext <<_ACEOF
34803 /* confdefs.h.  */
34804 _ACEOF
34805 cat confdefs.h >>conftest.$ac_ext
34806 cat >>conftest.$ac_ext <<_ACEOF
34807 /* end confdefs.h.  */
34808 $ac_includes_default
34809 typedef mode_t ac__type_new_;
34810 int
34811 main ()
34812 {
34813 if ((ac__type_new_ *) 0)
34814   return 0;
34815 if (sizeof (ac__type_new_))
34816   return 0;
34817   ;
34818   return 0;
34819 }
34820 _ACEOF
34821 rm -f conftest.$ac_objext
34822 if { (ac_try="$ac_compile"
34823 case "(($ac_try" in
34824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34825   *) ac_try_echo=$ac_try;;
34826 esac
34827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34828   (eval "$ac_compile") 2>conftest.er1
34829   ac_status=$?
34830   grep -v '^ *+' conftest.er1 >conftest.err
34831   rm -f conftest.er1
34832   cat conftest.err >&5
34833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34834   (exit $ac_status); } && {
34835          test -z "$ac_c_werror_flag" ||
34836          test ! -s conftest.err
34837        } && test -s conftest.$ac_objext; then
34838   ac_cv_type_mode_t=yes
34839 else
34840   echo "$as_me: failed program was:" >&5
34841 sed 's/^/| /' conftest.$ac_ext >&5
34842
34843         ac_cv_type_mode_t=no
34844 fi
34845
34846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34847 fi
34848 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
34849 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
34850 if test $ac_cv_type_mode_t = yes; then
34851   :
34852 else
34853
34854 cat >>confdefs.h <<_ACEOF
34855 #define mode_t int
34856 _ACEOF
34857
34858 fi
34859
34860 { echo "$as_me:$LINENO: checking for off_t" >&5
34861 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
34862 if test "${ac_cv_type_off_t+set}" = set; then
34863   echo $ECHO_N "(cached) $ECHO_C" >&6
34864 else
34865   cat >conftest.$ac_ext <<_ACEOF
34866 /* confdefs.h.  */
34867 _ACEOF
34868 cat confdefs.h >>conftest.$ac_ext
34869 cat >>conftest.$ac_ext <<_ACEOF
34870 /* end confdefs.h.  */
34871 $ac_includes_default
34872 typedef off_t ac__type_new_;
34873 int
34874 main ()
34875 {
34876 if ((ac__type_new_ *) 0)
34877   return 0;
34878 if (sizeof (ac__type_new_))
34879   return 0;
34880   ;
34881   return 0;
34882 }
34883 _ACEOF
34884 rm -f conftest.$ac_objext
34885 if { (ac_try="$ac_compile"
34886 case "(($ac_try" in
34887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34888   *) ac_try_echo=$ac_try;;
34889 esac
34890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34891   (eval "$ac_compile") 2>conftest.er1
34892   ac_status=$?
34893   grep -v '^ *+' conftest.er1 >conftest.err
34894   rm -f conftest.er1
34895   cat conftest.err >&5
34896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34897   (exit $ac_status); } && {
34898          test -z "$ac_c_werror_flag" ||
34899          test ! -s conftest.err
34900        } && test -s conftest.$ac_objext; then
34901   ac_cv_type_off_t=yes
34902 else
34903   echo "$as_me: failed program was:" >&5
34904 sed 's/^/| /' conftest.$ac_ext >&5
34905
34906         ac_cv_type_off_t=no
34907 fi
34908
34909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34910 fi
34911 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
34912 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
34913 if test $ac_cv_type_off_t = yes; then
34914   :
34915 else
34916
34917 cat >>confdefs.h <<_ACEOF
34918 #define off_t long int
34919 _ACEOF
34920
34921 fi
34922
34923 { echo "$as_me:$LINENO: checking for pid_t" >&5
34924 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
34925 if test "${ac_cv_type_pid_t+set}" = set; then
34926   echo $ECHO_N "(cached) $ECHO_C" >&6
34927 else
34928   cat >conftest.$ac_ext <<_ACEOF
34929 /* confdefs.h.  */
34930 _ACEOF
34931 cat confdefs.h >>conftest.$ac_ext
34932 cat >>conftest.$ac_ext <<_ACEOF
34933 /* end confdefs.h.  */
34934 $ac_includes_default
34935 typedef pid_t ac__type_new_;
34936 int
34937 main ()
34938 {
34939 if ((ac__type_new_ *) 0)
34940   return 0;
34941 if (sizeof (ac__type_new_))
34942   return 0;
34943   ;
34944   return 0;
34945 }
34946 _ACEOF
34947 rm -f conftest.$ac_objext
34948 if { (ac_try="$ac_compile"
34949 case "(($ac_try" in
34950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34951   *) ac_try_echo=$ac_try;;
34952 esac
34953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34954   (eval "$ac_compile") 2>conftest.er1
34955   ac_status=$?
34956   grep -v '^ *+' conftest.er1 >conftest.err
34957   rm -f conftest.er1
34958   cat conftest.err >&5
34959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34960   (exit $ac_status); } && {
34961          test -z "$ac_c_werror_flag" ||
34962          test ! -s conftest.err
34963        } && test -s conftest.$ac_objext; then
34964   ac_cv_type_pid_t=yes
34965 else
34966   echo "$as_me: failed program was:" >&5
34967 sed 's/^/| /' conftest.$ac_ext >&5
34968
34969         ac_cv_type_pid_t=no
34970 fi
34971
34972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34973 fi
34974 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
34975 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
34976 if test $ac_cv_type_pid_t = yes; then
34977   :
34978 else
34979
34980 cat >>confdefs.h <<_ACEOF
34981 #define pid_t int
34982 _ACEOF
34983
34984 fi
34985
34986 { echo "$as_me:$LINENO: checking for size_t" >&5
34987 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
34988 if test "${ac_cv_type_size_t+set}" = set; then
34989   echo $ECHO_N "(cached) $ECHO_C" >&6
34990 else
34991   cat >conftest.$ac_ext <<_ACEOF
34992 /* confdefs.h.  */
34993 _ACEOF
34994 cat confdefs.h >>conftest.$ac_ext
34995 cat >>conftest.$ac_ext <<_ACEOF
34996 /* end confdefs.h.  */
34997 $ac_includes_default
34998 typedef size_t ac__type_new_;
34999 int
35000 main ()
35001 {
35002 if ((ac__type_new_ *) 0)
35003   return 0;
35004 if (sizeof (ac__type_new_))
35005   return 0;
35006   ;
35007   return 0;
35008 }
35009 _ACEOF
35010 rm -f conftest.$ac_objext
35011 if { (ac_try="$ac_compile"
35012 case "(($ac_try" in
35013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35014   *) ac_try_echo=$ac_try;;
35015 esac
35016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35017   (eval "$ac_compile") 2>conftest.er1
35018   ac_status=$?
35019   grep -v '^ *+' conftest.er1 >conftest.err
35020   rm -f conftest.er1
35021   cat conftest.err >&5
35022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35023   (exit $ac_status); } && {
35024          test -z "$ac_c_werror_flag" ||
35025          test ! -s conftest.err
35026        } && test -s conftest.$ac_objext; then
35027   ac_cv_type_size_t=yes
35028 else
35029   echo "$as_me: failed program was:" >&5
35030 sed 's/^/| /' conftest.$ac_ext >&5
35031
35032         ac_cv_type_size_t=no
35033 fi
35034
35035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35036 fi
35037 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
35038 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
35039 if test $ac_cv_type_size_t = yes; then
35040   :
35041 else
35042
35043 cat >>confdefs.h <<_ACEOF
35044 #define size_t unsigned int
35045 _ACEOF
35046
35047 fi
35048
35049
35050 { echo "$as_me:$LINENO: checking for ssize_t" >&5
35051 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
35052 if test "${ac_cv_type_ssize_t+set}" = set; then
35053   echo $ECHO_N "(cached) $ECHO_C" >&6
35054 else
35055   cat >conftest.$ac_ext <<_ACEOF
35056 /* confdefs.h.  */
35057 _ACEOF
35058 cat confdefs.h >>conftest.$ac_ext
35059 cat >>conftest.$ac_ext <<_ACEOF
35060 /* end confdefs.h.  */
35061 $ac_includes_default
35062 typedef ssize_t ac__type_new_;
35063 int
35064 main ()
35065 {
35066 if ((ac__type_new_ *) 0)
35067   return 0;
35068 if (sizeof (ac__type_new_))
35069   return 0;
35070   ;
35071   return 0;
35072 }
35073 _ACEOF
35074 rm -f conftest.$ac_objext
35075 if { (ac_try="$ac_compile"
35076 case "(($ac_try" in
35077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35078   *) ac_try_echo=$ac_try;;
35079 esac
35080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35081   (eval "$ac_compile") 2>conftest.er1
35082   ac_status=$?
35083   grep -v '^ *+' conftest.er1 >conftest.err
35084   rm -f conftest.er1
35085   cat conftest.err >&5
35086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35087   (exit $ac_status); } && {
35088          test -z "$ac_c_werror_flag" ||
35089          test ! -s conftest.err
35090        } && test -s conftest.$ac_objext; then
35091   ac_cv_type_ssize_t=yes
35092 else
35093   echo "$as_me: failed program was:" >&5
35094 sed 's/^/| /' conftest.$ac_ext >&5
35095
35096         ac_cv_type_ssize_t=no
35097 fi
35098
35099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35100 fi
35101 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
35102 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
35103 if test $ac_cv_type_ssize_t = yes; then
35104
35105 cat >>confdefs.h <<_ACEOF
35106 #define HAVE_SSIZE_T 1
35107 _ACEOF
35108
35109
35110 fi
35111
35112
35113 ac_ext=cpp
35114 ac_cpp='$CXXCPP $CPPFLAGS'
35115 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35116 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35117 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35118  { echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
35119 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6; }
35120 if test "${wx_cv_size_t_is_uint+set}" = set; then
35121   echo $ECHO_N "(cached) $ECHO_C" >&6
35122 else
35123
35124                             cat >conftest.$ac_ext <<_ACEOF
35125 /* confdefs.h.  */
35126 _ACEOF
35127 cat confdefs.h >>conftest.$ac_ext
35128 cat >>conftest.$ac_ext <<_ACEOF
35129 /* end confdefs.h.  */
35130 #include <stddef.h>
35131 int
35132 main ()
35133 {
35134
35135             return 0; }
35136
35137             struct Foo { void foo(size_t); void foo(unsigned int); };
35138
35139             int bar() {
35140
35141   ;
35142   return 0;
35143 }
35144 _ACEOF
35145 rm -f conftest.$ac_objext
35146 if { (ac_try="$ac_compile"
35147 case "(($ac_try" in
35148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35149   *) ac_try_echo=$ac_try;;
35150 esac
35151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35152   (eval "$ac_compile") 2>conftest.er1
35153   ac_status=$?
35154   grep -v '^ *+' conftest.er1 >conftest.err
35155   rm -f conftest.er1
35156   cat conftest.err >&5
35157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35158   (exit $ac_status); } && {
35159          test -z "$ac_cxx_werror_flag" ||
35160          test ! -s conftest.err
35161        } && test -s conftest.$ac_objext; then
35162   wx_cv_size_t_is_uint=no
35163 else
35164   echo "$as_me: failed program was:" >&5
35165 sed 's/^/| /' conftest.$ac_ext >&5
35166
35167         wx_cv_size_t_is_uint=yes
35168
35169 fi
35170
35171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35172
35173
35174 fi
35175 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
35176 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6; }
35177
35178 if test "$wx_cv_size_t_is_uint" = "yes"; then
35179     cat >>confdefs.h <<\_ACEOF
35180 #define wxSIZE_T_IS_UINT 1
35181 _ACEOF
35182
35183 else
35184     { echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
35185 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6; }
35186 if test "${wx_cv_size_t_is_ulong+set}" = set; then
35187   echo $ECHO_N "(cached) $ECHO_C" >&6
35188 else
35189   cat >conftest.$ac_ext <<_ACEOF
35190 /* confdefs.h.  */
35191 _ACEOF
35192 cat confdefs.h >>conftest.$ac_ext
35193 cat >>conftest.$ac_ext <<_ACEOF
35194 /* end confdefs.h.  */
35195 #include <stddef.h>
35196 int
35197 main ()
35198 {
35199
35200                 return 0; }
35201
35202                 struct Foo { void foo(size_t); void foo(unsigned long); };
35203
35204                 int bar() {
35205
35206   ;
35207   return 0;
35208 }
35209 _ACEOF
35210 rm -f conftest.$ac_objext
35211 if { (ac_try="$ac_compile"
35212 case "(($ac_try" in
35213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35214   *) ac_try_echo=$ac_try;;
35215 esac
35216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35217   (eval "$ac_compile") 2>conftest.er1
35218   ac_status=$?
35219   grep -v '^ *+' conftest.er1 >conftest.err
35220   rm -f conftest.er1
35221   cat conftest.err >&5
35222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35223   (exit $ac_status); } && {
35224          test -z "$ac_cxx_werror_flag" ||
35225          test ! -s conftest.err
35226        } && test -s conftest.$ac_objext; then
35227   wx_cv_size_t_is_ulong=no
35228 else
35229   echo "$as_me: failed program was:" >&5
35230 sed 's/^/| /' conftest.$ac_ext >&5
35231
35232         wx_cv_size_t_is_ulong=yes
35233
35234 fi
35235
35236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35237
35238 fi
35239 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
35240 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6; }
35241
35242     if test "$wx_cv_size_t_is_ulong" = "yes"; then
35243         cat >>confdefs.h <<\_ACEOF
35244 #define wxSIZE_T_IS_ULONG 1
35245 _ACEOF
35246
35247     fi
35248 fi
35249
35250 { echo "$as_me:$LINENO: checking if wchar_t is separate type" >&5
35251 echo $ECHO_N "checking if wchar_t is separate type... $ECHO_C" >&6; }
35252 if test "${wx_cv_wchar_t_is_separate_type+set}" = set; then
35253   echo $ECHO_N "(cached) $ECHO_C" >&6
35254 else
35255   cat >conftest.$ac_ext <<_ACEOF
35256 /* confdefs.h.  */
35257 _ACEOF
35258 cat confdefs.h >>conftest.$ac_ext
35259 cat >>conftest.$ac_ext <<_ACEOF
35260 /* end confdefs.h.  */
35261 #include <wchar.h>
35262 int
35263 main ()
35264 {
35265
35266             return 0; }
35267
35268             struct Foo { void foo(wchar_t);
35269                          void foo(unsigned short);
35270                          void foo(unsigned int);
35271                          void foo(unsigned long); };
35272
35273             int bar() {
35274
35275   ;
35276   return 0;
35277 }
35278 _ACEOF
35279 rm -f conftest.$ac_objext
35280 if { (ac_try="$ac_compile"
35281 case "(($ac_try" in
35282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35283   *) ac_try_echo=$ac_try;;
35284 esac
35285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35286   (eval "$ac_compile") 2>conftest.er1
35287   ac_status=$?
35288   grep -v '^ *+' conftest.er1 >conftest.err
35289   rm -f conftest.er1
35290   cat conftest.err >&5
35291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35292   (exit $ac_status); } && {
35293          test -z "$ac_cxx_werror_flag" ||
35294          test ! -s conftest.err
35295        } && test -s conftest.$ac_objext; then
35296   wx_cv_wchar_t_is_separate_type=yes
35297 else
35298   echo "$as_me: failed program was:" >&5
35299 sed 's/^/| /' conftest.$ac_ext >&5
35300
35301         wx_cv_wchar_t_is_separate_type=no
35302
35303 fi
35304
35305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35306
35307 fi
35308 { echo "$as_me:$LINENO: result: $wx_cv_wchar_t_is_separate_type" >&5
35309 echo "${ECHO_T}$wx_cv_wchar_t_is_separate_type" >&6; }
35310
35311 if test "$wx_cv_wchar_t_is_separate_type" = "yes"; then
35312     cat >>confdefs.h <<\_ACEOF
35313 #define wxWCHAR_T_IS_REAL_TYPE 1
35314 _ACEOF
35315
35316 else
35317     cat >>confdefs.h <<\_ACEOF
35318 #define wxWCHAR_T_IS_REAL_TYPE 0
35319 _ACEOF
35320
35321 fi
35322
35323 ac_ext=c
35324 ac_cpp='$CPP $CPPFLAGS'
35325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35328
35329
35330 { echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
35331 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6; }
35332 if test "${wx_cv_struct_pw_gecos+set}" = set; then
35333   echo $ECHO_N "(cached) $ECHO_C" >&6
35334 else
35335
35336         cat >conftest.$ac_ext <<_ACEOF
35337 /* confdefs.h.  */
35338 _ACEOF
35339 cat confdefs.h >>conftest.$ac_ext
35340 cat >>conftest.$ac_ext <<_ACEOF
35341 /* end confdefs.h.  */
35342 #include <pwd.h>
35343 int
35344 main ()
35345 {
35346
35347                 char *p;
35348                 struct passwd *pw;
35349                 p = pw->pw_gecos;
35350
35351   ;
35352   return 0;
35353 }
35354 _ACEOF
35355 rm -f conftest.$ac_objext
35356 if { (ac_try="$ac_compile"
35357 case "(($ac_try" in
35358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35359   *) ac_try_echo=$ac_try;;
35360 esac
35361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35362   (eval "$ac_compile") 2>conftest.er1
35363   ac_status=$?
35364   grep -v '^ *+' conftest.er1 >conftest.err
35365   rm -f conftest.er1
35366   cat conftest.err >&5
35367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35368   (exit $ac_status); } && {
35369          test -z "$ac_c_werror_flag" ||
35370          test ! -s conftest.err
35371        } && test -s conftest.$ac_objext; then
35372
35373                 wx_cv_struct_pw_gecos=yes
35374
35375 else
35376   echo "$as_me: failed program was:" >&5
35377 sed 's/^/| /' conftest.$ac_ext >&5
35378
35379
35380                 wx_cv_struct_pw_gecos=no
35381
35382
35383 fi
35384
35385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35386
35387
35388 fi
35389 { echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
35390 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6; }
35391
35392 if test "$wx_cv_struct_pw_gecos" = "yes"; then
35393     cat >>confdefs.h <<\_ACEOF
35394 #define HAVE_PW_GECOS 1
35395 _ACEOF
35396
35397 fi
35398
35399
35400 if test "$wxUSE_WCHAR_T" = "yes"; then
35401     cat >>confdefs.h <<\_ACEOF
35402 #define wxUSE_WCHAR_T 1
35403 _ACEOF
35404
35405
35406         WCSLEN_FOUND=0
35407     WCHAR_LINK=
35408
35409 for ac_func in wcslen
35410 do
35411 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35412 { echo "$as_me:$LINENO: checking for $ac_func" >&5
35413 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35414 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35415   echo $ECHO_N "(cached) $ECHO_C" >&6
35416 else
35417   cat >conftest.$ac_ext <<_ACEOF
35418 /* confdefs.h.  */
35419 _ACEOF
35420 cat confdefs.h >>conftest.$ac_ext
35421 cat >>conftest.$ac_ext <<_ACEOF
35422 /* end confdefs.h.  */
35423 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35424    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35425 #define $ac_func innocuous_$ac_func
35426
35427 /* System header to define __stub macros and hopefully few prototypes,
35428     which can conflict with char $ac_func (); below.
35429     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35430     <limits.h> exists even on freestanding compilers.  */
35431
35432 #ifdef __STDC__
35433 # include <limits.h>
35434 #else
35435 # include <assert.h>
35436 #endif
35437
35438 #undef $ac_func
35439
35440 /* Override any GCC internal prototype to avoid an error.
35441    Use char because int might match the return type of a GCC
35442    builtin and then its argument prototype would still apply.  */
35443 #ifdef __cplusplus
35444 extern "C"
35445 #endif
35446 char $ac_func ();
35447 /* The GNU C library defines this for functions which it implements
35448     to always fail with ENOSYS.  Some functions are actually named
35449     something starting with __ and the normal name is an alias.  */
35450 #if defined __stub_$ac_func || defined __stub___$ac_func
35451 choke me
35452 #endif
35453
35454 int
35455 main ()
35456 {
35457 return $ac_func ();
35458   ;
35459   return 0;
35460 }
35461 _ACEOF
35462 rm -f conftest.$ac_objext conftest$ac_exeext
35463 if { (ac_try="$ac_link"
35464 case "(($ac_try" in
35465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35466   *) ac_try_echo=$ac_try;;
35467 esac
35468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35469   (eval "$ac_link") 2>conftest.er1
35470   ac_status=$?
35471   grep -v '^ *+' conftest.er1 >conftest.err
35472   rm -f conftest.er1
35473   cat conftest.err >&5
35474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35475   (exit $ac_status); } && {
35476          test -z "$ac_c_werror_flag" ||
35477          test ! -s conftest.err
35478        } && test -s conftest$ac_exeext &&
35479        $as_test_x conftest$ac_exeext; then
35480   eval "$as_ac_var=yes"
35481 else
35482   echo "$as_me: failed program was:" >&5
35483 sed 's/^/| /' conftest.$ac_ext >&5
35484
35485         eval "$as_ac_var=no"
35486 fi
35487
35488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35489       conftest$ac_exeext conftest.$ac_ext
35490 fi
35491 ac_res=`eval echo '${'$as_ac_var'}'`
35492                { echo "$as_me:$LINENO: result: $ac_res" >&5
35493 echo "${ECHO_T}$ac_res" >&6; }
35494 if test `eval echo '${'$as_ac_var'}'` = yes; then
35495   cat >>confdefs.h <<_ACEOF
35496 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35497 _ACEOF
35498  WCSLEN_FOUND=1
35499 fi
35500 done
35501
35502
35503     if test "$WCSLEN_FOUND" = 0; then
35504         if test "$TOOLKIT" = "MSW"; then
35505             { echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
35506 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6; }
35507 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
35508   echo $ECHO_N "(cached) $ECHO_C" >&6
35509 else
35510   ac_check_lib_save_LIBS=$LIBS
35511 LIBS="-lmsvcrt  $LIBS"
35512 cat >conftest.$ac_ext <<_ACEOF
35513 /* confdefs.h.  */
35514 _ACEOF
35515 cat confdefs.h >>conftest.$ac_ext
35516 cat >>conftest.$ac_ext <<_ACEOF
35517 /* end confdefs.h.  */
35518
35519 /* Override any GCC internal prototype to avoid an error.
35520    Use char because int might match the return type of a GCC
35521    builtin and then its argument prototype would still apply.  */
35522 #ifdef __cplusplus
35523 extern "C"
35524 #endif
35525 char wcslen ();
35526 int
35527 main ()
35528 {
35529 return wcslen ();
35530   ;
35531   return 0;
35532 }
35533 _ACEOF
35534 rm -f conftest.$ac_objext conftest$ac_exeext
35535 if { (ac_try="$ac_link"
35536 case "(($ac_try" in
35537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35538   *) ac_try_echo=$ac_try;;
35539 esac
35540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35541   (eval "$ac_link") 2>conftest.er1
35542   ac_status=$?
35543   grep -v '^ *+' conftest.er1 >conftest.err
35544   rm -f conftest.er1
35545   cat conftest.err >&5
35546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35547   (exit $ac_status); } && {
35548          test -z "$ac_c_werror_flag" ||
35549          test ! -s conftest.err
35550        } && test -s conftest$ac_exeext &&
35551        $as_test_x conftest$ac_exeext; then
35552   ac_cv_lib_msvcrt_wcslen=yes
35553 else
35554   echo "$as_me: failed program was:" >&5
35555 sed 's/^/| /' conftest.$ac_ext >&5
35556
35557         ac_cv_lib_msvcrt_wcslen=no
35558 fi
35559
35560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35561       conftest$ac_exeext conftest.$ac_ext
35562 LIBS=$ac_check_lib_save_LIBS
35563 fi
35564 { echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
35565 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6; }
35566 if test $ac_cv_lib_msvcrt_wcslen = yes; then
35567   WCHAR_OK=1
35568 fi
35569
35570         else
35571             { echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
35572 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6; }
35573 if test "${ac_cv_lib_w_wcslen+set}" = set; then
35574   echo $ECHO_N "(cached) $ECHO_C" >&6
35575 else
35576   ac_check_lib_save_LIBS=$LIBS
35577 LIBS="-lw  $LIBS"
35578 cat >conftest.$ac_ext <<_ACEOF
35579 /* confdefs.h.  */
35580 _ACEOF
35581 cat confdefs.h >>conftest.$ac_ext
35582 cat >>conftest.$ac_ext <<_ACEOF
35583 /* end confdefs.h.  */
35584
35585 /* Override any GCC internal prototype to avoid an error.
35586    Use char because int might match the return type of a GCC
35587    builtin and then its argument prototype would still apply.  */
35588 #ifdef __cplusplus
35589 extern "C"
35590 #endif
35591 char wcslen ();
35592 int
35593 main ()
35594 {
35595 return wcslen ();
35596   ;
35597   return 0;
35598 }
35599 _ACEOF
35600 rm -f conftest.$ac_objext conftest$ac_exeext
35601 if { (ac_try="$ac_link"
35602 case "(($ac_try" in
35603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35604   *) ac_try_echo=$ac_try;;
35605 esac
35606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35607   (eval "$ac_link") 2>conftest.er1
35608   ac_status=$?
35609   grep -v '^ *+' conftest.er1 >conftest.err
35610   rm -f conftest.er1
35611   cat conftest.err >&5
35612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35613   (exit $ac_status); } && {
35614          test -z "$ac_c_werror_flag" ||
35615          test ! -s conftest.err
35616        } && test -s conftest$ac_exeext &&
35617        $as_test_x conftest$ac_exeext; then
35618   ac_cv_lib_w_wcslen=yes
35619 else
35620   echo "$as_me: failed program was:" >&5
35621 sed 's/^/| /' conftest.$ac_ext >&5
35622
35623         ac_cv_lib_w_wcslen=no
35624 fi
35625
35626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35627       conftest$ac_exeext conftest.$ac_ext
35628 LIBS=$ac_check_lib_save_LIBS
35629 fi
35630 { echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
35631 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6; }
35632 if test $ac_cv_lib_w_wcslen = yes; then
35633
35634                             WCHAR_LINK=" -lw"
35635                             WCSLEN_FOUND=1
35636
35637 fi
35638
35639         fi
35640     fi
35641
35642     if test "$WCSLEN_FOUND" = 1; then
35643         cat >>confdefs.h <<\_ACEOF
35644 #define HAVE_WCSLEN 1
35645 _ACEOF
35646
35647     fi
35648
35649
35650
35651
35652
35653
35654 for ac_func in wcsdup strnlen wcsnlen wcscasecmp wcsncasecmp
35655 do
35656 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35657 { echo "$as_me:$LINENO: checking for $ac_func" >&5
35658 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35659 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35660   echo $ECHO_N "(cached) $ECHO_C" >&6
35661 else
35662   cat >conftest.$ac_ext <<_ACEOF
35663 /* confdefs.h.  */
35664 _ACEOF
35665 cat confdefs.h >>conftest.$ac_ext
35666 cat >>conftest.$ac_ext <<_ACEOF
35667 /* end confdefs.h.  */
35668 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35669    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35670 #define $ac_func innocuous_$ac_func
35671
35672 /* System header to define __stub macros and hopefully few prototypes,
35673     which can conflict with char $ac_func (); below.
35674     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35675     <limits.h> exists even on freestanding compilers.  */
35676
35677 #ifdef __STDC__
35678 # include <limits.h>
35679 #else
35680 # include <assert.h>
35681 #endif
35682
35683 #undef $ac_func
35684
35685 /* Override any GCC internal prototype to avoid an error.
35686    Use char because int might match the return type of a GCC
35687    builtin and then its argument prototype would still apply.  */
35688 #ifdef __cplusplus
35689 extern "C"
35690 #endif
35691 char $ac_func ();
35692 /* The GNU C library defines this for functions which it implements
35693     to always fail with ENOSYS.  Some functions are actually named
35694     something starting with __ and the normal name is an alias.  */
35695 #if defined __stub_$ac_func || defined __stub___$ac_func
35696 choke me
35697 #endif
35698
35699 int
35700 main ()
35701 {
35702 return $ac_func ();
35703   ;
35704   return 0;
35705 }
35706 _ACEOF
35707 rm -f conftest.$ac_objext conftest$ac_exeext
35708 if { (ac_try="$ac_link"
35709 case "(($ac_try" in
35710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35711   *) ac_try_echo=$ac_try;;
35712 esac
35713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35714   (eval "$ac_link") 2>conftest.er1
35715   ac_status=$?
35716   grep -v '^ *+' conftest.er1 >conftest.err
35717   rm -f conftest.er1
35718   cat conftest.err >&5
35719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35720   (exit $ac_status); } && {
35721          test -z "$ac_c_werror_flag" ||
35722          test ! -s conftest.err
35723        } && test -s conftest$ac_exeext &&
35724        $as_test_x conftest$ac_exeext; then
35725   eval "$as_ac_var=yes"
35726 else
35727   echo "$as_me: failed program was:" >&5
35728 sed 's/^/| /' conftest.$ac_ext >&5
35729
35730         eval "$as_ac_var=no"
35731 fi
35732
35733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35734       conftest$ac_exeext conftest.$ac_ext
35735 fi
35736 ac_res=`eval echo '${'$as_ac_var'}'`
35737                { echo "$as_me:$LINENO: result: $ac_res" >&5
35738 echo "${ECHO_T}$ac_res" >&6; }
35739 if test `eval echo '${'$as_ac_var'}'` = yes; then
35740   cat >>confdefs.h <<_ACEOF
35741 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35742 _ACEOF
35743
35744 fi
35745 done
35746
35747
35748                     if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
35749         CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
35750     fi
35751
35752                 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
35753 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
35754 if test "${ac_cv_type_mbstate_t+set}" = set; then
35755   echo $ECHO_N "(cached) $ECHO_C" >&6
35756 else
35757   cat >conftest.$ac_ext <<_ACEOF
35758 /* confdefs.h.  */
35759 _ACEOF
35760 cat confdefs.h >>conftest.$ac_ext
35761 cat >>conftest.$ac_ext <<_ACEOF
35762 /* end confdefs.h.  */
35763 #include <wchar.h>
35764
35765 typedef mbstate_t ac__type_new_;
35766 int
35767 main ()
35768 {
35769 if ((ac__type_new_ *) 0)
35770   return 0;
35771 if (sizeof (ac__type_new_))
35772   return 0;
35773   ;
35774   return 0;
35775 }
35776 _ACEOF
35777 rm -f conftest.$ac_objext
35778 if { (ac_try="$ac_compile"
35779 case "(($ac_try" in
35780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35781   *) ac_try_echo=$ac_try;;
35782 esac
35783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35784   (eval "$ac_compile") 2>conftest.er1
35785   ac_status=$?
35786   grep -v '^ *+' conftest.er1 >conftest.err
35787   rm -f conftest.er1
35788   cat conftest.err >&5
35789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35790   (exit $ac_status); } && {
35791          test -z "$ac_c_werror_flag" ||
35792          test ! -s conftest.err
35793        } && test -s conftest.$ac_objext; then
35794   ac_cv_type_mbstate_t=yes
35795 else
35796   echo "$as_me: failed program was:" >&5
35797 sed 's/^/| /' conftest.$ac_ext >&5
35798
35799         ac_cv_type_mbstate_t=no
35800 fi
35801
35802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35803 fi
35804 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
35805 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
35806 if test $ac_cv_type_mbstate_t = yes; then
35807
35808 cat >>confdefs.h <<_ACEOF
35809 #define HAVE_MBSTATE_T 1
35810 _ACEOF
35811
35812
35813 for ac_func in wcsrtombs
35814 do
35815 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35816 { echo "$as_me:$LINENO: checking for $ac_func" >&5
35817 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35818 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35819   echo $ECHO_N "(cached) $ECHO_C" >&6
35820 else
35821   cat >conftest.$ac_ext <<_ACEOF
35822 /* confdefs.h.  */
35823 _ACEOF
35824 cat confdefs.h >>conftest.$ac_ext
35825 cat >>conftest.$ac_ext <<_ACEOF
35826 /* end confdefs.h.  */
35827 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35828    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35829 #define $ac_func innocuous_$ac_func
35830
35831 /* System header to define __stub macros and hopefully few prototypes,
35832     which can conflict with char $ac_func (); below.
35833     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35834     <limits.h> exists even on freestanding compilers.  */
35835
35836 #ifdef __STDC__
35837 # include <limits.h>
35838 #else
35839 # include <assert.h>
35840 #endif
35841
35842 #undef $ac_func
35843
35844 /* Override any GCC internal prototype to avoid an error.
35845    Use char because int might match the return type of a GCC
35846    builtin and then its argument prototype would still apply.  */
35847 #ifdef __cplusplus
35848 extern "C"
35849 #endif
35850 char $ac_func ();
35851 /* The GNU C library defines this for functions which it implements
35852     to always fail with ENOSYS.  Some functions are actually named
35853     something starting with __ and the normal name is an alias.  */
35854 #if defined __stub_$ac_func || defined __stub___$ac_func
35855 choke me
35856 #endif
35857
35858 int
35859 main ()
35860 {
35861 return $ac_func ();
35862   ;
35863   return 0;
35864 }
35865 _ACEOF
35866 rm -f conftest.$ac_objext conftest$ac_exeext
35867 if { (ac_try="$ac_link"
35868 case "(($ac_try" in
35869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35870   *) ac_try_echo=$ac_try;;
35871 esac
35872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35873   (eval "$ac_link") 2>conftest.er1
35874   ac_status=$?
35875   grep -v '^ *+' conftest.er1 >conftest.err
35876   rm -f conftest.er1
35877   cat conftest.err >&5
35878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35879   (exit $ac_status); } && {
35880          test -z "$ac_c_werror_flag" ||
35881          test ! -s conftest.err
35882        } && test -s conftest$ac_exeext &&
35883        $as_test_x conftest$ac_exeext; then
35884   eval "$as_ac_var=yes"
35885 else
35886   echo "$as_me: failed program was:" >&5
35887 sed 's/^/| /' conftest.$ac_ext >&5
35888
35889         eval "$as_ac_var=no"
35890 fi
35891
35892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35893       conftest$ac_exeext conftest.$ac_ext
35894 fi
35895 ac_res=`eval echo '${'$as_ac_var'}'`
35896                { echo "$as_me:$LINENO: result: $ac_res" >&5
35897 echo "${ECHO_T}$ac_res" >&6; }
35898 if test `eval echo '${'$as_ac_var'}'` = yes; then
35899   cat >>confdefs.h <<_ACEOF
35900 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35901 _ACEOF
35902
35903 fi
35904 done
35905
35906 fi
35907
35908 else
35909     { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
35910 echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
35911 fi
35912
35913
35914
35915
35916 for ac_func in snprintf vsnprintf vsscanf
35917 do
35918 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35919 { echo "$as_me:$LINENO: checking for $ac_func" >&5
35920 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35921 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35922   echo $ECHO_N "(cached) $ECHO_C" >&6
35923 else
35924   cat >conftest.$ac_ext <<_ACEOF
35925 /* confdefs.h.  */
35926 _ACEOF
35927 cat confdefs.h >>conftest.$ac_ext
35928 cat >>conftest.$ac_ext <<_ACEOF
35929 /* end confdefs.h.  */
35930 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35931    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35932 #define $ac_func innocuous_$ac_func
35933
35934 /* System header to define __stub macros and hopefully few prototypes,
35935     which can conflict with char $ac_func (); below.
35936     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35937     <limits.h> exists even on freestanding compilers.  */
35938
35939 #ifdef __STDC__
35940 # include <limits.h>
35941 #else
35942 # include <assert.h>
35943 #endif
35944
35945 #undef $ac_func
35946
35947 /* Override any GCC internal prototype to avoid an error.
35948    Use char because int might match the return type of a GCC
35949    builtin and then its argument prototype would still apply.  */
35950 #ifdef __cplusplus
35951 extern "C"
35952 #endif
35953 char $ac_func ();
35954 /* The GNU C library defines this for functions which it implements
35955     to always fail with ENOSYS.  Some functions are actually named
35956     something starting with __ and the normal name is an alias.  */
35957 #if defined __stub_$ac_func || defined __stub___$ac_func
35958 choke me
35959 #endif
35960
35961 int
35962 main ()
35963 {
35964 return $ac_func ();
35965   ;
35966   return 0;
35967 }
35968 _ACEOF
35969 rm -f conftest.$ac_objext conftest$ac_exeext
35970 if { (ac_try="$ac_link"
35971 case "(($ac_try" in
35972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35973   *) ac_try_echo=$ac_try;;
35974 esac
35975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35976   (eval "$ac_link") 2>conftest.er1
35977   ac_status=$?
35978   grep -v '^ *+' conftest.er1 >conftest.err
35979   rm -f conftest.er1
35980   cat conftest.err >&5
35981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35982   (exit $ac_status); } && {
35983          test -z "$ac_c_werror_flag" ||
35984          test ! -s conftest.err
35985        } && test -s conftest$ac_exeext &&
35986        $as_test_x conftest$ac_exeext; then
35987   eval "$as_ac_var=yes"
35988 else
35989   echo "$as_me: failed program was:" >&5
35990 sed 's/^/| /' conftest.$ac_ext >&5
35991
35992         eval "$as_ac_var=no"
35993 fi
35994
35995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35996       conftest$ac_exeext conftest.$ac_ext
35997 fi
35998 ac_res=`eval echo '${'$as_ac_var'}'`
35999                { echo "$as_me:$LINENO: result: $ac_res" >&5
36000 echo "${ECHO_T}$ac_res" >&6; }
36001 if test `eval echo '${'$as_ac_var'}'` = yes; then
36002   cat >>confdefs.h <<_ACEOF
36003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36004 _ACEOF
36005
36006 fi
36007 done
36008
36009
36010 ac_ext=cpp
36011 ac_cpp='$CXXCPP $CPPFLAGS'
36012 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36013 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36014 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36015
36016 if test "$ac_cv_func_vsnprintf" = "yes"; then
36017         { echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
36018 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6; }
36019 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
36020   echo $ECHO_N "(cached) $ECHO_C" >&6
36021 else
36022
36023                                                             cat >conftest.$ac_ext <<_ACEOF
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 <stdio.h>
36031                     #include <stdarg.h>
36032                     #ifdef __MSL__
36033                     #if __MSL__ >= 0x6000
36034                     namespace std {}
36035                     using namespace std;
36036                     #endif
36037                     #endif
36038
36039 int
36040 main ()
36041 {
36042
36043                     char *buf;
36044                     va_list ap;
36045                     vsnprintf(buf, 10u, "%s", ap);
36046
36047   ;
36048   return 0;
36049 }
36050 _ACEOF
36051 rm -f conftest.$ac_objext
36052 if { (ac_try="$ac_compile"
36053 case "(($ac_try" in
36054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36055   *) ac_try_echo=$ac_try;;
36056 esac
36057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36058   (eval "$ac_compile") 2>conftest.er1
36059   ac_status=$?
36060   grep -v '^ *+' conftest.er1 >conftest.err
36061   rm -f conftest.er1
36062   cat conftest.err >&5
36063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36064   (exit $ac_status); } && {
36065          test -z "$ac_cxx_werror_flag" ||
36066          test ! -s conftest.err
36067        } && test -s conftest.$ac_objext; then
36068   wx_cv_func_vsnprintf_decl=yes
36069 else
36070   echo "$as_me: failed program was:" >&5
36071 sed 's/^/| /' conftest.$ac_ext >&5
36072
36073         wx_cv_func_vsnprintf_decl=no
36074
36075 fi
36076
36077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36078
36079
36080 fi
36081 { echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
36082 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6; }
36083
36084     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
36085         cat >>confdefs.h <<\_ACEOF
36086 #define HAVE_VSNPRINTF_DECL 1
36087 _ACEOF
36088
36089
36090                         { echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
36091 echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6; }
36092 if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
36093   echo $ECHO_N "(cached) $ECHO_C" >&6
36094 else
36095
36096                 cat >conftest.$ac_ext <<_ACEOF
36097 /* confdefs.h.  */
36098 _ACEOF
36099 cat confdefs.h >>conftest.$ac_ext
36100 cat >>conftest.$ac_ext <<_ACEOF
36101 /* end confdefs.h.  */
36102
36103                         #include <stdio.h>
36104                         #include <stdarg.h>
36105                         #ifdef __MSL__
36106                         #if __MSL__ >= 0x6000
36107                         namespace std {}
36108                         using namespace std;
36109                         #endif
36110                         #endif
36111
36112 int
36113 main ()
36114 {
36115
36116                         char *buf;
36117                         va_list ap;
36118                         const char *fmt = "%s";
36119                         vsnprintf(buf, 10u, fmt, ap);
36120
36121   ;
36122   return 0;
36123 }
36124 _ACEOF
36125 rm -f conftest.$ac_objext
36126 if { (ac_try="$ac_compile"
36127 case "(($ac_try" in
36128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36129   *) ac_try_echo=$ac_try;;
36130 esac
36131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36132   (eval "$ac_compile") 2>conftest.er1
36133   ac_status=$?
36134   grep -v '^ *+' conftest.er1 >conftest.err
36135   rm -f conftest.er1
36136   cat conftest.err >&5
36137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36138   (exit $ac_status); } && {
36139          test -z "$ac_cxx_werror_flag" ||
36140          test ! -s conftest.err
36141        } && test -s conftest.$ac_objext; then
36142   wx_cv_func_broken_vsnprintf_decl=no
36143 else
36144   echo "$as_me: failed program was:" >&5
36145 sed 's/^/| /' conftest.$ac_ext >&5
36146
36147         wx_cv_func_broken_vsnprintf_decl=yes
36148
36149 fi
36150
36151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36152
36153
36154 fi
36155 { echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
36156 echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6; }
36157
36158         if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
36159             cat >>confdefs.h <<\_ACEOF
36160 #define HAVE_BROKEN_VSNPRINTF_DECL 1
36161 _ACEOF
36162
36163         fi
36164     fi
36165 fi
36166
36167 if test "$ac_cv_func_snprintf" = "yes"; then
36168     { echo "$as_me:$LINENO: checking for snprintf declaration" >&5
36169 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6; }
36170 if test "${wx_cv_func_snprintf_decl+set}" = set; then
36171   echo $ECHO_N "(cached) $ECHO_C" >&6
36172 else
36173
36174             cat >conftest.$ac_ext <<_ACEOF
36175 /* confdefs.h.  */
36176 _ACEOF
36177 cat confdefs.h >>conftest.$ac_ext
36178 cat >>conftest.$ac_ext <<_ACEOF
36179 /* end confdefs.h.  */
36180
36181                     #include <stdio.h>
36182                     #include <stdarg.h>
36183                     #ifdef __MSL__
36184                     #if __MSL__ >= 0x6000
36185                     namespace std {}
36186                     using namespace std;
36187                     #endif
36188                     #endif
36189
36190 int
36191 main ()
36192 {
36193
36194                     char *buf;
36195                     snprintf(buf, 10u, "%s", "wx");
36196
36197   ;
36198   return 0;
36199 }
36200 _ACEOF
36201 rm -f conftest.$ac_objext
36202 if { (ac_try="$ac_compile"
36203 case "(($ac_try" in
36204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36205   *) ac_try_echo=$ac_try;;
36206 esac
36207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36208   (eval "$ac_compile") 2>conftest.er1
36209   ac_status=$?
36210   grep -v '^ *+' conftest.er1 >conftest.err
36211   rm -f conftest.er1
36212   cat conftest.err >&5
36213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36214   (exit $ac_status); } && {
36215          test -z "$ac_cxx_werror_flag" ||
36216          test ! -s conftest.err
36217        } && test -s conftest.$ac_objext; then
36218   wx_cv_func_snprintf_decl=yes
36219 else
36220   echo "$as_me: failed program was:" >&5
36221 sed 's/^/| /' conftest.$ac_ext >&5
36222
36223         wx_cv_func_snprintf_decl=no
36224
36225 fi
36226
36227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36228
36229
36230 fi
36231 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
36232 echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6; }
36233
36234     if test "$wx_cv_func_snprintf_decl" = "yes"; then
36235         cat >>confdefs.h <<\_ACEOF
36236 #define HAVE_SNPRINTF_DECL 1
36237 _ACEOF
36238
36239     fi
36240
36241     if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
36242
36243                                         { echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
36244 echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6; }
36245 if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
36246   echo $ECHO_N "(cached) $ECHO_C" >&6
36247 else
36248
36249                 if test "$cross_compiling" = yes; then
36250
36251                         { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
36252 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
36253 echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
36254 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
36255                         wx_cv_func_snprintf_pos_params=no
36256
36257
36258 else
36259   cat >conftest.$ac_ext <<_ACEOF
36260 /* confdefs.h.  */
36261 _ACEOF
36262 cat confdefs.h >>conftest.$ac_ext
36263 cat >>conftest.$ac_ext <<_ACEOF
36264 /* end confdefs.h.  */
36265
36266                         #include <stdio.h>
36267
36268                         int main (void)
36269                         {
36270                             char buffer[128];
36271                             snprintf (buffer, 128, "%2$d %3$d %1$d", 1, 2, 3);
36272                             if (strcmp ("2 3 1", buffer) == 0)
36273                                 exit (0);
36274                             exit (1);
36275                         }
36276
36277 _ACEOF
36278 rm -f conftest$ac_exeext
36279 if { (ac_try="$ac_link"
36280 case "(($ac_try" in
36281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36282   *) ac_try_echo=$ac_try;;
36283 esac
36284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36285   (eval "$ac_link") 2>&5
36286   ac_status=$?
36287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36288   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36289   { (case "(($ac_try" in
36290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36291   *) ac_try_echo=$ac_try;;
36292 esac
36293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36294   (eval "$ac_try") 2>&5
36295   ac_status=$?
36296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36297   (exit $ac_status); }; }; then
36298   wx_cv_func_snprintf_pos_params=no
36299 else
36300   echo "$as_me: program exited with status $ac_status" >&5
36301 echo "$as_me: failed program was:" >&5
36302 sed 's/^/| /' conftest.$ac_ext >&5
36303
36304 ( exit $ac_status )
36305 wx_cv_func_snprintf_pos_params=yes
36306 fi
36307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36308 fi
36309
36310
36311
36312
36313 fi
36314 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
36315 echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6; }
36316
36317         if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
36318             cat >>confdefs.h <<\_ACEOF
36319 #define HAVE_UNIX98_PRINTF 1
36320 _ACEOF
36321
36322         fi
36323     fi
36324 fi
36325
36326 if test "$ac_cv_func_vsscanf" = "yes"; then
36327     { echo "$as_me:$LINENO: checking for vsscanf declaration" >&5
36328 echo $ECHO_N "checking for vsscanf declaration... $ECHO_C" >&6; }
36329 if test "${wx_cv_func_vsscanf_decl+set}" = set; then
36330   echo $ECHO_N "(cached) $ECHO_C" >&6
36331 else
36332
36333             cat >conftest.$ac_ext <<_ACEOF
36334 /* confdefs.h.  */
36335 _ACEOF
36336 cat confdefs.h >>conftest.$ac_ext
36337 cat >>conftest.$ac_ext <<_ACEOF
36338 /* end confdefs.h.  */
36339
36340                     #include <stdio.h>
36341                     #include <stdarg.h>
36342                     #ifdef __MSL__
36343                     #if __MSL__ >= 0x6000
36344                     namespace std {}
36345                     using namespace std;
36346                     #endif
36347                     #endif
36348
36349 int
36350 main ()
36351 {
36352
36353                     char *buf;
36354                     va_list args;
36355                     vsscanf(buf, "%s", args);
36356
36357   ;
36358   return 0;
36359 }
36360 _ACEOF
36361 rm -f conftest.$ac_objext
36362 if { (ac_try="$ac_compile"
36363 case "(($ac_try" in
36364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36365   *) ac_try_echo=$ac_try;;
36366 esac
36367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36368   (eval "$ac_compile") 2>conftest.er1
36369   ac_status=$?
36370   grep -v '^ *+' conftest.er1 >conftest.err
36371   rm -f conftest.er1
36372   cat conftest.err >&5
36373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36374   (exit $ac_status); } && {
36375          test -z "$ac_cxx_werror_flag" ||
36376          test ! -s conftest.err
36377        } && test -s conftest.$ac_objext; then
36378   wx_cv_func_vsscanf_decl=yes
36379 else
36380   echo "$as_me: failed program was:" >&5
36381 sed 's/^/| /' conftest.$ac_ext >&5
36382
36383         wx_cv_func_vsscanf_decl=no
36384
36385 fi
36386
36387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36388
36389
36390 fi
36391 { echo "$as_me:$LINENO: result: $wx_cv_func_vsscanf_decl" >&5
36392 echo "${ECHO_T}$wx_cv_func_vsscanf_decl" >&6; }
36393
36394     if test "$wx_cv_func_vsscanf_decl" = "yes"; then
36395         cat >>confdefs.h <<\_ACEOF
36396 #define HAVE_VSSCANF_DECL 1
36397 _ACEOF
36398
36399     fi
36400 fi
36401 ac_ext=c
36402 ac_cpp='$CPP $CPPFLAGS'
36403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36406
36407
36408 if test "$wxUSE_UNICODE" = yes; then
36409
36410             wchar_headers="#include <stdio.h>
36411 #include <wchar.h>"
36412     case "${host}" in
36413         *-*-solaris2* )
36414
36415 for ac_header in widec.h
36416 do
36417 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36418 { echo "$as_me:$LINENO: checking for $ac_header" >&5
36419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
36420 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36421   echo $ECHO_N "(cached) $ECHO_C" >&6
36422 else
36423   cat >conftest.$ac_ext <<_ACEOF
36424 /* confdefs.h.  */
36425 _ACEOF
36426 cat confdefs.h >>conftest.$ac_ext
36427 cat >>conftest.$ac_ext <<_ACEOF
36428 /* end confdefs.h.  */
36429 $ac_includes_default
36430
36431 #include <$ac_header>
36432 _ACEOF
36433 rm -f conftest.$ac_objext
36434 if { (ac_try="$ac_compile"
36435 case "(($ac_try" in
36436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36437   *) ac_try_echo=$ac_try;;
36438 esac
36439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36440   (eval "$ac_compile") 2>conftest.er1
36441   ac_status=$?
36442   grep -v '^ *+' conftest.er1 >conftest.err
36443   rm -f conftest.er1
36444   cat conftest.err >&5
36445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36446   (exit $ac_status); } && {
36447          test -z "$ac_c_werror_flag" ||
36448          test ! -s conftest.err
36449        } && test -s conftest.$ac_objext; then
36450   eval "$as_ac_Header=yes"
36451 else
36452   echo "$as_me: failed program was:" >&5
36453 sed 's/^/| /' conftest.$ac_ext >&5
36454
36455         eval "$as_ac_Header=no"
36456 fi
36457
36458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36459 fi
36460 ac_res=`eval echo '${'$as_ac_Header'}'`
36461                { echo "$as_me:$LINENO: result: $ac_res" >&5
36462 echo "${ECHO_T}$ac_res" >&6; }
36463 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36464   cat >>confdefs.h <<_ACEOF
36465 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36466 _ACEOF
36467
36468 fi
36469
36470 done
36471
36472             if test "$ac_cv_header_widec_h" = "yes"; then
36473                 wchar_headers="$wchar_headers
36474 #include <widec.h>"
36475             fi
36476     esac
36477
36478
36479   for wx_func in putws fputws wprintf vswprintf vswscanf
36480   do
36481     { echo "$as_me:$LINENO: checking for $wx_func" >&5
36482 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
36483 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
36484   echo $ECHO_N "(cached) $ECHO_C" >&6
36485 else
36486
36487         cat >conftest.$ac_ext <<_ACEOF
36488
36489             /* confdefs.h.  */
36490 _ACEOF
36491 cat confdefs.h >>conftest.$ac_ext
36492 cat >>conftest.$ac_ext <<_ACEOF
36493 /* end confdefs.h.  */
36494
36495                 $wchar_headers
36496                 $ac_includes_default
36497
36498 int
36499 main ()
36500 {
36501
36502                 #ifndef $wx_func
36503                   &$wx_func;
36504                 #endif
36505
36506
36507   ;
36508   return 0;
36509 }
36510
36511 _ACEOF
36512 rm -f conftest.$ac_objext conftest$ac_exeext
36513 if { (ac_try="$ac_link"
36514 case "(($ac_try" in
36515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36516   *) ac_try_echo=$ac_try;;
36517 esac
36518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36519   (eval "$ac_link") 2>conftest.er1
36520   ac_status=$?
36521   grep -v '^ *+' conftest.er1 >conftest.err
36522   rm -f conftest.er1
36523   cat conftest.err >&5
36524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36525   (exit $ac_status); } && {
36526          test -z "$ac_c_werror_flag" ||
36527          test ! -s conftest.err
36528        } && test -s conftest$ac_exeext &&
36529        $as_test_x conftest$ac_exeext; then
36530   eval wx_cv_func_$wx_func=yes
36531 else
36532   echo "$as_me: failed program was:" >&5
36533 sed 's/^/| /' conftest.$ac_ext >&5
36534
36535         eval wx_cv_func_$wx_func=no
36536 fi
36537
36538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36539       conftest$ac_exeext conftest.$ac_ext
36540
36541 fi
36542 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
36543                { echo "$as_me:$LINENO: result: $ac_res" >&5
36544 echo "${ECHO_T}$ac_res" >&6; }
36545
36546     if eval test \$wx_cv_func_$wx_func = yes
36547     then
36548       cat >>confdefs.h <<_ACEOF
36549 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
36550 _ACEOF
36551
36552
36553     else
36554       :
36555
36556     fi
36557   done
36558
36559
36560                 { echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
36561 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6; }
36562     cat >conftest.$ac_ext <<_ACEOF
36563 /* confdefs.h.  */
36564 _ACEOF
36565 cat confdefs.h >>conftest.$ac_ext
36566 cat >>conftest.$ac_ext <<_ACEOF
36567 /* end confdefs.h.  */
36568 #include <wchar.h>
36569 int
36570 main ()
36571 {
36572 &_vsnwprintf;
36573   ;
36574   return 0;
36575 }
36576 _ACEOF
36577 rm -f conftest.$ac_objext
36578 if { (ac_try="$ac_compile"
36579 case "(($ac_try" in
36580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36581   *) ac_try_echo=$ac_try;;
36582 esac
36583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36584   (eval "$ac_compile") 2>conftest.er1
36585   ac_status=$?
36586   grep -v '^ *+' conftest.er1 >conftest.err
36587   rm -f conftest.er1
36588   cat conftest.err >&5
36589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36590   (exit $ac_status); } && {
36591          test -z "$ac_c_werror_flag" ||
36592          test ! -s conftest.err
36593        } && test -s conftest.$ac_objext; then
36594   { echo "$as_me:$LINENO: result: yes" >&5
36595 echo "${ECHO_T}yes" >&6; }
36596                     cat >>confdefs.h <<\_ACEOF
36597 #define HAVE__VSNWPRINTF 1
36598 _ACEOF
36599
36600 else
36601   echo "$as_me: failed program was:" >&5
36602 sed 's/^/| /' conftest.$ac_ext >&5
36603
36604         { echo "$as_me:$LINENO: result: no" >&5
36605 echo "${ECHO_T}no" >&6; }
36606 fi
36607
36608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
36609 fi
36610
36611 if test "$wxUSE_FILE" = "yes"; then
36612
36613   for wx_func in fsync
36614   do
36615     { echo "$as_me:$LINENO: checking for $wx_func" >&5
36616 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
36617 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
36618   echo $ECHO_N "(cached) $ECHO_C" >&6
36619 else
36620
36621         cat >conftest.$ac_ext <<_ACEOF
36622
36623             /* confdefs.h.  */
36624 _ACEOF
36625 cat confdefs.h >>conftest.$ac_ext
36626 cat >>conftest.$ac_ext <<_ACEOF
36627 /* end confdefs.h.  */
36628
36629
36630                 $ac_includes_default
36631
36632 int
36633 main ()
36634 {
36635
36636                 #ifndef $wx_func
36637                   &$wx_func;
36638                 #endif
36639
36640
36641   ;
36642   return 0;
36643 }
36644
36645 _ACEOF
36646 rm -f conftest.$ac_objext conftest$ac_exeext
36647 if { (ac_try="$ac_link"
36648 case "(($ac_try" in
36649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36650   *) ac_try_echo=$ac_try;;
36651 esac
36652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36653   (eval "$ac_link") 2>conftest.er1
36654   ac_status=$?
36655   grep -v '^ *+' conftest.er1 >conftest.err
36656   rm -f conftest.er1
36657   cat conftest.err >&5
36658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36659   (exit $ac_status); } && {
36660          test -z "$ac_c_werror_flag" ||
36661          test ! -s conftest.err
36662        } && test -s conftest$ac_exeext &&
36663        $as_test_x conftest$ac_exeext; then
36664   eval wx_cv_func_$wx_func=yes
36665 else
36666   echo "$as_me: failed program was:" >&5
36667 sed 's/^/| /' conftest.$ac_ext >&5
36668
36669         eval wx_cv_func_$wx_func=no
36670 fi
36671
36672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36673       conftest$ac_exeext conftest.$ac_ext
36674
36675 fi
36676 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
36677                { echo "$as_me:$LINENO: result: $ac_res" >&5
36678 echo "${ECHO_T}$ac_res" >&6; }
36679
36680     if eval test \$wx_cv_func_$wx_func = yes
36681     then
36682       cat >>confdefs.h <<_ACEOF
36683 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
36684 _ACEOF
36685
36686
36687     else
36688       :
36689
36690     fi
36691   done
36692
36693 fi
36694
36695 ac_ext=cpp
36696 ac_cpp='$CXXCPP $CPPFLAGS'
36697 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36698 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36699 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36700
36701
36702   for wx_func in round
36703   do
36704     { echo "$as_me:$LINENO: checking for $wx_func" >&5
36705 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
36706 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
36707   echo $ECHO_N "(cached) $ECHO_C" >&6
36708 else
36709
36710         cat >conftest.$ac_ext <<_ACEOF
36711
36712             /* confdefs.h.  */
36713 _ACEOF
36714 cat confdefs.h >>conftest.$ac_ext
36715 cat >>conftest.$ac_ext <<_ACEOF
36716 /* end confdefs.h.  */
36717
36718                 #include <math.h>
36719                 $ac_includes_default
36720
36721 int
36722 main ()
36723 {
36724
36725                 #ifndef $wx_func
36726                   &$wx_func;
36727                 #endif
36728
36729
36730   ;
36731   return 0;
36732 }
36733
36734 _ACEOF
36735 rm -f conftest.$ac_objext conftest$ac_exeext
36736 if { (ac_try="$ac_link"
36737 case "(($ac_try" in
36738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36739   *) ac_try_echo=$ac_try;;
36740 esac
36741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36742   (eval "$ac_link") 2>conftest.er1
36743   ac_status=$?
36744   grep -v '^ *+' conftest.er1 >conftest.err
36745   rm -f conftest.er1
36746   cat conftest.err >&5
36747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36748   (exit $ac_status); } && {
36749          test -z "$ac_cxx_werror_flag" ||
36750          test ! -s conftest.err
36751        } && test -s conftest$ac_exeext &&
36752        $as_test_x conftest$ac_exeext; then
36753   eval wx_cv_func_$wx_func=yes
36754 else
36755   echo "$as_me: failed program was:" >&5
36756 sed 's/^/| /' conftest.$ac_ext >&5
36757
36758         eval wx_cv_func_$wx_func=no
36759 fi
36760
36761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36762       conftest$ac_exeext conftest.$ac_ext
36763
36764 fi
36765 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
36766                { echo "$as_me:$LINENO: result: $ac_res" >&5
36767 echo "${ECHO_T}$ac_res" >&6; }
36768
36769     if eval test \$wx_cv_func_$wx_func = yes
36770     then
36771       cat >>confdefs.h <<_ACEOF
36772 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
36773 _ACEOF
36774
36775
36776     else
36777       :
36778
36779     fi
36780   done
36781
36782 ac_ext=c
36783 ac_cpp='$CPP $CPPFLAGS'
36784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36787
36788
36789 if test "$TOOLKIT" != "MSW"; then
36790
36791 if test "$wxUSE_LIBICONV" != "no" ; then
36792
36793
36794
36795 # Check whether --with-libiconv-prefix was given.
36796 if test "${with_libiconv_prefix+set}" = set; then
36797   withval=$with_libiconv_prefix;
36798     for dir in `echo "$withval" | tr : ' '`; do
36799       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
36800       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
36801     done
36802
36803 fi
36804
36805
36806   { echo "$as_me:$LINENO: checking for iconv" >&5
36807 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
36808 if test "${am_cv_func_iconv+set}" = set; then
36809   echo $ECHO_N "(cached) $ECHO_C" >&6
36810 else
36811
36812     am_cv_func_iconv="no, consider installing GNU libiconv"
36813     am_cv_lib_iconv=no
36814     cat >conftest.$ac_ext <<_ACEOF
36815 /* confdefs.h.  */
36816 _ACEOF
36817 cat confdefs.h >>conftest.$ac_ext
36818 cat >>conftest.$ac_ext <<_ACEOF
36819 /* end confdefs.h.  */
36820 #include <stdlib.h>
36821 #include <iconv.h>
36822 int
36823 main ()
36824 {
36825 iconv_t cd = iconv_open("","");
36826        iconv(cd,NULL,NULL,NULL,NULL);
36827        iconv_close(cd);
36828   ;
36829   return 0;
36830 }
36831 _ACEOF
36832 rm -f conftest.$ac_objext conftest$ac_exeext
36833 if { (ac_try="$ac_link"
36834 case "(($ac_try" in
36835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36836   *) ac_try_echo=$ac_try;;
36837 esac
36838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36839   (eval "$ac_link") 2>conftest.er1
36840   ac_status=$?
36841   grep -v '^ *+' conftest.er1 >conftest.err
36842   rm -f conftest.er1
36843   cat conftest.err >&5
36844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36845   (exit $ac_status); } && {
36846          test -z "$ac_c_werror_flag" ||
36847          test ! -s conftest.err
36848        } && test -s conftest$ac_exeext &&
36849        $as_test_x conftest$ac_exeext; then
36850   am_cv_func_iconv=yes
36851 else
36852   echo "$as_me: failed program was:" >&5
36853 sed 's/^/| /' conftest.$ac_ext >&5
36854
36855
36856 fi
36857
36858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36859       conftest$ac_exeext conftest.$ac_ext
36860     if test "$am_cv_func_iconv" != yes; then
36861       am_save_LIBS="$LIBS"
36862       LIBS="$LIBS -liconv"
36863       cat >conftest.$ac_ext <<_ACEOF
36864 /* confdefs.h.  */
36865 _ACEOF
36866 cat confdefs.h >>conftest.$ac_ext
36867 cat >>conftest.$ac_ext <<_ACEOF
36868 /* end confdefs.h.  */
36869 #include <stdlib.h>
36870 #include <iconv.h>
36871 int
36872 main ()
36873 {
36874 iconv_t cd = iconv_open("","");
36875          iconv(cd,NULL,NULL,NULL,NULL);
36876          iconv_close(cd);
36877   ;
36878   return 0;
36879 }
36880 _ACEOF
36881 rm -f conftest.$ac_objext conftest$ac_exeext
36882 if { (ac_try="$ac_link"
36883 case "(($ac_try" in
36884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36885   *) ac_try_echo=$ac_try;;
36886 esac
36887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36888   (eval "$ac_link") 2>conftest.er1
36889   ac_status=$?
36890   grep -v '^ *+' conftest.er1 >conftest.err
36891   rm -f conftest.er1
36892   cat conftest.err >&5
36893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36894   (exit $ac_status); } && {
36895          test -z "$ac_c_werror_flag" ||
36896          test ! -s conftest.err
36897        } && test -s conftest$ac_exeext &&
36898        $as_test_x conftest$ac_exeext; then
36899   am_cv_lib_iconv=yes
36900         am_cv_func_iconv=yes
36901 else
36902   echo "$as_me: failed program was:" >&5
36903 sed 's/^/| /' conftest.$ac_ext >&5
36904
36905
36906 fi
36907
36908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36909       conftest$ac_exeext conftest.$ac_ext
36910       LIBS="$am_save_LIBS"
36911     fi
36912
36913 fi
36914 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
36915 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
36916   if test "$am_cv_func_iconv" = yes; then
36917
36918 cat >>confdefs.h <<\_ACEOF
36919 #define HAVE_ICONV 1
36920 _ACEOF
36921
36922     { echo "$as_me:$LINENO: checking if iconv needs const" >&5
36923 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6; }
36924 if test "${wx_cv_func_iconv_const+set}" = set; then
36925   echo $ECHO_N "(cached) $ECHO_C" >&6
36926 else
36927   cat >conftest.$ac_ext <<_ACEOF
36928 /* confdefs.h.  */
36929 _ACEOF
36930 cat confdefs.h >>conftest.$ac_ext
36931 cat >>conftest.$ac_ext <<_ACEOF
36932 /* end confdefs.h.  */
36933
36934 #include <stdlib.h>
36935 #include <iconv.h>
36936 extern
36937 #ifdef __cplusplus
36938 "C"
36939 #endif
36940 #if defined(__STDC__) || defined(__cplusplus)
36941 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
36942 #else
36943 size_t iconv();
36944 #endif
36945
36946 int
36947 main ()
36948 {
36949
36950   ;
36951   return 0;
36952 }
36953 _ACEOF
36954 rm -f conftest.$ac_objext
36955 if { (ac_try="$ac_compile"
36956 case "(($ac_try" in
36957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36958   *) ac_try_echo=$ac_try;;
36959 esac
36960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36961   (eval "$ac_compile") 2>conftest.er1
36962   ac_status=$?
36963   grep -v '^ *+' conftest.er1 >conftest.err
36964   rm -f conftest.er1
36965   cat conftest.err >&5
36966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36967   (exit $ac_status); } && {
36968          test -z "$ac_c_werror_flag" ||
36969          test ! -s conftest.err
36970        } && test -s conftest.$ac_objext; then
36971   wx_cv_func_iconv_const="no"
36972 else
36973   echo "$as_me: failed program was:" >&5
36974 sed 's/^/| /' conftest.$ac_ext >&5
36975
36976         wx_cv_func_iconv_const="yes"
36977
36978 fi
36979
36980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36981
36982 fi
36983 { echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
36984 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6; }
36985
36986     iconv_const=
36987     if test "x$wx_cv_func_iconv_const" = "xyes"; then
36988         iconv_const="const"
36989     fi
36990
36991
36992 cat >>confdefs.h <<_ACEOF
36993 #define ICONV_CONST $iconv_const
36994 _ACEOF
36995
36996   fi
36997   LIBICONV=
36998   if test "$am_cv_lib_iconv" = yes; then
36999     LIBICONV="-liconv"
37000   fi
37001
37002
37003     LIBS="$LIBICONV $LIBS"
37004 fi
37005
37006 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
37007
37008 for ac_func in sigaction
37009 do
37010 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37011 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37012 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37013 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37014   echo $ECHO_N "(cached) $ECHO_C" >&6
37015 else
37016   cat >conftest.$ac_ext <<_ACEOF
37017 /* confdefs.h.  */
37018 _ACEOF
37019 cat confdefs.h >>conftest.$ac_ext
37020 cat >>conftest.$ac_ext <<_ACEOF
37021 /* end confdefs.h.  */
37022 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37023    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37024 #define $ac_func innocuous_$ac_func
37025
37026 /* System header to define __stub macros and hopefully few prototypes,
37027     which can conflict with char $ac_func (); below.
37028     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37029     <limits.h> exists even on freestanding compilers.  */
37030
37031 #ifdef __STDC__
37032 # include <limits.h>
37033 #else
37034 # include <assert.h>
37035 #endif
37036
37037 #undef $ac_func
37038
37039 /* Override any GCC internal prototype to avoid an error.
37040    Use char because int might match the return type of a GCC
37041    builtin and then its argument prototype would still apply.  */
37042 #ifdef __cplusplus
37043 extern "C"
37044 #endif
37045 char $ac_func ();
37046 /* The GNU C library defines this for functions which it implements
37047     to always fail with ENOSYS.  Some functions are actually named
37048     something starting with __ and the normal name is an alias.  */
37049 #if defined __stub_$ac_func || defined __stub___$ac_func
37050 choke me
37051 #endif
37052
37053 int
37054 main ()
37055 {
37056 return $ac_func ();
37057   ;
37058   return 0;
37059 }
37060 _ACEOF
37061 rm -f conftest.$ac_objext conftest$ac_exeext
37062 if { (ac_try="$ac_link"
37063 case "(($ac_try" in
37064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37065   *) ac_try_echo=$ac_try;;
37066 esac
37067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37068   (eval "$ac_link") 2>conftest.er1
37069   ac_status=$?
37070   grep -v '^ *+' conftest.er1 >conftest.err
37071   rm -f conftest.er1
37072   cat conftest.err >&5
37073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37074   (exit $ac_status); } && {
37075          test -z "$ac_c_werror_flag" ||
37076          test ! -s conftest.err
37077        } && test -s conftest$ac_exeext &&
37078        $as_test_x conftest$ac_exeext; then
37079   eval "$as_ac_var=yes"
37080 else
37081   echo "$as_me: failed program was:" >&5
37082 sed 's/^/| /' conftest.$ac_ext >&5
37083
37084         eval "$as_ac_var=no"
37085 fi
37086
37087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37088       conftest$ac_exeext conftest.$ac_ext
37089 fi
37090 ac_res=`eval echo '${'$as_ac_var'}'`
37091                { echo "$as_me:$LINENO: result: $ac_res" >&5
37092 echo "${ECHO_T}$ac_res" >&6; }
37093 if test `eval echo '${'$as_ac_var'}'` = yes; then
37094   cat >>confdefs.h <<_ACEOF
37095 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37096 _ACEOF
37097
37098 fi
37099 done
37100
37101
37102     if test "$ac_cv_func_sigaction" = "no"; then
37103         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
37104 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
37105         wxUSE_ON_FATAL_EXCEPTION=no
37106     fi
37107
37108     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
37109       { echo "$as_me:$LINENO: checking for sa_handler type" >&5
37110 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6; }
37111 if test "${wx_cv_type_sa_handler+set}" = set; then
37112   echo $ECHO_N "(cached) $ECHO_C" >&6
37113 else
37114
37115                 ac_ext=cpp
37116 ac_cpp='$CXXCPP $CPPFLAGS'
37117 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37118 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37119 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37120
37121         cat >conftest.$ac_ext <<_ACEOF
37122 /* confdefs.h.  */
37123 _ACEOF
37124 cat confdefs.h >>conftest.$ac_ext
37125 cat >>conftest.$ac_ext <<_ACEOF
37126 /* end confdefs.h.  */
37127 #include <signal.h>
37128 int
37129 main ()
37130 {
37131
37132                         extern void testSigHandler(int);
37133
37134                         struct sigaction sa;
37135                         sa.sa_handler = testSigHandler;
37136
37137   ;
37138   return 0;
37139 }
37140 _ACEOF
37141 rm -f conftest.$ac_objext
37142 if { (ac_try="$ac_compile"
37143 case "(($ac_try" in
37144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37145   *) ac_try_echo=$ac_try;;
37146 esac
37147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37148   (eval "$ac_compile") 2>conftest.er1
37149   ac_status=$?
37150   grep -v '^ *+' conftest.er1 >conftest.err
37151   rm -f conftest.er1
37152   cat conftest.err >&5
37153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37154   (exit $ac_status); } && {
37155          test -z "$ac_cxx_werror_flag" ||
37156          test ! -s conftest.err
37157        } && test -s conftest.$ac_objext; then
37158
37159                         wx_cv_type_sa_handler=int
37160
37161 else
37162   echo "$as_me: failed program was:" >&5
37163 sed 's/^/| /' conftest.$ac_ext >&5
37164
37165
37166                         wx_cv_type_sa_handler=void
37167
37168 fi
37169
37170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37171         ac_ext=c
37172 ac_cpp='$CPP $CPPFLAGS'
37173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37176
37177
37178 fi
37179 { echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
37180 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6; }
37181
37182       cat >>confdefs.h <<_ACEOF
37183 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
37184 _ACEOF
37185
37186     fi
37187 fi
37188
37189 if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
37190     { echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
37191 echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6; }
37192 if test "${wx_cv_func_backtrace+set}" = set; then
37193   echo $ECHO_N "(cached) $ECHO_C" >&6
37194 else
37195
37196             ac_ext=cpp
37197 ac_cpp='$CXXCPP $CPPFLAGS'
37198 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37199 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37200 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37201
37202             cat >conftest.$ac_ext <<_ACEOF
37203 /* confdefs.h.  */
37204 _ACEOF
37205 cat confdefs.h >>conftest.$ac_ext
37206 cat >>conftest.$ac_ext <<_ACEOF
37207 /* end confdefs.h.  */
37208 #include <execinfo.h>
37209 int
37210 main ()
37211 {
37212
37213                     void *trace[1];
37214                     char **messages;
37215
37216                     backtrace(trace, 1);
37217                     messages = backtrace_symbols(trace, 1);
37218
37219   ;
37220   return 0;
37221 }
37222 _ACEOF
37223 rm -f conftest.$ac_objext
37224 if { (ac_try="$ac_compile"
37225 case "(($ac_try" in
37226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37227   *) ac_try_echo=$ac_try;;
37228 esac
37229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37230   (eval "$ac_compile") 2>conftest.er1
37231   ac_status=$?
37232   grep -v '^ *+' conftest.er1 >conftest.err
37233   rm -f conftest.er1
37234   cat conftest.err >&5
37235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37236   (exit $ac_status); } && {
37237          test -z "$ac_cxx_werror_flag" ||
37238          test ! -s conftest.err
37239        } && test -s conftest.$ac_objext; then
37240   wx_cv_func_backtrace=yes
37241 else
37242   echo "$as_me: failed program was:" >&5
37243 sed 's/^/| /' conftest.$ac_ext >&5
37244
37245         wx_cv_func_backtrace=no
37246
37247 fi
37248
37249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37250             ac_ext=c
37251 ac_cpp='$CPP $CPPFLAGS'
37252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37255
37256
37257
37258 fi
37259 { echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
37260 echo "${ECHO_T}$wx_cv_func_backtrace" >&6; }
37261
37262
37263     if test "$wx_cv_func_backtrace" = "no"; then
37264         { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
37265 echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
37266         wxUSE_STACKWALKER=no
37267     else
37268         { echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
37269 echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6; }
37270 if test "${wx_cv_func_cxa_demangle+set}" = set; then
37271   echo $ECHO_N "(cached) $ECHO_C" >&6
37272 else
37273
37274                 ac_ext=cpp
37275 ac_cpp='$CXXCPP $CPPFLAGS'
37276 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37277 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37278 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37279
37280                 cat >conftest.$ac_ext <<_ACEOF
37281 /* confdefs.h.  */
37282 _ACEOF
37283 cat confdefs.h >>conftest.$ac_ext
37284 cat >>conftest.$ac_ext <<_ACEOF
37285 /* end confdefs.h.  */
37286 #include <cxxabi.h>
37287 int
37288 main ()
37289 {
37290
37291                         int rc;
37292                         __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
37293
37294   ;
37295   return 0;
37296 }
37297 _ACEOF
37298 rm -f conftest.$ac_objext conftest$ac_exeext
37299 if { (ac_try="$ac_link"
37300 case "(($ac_try" in
37301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37302   *) ac_try_echo=$ac_try;;
37303 esac
37304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37305   (eval "$ac_link") 2>conftest.er1
37306   ac_status=$?
37307   grep -v '^ *+' conftest.er1 >conftest.err
37308   rm -f conftest.er1
37309   cat conftest.err >&5
37310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37311   (exit $ac_status); } && {
37312          test -z "$ac_cxx_werror_flag" ||
37313          test ! -s conftest.err
37314        } && test -s conftest$ac_exeext &&
37315        $as_test_x conftest$ac_exeext; then
37316   wx_cv_func_cxa_demangle=yes
37317 else
37318   echo "$as_me: failed program was:" >&5
37319 sed 's/^/| /' conftest.$ac_ext >&5
37320
37321         wx_cv_func_cxa_demangle=no
37322
37323 fi
37324
37325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37326       conftest$ac_exeext conftest.$ac_ext
37327                 ac_ext=c
37328 ac_cpp='$CPP $CPPFLAGS'
37329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37332
37333
37334
37335 fi
37336 { echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
37337 echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6; }
37338
37339         if test "$wx_cv_func_cxa_demangle" = "yes"; then
37340             cat >>confdefs.h <<\_ACEOF
37341 #define HAVE_CXA_DEMANGLE 1
37342 _ACEOF
37343
37344         fi
37345     fi
37346 fi
37347
37348 if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != 1 -a "$USE_UNIX" != 1; then
37349     { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
37350 echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
37351     wxUSE_STACKWALKER=no
37352 fi
37353
37354
37355
37356
37357 for ac_func in mkstemp mktemp
37358 do
37359 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37360 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37361 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37362 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37363   echo $ECHO_N "(cached) $ECHO_C" >&6
37364 else
37365   cat >conftest.$ac_ext <<_ACEOF
37366 /* confdefs.h.  */
37367 _ACEOF
37368 cat confdefs.h >>conftest.$ac_ext
37369 cat >>conftest.$ac_ext <<_ACEOF
37370 /* end confdefs.h.  */
37371 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37372    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37373 #define $ac_func innocuous_$ac_func
37374
37375 /* System header to define __stub macros and hopefully few prototypes,
37376     which can conflict with char $ac_func (); below.
37377     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37378     <limits.h> exists even on freestanding compilers.  */
37379
37380 #ifdef __STDC__
37381 # include <limits.h>
37382 #else
37383 # include <assert.h>
37384 #endif
37385
37386 #undef $ac_func
37387
37388 /* Override any GCC internal prototype to avoid an error.
37389    Use char because int might match the return type of a GCC
37390    builtin and then its argument prototype would still apply.  */
37391 #ifdef __cplusplus
37392 extern "C"
37393 #endif
37394 char $ac_func ();
37395 /* The GNU C library defines this for functions which it implements
37396     to always fail with ENOSYS.  Some functions are actually named
37397     something starting with __ and the normal name is an alias.  */
37398 #if defined __stub_$ac_func || defined __stub___$ac_func
37399 choke me
37400 #endif
37401
37402 int
37403 main ()
37404 {
37405 return $ac_func ();
37406   ;
37407   return 0;
37408 }
37409 _ACEOF
37410 rm -f conftest.$ac_objext conftest$ac_exeext
37411 if { (ac_try="$ac_link"
37412 case "(($ac_try" in
37413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37414   *) ac_try_echo=$ac_try;;
37415 esac
37416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37417   (eval "$ac_link") 2>conftest.er1
37418   ac_status=$?
37419   grep -v '^ *+' conftest.er1 >conftest.err
37420   rm -f conftest.er1
37421   cat conftest.err >&5
37422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37423   (exit $ac_status); } && {
37424          test -z "$ac_c_werror_flag" ||
37425          test ! -s conftest.err
37426        } && test -s conftest$ac_exeext &&
37427        $as_test_x conftest$ac_exeext; then
37428   eval "$as_ac_var=yes"
37429 else
37430   echo "$as_me: failed program was:" >&5
37431 sed 's/^/| /' conftest.$ac_ext >&5
37432
37433         eval "$as_ac_var=no"
37434 fi
37435
37436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37437       conftest$ac_exeext conftest.$ac_ext
37438 fi
37439 ac_res=`eval echo '${'$as_ac_var'}'`
37440                { echo "$as_me:$LINENO: result: $ac_res" >&5
37441 echo "${ECHO_T}$ac_res" >&6; }
37442 if test `eval echo '${'$as_ac_var'}'` = yes; then
37443   cat >>confdefs.h <<_ACEOF
37444 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37445 _ACEOF
37446  break
37447 fi
37448 done
37449
37450
37451 { echo "$as_me:$LINENO: checking for statfs" >&5
37452 echo $ECHO_N "checking for statfs... $ECHO_C" >&6; }
37453 if test "${wx_cv_func_statfs+set}" = set; then
37454   echo $ECHO_N "(cached) $ECHO_C" >&6
37455 else
37456   cat >conftest.$ac_ext <<_ACEOF
37457 /* confdefs.h.  */
37458 _ACEOF
37459 cat confdefs.h >>conftest.$ac_ext
37460 cat >>conftest.$ac_ext <<_ACEOF
37461 /* end confdefs.h.  */
37462
37463              #if defined(__BSD__)
37464              #include <sys/param.h>
37465              #include <sys/mount.h>
37466              #else
37467              #include <sys/vfs.h>
37468              #endif
37469
37470 int
37471 main ()
37472 {
37473
37474              long l;
37475              struct statfs fs;
37476              statfs("/", &fs);
37477              l = fs.f_bsize;
37478              l += fs.f_blocks;
37479              l += fs.f_bavail;
37480
37481   ;
37482   return 0;
37483 }
37484 _ACEOF
37485 rm -f conftest.$ac_objext
37486 if { (ac_try="$ac_compile"
37487 case "(($ac_try" in
37488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37489   *) ac_try_echo=$ac_try;;
37490 esac
37491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37492   (eval "$ac_compile") 2>conftest.er1
37493   ac_status=$?
37494   grep -v '^ *+' conftest.er1 >conftest.err
37495   rm -f conftest.er1
37496   cat conftest.err >&5
37497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37498   (exit $ac_status); } && {
37499          test -z "$ac_c_werror_flag" ||
37500          test ! -s conftest.err
37501        } && test -s conftest.$ac_objext; then
37502   wx_cv_func_statfs=yes
37503 else
37504   echo "$as_me: failed program was:" >&5
37505 sed 's/^/| /' conftest.$ac_ext >&5
37506
37507         wx_cv_func_statfs=no
37508
37509 fi
37510
37511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37512
37513 fi
37514 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
37515 echo "${ECHO_T}$wx_cv_func_statfs" >&6; }
37516
37517 if test "$wx_cv_func_statfs" = "yes"; then
37518         { echo "$as_me:$LINENO: checking for statfs declaration" >&5
37519 echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6; }
37520 if test "${wx_cv_func_statfs_decl+set}" = set; then
37521   echo $ECHO_N "(cached) $ECHO_C" >&6
37522 else
37523   ac_ext=cpp
37524 ac_cpp='$CXXCPP $CPPFLAGS'
37525 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37526 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37527 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37528
37529         cat >conftest.$ac_ext <<_ACEOF
37530 /* confdefs.h.  */
37531 _ACEOF
37532 cat confdefs.h >>conftest.$ac_ext
37533 cat >>conftest.$ac_ext <<_ACEOF
37534 /* end confdefs.h.  */
37535
37536                  #if defined(__BSD__)
37537                  #include <sys/param.h>
37538                  #include <sys/mount.h>
37539                  #else
37540                  #include <sys/vfs.h>
37541                  #endif
37542
37543 int
37544 main ()
37545 {
37546
37547                 struct statfs fs;
37548                 statfs("", &fs);
37549
37550   ;
37551   return 0;
37552 }
37553 _ACEOF
37554 rm -f conftest.$ac_objext
37555 if { (ac_try="$ac_compile"
37556 case "(($ac_try" in
37557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37558   *) ac_try_echo=$ac_try;;
37559 esac
37560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37561   (eval "$ac_compile") 2>conftest.er1
37562   ac_status=$?
37563   grep -v '^ *+' conftest.er1 >conftest.err
37564   rm -f conftest.er1
37565   cat conftest.err >&5
37566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37567   (exit $ac_status); } && {
37568          test -z "$ac_cxx_werror_flag" ||
37569          test ! -s conftest.err
37570        } && test -s conftest.$ac_objext; then
37571   wx_cv_func_statfs_decl=yes
37572 else
37573   echo "$as_me: failed program was:" >&5
37574 sed 's/^/| /' conftest.$ac_ext >&5
37575
37576         wx_cv_func_statfs_decl=no
37577
37578 fi
37579
37580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37581         ac_ext=c
37582 ac_cpp='$CPP $CPPFLAGS'
37583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37586
37587
37588 fi
37589 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
37590 echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6; }
37591
37592     if test "$wx_cv_func_statfs_decl" = "yes"; then
37593         cat >>confdefs.h <<\_ACEOF
37594 #define HAVE_STATFS_DECL 1
37595 _ACEOF
37596
37597     fi
37598
37599     wx_cv_type_statvfs_t="struct statfs"
37600     cat >>confdefs.h <<\_ACEOF
37601 #define HAVE_STATFS 1
37602 _ACEOF
37603
37604 else
37605     { echo "$as_me:$LINENO: checking for statvfs" >&5
37606 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6; }
37607 if test "${wx_cv_func_statvfs+set}" = set; then
37608   echo $ECHO_N "(cached) $ECHO_C" >&6
37609 else
37610   cat >conftest.$ac_ext <<_ACEOF
37611 /* confdefs.h.  */
37612 _ACEOF
37613 cat confdefs.h >>conftest.$ac_ext
37614 cat >>conftest.$ac_ext <<_ACEOF
37615 /* end confdefs.h.  */
37616
37617                 #include <stddef.h>
37618                 #include <sys/statvfs.h>
37619
37620 int
37621 main ()
37622 {
37623
37624                 statvfs("/", NULL);
37625
37626   ;
37627   return 0;
37628 }
37629 _ACEOF
37630 rm -f conftest.$ac_objext
37631 if { (ac_try="$ac_compile"
37632 case "(($ac_try" in
37633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37634   *) ac_try_echo=$ac_try;;
37635 esac
37636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37637   (eval "$ac_compile") 2>conftest.er1
37638   ac_status=$?
37639   grep -v '^ *+' conftest.er1 >conftest.err
37640   rm -f conftest.er1
37641   cat conftest.err >&5
37642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37643   (exit $ac_status); } && {
37644          test -z "$ac_c_werror_flag" ||
37645          test ! -s conftest.err
37646        } && test -s conftest.$ac_objext; then
37647   wx_cv_func_statvfs=yes
37648 else
37649   echo "$as_me: failed program was:" >&5
37650 sed 's/^/| /' conftest.$ac_ext >&5
37651
37652         wx_cv_func_statvfs=no
37653
37654 fi
37655
37656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37657
37658 fi
37659 { echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
37660 echo "${ECHO_T}$wx_cv_func_statvfs" >&6; }
37661
37662     if test "$wx_cv_func_statvfs" = "yes"; then
37663                                                                 { echo "$as_me:$LINENO: checking for statvfs argument type" >&5
37664 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6; }
37665 if test "${wx_cv_type_statvfs_t+set}" = set; then
37666   echo $ECHO_N "(cached) $ECHO_C" >&6
37667 else
37668   ac_ext=cpp
37669 ac_cpp='$CXXCPP $CPPFLAGS'
37670 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37671 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37672 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37673
37674             cat >conftest.$ac_ext <<_ACEOF
37675 /* confdefs.h.  */
37676 _ACEOF
37677 cat confdefs.h >>conftest.$ac_ext
37678 cat >>conftest.$ac_ext <<_ACEOF
37679 /* end confdefs.h.  */
37680
37681                     #include <sys/statvfs.h>
37682
37683 int
37684 main ()
37685 {
37686
37687                     long l;
37688                     statvfs_t fs;
37689                     statvfs("/", &fs);
37690                     l = fs.f_bsize;
37691                     l += fs.f_blocks;
37692                     l += fs.f_bavail;
37693
37694   ;
37695   return 0;
37696 }
37697 _ACEOF
37698 rm -f conftest.$ac_objext
37699 if { (ac_try="$ac_compile"
37700 case "(($ac_try" in
37701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37702   *) ac_try_echo=$ac_try;;
37703 esac
37704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37705   (eval "$ac_compile") 2>conftest.er1
37706   ac_status=$?
37707   grep -v '^ *+' conftest.er1 >conftest.err
37708   rm -f conftest.er1
37709   cat conftest.err >&5
37710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37711   (exit $ac_status); } && {
37712          test -z "$ac_cxx_werror_flag" ||
37713          test ! -s conftest.err
37714        } && test -s conftest.$ac_objext; then
37715   wx_cv_type_statvfs_t=statvfs_t
37716 else
37717   echo "$as_me: failed program was:" >&5
37718 sed 's/^/| /' conftest.$ac_ext >&5
37719
37720
37721                     cat >conftest.$ac_ext <<_ACEOF
37722 /* confdefs.h.  */
37723 _ACEOF
37724 cat confdefs.h >>conftest.$ac_ext
37725 cat >>conftest.$ac_ext <<_ACEOF
37726 /* end confdefs.h.  */
37727
37728                             #include <sys/statvfs.h>
37729
37730 int
37731 main ()
37732 {
37733
37734                             long l;
37735                             struct statvfs fs;
37736                             statvfs("/", &fs);
37737                             l = fs.f_bsize;
37738                             l += fs.f_blocks;
37739                             l += fs.f_bavail;
37740
37741   ;
37742   return 0;
37743 }
37744 _ACEOF
37745 rm -f conftest.$ac_objext
37746 if { (ac_try="$ac_compile"
37747 case "(($ac_try" in
37748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37749   *) ac_try_echo=$ac_try;;
37750 esac
37751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37752   (eval "$ac_compile") 2>conftest.er1
37753   ac_status=$?
37754   grep -v '^ *+' conftest.er1 >conftest.err
37755   rm -f conftest.er1
37756   cat conftest.err >&5
37757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37758   (exit $ac_status); } && {
37759          test -z "$ac_cxx_werror_flag" ||
37760          test ! -s conftest.err
37761        } && test -s conftest.$ac_objext; then
37762   wx_cv_type_statvfs_t="struct statvfs"
37763 else
37764   echo "$as_me: failed program was:" >&5
37765 sed 's/^/| /' conftest.$ac_ext >&5
37766
37767         wx_cv_type_statvfs_t="unknown"
37768
37769 fi
37770
37771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37772
37773
37774 fi
37775
37776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37777             ac_ext=c
37778 ac_cpp='$CPP $CPPFLAGS'
37779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37782
37783
37784 fi
37785 { echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
37786 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6; }
37787
37788         if test "$wx_cv_type_statvfs_t" != "unknown"; then
37789             cat >>confdefs.h <<\_ACEOF
37790 #define HAVE_STATVFS 1
37791 _ACEOF
37792
37793         fi
37794     else
37795                 wx_cv_type_statvfs_t="unknown"
37796     fi
37797 fi
37798
37799 if test "$wx_cv_type_statvfs_t" != "unknown"; then
37800     cat >>confdefs.h <<_ACEOF
37801 #define WX_STATFS_T $wx_cv_type_statvfs_t
37802 _ACEOF
37803
37804 else
37805     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
37806 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
37807 fi
37808
37809 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
37810
37811
37812 for ac_func in fcntl flock
37813 do
37814 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37815 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37816 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37817 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37818   echo $ECHO_N "(cached) $ECHO_C" >&6
37819 else
37820   cat >conftest.$ac_ext <<_ACEOF
37821 /* confdefs.h.  */
37822 _ACEOF
37823 cat confdefs.h >>conftest.$ac_ext
37824 cat >>conftest.$ac_ext <<_ACEOF
37825 /* end confdefs.h.  */
37826 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37827    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37828 #define $ac_func innocuous_$ac_func
37829
37830 /* System header to define __stub macros and hopefully few prototypes,
37831     which can conflict with char $ac_func (); below.
37832     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37833     <limits.h> exists even on freestanding compilers.  */
37834
37835 #ifdef __STDC__
37836 # include <limits.h>
37837 #else
37838 # include <assert.h>
37839 #endif
37840
37841 #undef $ac_func
37842
37843 /* Override any GCC internal prototype to avoid an error.
37844    Use char because int might match the return type of a GCC
37845    builtin and then its argument prototype would still apply.  */
37846 #ifdef __cplusplus
37847 extern "C"
37848 #endif
37849 char $ac_func ();
37850 /* The GNU C library defines this for functions which it implements
37851     to always fail with ENOSYS.  Some functions are actually named
37852     something starting with __ and the normal name is an alias.  */
37853 #if defined __stub_$ac_func || defined __stub___$ac_func
37854 choke me
37855 #endif
37856
37857 int
37858 main ()
37859 {
37860 return $ac_func ();
37861   ;
37862   return 0;
37863 }
37864 _ACEOF
37865 rm -f conftest.$ac_objext conftest$ac_exeext
37866 if { (ac_try="$ac_link"
37867 case "(($ac_try" in
37868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37869   *) ac_try_echo=$ac_try;;
37870 esac
37871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37872   (eval "$ac_link") 2>conftest.er1
37873   ac_status=$?
37874   grep -v '^ *+' conftest.er1 >conftest.err
37875   rm -f conftest.er1
37876   cat conftest.err >&5
37877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37878   (exit $ac_status); } && {
37879          test -z "$ac_c_werror_flag" ||
37880          test ! -s conftest.err
37881        } && test -s conftest$ac_exeext &&
37882        $as_test_x conftest$ac_exeext; then
37883   eval "$as_ac_var=yes"
37884 else
37885   echo "$as_me: failed program was:" >&5
37886 sed 's/^/| /' conftest.$ac_ext >&5
37887
37888         eval "$as_ac_var=no"
37889 fi
37890
37891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37892       conftest$ac_exeext conftest.$ac_ext
37893 fi
37894 ac_res=`eval echo '${'$as_ac_var'}'`
37895                { echo "$as_me:$LINENO: result: $ac_res" >&5
37896 echo "${ECHO_T}$ac_res" >&6; }
37897 if test `eval echo '${'$as_ac_var'}'` = yes; then
37898   cat >>confdefs.h <<_ACEOF
37899 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37900 _ACEOF
37901  break
37902 fi
37903 done
37904
37905
37906     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
37907         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
37908 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
37909         wxUSE_SNGLINST_CHECKER=no
37910     fi
37911 fi
37912
37913
37914
37915 for ac_func in setenv putenv
37916 do
37917 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37918 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37919 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37920 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37921   echo $ECHO_N "(cached) $ECHO_C" >&6
37922 else
37923   cat >conftest.$ac_ext <<_ACEOF
37924 /* confdefs.h.  */
37925 _ACEOF
37926 cat confdefs.h >>conftest.$ac_ext
37927 cat >>conftest.$ac_ext <<_ACEOF
37928 /* end confdefs.h.  */
37929 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37930    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37931 #define $ac_func innocuous_$ac_func
37932
37933 /* System header to define __stub macros and hopefully few prototypes,
37934     which can conflict with char $ac_func (); below.
37935     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37936     <limits.h> exists even on freestanding compilers.  */
37937
37938 #ifdef __STDC__
37939 # include <limits.h>
37940 #else
37941 # include <assert.h>
37942 #endif
37943
37944 #undef $ac_func
37945
37946 /* Override any GCC internal prototype to avoid an error.
37947    Use char because int might match the return type of a GCC
37948    builtin and then its argument prototype would still apply.  */
37949 #ifdef __cplusplus
37950 extern "C"
37951 #endif
37952 char $ac_func ();
37953 /* The GNU C library defines this for functions which it implements
37954     to always fail with ENOSYS.  Some functions are actually named
37955     something starting with __ and the normal name is an alias.  */
37956 #if defined __stub_$ac_func || defined __stub___$ac_func
37957 choke me
37958 #endif
37959
37960 int
37961 main ()
37962 {
37963 return $ac_func ();
37964   ;
37965   return 0;
37966 }
37967 _ACEOF
37968 rm -f conftest.$ac_objext conftest$ac_exeext
37969 if { (ac_try="$ac_link"
37970 case "(($ac_try" in
37971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37972   *) ac_try_echo=$ac_try;;
37973 esac
37974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37975   (eval "$ac_link") 2>conftest.er1
37976   ac_status=$?
37977   grep -v '^ *+' conftest.er1 >conftest.err
37978   rm -f conftest.er1
37979   cat conftest.err >&5
37980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37981   (exit $ac_status); } && {
37982          test -z "$ac_c_werror_flag" ||
37983          test ! -s conftest.err
37984        } && test -s conftest$ac_exeext &&
37985        $as_test_x conftest$ac_exeext; then
37986   eval "$as_ac_var=yes"
37987 else
37988   echo "$as_me: failed program was:" >&5
37989 sed 's/^/| /' conftest.$ac_ext >&5
37990
37991         eval "$as_ac_var=no"
37992 fi
37993
37994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37995       conftest$ac_exeext conftest.$ac_ext
37996 fi
37997 ac_res=`eval echo '${'$as_ac_var'}'`
37998                { echo "$as_me:$LINENO: result: $ac_res" >&5
37999 echo "${ECHO_T}$ac_res" >&6; }
38000 if test `eval echo '${'$as_ac_var'}'` = yes; then
38001   cat >>confdefs.h <<_ACEOF
38002 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38003 _ACEOF
38004  break
38005 fi
38006 done
38007
38008 if test "$ac_cv_func_setenv" = "yes"; then
38009
38010 for ac_func in unsetenv
38011 do
38012 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38013 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38014 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38015 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38016   echo $ECHO_N "(cached) $ECHO_C" >&6
38017 else
38018   cat >conftest.$ac_ext <<_ACEOF
38019 /* confdefs.h.  */
38020 _ACEOF
38021 cat confdefs.h >>conftest.$ac_ext
38022 cat >>conftest.$ac_ext <<_ACEOF
38023 /* end confdefs.h.  */
38024 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38025    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38026 #define $ac_func innocuous_$ac_func
38027
38028 /* System header to define __stub macros and hopefully few prototypes,
38029     which can conflict with char $ac_func (); below.
38030     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38031     <limits.h> exists even on freestanding compilers.  */
38032
38033 #ifdef __STDC__
38034 # include <limits.h>
38035 #else
38036 # include <assert.h>
38037 #endif
38038
38039 #undef $ac_func
38040
38041 /* Override any GCC internal prototype to avoid an error.
38042    Use char because int might match the return type of a GCC
38043    builtin and then its argument prototype would still apply.  */
38044 #ifdef __cplusplus
38045 extern "C"
38046 #endif
38047 char $ac_func ();
38048 /* The GNU C library defines this for functions which it implements
38049     to always fail with ENOSYS.  Some functions are actually named
38050     something starting with __ and the normal name is an alias.  */
38051 #if defined __stub_$ac_func || defined __stub___$ac_func
38052 choke me
38053 #endif
38054
38055 int
38056 main ()
38057 {
38058 return $ac_func ();
38059   ;
38060   return 0;
38061 }
38062 _ACEOF
38063 rm -f conftest.$ac_objext conftest$ac_exeext
38064 if { (ac_try="$ac_link"
38065 case "(($ac_try" in
38066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38067   *) ac_try_echo=$ac_try;;
38068 esac
38069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38070   (eval "$ac_link") 2>conftest.er1
38071   ac_status=$?
38072   grep -v '^ *+' conftest.er1 >conftest.err
38073   rm -f conftest.er1
38074   cat conftest.err >&5
38075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38076   (exit $ac_status); } && {
38077          test -z "$ac_c_werror_flag" ||
38078          test ! -s conftest.err
38079        } && test -s conftest$ac_exeext &&
38080        $as_test_x conftest$ac_exeext; then
38081   eval "$as_ac_var=yes"
38082 else
38083   echo "$as_me: failed program was:" >&5
38084 sed 's/^/| /' conftest.$ac_ext >&5
38085
38086         eval "$as_ac_var=no"
38087 fi
38088
38089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38090       conftest$ac_exeext conftest.$ac_ext
38091 fi
38092 ac_res=`eval echo '${'$as_ac_var'}'`
38093                { echo "$as_me:$LINENO: result: $ac_res" >&5
38094 echo "${ECHO_T}$ac_res" >&6; }
38095 if test `eval echo '${'$as_ac_var'}'` = yes; then
38096   cat >>confdefs.h <<_ACEOF
38097 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38098 _ACEOF
38099
38100 fi
38101 done
38102
38103 fi
38104
38105 HAVE_SOME_SLEEP_FUNC=0
38106 if test "$USE_BEOS" = 1; then
38107             cat >>confdefs.h <<\_ACEOF
38108 #define HAVE_SLEEP 1
38109 _ACEOF
38110
38111     HAVE_SOME_SLEEP_FUNC=1
38112 fi
38113
38114 if test "$USE_DARWIN" = 1; then
38115             cat >>confdefs.h <<\_ACEOF
38116 #define HAVE_USLEEP 1
38117 _ACEOF
38118
38119     HAVE_SOME_SLEEP_FUNC=1
38120 fi
38121
38122 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
38123         POSIX4_LINK=
38124
38125 for ac_func in nanosleep
38126 do
38127 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38128 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38129 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38130 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38131   echo $ECHO_N "(cached) $ECHO_C" >&6
38132 else
38133   cat >conftest.$ac_ext <<_ACEOF
38134 /* confdefs.h.  */
38135 _ACEOF
38136 cat confdefs.h >>conftest.$ac_ext
38137 cat >>conftest.$ac_ext <<_ACEOF
38138 /* end confdefs.h.  */
38139 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38140    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38141 #define $ac_func innocuous_$ac_func
38142
38143 /* System header to define __stub macros and hopefully few prototypes,
38144     which can conflict with char $ac_func (); below.
38145     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38146     <limits.h> exists even on freestanding compilers.  */
38147
38148 #ifdef __STDC__
38149 # include <limits.h>
38150 #else
38151 # include <assert.h>
38152 #endif
38153
38154 #undef $ac_func
38155
38156 /* Override any GCC internal prototype to avoid an error.
38157    Use char because int might match the return type of a GCC
38158    builtin and then its argument prototype would still apply.  */
38159 #ifdef __cplusplus
38160 extern "C"
38161 #endif
38162 char $ac_func ();
38163 /* The GNU C library defines this for functions which it implements
38164     to always fail with ENOSYS.  Some functions are actually named
38165     something starting with __ and the normal name is an alias.  */
38166 #if defined __stub_$ac_func || defined __stub___$ac_func
38167 choke me
38168 #endif
38169
38170 int
38171 main ()
38172 {
38173 return $ac_func ();
38174   ;
38175   return 0;
38176 }
38177 _ACEOF
38178 rm -f conftest.$ac_objext conftest$ac_exeext
38179 if { (ac_try="$ac_link"
38180 case "(($ac_try" in
38181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38182   *) ac_try_echo=$ac_try;;
38183 esac
38184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38185   (eval "$ac_link") 2>conftest.er1
38186   ac_status=$?
38187   grep -v '^ *+' conftest.er1 >conftest.err
38188   rm -f conftest.er1
38189   cat conftest.err >&5
38190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38191   (exit $ac_status); } && {
38192          test -z "$ac_c_werror_flag" ||
38193          test ! -s conftest.err
38194        } && test -s conftest$ac_exeext &&
38195        $as_test_x conftest$ac_exeext; then
38196   eval "$as_ac_var=yes"
38197 else
38198   echo "$as_me: failed program was:" >&5
38199 sed 's/^/| /' conftest.$ac_ext >&5
38200
38201         eval "$as_ac_var=no"
38202 fi
38203
38204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38205       conftest$ac_exeext conftest.$ac_ext
38206 fi
38207 ac_res=`eval echo '${'$as_ac_var'}'`
38208                { echo "$as_me:$LINENO: result: $ac_res" >&5
38209 echo "${ECHO_T}$ac_res" >&6; }
38210 if test `eval echo '${'$as_ac_var'}'` = yes; then
38211   cat >>confdefs.h <<_ACEOF
38212 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38213 _ACEOF
38214  cat >>confdefs.h <<\_ACEOF
38215 #define HAVE_NANOSLEEP 1
38216 _ACEOF
38217
38218 else
38219
38220             { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
38221 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; }
38222 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
38223   echo $ECHO_N "(cached) $ECHO_C" >&6
38224 else
38225   ac_check_lib_save_LIBS=$LIBS
38226 LIBS="-lposix4  $LIBS"
38227 cat >conftest.$ac_ext <<_ACEOF
38228 /* confdefs.h.  */
38229 _ACEOF
38230 cat confdefs.h >>conftest.$ac_ext
38231 cat >>conftest.$ac_ext <<_ACEOF
38232 /* end confdefs.h.  */
38233
38234 /* Override any GCC internal prototype to avoid an error.
38235    Use char because int might match the return type of a GCC
38236    builtin and then its argument prototype would still apply.  */
38237 #ifdef __cplusplus
38238 extern "C"
38239 #endif
38240 char nanosleep ();
38241 int
38242 main ()
38243 {
38244 return nanosleep ();
38245   ;
38246   return 0;
38247 }
38248 _ACEOF
38249 rm -f conftest.$ac_objext conftest$ac_exeext
38250 if { (ac_try="$ac_link"
38251 case "(($ac_try" in
38252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38253   *) ac_try_echo=$ac_try;;
38254 esac
38255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38256   (eval "$ac_link") 2>conftest.er1
38257   ac_status=$?
38258   grep -v '^ *+' conftest.er1 >conftest.err
38259   rm -f conftest.er1
38260   cat conftest.err >&5
38261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38262   (exit $ac_status); } && {
38263          test -z "$ac_c_werror_flag" ||
38264          test ! -s conftest.err
38265        } && test -s conftest$ac_exeext &&
38266        $as_test_x conftest$ac_exeext; then
38267   ac_cv_lib_posix4_nanosleep=yes
38268 else
38269   echo "$as_me: failed program was:" >&5
38270 sed 's/^/| /' conftest.$ac_ext >&5
38271
38272         ac_cv_lib_posix4_nanosleep=no
38273 fi
38274
38275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38276       conftest$ac_exeext conftest.$ac_ext
38277 LIBS=$ac_check_lib_save_LIBS
38278 fi
38279 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
38280 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; }
38281 if test $ac_cv_lib_posix4_nanosleep = yes; then
38282
38283                     cat >>confdefs.h <<\_ACEOF
38284 #define HAVE_NANOSLEEP 1
38285 _ACEOF
38286
38287                     POSIX4_LINK=" -lposix4"
38288
38289 else
38290
38291
38292   for wx_func in usleep
38293   do
38294     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38295 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38296 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38297   echo $ECHO_N "(cached) $ECHO_C" >&6
38298 else
38299
38300         cat >conftest.$ac_ext <<_ACEOF
38301
38302             /* confdefs.h.  */
38303 _ACEOF
38304 cat confdefs.h >>conftest.$ac_ext
38305 cat >>conftest.$ac_ext <<_ACEOF
38306 /* end confdefs.h.  */
38307
38308
38309                 $ac_includes_default
38310
38311 int
38312 main ()
38313 {
38314
38315                 #ifndef $wx_func
38316                   &$wx_func;
38317                 #endif
38318
38319
38320   ;
38321   return 0;
38322 }
38323
38324 _ACEOF
38325 rm -f conftest.$ac_objext conftest$ac_exeext
38326 if { (ac_try="$ac_link"
38327 case "(($ac_try" in
38328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38329   *) ac_try_echo=$ac_try;;
38330 esac
38331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38332   (eval "$ac_link") 2>conftest.er1
38333   ac_status=$?
38334   grep -v '^ *+' conftest.er1 >conftest.err
38335   rm -f conftest.er1
38336   cat conftest.err >&5
38337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38338   (exit $ac_status); } && {
38339          test -z "$ac_c_werror_flag" ||
38340          test ! -s conftest.err
38341        } && test -s conftest$ac_exeext &&
38342        $as_test_x conftest$ac_exeext; then
38343   eval wx_cv_func_$wx_func=yes
38344 else
38345   echo "$as_me: failed program was:" >&5
38346 sed 's/^/| /' conftest.$ac_ext >&5
38347
38348         eval wx_cv_func_$wx_func=no
38349 fi
38350
38351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38352       conftest$ac_exeext conftest.$ac_ext
38353
38354 fi
38355 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38356                { echo "$as_me:$LINENO: result: $ac_res" >&5
38357 echo "${ECHO_T}$ac_res" >&6; }
38358
38359     if eval test \$wx_cv_func_$wx_func = yes
38360     then
38361       cat >>confdefs.h <<_ACEOF
38362 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38363 _ACEOF
38364
38365
38366     else
38367       :
38368       { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
38369 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
38370
38371     fi
38372   done
38373
38374
38375
38376 fi
38377
38378
38379
38380 fi
38381 done
38382
38383 fi
38384
38385
38386   for wx_func in uname
38387   do
38388     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38389 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38390 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38391   echo $ECHO_N "(cached) $ECHO_C" >&6
38392 else
38393
38394         cat >conftest.$ac_ext <<_ACEOF
38395
38396             /* confdefs.h.  */
38397 _ACEOF
38398 cat confdefs.h >>conftest.$ac_ext
38399 cat >>conftest.$ac_ext <<_ACEOF
38400 /* end confdefs.h.  */
38401
38402                 #include <sys/utsname.h>
38403                 $ac_includes_default
38404
38405 int
38406 main ()
38407 {
38408
38409                 #ifndef $wx_func
38410                   &$wx_func;
38411                 #endif
38412
38413
38414   ;
38415   return 0;
38416 }
38417
38418 _ACEOF
38419 rm -f conftest.$ac_objext conftest$ac_exeext
38420 if { (ac_try="$ac_link"
38421 case "(($ac_try" in
38422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38423   *) ac_try_echo=$ac_try;;
38424 esac
38425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38426   (eval "$ac_link") 2>conftest.er1
38427   ac_status=$?
38428   grep -v '^ *+' conftest.er1 >conftest.err
38429   rm -f conftest.er1
38430   cat conftest.err >&5
38431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38432   (exit $ac_status); } && {
38433          test -z "$ac_c_werror_flag" ||
38434          test ! -s conftest.err
38435        } && test -s conftest$ac_exeext &&
38436        $as_test_x conftest$ac_exeext; then
38437   eval wx_cv_func_$wx_func=yes
38438 else
38439   echo "$as_me: failed program was:" >&5
38440 sed 's/^/| /' conftest.$ac_ext >&5
38441
38442         eval wx_cv_func_$wx_func=no
38443 fi
38444
38445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38446       conftest$ac_exeext conftest.$ac_ext
38447
38448 fi
38449 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38450                { echo "$as_me:$LINENO: result: $ac_res" >&5
38451 echo "${ECHO_T}$ac_res" >&6; }
38452
38453     if eval test \$wx_cv_func_$wx_func = yes
38454     then
38455       cat >>confdefs.h <<_ACEOF
38456 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38457 _ACEOF
38458
38459
38460     else
38461       :
38462
38463     fi
38464   done
38465
38466 if test "$wx_cv_func_uname" != yes; then
38467
38468   for wx_func in gethostname
38469   do
38470     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38471 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38472 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38473   echo $ECHO_N "(cached) $ECHO_C" >&6
38474 else
38475
38476         cat >conftest.$ac_ext <<_ACEOF
38477
38478             /* confdefs.h.  */
38479 _ACEOF
38480 cat confdefs.h >>conftest.$ac_ext
38481 cat >>conftest.$ac_ext <<_ACEOF
38482 /* end confdefs.h.  */
38483
38484
38485                 $ac_includes_default
38486
38487 int
38488 main ()
38489 {
38490
38491                 #ifndef $wx_func
38492                   &$wx_func;
38493                 #endif
38494
38495
38496   ;
38497   return 0;
38498 }
38499
38500 _ACEOF
38501 rm -f conftest.$ac_objext conftest$ac_exeext
38502 if { (ac_try="$ac_link"
38503 case "(($ac_try" in
38504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38505   *) ac_try_echo=$ac_try;;
38506 esac
38507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38508   (eval "$ac_link") 2>conftest.er1
38509   ac_status=$?
38510   grep -v '^ *+' conftest.er1 >conftest.err
38511   rm -f conftest.er1
38512   cat conftest.err >&5
38513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38514   (exit $ac_status); } && {
38515          test -z "$ac_c_werror_flag" ||
38516          test ! -s conftest.err
38517        } && test -s conftest$ac_exeext &&
38518        $as_test_x conftest$ac_exeext; then
38519   eval wx_cv_func_$wx_func=yes
38520 else
38521   echo "$as_me: failed program was:" >&5
38522 sed 's/^/| /' conftest.$ac_ext >&5
38523
38524         eval wx_cv_func_$wx_func=no
38525 fi
38526
38527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38528       conftest$ac_exeext conftest.$ac_ext
38529
38530 fi
38531 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38532                { echo "$as_me:$LINENO: result: $ac_res" >&5
38533 echo "${ECHO_T}$ac_res" >&6; }
38534
38535     if eval test \$wx_cv_func_$wx_func = yes
38536     then
38537       cat >>confdefs.h <<_ACEOF
38538 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38539 _ACEOF
38540
38541
38542     else
38543       :
38544
38545     fi
38546   done
38547
38548 fi
38549
38550
38551   for wx_func in strtok_r
38552   do
38553     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38554 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38555 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38556   echo $ECHO_N "(cached) $ECHO_C" >&6
38557 else
38558
38559         cat >conftest.$ac_ext <<_ACEOF
38560
38561             /* confdefs.h.  */
38562 _ACEOF
38563 cat confdefs.h >>conftest.$ac_ext
38564 cat >>conftest.$ac_ext <<_ACEOF
38565 /* end confdefs.h.  */
38566
38567                 #define _REENTRANT
38568                 $ac_includes_default
38569
38570 int
38571 main ()
38572 {
38573
38574                 #ifndef $wx_func
38575                   &$wx_func;
38576                 #endif
38577
38578
38579   ;
38580   return 0;
38581 }
38582
38583 _ACEOF
38584 rm -f conftest.$ac_objext conftest$ac_exeext
38585 if { (ac_try="$ac_link"
38586 case "(($ac_try" in
38587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38588   *) ac_try_echo=$ac_try;;
38589 esac
38590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38591   (eval "$ac_link") 2>conftest.er1
38592   ac_status=$?
38593   grep -v '^ *+' conftest.er1 >conftest.err
38594   rm -f conftest.er1
38595   cat conftest.err >&5
38596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38597   (exit $ac_status); } && {
38598          test -z "$ac_c_werror_flag" ||
38599          test ! -s conftest.err
38600        } && test -s conftest$ac_exeext &&
38601        $as_test_x conftest$ac_exeext; then
38602   eval wx_cv_func_$wx_func=yes
38603 else
38604   echo "$as_me: failed program was:" >&5
38605 sed 's/^/| /' conftest.$ac_ext >&5
38606
38607         eval wx_cv_func_$wx_func=no
38608 fi
38609
38610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38611       conftest$ac_exeext conftest.$ac_ext
38612
38613 fi
38614 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38615                { echo "$as_me:$LINENO: result: $ac_res" >&5
38616 echo "${ECHO_T}$ac_res" >&6; }
38617
38618     if eval test \$wx_cv_func_$wx_func = yes
38619     then
38620       cat >>confdefs.h <<_ACEOF
38621 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38622 _ACEOF
38623
38624
38625     else
38626       :
38627
38628     fi
38629   done
38630
38631
38632 INET_LINK=
38633
38634 for ac_func in inet_addr
38635 do
38636 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38637 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38638 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38639 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38640   echo $ECHO_N "(cached) $ECHO_C" >&6
38641 else
38642   cat >conftest.$ac_ext <<_ACEOF
38643 /* confdefs.h.  */
38644 _ACEOF
38645 cat confdefs.h >>conftest.$ac_ext
38646 cat >>conftest.$ac_ext <<_ACEOF
38647 /* end confdefs.h.  */
38648 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38649    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38650 #define $ac_func innocuous_$ac_func
38651
38652 /* System header to define __stub macros and hopefully few prototypes,
38653     which can conflict with char $ac_func (); below.
38654     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38655     <limits.h> exists even on freestanding compilers.  */
38656
38657 #ifdef __STDC__
38658 # include <limits.h>
38659 #else
38660 # include <assert.h>
38661 #endif
38662
38663 #undef $ac_func
38664
38665 /* Override any GCC internal prototype to avoid an error.
38666    Use char because int might match the return type of a GCC
38667    builtin and then its argument prototype would still apply.  */
38668 #ifdef __cplusplus
38669 extern "C"
38670 #endif
38671 char $ac_func ();
38672 /* The GNU C library defines this for functions which it implements
38673     to always fail with ENOSYS.  Some functions are actually named
38674     something starting with __ and the normal name is an alias.  */
38675 #if defined __stub_$ac_func || defined __stub___$ac_func
38676 choke me
38677 #endif
38678
38679 int
38680 main ()
38681 {
38682 return $ac_func ();
38683   ;
38684   return 0;
38685 }
38686 _ACEOF
38687 rm -f conftest.$ac_objext conftest$ac_exeext
38688 if { (ac_try="$ac_link"
38689 case "(($ac_try" in
38690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38691   *) ac_try_echo=$ac_try;;
38692 esac
38693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38694   (eval "$ac_link") 2>conftest.er1
38695   ac_status=$?
38696   grep -v '^ *+' conftest.er1 >conftest.err
38697   rm -f conftest.er1
38698   cat conftest.err >&5
38699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38700   (exit $ac_status); } && {
38701          test -z "$ac_c_werror_flag" ||
38702          test ! -s conftest.err
38703        } && test -s conftest$ac_exeext &&
38704        $as_test_x conftest$ac_exeext; then
38705   eval "$as_ac_var=yes"
38706 else
38707   echo "$as_me: failed program was:" >&5
38708 sed 's/^/| /' conftest.$ac_ext >&5
38709
38710         eval "$as_ac_var=no"
38711 fi
38712
38713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38714       conftest$ac_exeext conftest.$ac_ext
38715 fi
38716 ac_res=`eval echo '${'$as_ac_var'}'`
38717                { echo "$as_me:$LINENO: result: $ac_res" >&5
38718 echo "${ECHO_T}$ac_res" >&6; }
38719 if test `eval echo '${'$as_ac_var'}'` = yes; then
38720   cat >>confdefs.h <<_ACEOF
38721 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38722 _ACEOF
38723  cat >>confdefs.h <<\_ACEOF
38724 #define HAVE_INET_ADDR 1
38725 _ACEOF
38726
38727 else
38728
38729         { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
38730 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
38731 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
38732   echo $ECHO_N "(cached) $ECHO_C" >&6
38733 else
38734   ac_check_lib_save_LIBS=$LIBS
38735 LIBS="-lnsl  $LIBS"
38736 cat >conftest.$ac_ext <<_ACEOF
38737 /* confdefs.h.  */
38738 _ACEOF
38739 cat confdefs.h >>conftest.$ac_ext
38740 cat >>conftest.$ac_ext <<_ACEOF
38741 /* end confdefs.h.  */
38742
38743 /* Override any GCC internal prototype to avoid an error.
38744    Use char because int might match the return type of a GCC
38745    builtin and then its argument prototype would still apply.  */
38746 #ifdef __cplusplus
38747 extern "C"
38748 #endif
38749 char inet_addr ();
38750 int
38751 main ()
38752 {
38753 return inet_addr ();
38754   ;
38755   return 0;
38756 }
38757 _ACEOF
38758 rm -f conftest.$ac_objext conftest$ac_exeext
38759 if { (ac_try="$ac_link"
38760 case "(($ac_try" in
38761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38762   *) ac_try_echo=$ac_try;;
38763 esac
38764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38765   (eval "$ac_link") 2>conftest.er1
38766   ac_status=$?
38767   grep -v '^ *+' conftest.er1 >conftest.err
38768   rm -f conftest.er1
38769   cat conftest.err >&5
38770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38771   (exit $ac_status); } && {
38772          test -z "$ac_c_werror_flag" ||
38773          test ! -s conftest.err
38774        } && test -s conftest$ac_exeext &&
38775        $as_test_x conftest$ac_exeext; then
38776   ac_cv_lib_nsl_inet_addr=yes
38777 else
38778   echo "$as_me: failed program was:" >&5
38779 sed 's/^/| /' conftest.$ac_ext >&5
38780
38781         ac_cv_lib_nsl_inet_addr=no
38782 fi
38783
38784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38785       conftest$ac_exeext conftest.$ac_ext
38786 LIBS=$ac_check_lib_save_LIBS
38787 fi
38788 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
38789 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
38790 if test $ac_cv_lib_nsl_inet_addr = yes; then
38791   INET_LINK="nsl"
38792 else
38793
38794                 { echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
38795 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6; }
38796 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
38797   echo $ECHO_N "(cached) $ECHO_C" >&6
38798 else
38799   ac_check_lib_save_LIBS=$LIBS
38800 LIBS="-lresolv  $LIBS"
38801 cat >conftest.$ac_ext <<_ACEOF
38802 /* confdefs.h.  */
38803 _ACEOF
38804 cat confdefs.h >>conftest.$ac_ext
38805 cat >>conftest.$ac_ext <<_ACEOF
38806 /* end confdefs.h.  */
38807
38808 /* Override any GCC internal prototype to avoid an error.
38809    Use char because int might match the return type of a GCC
38810    builtin and then its argument prototype would still apply.  */
38811 #ifdef __cplusplus
38812 extern "C"
38813 #endif
38814 char inet_addr ();
38815 int
38816 main ()
38817 {
38818 return inet_addr ();
38819   ;
38820   return 0;
38821 }
38822 _ACEOF
38823 rm -f conftest.$ac_objext conftest$ac_exeext
38824 if { (ac_try="$ac_link"
38825 case "(($ac_try" in
38826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38827   *) ac_try_echo=$ac_try;;
38828 esac
38829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38830   (eval "$ac_link") 2>conftest.er1
38831   ac_status=$?
38832   grep -v '^ *+' conftest.er1 >conftest.err
38833   rm -f conftest.er1
38834   cat conftest.err >&5
38835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38836   (exit $ac_status); } && {
38837          test -z "$ac_c_werror_flag" ||
38838          test ! -s conftest.err
38839        } && test -s conftest$ac_exeext &&
38840        $as_test_x conftest$ac_exeext; then
38841   ac_cv_lib_resolv_inet_addr=yes
38842 else
38843   echo "$as_me: failed program was:" >&5
38844 sed 's/^/| /' conftest.$ac_ext >&5
38845
38846         ac_cv_lib_resolv_inet_addr=no
38847 fi
38848
38849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38850       conftest$ac_exeext conftest.$ac_ext
38851 LIBS=$ac_check_lib_save_LIBS
38852 fi
38853 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
38854 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6; }
38855 if test $ac_cv_lib_resolv_inet_addr = yes; then
38856   INET_LINK="resolv"
38857 else
38858
38859                         { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
38860 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
38861 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
38862   echo $ECHO_N "(cached) $ECHO_C" >&6
38863 else
38864   ac_check_lib_save_LIBS=$LIBS
38865 LIBS="-lsocket  $LIBS"
38866 cat >conftest.$ac_ext <<_ACEOF
38867 /* confdefs.h.  */
38868 _ACEOF
38869 cat confdefs.h >>conftest.$ac_ext
38870 cat >>conftest.$ac_ext <<_ACEOF
38871 /* end confdefs.h.  */
38872
38873 /* Override any GCC internal prototype to avoid an error.
38874    Use char because int might match the return type of a GCC
38875    builtin and then its argument prototype would still apply.  */
38876 #ifdef __cplusplus
38877 extern "C"
38878 #endif
38879 char inet_addr ();
38880 int
38881 main ()
38882 {
38883 return inet_addr ();
38884   ;
38885   return 0;
38886 }
38887 _ACEOF
38888 rm -f conftest.$ac_objext conftest$ac_exeext
38889 if { (ac_try="$ac_link"
38890 case "(($ac_try" in
38891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38892   *) ac_try_echo=$ac_try;;
38893 esac
38894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38895   (eval "$ac_link") 2>conftest.er1
38896   ac_status=$?
38897   grep -v '^ *+' conftest.er1 >conftest.err
38898   rm -f conftest.er1
38899   cat conftest.err >&5
38900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38901   (exit $ac_status); } && {
38902          test -z "$ac_c_werror_flag" ||
38903          test ! -s conftest.err
38904        } && test -s conftest$ac_exeext &&
38905        $as_test_x conftest$ac_exeext; then
38906   ac_cv_lib_socket_inet_addr=yes
38907 else
38908   echo "$as_me: failed program was:" >&5
38909 sed 's/^/| /' conftest.$ac_ext >&5
38910
38911         ac_cv_lib_socket_inet_addr=no
38912 fi
38913
38914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38915       conftest$ac_exeext conftest.$ac_ext
38916 LIBS=$ac_check_lib_save_LIBS
38917 fi
38918 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
38919 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6; }
38920 if test $ac_cv_lib_socket_inet_addr = yes; then
38921   INET_LINK="socket"
38922
38923 fi
38924
38925
38926
38927 fi
38928
38929
38930
38931 fi
38932
38933
38934
38935 fi
38936 done
38937
38938
38939
38940 for ac_func in inet_aton
38941 do
38942 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38943 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38944 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38945 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38946   echo $ECHO_N "(cached) $ECHO_C" >&6
38947 else
38948   cat >conftest.$ac_ext <<_ACEOF
38949 /* confdefs.h.  */
38950 _ACEOF
38951 cat confdefs.h >>conftest.$ac_ext
38952 cat >>conftest.$ac_ext <<_ACEOF
38953 /* end confdefs.h.  */
38954 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38955    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38956 #define $ac_func innocuous_$ac_func
38957
38958 /* System header to define __stub macros and hopefully few prototypes,
38959     which can conflict with char $ac_func (); below.
38960     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38961     <limits.h> exists even on freestanding compilers.  */
38962
38963 #ifdef __STDC__
38964 # include <limits.h>
38965 #else
38966 # include <assert.h>
38967 #endif
38968
38969 #undef $ac_func
38970
38971 /* Override any GCC internal prototype to avoid an error.
38972    Use char because int might match the return type of a GCC
38973    builtin and then its argument prototype would still apply.  */
38974 #ifdef __cplusplus
38975 extern "C"
38976 #endif
38977 char $ac_func ();
38978 /* The GNU C library defines this for functions which it implements
38979     to always fail with ENOSYS.  Some functions are actually named
38980     something starting with __ and the normal name is an alias.  */
38981 #if defined __stub_$ac_func || defined __stub___$ac_func
38982 choke me
38983 #endif
38984
38985 int
38986 main ()
38987 {
38988 return $ac_func ();
38989   ;
38990   return 0;
38991 }
38992 _ACEOF
38993 rm -f conftest.$ac_objext conftest$ac_exeext
38994 if { (ac_try="$ac_link"
38995 case "(($ac_try" in
38996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38997   *) ac_try_echo=$ac_try;;
38998 esac
38999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39000   (eval "$ac_link") 2>conftest.er1
39001   ac_status=$?
39002   grep -v '^ *+' conftest.er1 >conftest.err
39003   rm -f conftest.er1
39004   cat conftest.err >&5
39005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39006   (exit $ac_status); } && {
39007          test -z "$ac_c_werror_flag" ||
39008          test ! -s conftest.err
39009        } && test -s conftest$ac_exeext &&
39010        $as_test_x conftest$ac_exeext; then
39011   eval "$as_ac_var=yes"
39012 else
39013   echo "$as_me: failed program was:" >&5
39014 sed 's/^/| /' conftest.$ac_ext >&5
39015
39016         eval "$as_ac_var=no"
39017 fi
39018
39019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39020       conftest$ac_exeext conftest.$ac_ext
39021 fi
39022 ac_res=`eval echo '${'$as_ac_var'}'`
39023                { echo "$as_me:$LINENO: result: $ac_res" >&5
39024 echo "${ECHO_T}$ac_res" >&6; }
39025 if test `eval echo '${'$as_ac_var'}'` = yes; then
39026   cat >>confdefs.h <<_ACEOF
39027 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39028 _ACEOF
39029  cat >>confdefs.h <<\_ACEOF
39030 #define HAVE_INET_ATON 1
39031 _ACEOF
39032
39033 else
39034
39035                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
39036 { echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
39037 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6; }
39038 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
39039   echo $ECHO_N "(cached) $ECHO_C" >&6
39040 else
39041   ac_check_lib_save_LIBS=$LIBS
39042 LIBS="-l$INET_LINK  $LIBS"
39043 cat >conftest.$ac_ext <<_ACEOF
39044 /* confdefs.h.  */
39045 _ACEOF
39046 cat confdefs.h >>conftest.$ac_ext
39047 cat >>conftest.$ac_ext <<_ACEOF
39048 /* end confdefs.h.  */
39049
39050 /* Override any GCC internal prototype to avoid an error.
39051    Use char because int might match the return type of a GCC
39052    builtin and then its argument prototype would still apply.  */
39053 #ifdef __cplusplus
39054 extern "C"
39055 #endif
39056 char inet_aton ();
39057 int
39058 main ()
39059 {
39060 return inet_aton ();
39061   ;
39062   return 0;
39063 }
39064 _ACEOF
39065 rm -f conftest.$ac_objext conftest$ac_exeext
39066 if { (ac_try="$ac_link"
39067 case "(($ac_try" in
39068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39069   *) ac_try_echo=$ac_try;;
39070 esac
39071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39072   (eval "$ac_link") 2>conftest.er1
39073   ac_status=$?
39074   grep -v '^ *+' conftest.er1 >conftest.err
39075   rm -f conftest.er1
39076   cat conftest.err >&5
39077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39078   (exit $ac_status); } && {
39079          test -z "$ac_c_werror_flag" ||
39080          test ! -s conftest.err
39081        } && test -s conftest$ac_exeext &&
39082        $as_test_x conftest$ac_exeext; then
39083   eval "$as_ac_Lib=yes"
39084 else
39085   echo "$as_me: failed program was:" >&5
39086 sed 's/^/| /' conftest.$ac_ext >&5
39087
39088         eval "$as_ac_Lib=no"
39089 fi
39090
39091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39092       conftest$ac_exeext conftest.$ac_ext
39093 LIBS=$ac_check_lib_save_LIBS
39094 fi
39095 ac_res=`eval echo '${'$as_ac_Lib'}'`
39096                { echo "$as_me:$LINENO: result: $ac_res" >&5
39097 echo "${ECHO_T}$ac_res" >&6; }
39098 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
39099   cat >>confdefs.h <<\_ACEOF
39100 #define HAVE_INET_ATON 1
39101 _ACEOF
39102
39103 fi
39104
39105
39106 fi
39107 done
39108
39109
39110 if test "x$INET_LINK" != "x"; then
39111     cat >>confdefs.h <<\_ACEOF
39112 #define HAVE_INET_ADDR 1
39113 _ACEOF
39114
39115     INET_LINK=" -l$INET_LINK"
39116 fi
39117
39118
39119   for wx_func in fdopen
39120   do
39121     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39122 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39123 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39124   echo $ECHO_N "(cached) $ECHO_C" >&6
39125 else
39126
39127         cat >conftest.$ac_ext <<_ACEOF
39128
39129             /* confdefs.h.  */
39130 _ACEOF
39131 cat confdefs.h >>conftest.$ac_ext
39132 cat >>conftest.$ac_ext <<_ACEOF
39133 /* end confdefs.h.  */
39134
39135
39136                 $ac_includes_default
39137
39138 int
39139 main ()
39140 {
39141
39142                 #ifndef $wx_func
39143                   &$wx_func;
39144                 #endif
39145
39146
39147   ;
39148   return 0;
39149 }
39150
39151 _ACEOF
39152 rm -f conftest.$ac_objext conftest$ac_exeext
39153 if { (ac_try="$ac_link"
39154 case "(($ac_try" in
39155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39156   *) ac_try_echo=$ac_try;;
39157 esac
39158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39159   (eval "$ac_link") 2>conftest.er1
39160   ac_status=$?
39161   grep -v '^ *+' conftest.er1 >conftest.err
39162   rm -f conftest.er1
39163   cat conftest.err >&5
39164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39165   (exit $ac_status); } && {
39166          test -z "$ac_c_werror_flag" ||
39167          test ! -s conftest.err
39168        } && test -s conftest$ac_exeext &&
39169        $as_test_x conftest$ac_exeext; then
39170   eval wx_cv_func_$wx_func=yes
39171 else
39172   echo "$as_me: failed program was:" >&5
39173 sed 's/^/| /' conftest.$ac_ext >&5
39174
39175         eval wx_cv_func_$wx_func=no
39176 fi
39177
39178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39179       conftest$ac_exeext conftest.$ac_ext
39180
39181 fi
39182 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39183                { echo "$as_me:$LINENO: result: $ac_res" >&5
39184 echo "${ECHO_T}$ac_res" >&6; }
39185
39186     if eval test \$wx_cv_func_$wx_func = yes
39187     then
39188       cat >>confdefs.h <<_ACEOF
39189 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
39190 _ACEOF
39191
39192
39193     else
39194       :
39195
39196     fi
39197   done
39198
39199
39200 if test "$wxUSE_TARSTREAM" = "yes"; then
39201
39202   for wx_func in sysconf
39203   do
39204     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39205 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39206 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39207   echo $ECHO_N "(cached) $ECHO_C" >&6
39208 else
39209
39210         cat >conftest.$ac_ext <<_ACEOF
39211
39212             /* confdefs.h.  */
39213 _ACEOF
39214 cat confdefs.h >>conftest.$ac_ext
39215 cat >>conftest.$ac_ext <<_ACEOF
39216 /* end confdefs.h.  */
39217
39218
39219                 $ac_includes_default
39220
39221 int
39222 main ()
39223 {
39224
39225                 #ifndef $wx_func
39226                   &$wx_func;
39227                 #endif
39228
39229
39230   ;
39231   return 0;
39232 }
39233
39234 _ACEOF
39235 rm -f conftest.$ac_objext conftest$ac_exeext
39236 if { (ac_try="$ac_link"
39237 case "(($ac_try" in
39238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39239   *) ac_try_echo=$ac_try;;
39240 esac
39241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39242   (eval "$ac_link") 2>conftest.er1
39243   ac_status=$?
39244   grep -v '^ *+' conftest.er1 >conftest.err
39245   rm -f conftest.er1
39246   cat conftest.err >&5
39247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39248   (exit $ac_status); } && {
39249          test -z "$ac_c_werror_flag" ||
39250          test ! -s conftest.err
39251        } && test -s conftest$ac_exeext &&
39252        $as_test_x conftest$ac_exeext; then
39253   eval wx_cv_func_$wx_func=yes
39254 else
39255   echo "$as_me: failed program was:" >&5
39256 sed 's/^/| /' conftest.$ac_ext >&5
39257
39258         eval wx_cv_func_$wx_func=no
39259 fi
39260
39261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39262       conftest$ac_exeext conftest.$ac_ext
39263
39264 fi
39265 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39266                { echo "$as_me:$LINENO: result: $ac_res" >&5
39267 echo "${ECHO_T}$ac_res" >&6; }
39268
39269     if eval test \$wx_cv_func_$wx_func = yes
39270     then
39271       cat >>confdefs.h <<_ACEOF
39272 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
39273 _ACEOF
39274
39275
39276     else
39277       :
39278
39279     fi
39280   done
39281
39282
39283
39284   for wx_func in getpwuid_r
39285   do
39286     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39287 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39288 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39289   echo $ECHO_N "(cached) $ECHO_C" >&6
39290 else
39291
39292         cat >conftest.$ac_ext <<_ACEOF
39293
39294             /* confdefs.h.  */
39295 _ACEOF
39296 cat confdefs.h >>conftest.$ac_ext
39297 cat >>conftest.$ac_ext <<_ACEOF
39298 /* end confdefs.h.  */
39299
39300
39301                     #define _REENTRANT
39302                     #include <pwd.h>
39303
39304                 $ac_includes_default
39305
39306 int
39307 main ()
39308 {
39309
39310                 #ifndef $wx_func
39311                   &$wx_func;
39312                 #endif
39313
39314                     struct passwd pw, *ppw;
39315                     char buf[1024];
39316                     getpwuid_r(0, &pw, buf, sizeof(buf), &ppw)
39317
39318
39319   ;
39320   return 0;
39321 }
39322
39323 _ACEOF
39324 rm -f conftest.$ac_objext conftest$ac_exeext
39325 if { (ac_try="$ac_link"
39326 case "(($ac_try" in
39327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39328   *) ac_try_echo=$ac_try;;
39329 esac
39330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39331   (eval "$ac_link") 2>conftest.er1
39332   ac_status=$?
39333   grep -v '^ *+' conftest.er1 >conftest.err
39334   rm -f conftest.er1
39335   cat conftest.err >&5
39336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39337   (exit $ac_status); } && {
39338          test -z "$ac_c_werror_flag" ||
39339          test ! -s conftest.err
39340        } && test -s conftest$ac_exeext &&
39341        $as_test_x conftest$ac_exeext; then
39342   eval wx_cv_func_$wx_func=yes
39343 else
39344   echo "$as_me: failed program was:" >&5
39345 sed 's/^/| /' conftest.$ac_ext >&5
39346
39347         eval wx_cv_func_$wx_func=no
39348 fi
39349
39350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39351       conftest$ac_exeext conftest.$ac_ext
39352
39353 fi
39354 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39355                { echo "$as_me:$LINENO: result: $ac_res" >&5
39356 echo "${ECHO_T}$ac_res" >&6; }
39357
39358     if eval test \$wx_cv_func_$wx_func = yes
39359     then
39360       cat >>confdefs.h <<_ACEOF
39361 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
39362 _ACEOF
39363
39364
39365     else
39366       :
39367
39368     fi
39369   done
39370
39371
39372
39373   for wx_func in getgrgid_r
39374   do
39375     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39376 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39377 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39378   echo $ECHO_N "(cached) $ECHO_C" >&6
39379 else
39380
39381         cat >conftest.$ac_ext <<_ACEOF
39382
39383             /* confdefs.h.  */
39384 _ACEOF
39385 cat confdefs.h >>conftest.$ac_ext
39386 cat >>conftest.$ac_ext <<_ACEOF
39387 /* end confdefs.h.  */
39388
39389
39390                     #define _REENTRANT
39391                     #include <grp.h>
39392
39393                 $ac_includes_default
39394
39395 int
39396 main ()
39397 {
39398
39399                 #ifndef $wx_func
39400                   &$wx_func;
39401                 #endif
39402
39403                     struct group grp, *pgrp;
39404                     char buf[1024];
39405                     getgrgid_r(0, &grp, buf, sizeof(buf), &pgrp)
39406
39407
39408   ;
39409   return 0;
39410 }
39411
39412 _ACEOF
39413 rm -f conftest.$ac_objext conftest$ac_exeext
39414 if { (ac_try="$ac_link"
39415 case "(($ac_try" in
39416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39417   *) ac_try_echo=$ac_try;;
39418 esac
39419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39420   (eval "$ac_link") 2>conftest.er1
39421   ac_status=$?
39422   grep -v '^ *+' conftest.er1 >conftest.err
39423   rm -f conftest.er1
39424   cat conftest.err >&5
39425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39426   (exit $ac_status); } && {
39427          test -z "$ac_c_werror_flag" ||
39428          test ! -s conftest.err
39429        } && test -s conftest$ac_exeext &&
39430        $as_test_x conftest$ac_exeext; then
39431   eval wx_cv_func_$wx_func=yes
39432 else
39433   echo "$as_me: failed program was:" >&5
39434 sed 's/^/| /' conftest.$ac_ext >&5
39435
39436         eval wx_cv_func_$wx_func=no
39437 fi
39438
39439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39440       conftest$ac_exeext conftest.$ac_ext
39441
39442 fi
39443 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39444                { echo "$as_me:$LINENO: result: $ac_res" >&5
39445 echo "${ECHO_T}$ac_res" >&6; }
39446
39447     if eval test \$wx_cv_func_$wx_func = yes
39448     then
39449       cat >>confdefs.h <<_ACEOF
39450 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
39451 _ACEOF
39452
39453
39454     else
39455       :
39456
39457     fi
39458   done
39459
39460 fi
39461
39462 fi
39463
39464
39465
39466 cat >confcache <<\_ACEOF
39467 # This file is a shell script that caches the results of configure
39468 # tests run on this system so they can be shared between configure
39469 # scripts and configure runs, see configure's option --config-cache.
39470 # It is not useful on other systems.  If it contains results you don't
39471 # want to keep, you may remove or edit it.
39472 #
39473 # config.status only pays attention to the cache file if you give it
39474 # the --recheck option to rerun configure.
39475 #
39476 # `ac_cv_env_foo' variables (set or unset) will be overridden when
39477 # loading this file, other *unset* `ac_cv_foo' will be assigned the
39478 # following values.
39479
39480 _ACEOF
39481
39482 # The following way of writing the cache mishandles newlines in values,
39483 # but we know of no workaround that is simple, portable, and efficient.
39484 # So, we kill variables containing newlines.
39485 # Ultrix sh set writes to stderr and can't be redirected directly,
39486 # and sets the high bit in the cache file unless we assign to the vars.
39487 (
39488   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
39489     eval ac_val=\$$ac_var
39490     case $ac_val in #(
39491     *${as_nl}*)
39492       case $ac_var in #(
39493       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
39494 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
39495       esac
39496       case $ac_var in #(
39497       _ | IFS | as_nl) ;; #(
39498       *) $as_unset $ac_var ;;
39499       esac ;;
39500     esac
39501   done
39502
39503   (set) 2>&1 |
39504     case $as_nl`(ac_space=' '; set) 2>&1` in #(
39505     *${as_nl}ac_space=\ *)
39506       # `set' does not quote correctly, so add quotes (double-quote
39507       # substitution turns \\\\ into \\, and sed turns \\ into \).
39508       sed -n \
39509         "s/'/'\\\\''/g;
39510           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
39511       ;; #(
39512     *)
39513       # `set' quotes correctly as required by POSIX, so do not add quotes.
39514       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
39515       ;;
39516     esac |
39517     sort
39518 ) |
39519   sed '
39520      /^ac_cv_env_/b end
39521      t clear
39522      :clear
39523      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
39524      t end
39525      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
39526      :end' >>confcache
39527 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
39528   if test -w "$cache_file"; then
39529     test "x$cache_file" != "x/dev/null" &&
39530       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
39531 echo "$as_me: updating cache $cache_file" >&6;}
39532     cat confcache >$cache_file
39533   else
39534     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
39535 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
39536   fi
39537 fi
39538 rm -f confcache
39539
39540
39541 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
39542
39543
39544     THREADS_LINK=
39545     THREADS_CFLAGS=
39546
39547     if test "$wxUSE_THREADS" = "yes" ; then
39548         if test "$USE_BEOS" = 1; then
39549             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
39550 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
39551             wxUSE_THREADS="no"
39552         fi
39553     fi
39554
39555     if test "$wxUSE_THREADS" = "yes" ; then
39556
39557
39558                                 THREAD_OPTS="-pthread"
39559         if test "x$SUNCXX" = xyes; then
39560             THREAD_OPTS="-mt lthread $THREAD_OPTS"
39561         fi
39562
39563         case "${host}" in
39564           *-*-solaris2* | *-*-sunos4* )
39565                 if test "x$GCC" = "xyes"; then
39566                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
39567                 fi
39568                 ;;
39569           *-*-freebsd*)
39570                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
39571                 ;;
39572           *-*-darwin* | *-*-cygwin* )
39573                                                 THREAD_OPTS=""
39574                 ;;
39575           *-*-aix*)
39576                                 THREAD_OPTS="pthreads"
39577                 ;;
39578           *-hp-hpux* )
39579                 if test "x$GCC" = "xyes"; then
39580                                         $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
39581                         THREAD_OPTS=""
39582                 else
39583                                                             THREAD_OPTS="-mt"
39584                 fi
39585                 ;;
39586
39587           *-*-irix* )
39588                                                                 if test "x$GCC" = "xyes"; then
39589                     THREAD_OPTS=""
39590                 fi
39591                 ;;
39592
39593           *-*-qnx*)
39594                                                 THREAD_OPTS=""
39595                 ;;
39596
39597           *-*-*UnixWare*)
39598                                 if test "x$GCC" != "xyes"; then
39599                     THREAD_OPTS="-Ethread"
39600                 fi
39601                 ;;
39602         esac
39603
39604         case "${host}" in
39605             *-*-qnx*)
39606                                                                 THREAD_OPTS="none pthread"
39607                 ;;
39608
39609             *)
39610                                                                                 THREAD_OPTS="$THREAD_OPTS pthread none"
39611                 ;;
39612         esac
39613
39614                 THREADS_OK=no
39615         for flag in $THREAD_OPTS; do
39616             case $flag in
39617                 none)
39618                     { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
39619 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
39620                     ;;
39621
39622                 -*)
39623                     { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
39624 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
39625                     THREADS_CFLAGS="$flag"
39626                     ;;
39627
39628                 *)
39629                     { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
39630 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
39631                     THREADS_LINK="-l$flag"
39632                     ;;
39633               esac
39634
39635               save_LIBS="$LIBS"
39636               save_CFLAGS="$CFLAGS"
39637               LIBS="$THREADS_LINK $LIBS"
39638               CFLAGS="$THREADS_CFLAGS $CFLAGS"
39639
39640               cat >conftest.$ac_ext <<_ACEOF
39641 /* confdefs.h.  */
39642 _ACEOF
39643 cat confdefs.h >>conftest.$ac_ext
39644 cat >>conftest.$ac_ext <<_ACEOF
39645 /* end confdefs.h.  */
39646 #include <pthread.h>
39647 int
39648 main ()
39649 {
39650 pthread_create(0,0,0,0);
39651   ;
39652   return 0;
39653 }
39654 _ACEOF
39655 rm -f conftest.$ac_objext conftest$ac_exeext
39656 if { (ac_try="$ac_link"
39657 case "(($ac_try" in
39658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39659   *) ac_try_echo=$ac_try;;
39660 esac
39661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39662   (eval "$ac_link") 2>conftest.er1
39663   ac_status=$?
39664   grep -v '^ *+' conftest.er1 >conftest.err
39665   rm -f conftest.er1
39666   cat conftest.err >&5
39667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39668   (exit $ac_status); } && {
39669          test -z "$ac_c_werror_flag" ||
39670          test ! -s conftest.err
39671        } && test -s conftest$ac_exeext &&
39672        $as_test_x conftest$ac_exeext; then
39673   THREADS_OK=yes
39674 else
39675   echo "$as_me: failed program was:" >&5
39676 sed 's/^/| /' conftest.$ac_ext >&5
39677
39678
39679 fi
39680
39681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39682       conftest$ac_exeext conftest.$ac_ext
39683
39684               LIBS="$save_LIBS"
39685               CFLAGS="$save_CFLAGS"
39686
39687               { echo "$as_me:$LINENO: result: $THREADS_OK" >&5
39688 echo "${ECHO_T}$THREADS_OK" >&6; }
39689               if test "x$THREADS_OK" = "xyes"; then
39690                       break;
39691               fi
39692
39693               THREADS_LINK=""
39694               THREADS_CFLAGS=""
39695       done
39696
39697       if test "x$THREADS_OK" != "xyes"; then
39698           wxUSE_THREADS=no
39699           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
39700 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
39701       else
39702                                                                                           LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
39703           WXCONFIG_LDFLAGS="$THREADS_CFLAGS $WXCONFIG_LDFLAGS"
39704           LIBS="$THREADS_LINK $LIBS"
39705
39706           { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
39707 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
39708           flag=no
39709           case "${host}" in
39710             *-aix*)
39711                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
39712                 WXCONFIG_LDFLAGS="-L/usr/lib/threads $WXCONFIG_LDFLAGS"
39713                 flag="-D_THREAD_SAFE"
39714                 ;;
39715             *-freebsd*)
39716                 flag="-D_THREAD_SAFE"
39717                 ;;
39718             *-hp-hpux* )
39719                 flag="-D_REENTRANT"
39720                 if test "x$GCC" != "xyes"; then
39721                                         flag="$flag -D_RWSTD_MULTI_THREAD"
39722                 fi
39723                 ;;
39724             *solaris* | alpha*-osf*)
39725                 flag="-D_REENTRANT"
39726                 ;;
39727           esac
39728           { echo "$as_me:$LINENO: result: ${flag}" >&5
39729 echo "${ECHO_T}${flag}" >&6; }
39730           if test "x$flag" != xno; then
39731               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
39732           fi
39733
39734                     WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS"
39735       fi
39736     fi
39737
39738         if test "$wxUSE_THREADS" = "yes" ; then
39739
39740 for ac_func in thr_setconcurrency
39741 do
39742 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39743 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39745 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39746   echo $ECHO_N "(cached) $ECHO_C" >&6
39747 else
39748   cat >conftest.$ac_ext <<_ACEOF
39749 /* confdefs.h.  */
39750 _ACEOF
39751 cat confdefs.h >>conftest.$ac_ext
39752 cat >>conftest.$ac_ext <<_ACEOF
39753 /* end confdefs.h.  */
39754 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39755    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39756 #define $ac_func innocuous_$ac_func
39757
39758 /* System header to define __stub macros and hopefully few prototypes,
39759     which can conflict with char $ac_func (); below.
39760     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39761     <limits.h> exists even on freestanding compilers.  */
39762
39763 #ifdef __STDC__
39764 # include <limits.h>
39765 #else
39766 # include <assert.h>
39767 #endif
39768
39769 #undef $ac_func
39770
39771 /* Override any GCC internal prototype to avoid an error.
39772    Use char because int might match the return type of a GCC
39773    builtin and then its argument prototype would still apply.  */
39774 #ifdef __cplusplus
39775 extern "C"
39776 #endif
39777 char $ac_func ();
39778 /* The GNU C library defines this for functions which it implements
39779     to always fail with ENOSYS.  Some functions are actually named
39780     something starting with __ and the normal name is an alias.  */
39781 #if defined __stub_$ac_func || defined __stub___$ac_func
39782 choke me
39783 #endif
39784
39785 int
39786 main ()
39787 {
39788 return $ac_func ();
39789   ;
39790   return 0;
39791 }
39792 _ACEOF
39793 rm -f conftest.$ac_objext conftest$ac_exeext
39794 if { (ac_try="$ac_link"
39795 case "(($ac_try" in
39796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39797   *) ac_try_echo=$ac_try;;
39798 esac
39799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39800   (eval "$ac_link") 2>conftest.er1
39801   ac_status=$?
39802   grep -v '^ *+' conftest.er1 >conftest.err
39803   rm -f conftest.er1
39804   cat conftest.err >&5
39805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39806   (exit $ac_status); } && {
39807          test -z "$ac_c_werror_flag" ||
39808          test ! -s conftest.err
39809        } && test -s conftest$ac_exeext &&
39810        $as_test_x conftest$ac_exeext; then
39811   eval "$as_ac_var=yes"
39812 else
39813   echo "$as_me: failed program was:" >&5
39814 sed 's/^/| /' conftest.$ac_ext >&5
39815
39816         eval "$as_ac_var=no"
39817 fi
39818
39819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39820       conftest$ac_exeext conftest.$ac_ext
39821 fi
39822 ac_res=`eval echo '${'$as_ac_var'}'`
39823                { echo "$as_me:$LINENO: result: $ac_res" >&5
39824 echo "${ECHO_T}$ac_res" >&6; }
39825 if test `eval echo '${'$as_ac_var'}'` = yes; then
39826   cat >>confdefs.h <<_ACEOF
39827 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39828 _ACEOF
39829
39830 fi
39831 done
39832
39833
39834                   { echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
39835 echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6; }
39836 if test "${wx_cv_func_pthread_cleanup+set}" = set; then
39837   echo $ECHO_N "(cached) $ECHO_C" >&6
39838 else
39839
39840                                 ac_ext=cpp
39841 ac_cpp='$CXXCPP $CPPFLAGS'
39842 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39843 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39844 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39845
39846         cat >conftest.$ac_ext <<_ACEOF
39847 /* confdefs.h.  */
39848 _ACEOF
39849 cat confdefs.h >>conftest.$ac_ext
39850 cat >>conftest.$ac_ext <<_ACEOF
39851 /* end confdefs.h.  */
39852 #include <pthread.h>
39853                void ThreadCleanupFunc(void *p);
39854
39855 int
39856 main ()
39857 {
39858
39859                 void *p;
39860                 pthread_cleanup_push(ThreadCleanupFunc, p);
39861                 pthread_cleanup_pop(0);
39862
39863   ;
39864   return 0;
39865 }
39866 _ACEOF
39867 rm -f conftest.$ac_objext
39868 if { (ac_try="$ac_compile"
39869 case "(($ac_try" in
39870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39871   *) ac_try_echo=$ac_try;;
39872 esac
39873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39874   (eval "$ac_compile") 2>conftest.er1
39875   ac_status=$?
39876   grep -v '^ *+' conftest.er1 >conftest.err
39877   rm -f conftest.er1
39878   cat conftest.err >&5
39879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39880   (exit $ac_status); } && {
39881          test -z "$ac_cxx_werror_flag" ||
39882          test ! -s conftest.err
39883        } && test -s conftest.$ac_objext; then
39884
39885                wx_cv_func_pthread_cleanup=yes
39886
39887 else
39888   echo "$as_me: failed program was:" >&5
39889 sed 's/^/| /' conftest.$ac_ext >&5
39890
39891
39892                wx_cv_func_pthread_cleanup=no
39893
39894
39895 fi
39896
39897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39898         ac_ext=c
39899 ac_cpp='$CPP $CPPFLAGS'
39900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39903
39904
39905 fi
39906 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
39907 echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6; }
39908       if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
39909         cat >>confdefs.h <<\_ACEOF
39910 #define wxHAVE_PTHREAD_CLEANUP 1
39911 _ACEOF
39912
39913       fi
39914
39915
39916 for ac_header in sched.h
39917 do
39918 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39919 { echo "$as_me:$LINENO: checking for $ac_header" >&5
39920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
39921 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39922   echo $ECHO_N "(cached) $ECHO_C" >&6
39923 else
39924   cat >conftest.$ac_ext <<_ACEOF
39925 /* confdefs.h.  */
39926 _ACEOF
39927 cat confdefs.h >>conftest.$ac_ext
39928 cat >>conftest.$ac_ext <<_ACEOF
39929 /* end confdefs.h.  */
39930 $ac_includes_default
39931
39932 #include <$ac_header>
39933 _ACEOF
39934 rm -f conftest.$ac_objext
39935 if { (ac_try="$ac_compile"
39936 case "(($ac_try" in
39937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39938   *) ac_try_echo=$ac_try;;
39939 esac
39940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39941   (eval "$ac_compile") 2>conftest.er1
39942   ac_status=$?
39943   grep -v '^ *+' conftest.er1 >conftest.err
39944   rm -f conftest.er1
39945   cat conftest.err >&5
39946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39947   (exit $ac_status); } && {
39948          test -z "$ac_c_werror_flag" ||
39949          test ! -s conftest.err
39950        } && test -s conftest.$ac_objext; then
39951   eval "$as_ac_Header=yes"
39952 else
39953   echo "$as_me: failed program was:" >&5
39954 sed 's/^/| /' conftest.$ac_ext >&5
39955
39956         eval "$as_ac_Header=no"
39957 fi
39958
39959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39960 fi
39961 ac_res=`eval echo '${'$as_ac_Header'}'`
39962                { echo "$as_me:$LINENO: result: $ac_res" >&5
39963 echo "${ECHO_T}$ac_res" >&6; }
39964 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39965   cat >>confdefs.h <<_ACEOF
39966 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39967 _ACEOF
39968
39969 fi
39970
39971 done
39972
39973       if test "$ac_cv_header_sched_h" = "yes"; then
39974           { echo "$as_me:$LINENO: checking for sched_yield" >&5
39975 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6; }
39976 if test "${ac_cv_func_sched_yield+set}" = set; then
39977   echo $ECHO_N "(cached) $ECHO_C" >&6
39978 else
39979   cat >conftest.$ac_ext <<_ACEOF
39980 /* confdefs.h.  */
39981 _ACEOF
39982 cat confdefs.h >>conftest.$ac_ext
39983 cat >>conftest.$ac_ext <<_ACEOF
39984 /* end confdefs.h.  */
39985 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
39986    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39987 #define sched_yield innocuous_sched_yield
39988
39989 /* System header to define __stub macros and hopefully few prototypes,
39990     which can conflict with char sched_yield (); below.
39991     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39992     <limits.h> exists even on freestanding compilers.  */
39993
39994 #ifdef __STDC__
39995 # include <limits.h>
39996 #else
39997 # include <assert.h>
39998 #endif
39999
40000 #undef sched_yield
40001
40002 /* Override any GCC internal prototype to avoid an error.
40003    Use char because int might match the return type of a GCC
40004    builtin and then its argument prototype would still apply.  */
40005 #ifdef __cplusplus
40006 extern "C"
40007 #endif
40008 char sched_yield ();
40009 /* The GNU C library defines this for functions which it implements
40010     to always fail with ENOSYS.  Some functions are actually named
40011     something starting with __ and the normal name is an alias.  */
40012 #if defined __stub_sched_yield || defined __stub___sched_yield
40013 choke me
40014 #endif
40015
40016 int
40017 main ()
40018 {
40019 return sched_yield ();
40020   ;
40021   return 0;
40022 }
40023 _ACEOF
40024 rm -f conftest.$ac_objext conftest$ac_exeext
40025 if { (ac_try="$ac_link"
40026 case "(($ac_try" in
40027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40028   *) ac_try_echo=$ac_try;;
40029 esac
40030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40031   (eval "$ac_link") 2>conftest.er1
40032   ac_status=$?
40033   grep -v '^ *+' conftest.er1 >conftest.err
40034   rm -f conftest.er1
40035   cat conftest.err >&5
40036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40037   (exit $ac_status); } && {
40038          test -z "$ac_c_werror_flag" ||
40039          test ! -s conftest.err
40040        } && test -s conftest$ac_exeext &&
40041        $as_test_x conftest$ac_exeext; then
40042   ac_cv_func_sched_yield=yes
40043 else
40044   echo "$as_me: failed program was:" >&5
40045 sed 's/^/| /' conftest.$ac_ext >&5
40046
40047         ac_cv_func_sched_yield=no
40048 fi
40049
40050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40051       conftest$ac_exeext conftest.$ac_ext
40052 fi
40053 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
40054 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6; }
40055 if test $ac_cv_func_sched_yield = yes; then
40056   cat >>confdefs.h <<\_ACEOF
40057 #define HAVE_SCHED_YIELD 1
40058 _ACEOF
40059
40060 else
40061
40062                 { echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
40063 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6; }
40064 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
40065   echo $ECHO_N "(cached) $ECHO_C" >&6
40066 else
40067   ac_check_lib_save_LIBS=$LIBS
40068 LIBS="-lposix4  $LIBS"
40069 cat >conftest.$ac_ext <<_ACEOF
40070 /* confdefs.h.  */
40071 _ACEOF
40072 cat confdefs.h >>conftest.$ac_ext
40073 cat >>conftest.$ac_ext <<_ACEOF
40074 /* end confdefs.h.  */
40075
40076 /* Override any GCC internal prototype to avoid an error.
40077    Use char because int might match the return type of a GCC
40078    builtin and then its argument prototype would still apply.  */
40079 #ifdef __cplusplus
40080 extern "C"
40081 #endif
40082 char sched_yield ();
40083 int
40084 main ()
40085 {
40086 return sched_yield ();
40087   ;
40088   return 0;
40089 }
40090 _ACEOF
40091 rm -f conftest.$ac_objext conftest$ac_exeext
40092 if { (ac_try="$ac_link"
40093 case "(($ac_try" in
40094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40095   *) ac_try_echo=$ac_try;;
40096 esac
40097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40098   (eval "$ac_link") 2>conftest.er1
40099   ac_status=$?
40100   grep -v '^ *+' conftest.er1 >conftest.err
40101   rm -f conftest.er1
40102   cat conftest.err >&5
40103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40104   (exit $ac_status); } && {
40105          test -z "$ac_c_werror_flag" ||
40106          test ! -s conftest.err
40107        } && test -s conftest$ac_exeext &&
40108        $as_test_x conftest$ac_exeext; then
40109   ac_cv_lib_posix4_sched_yield=yes
40110 else
40111   echo "$as_me: failed program was:" >&5
40112 sed 's/^/| /' conftest.$ac_ext >&5
40113
40114         ac_cv_lib_posix4_sched_yield=no
40115 fi
40116
40117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40118       conftest$ac_exeext conftest.$ac_ext
40119 LIBS=$ac_check_lib_save_LIBS
40120 fi
40121 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
40122 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6; }
40123 if test $ac_cv_lib_posix4_sched_yield = yes; then
40124   cat >>confdefs.h <<\_ACEOF
40125 #define HAVE_SCHED_YIELD 1
40126 _ACEOF
40127  POSIX4_LINK=" -lposix4"
40128 else
40129   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
40130 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
40131
40132 fi
40133
40134
40135
40136 fi
40137
40138       fi
40139
40140                                           HAVE_PRIOR_FUNCS=0
40141       { echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
40142 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6; }
40143 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
40144   echo $ECHO_N "(cached) $ECHO_C" >&6
40145 else
40146   cat >conftest.$ac_ext <<_ACEOF
40147 /* confdefs.h.  */
40148 _ACEOF
40149 cat confdefs.h >>conftest.$ac_ext
40150 cat >>conftest.$ac_ext <<_ACEOF
40151 /* end confdefs.h.  */
40152 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
40153    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40154 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
40155
40156 /* System header to define __stub macros and hopefully few prototypes,
40157     which can conflict with char pthread_attr_getschedpolicy (); below.
40158     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40159     <limits.h> exists even on freestanding compilers.  */
40160
40161 #ifdef __STDC__
40162 # include <limits.h>
40163 #else
40164 # include <assert.h>
40165 #endif
40166
40167 #undef pthread_attr_getschedpolicy
40168
40169 /* Override any GCC internal prototype to avoid an error.
40170    Use char because int might match the return type of a GCC
40171    builtin and then its argument prototype would still apply.  */
40172 #ifdef __cplusplus
40173 extern "C"
40174 #endif
40175 char pthread_attr_getschedpolicy ();
40176 /* The GNU C library defines this for functions which it implements
40177     to always fail with ENOSYS.  Some functions are actually named
40178     something starting with __ and the normal name is an alias.  */
40179 #if defined __stub_pthread_attr_getschedpolicy || defined __stub___pthread_attr_getschedpolicy
40180 choke me
40181 #endif
40182
40183 int
40184 main ()
40185 {
40186 return pthread_attr_getschedpolicy ();
40187   ;
40188   return 0;
40189 }
40190 _ACEOF
40191 rm -f conftest.$ac_objext conftest$ac_exeext
40192 if { (ac_try="$ac_link"
40193 case "(($ac_try" in
40194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40195   *) ac_try_echo=$ac_try;;
40196 esac
40197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40198   (eval "$ac_link") 2>conftest.er1
40199   ac_status=$?
40200   grep -v '^ *+' conftest.er1 >conftest.err
40201   rm -f conftest.er1
40202   cat conftest.err >&5
40203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40204   (exit $ac_status); } && {
40205          test -z "$ac_c_werror_flag" ||
40206          test ! -s conftest.err
40207        } && test -s conftest$ac_exeext &&
40208        $as_test_x conftest$ac_exeext; then
40209   ac_cv_func_pthread_attr_getschedpolicy=yes
40210 else
40211   echo "$as_me: failed program was:" >&5
40212 sed 's/^/| /' conftest.$ac_ext >&5
40213
40214         ac_cv_func_pthread_attr_getschedpolicy=no
40215 fi
40216
40217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40218       conftest$ac_exeext conftest.$ac_ext
40219 fi
40220 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
40221 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6; }
40222 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
40223   { echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
40224 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6; }
40225 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
40226   echo $ECHO_N "(cached) $ECHO_C" >&6
40227 else
40228   cat >conftest.$ac_ext <<_ACEOF
40229 /* confdefs.h.  */
40230 _ACEOF
40231 cat confdefs.h >>conftest.$ac_ext
40232 cat >>conftest.$ac_ext <<_ACEOF
40233 /* end confdefs.h.  */
40234 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
40235    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40236 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
40237
40238 /* System header to define __stub macros and hopefully few prototypes,
40239     which can conflict with char pthread_attr_setschedparam (); below.
40240     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40241     <limits.h> exists even on freestanding compilers.  */
40242
40243 #ifdef __STDC__
40244 # include <limits.h>
40245 #else
40246 # include <assert.h>
40247 #endif
40248
40249 #undef pthread_attr_setschedparam
40250
40251 /* Override any GCC internal prototype to avoid an error.
40252    Use char because int might match the return type of a GCC
40253    builtin and then its argument prototype would still apply.  */
40254 #ifdef __cplusplus
40255 extern "C"
40256 #endif
40257 char pthread_attr_setschedparam ();
40258 /* The GNU C library defines this for functions which it implements
40259     to always fail with ENOSYS.  Some functions are actually named
40260     something starting with __ and the normal name is an alias.  */
40261 #if defined __stub_pthread_attr_setschedparam || defined __stub___pthread_attr_setschedparam
40262 choke me
40263 #endif
40264
40265 int
40266 main ()
40267 {
40268 return pthread_attr_setschedparam ();
40269   ;
40270   return 0;
40271 }
40272 _ACEOF
40273 rm -f conftest.$ac_objext conftest$ac_exeext
40274 if { (ac_try="$ac_link"
40275 case "(($ac_try" in
40276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40277   *) ac_try_echo=$ac_try;;
40278 esac
40279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40280   (eval "$ac_link") 2>conftest.er1
40281   ac_status=$?
40282   grep -v '^ *+' conftest.er1 >conftest.err
40283   rm -f conftest.er1
40284   cat conftest.err >&5
40285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40286   (exit $ac_status); } && {
40287          test -z "$ac_c_werror_flag" ||
40288          test ! -s conftest.err
40289        } && test -s conftest$ac_exeext &&
40290        $as_test_x conftest$ac_exeext; then
40291   ac_cv_func_pthread_attr_setschedparam=yes
40292 else
40293   echo "$as_me: failed program was:" >&5
40294 sed 's/^/| /' conftest.$ac_ext >&5
40295
40296         ac_cv_func_pthread_attr_setschedparam=no
40297 fi
40298
40299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40300       conftest$ac_exeext conftest.$ac_ext
40301 fi
40302 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
40303 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6; }
40304 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
40305   { echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
40306 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6; }
40307 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
40308   echo $ECHO_N "(cached) $ECHO_C" >&6
40309 else
40310   cat >conftest.$ac_ext <<_ACEOF
40311 /* confdefs.h.  */
40312 _ACEOF
40313 cat confdefs.h >>conftest.$ac_ext
40314 cat >>conftest.$ac_ext <<_ACEOF
40315 /* end confdefs.h.  */
40316 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
40317    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40318 #define sched_get_priority_max innocuous_sched_get_priority_max
40319
40320 /* System header to define __stub macros and hopefully few prototypes,
40321     which can conflict with char sched_get_priority_max (); below.
40322     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40323     <limits.h> exists even on freestanding compilers.  */
40324
40325 #ifdef __STDC__
40326 # include <limits.h>
40327 #else
40328 # include <assert.h>
40329 #endif
40330
40331 #undef sched_get_priority_max
40332
40333 /* Override any GCC internal prototype to avoid an error.
40334    Use char because int might match the return type of a GCC
40335    builtin and then its argument prototype would still apply.  */
40336 #ifdef __cplusplus
40337 extern "C"
40338 #endif
40339 char sched_get_priority_max ();
40340 /* The GNU C library defines this for functions which it implements
40341     to always fail with ENOSYS.  Some functions are actually named
40342     something starting with __ and the normal name is an alias.  */
40343 #if defined __stub_sched_get_priority_max || defined __stub___sched_get_priority_max
40344 choke me
40345 #endif
40346
40347 int
40348 main ()
40349 {
40350 return sched_get_priority_max ();
40351   ;
40352   return 0;
40353 }
40354 _ACEOF
40355 rm -f conftest.$ac_objext conftest$ac_exeext
40356 if { (ac_try="$ac_link"
40357 case "(($ac_try" in
40358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40359   *) ac_try_echo=$ac_try;;
40360 esac
40361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40362   (eval "$ac_link") 2>conftest.er1
40363   ac_status=$?
40364   grep -v '^ *+' conftest.er1 >conftest.err
40365   rm -f conftest.er1
40366   cat conftest.err >&5
40367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40368   (exit $ac_status); } && {
40369          test -z "$ac_c_werror_flag" ||
40370          test ! -s conftest.err
40371        } && test -s conftest$ac_exeext &&
40372        $as_test_x conftest$ac_exeext; then
40373   ac_cv_func_sched_get_priority_max=yes
40374 else
40375   echo "$as_me: failed program was:" >&5
40376 sed 's/^/| /' conftest.$ac_ext >&5
40377
40378         ac_cv_func_sched_get_priority_max=no
40379 fi
40380
40381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40382       conftest$ac_exeext conftest.$ac_ext
40383 fi
40384 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
40385 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6; }
40386 if test $ac_cv_func_sched_get_priority_max = yes; then
40387   HAVE_PRIOR_FUNCS=1
40388 else
40389   { echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
40390 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6; }
40391 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
40392   echo $ECHO_N "(cached) $ECHO_C" >&6
40393 else
40394   ac_check_lib_save_LIBS=$LIBS
40395 LIBS="-lposix4  $LIBS"
40396 cat >conftest.$ac_ext <<_ACEOF
40397 /* confdefs.h.  */
40398 _ACEOF
40399 cat confdefs.h >>conftest.$ac_ext
40400 cat >>conftest.$ac_ext <<_ACEOF
40401 /* end confdefs.h.  */
40402
40403 /* Override any GCC internal prototype to avoid an error.
40404    Use char because int might match the return type of a GCC
40405    builtin and then its argument prototype would still apply.  */
40406 #ifdef __cplusplus
40407 extern "C"
40408 #endif
40409 char sched_get_priority_max ();
40410 int
40411 main ()
40412 {
40413 return sched_get_priority_max ();
40414   ;
40415   return 0;
40416 }
40417 _ACEOF
40418 rm -f conftest.$ac_objext conftest$ac_exeext
40419 if { (ac_try="$ac_link"
40420 case "(($ac_try" in
40421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40422   *) ac_try_echo=$ac_try;;
40423 esac
40424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40425   (eval "$ac_link") 2>conftest.er1
40426   ac_status=$?
40427   grep -v '^ *+' conftest.er1 >conftest.err
40428   rm -f conftest.er1
40429   cat conftest.err >&5
40430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40431   (exit $ac_status); } && {
40432          test -z "$ac_c_werror_flag" ||
40433          test ! -s conftest.err
40434        } && test -s conftest$ac_exeext &&
40435        $as_test_x conftest$ac_exeext; then
40436   ac_cv_lib_posix4_sched_get_priority_max=yes
40437 else
40438   echo "$as_me: failed program was:" >&5
40439 sed 's/^/| /' conftest.$ac_ext >&5
40440
40441         ac_cv_lib_posix4_sched_get_priority_max=no
40442 fi
40443
40444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40445       conftest$ac_exeext conftest.$ac_ext
40446 LIBS=$ac_check_lib_save_LIBS
40447 fi
40448 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
40449 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6; }
40450 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
40451
40452                                 HAVE_PRIOR_FUNCS=1
40453                                 POSIX4_LINK=" -lposix4"
40454
40455 fi
40456
40457
40458 fi
40459
40460
40461 fi
40462
40463
40464 fi
40465
40466
40467       if test "$HAVE_PRIOR_FUNCS" = 1; then
40468         cat >>confdefs.h <<\_ACEOF
40469 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
40470 _ACEOF
40471
40472       else
40473         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
40474 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
40475       fi
40476
40477       { echo "$as_me:$LINENO: checking for pthread_cancel" >&5
40478 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6; }
40479 if test "${ac_cv_func_pthread_cancel+set}" = set; then
40480   echo $ECHO_N "(cached) $ECHO_C" >&6
40481 else
40482   cat >conftest.$ac_ext <<_ACEOF
40483 /* confdefs.h.  */
40484 _ACEOF
40485 cat confdefs.h >>conftest.$ac_ext
40486 cat >>conftest.$ac_ext <<_ACEOF
40487 /* end confdefs.h.  */
40488 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
40489    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40490 #define pthread_cancel innocuous_pthread_cancel
40491
40492 /* System header to define __stub macros and hopefully few prototypes,
40493     which can conflict with char pthread_cancel (); below.
40494     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40495     <limits.h> exists even on freestanding compilers.  */
40496
40497 #ifdef __STDC__
40498 # include <limits.h>
40499 #else
40500 # include <assert.h>
40501 #endif
40502
40503 #undef pthread_cancel
40504
40505 /* Override any GCC internal prototype to avoid an error.
40506    Use char because int might match the return type of a GCC
40507    builtin and then its argument prototype would still apply.  */
40508 #ifdef __cplusplus
40509 extern "C"
40510 #endif
40511 char pthread_cancel ();
40512 /* The GNU C library defines this for functions which it implements
40513     to always fail with ENOSYS.  Some functions are actually named
40514     something starting with __ and the normal name is an alias.  */
40515 #if defined __stub_pthread_cancel || defined __stub___pthread_cancel
40516 choke me
40517 #endif
40518
40519 int
40520 main ()
40521 {
40522 return pthread_cancel ();
40523   ;
40524   return 0;
40525 }
40526 _ACEOF
40527 rm -f conftest.$ac_objext conftest$ac_exeext
40528 if { (ac_try="$ac_link"
40529 case "(($ac_try" in
40530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40531   *) ac_try_echo=$ac_try;;
40532 esac
40533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40534   (eval "$ac_link") 2>conftest.er1
40535   ac_status=$?
40536   grep -v '^ *+' conftest.er1 >conftest.err
40537   rm -f conftest.er1
40538   cat conftest.err >&5
40539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40540   (exit $ac_status); } && {
40541          test -z "$ac_c_werror_flag" ||
40542          test ! -s conftest.err
40543        } && test -s conftest$ac_exeext &&
40544        $as_test_x conftest$ac_exeext; then
40545   ac_cv_func_pthread_cancel=yes
40546 else
40547   echo "$as_me: failed program was:" >&5
40548 sed 's/^/| /' conftest.$ac_ext >&5
40549
40550         ac_cv_func_pthread_cancel=no
40551 fi
40552
40553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40554       conftest$ac_exeext conftest.$ac_ext
40555 fi
40556 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
40557 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6; }
40558 if test $ac_cv_func_pthread_cancel = yes; then
40559   cat >>confdefs.h <<\_ACEOF
40560 #define HAVE_PTHREAD_CANCEL 1
40561 _ACEOF
40562
40563 else
40564   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
40565 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
40566 fi
40567
40568
40569       { echo "$as_me:$LINENO: checking for pthread_mutex_timedlock" >&5
40570 echo $ECHO_N "checking for pthread_mutex_timedlock... $ECHO_C" >&6; }
40571 if test "${ac_cv_func_pthread_mutex_timedlock+set}" = set; then
40572   echo $ECHO_N "(cached) $ECHO_C" >&6
40573 else
40574   cat >conftest.$ac_ext <<_ACEOF
40575 /* confdefs.h.  */
40576 _ACEOF
40577 cat confdefs.h >>conftest.$ac_ext
40578 cat >>conftest.$ac_ext <<_ACEOF
40579 /* end confdefs.h.  */
40580 /* Define pthread_mutex_timedlock to an innocuous variant, in case <limits.h> declares pthread_mutex_timedlock.
40581    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40582 #define pthread_mutex_timedlock innocuous_pthread_mutex_timedlock
40583
40584 /* System header to define __stub macros and hopefully few prototypes,
40585     which can conflict with char pthread_mutex_timedlock (); below.
40586     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40587     <limits.h> exists even on freestanding compilers.  */
40588
40589 #ifdef __STDC__
40590 # include <limits.h>
40591 #else
40592 # include <assert.h>
40593 #endif
40594
40595 #undef pthread_mutex_timedlock
40596
40597 /* Override any GCC internal prototype to avoid an error.
40598    Use char because int might match the return type of a GCC
40599    builtin and then its argument prototype would still apply.  */
40600 #ifdef __cplusplus
40601 extern "C"
40602 #endif
40603 char pthread_mutex_timedlock ();
40604 /* The GNU C library defines this for functions which it implements
40605     to always fail with ENOSYS.  Some functions are actually named
40606     something starting with __ and the normal name is an alias.  */
40607 #if defined __stub_pthread_mutex_timedlock || defined __stub___pthread_mutex_timedlock
40608 choke me
40609 #endif
40610
40611 int
40612 main ()
40613 {
40614 return pthread_mutex_timedlock ();
40615   ;
40616   return 0;
40617 }
40618 _ACEOF
40619 rm -f conftest.$ac_objext conftest$ac_exeext
40620 if { (ac_try="$ac_link"
40621 case "(($ac_try" in
40622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40623   *) ac_try_echo=$ac_try;;
40624 esac
40625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40626   (eval "$ac_link") 2>conftest.er1
40627   ac_status=$?
40628   grep -v '^ *+' conftest.er1 >conftest.err
40629   rm -f conftest.er1
40630   cat conftest.err >&5
40631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40632   (exit $ac_status); } && {
40633          test -z "$ac_c_werror_flag" ||
40634          test ! -s conftest.err
40635        } && test -s conftest$ac_exeext &&
40636        $as_test_x conftest$ac_exeext; then
40637   ac_cv_func_pthread_mutex_timedlock=yes
40638 else
40639   echo "$as_me: failed program was:" >&5
40640 sed 's/^/| /' conftest.$ac_ext >&5
40641
40642         ac_cv_func_pthread_mutex_timedlock=no
40643 fi
40644
40645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40646       conftest$ac_exeext conftest.$ac_ext
40647 fi
40648 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_timedlock" >&5
40649 echo "${ECHO_T}$ac_cv_func_pthread_mutex_timedlock" >&6; }
40650 if test $ac_cv_func_pthread_mutex_timedlock = yes; then
40651   cat >>confdefs.h <<\_ACEOF
40652 #define HAVE_PTHREAD_MUTEX_TIMEDLOCK 1
40653 _ACEOF
40654
40655 else
40656   { echo "$as_me:$LINENO: WARNING: wxMutex::LockTimeout() will not work" >&5
40657 echo "$as_me: WARNING: wxMutex::LockTimeout() will not work" >&2;}
40658 fi
40659
40660
40661       { echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
40662 echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6; }
40663 if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
40664   echo $ECHO_N "(cached) $ECHO_C" >&6
40665 else
40666   cat >conftest.$ac_ext <<_ACEOF
40667 /* confdefs.h.  */
40668 _ACEOF
40669 cat confdefs.h >>conftest.$ac_ext
40670 cat >>conftest.$ac_ext <<_ACEOF
40671 /* end confdefs.h.  */
40672 /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
40673    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40674 #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
40675
40676 /* System header to define __stub macros and hopefully few prototypes,
40677     which can conflict with char pthread_attr_setstacksize (); below.
40678     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40679     <limits.h> exists even on freestanding compilers.  */
40680
40681 #ifdef __STDC__
40682 # include <limits.h>
40683 #else
40684 # include <assert.h>
40685 #endif
40686
40687 #undef pthread_attr_setstacksize
40688
40689 /* Override any GCC internal prototype to avoid an error.
40690    Use char because int might match the return type of a GCC
40691    builtin and then its argument prototype would still apply.  */
40692 #ifdef __cplusplus
40693 extern "C"
40694 #endif
40695 char pthread_attr_setstacksize ();
40696 /* The GNU C library defines this for functions which it implements
40697     to always fail with ENOSYS.  Some functions are actually named
40698     something starting with __ and the normal name is an alias.  */
40699 #if defined __stub_pthread_attr_setstacksize || defined __stub___pthread_attr_setstacksize
40700 choke me
40701 #endif
40702
40703 int
40704 main ()
40705 {
40706 return pthread_attr_setstacksize ();
40707   ;
40708   return 0;
40709 }
40710 _ACEOF
40711 rm -f conftest.$ac_objext conftest$ac_exeext
40712 if { (ac_try="$ac_link"
40713 case "(($ac_try" in
40714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40715   *) ac_try_echo=$ac_try;;
40716 esac
40717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40718   (eval "$ac_link") 2>conftest.er1
40719   ac_status=$?
40720   grep -v '^ *+' conftest.er1 >conftest.err
40721   rm -f conftest.er1
40722   cat conftest.err >&5
40723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40724   (exit $ac_status); } && {
40725          test -z "$ac_c_werror_flag" ||
40726          test ! -s conftest.err
40727        } && test -s conftest$ac_exeext &&
40728        $as_test_x conftest$ac_exeext; then
40729   ac_cv_func_pthread_attr_setstacksize=yes
40730 else
40731   echo "$as_me: failed program was:" >&5
40732 sed 's/^/| /' conftest.$ac_ext >&5
40733
40734         ac_cv_func_pthread_attr_setstacksize=no
40735 fi
40736
40737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40738       conftest$ac_exeext conftest.$ac_ext
40739 fi
40740 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
40741 echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6; }
40742 if test $ac_cv_func_pthread_attr_setstacksize = yes; then
40743   cat >>confdefs.h <<\_ACEOF
40744 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
40745 _ACEOF
40746
40747 fi
40748
40749
40750
40751       { echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
40752 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6; }
40753 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
40754   echo $ECHO_N "(cached) $ECHO_C" >&6
40755 else
40756
40757         cat >conftest.$ac_ext <<_ACEOF
40758 /* confdefs.h.  */
40759 _ACEOF
40760 cat confdefs.h >>conftest.$ac_ext
40761 cat >>conftest.$ac_ext <<_ACEOF
40762 /* end confdefs.h.  */
40763 #include <pthread.h>
40764 int
40765 main ()
40766 {
40767
40768                pthread_mutexattr_t attr;
40769                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
40770
40771   ;
40772   return 0;
40773 }
40774 _ACEOF
40775 rm -f conftest.$ac_objext
40776 if { (ac_try="$ac_compile"
40777 case "(($ac_try" in
40778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40779   *) ac_try_echo=$ac_try;;
40780 esac
40781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40782   (eval "$ac_compile") 2>conftest.er1
40783   ac_status=$?
40784   grep -v '^ *+' conftest.er1 >conftest.err
40785   rm -f conftest.er1
40786   cat conftest.err >&5
40787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40788   (exit $ac_status); } && {
40789          test -z "$ac_c_werror_flag" ||
40790          test ! -s conftest.err
40791        } && test -s conftest.$ac_objext; then
40792   wx_cv_type_pthread_mutexattr_t=yes
40793 else
40794   echo "$as_me: failed program was:" >&5
40795 sed 's/^/| /' conftest.$ac_ext >&5
40796
40797         wx_cv_type_pthread_mutexattr_t=no
40798
40799 fi
40800
40801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40802
40803 fi
40804 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
40805 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6; }
40806
40807       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
40808         cat >>confdefs.h <<\_ACEOF
40809 #define HAVE_PTHREAD_MUTEXATTR_T 1
40810 _ACEOF
40811
40812
40813                         { echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
40814 echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6; }
40815 if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
40816   echo $ECHO_N "(cached) $ECHO_C" >&6
40817 else
40818
40819                        cat >conftest.$ac_ext <<_ACEOF
40820 /* confdefs.h.  */
40821 _ACEOF
40822 cat confdefs.h >>conftest.$ac_ext
40823 cat >>conftest.$ac_ext <<_ACEOF
40824 /* end confdefs.h.  */
40825 #include <pthread.h>
40826 int
40827 main ()
40828 {
40829
40830                                pthread_mutexattr_t attr;
40831                                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
40832
40833   ;
40834   return 0;
40835 }
40836 _ACEOF
40837 rm -f conftest.$ac_objext
40838 if { (ac_try="$ac_compile"
40839 case "(($ac_try" in
40840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40841   *) ac_try_echo=$ac_try;;
40842 esac
40843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40844   (eval "$ac_compile") 2>conftest.er1
40845   ac_status=$?
40846   grep -v '^ *+' conftest.er1 >conftest.err
40847   rm -f conftest.er1
40848   cat conftest.err >&5
40849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40850   (exit $ac_status); } && {
40851          test -z "$ac_c_werror_flag" ||
40852          test ! -s conftest.err
40853        } && test -s conftest.$ac_objext; then
40854   wx_cv_func_pthread_mutexattr_settype_decl=yes
40855 else
40856   echo "$as_me: failed program was:" >&5
40857 sed 's/^/| /' conftest.$ac_ext >&5
40858
40859         wx_cv_func_pthread_mutexattr_settype_decl=no
40860
40861 fi
40862
40863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40864
40865 fi
40866 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
40867 echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6; }
40868         if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
40869             cat >>confdefs.h <<\_ACEOF
40870 #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
40871 _ACEOF
40872
40873         fi
40874       else
40875                 { echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
40876 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6; }
40877 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
40878   echo $ECHO_N "(cached) $ECHO_C" >&6
40879 else
40880
40881             cat >conftest.$ac_ext <<_ACEOF
40882 /* confdefs.h.  */
40883 _ACEOF
40884 cat confdefs.h >>conftest.$ac_ext
40885 cat >>conftest.$ac_ext <<_ACEOF
40886 /* end confdefs.h.  */
40887 #include <pthread.h>
40888 int
40889 main ()
40890 {
40891
40892                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
40893
40894   ;
40895   return 0;
40896 }
40897 _ACEOF
40898 rm -f conftest.$ac_objext
40899 if { (ac_try="$ac_compile"
40900 case "(($ac_try" in
40901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40902   *) ac_try_echo=$ac_try;;
40903 esac
40904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40905   (eval "$ac_compile") 2>conftest.er1
40906   ac_status=$?
40907   grep -v '^ *+' conftest.er1 >conftest.err
40908   rm -f conftest.er1
40909   cat conftest.err >&5
40910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40911   (exit $ac_status); } && {
40912          test -z "$ac_c_werror_flag" ||
40913          test ! -s conftest.err
40914        } && test -s conftest.$ac_objext; then
40915
40916                     wx_cv_type_pthread_rec_mutex_init=yes
40917
40918 else
40919   echo "$as_me: failed program was:" >&5
40920 sed 's/^/| /' conftest.$ac_ext >&5
40921
40922
40923                     wx_cv_type_pthread_rec_mutex_init=no
40924
40925
40926 fi
40927
40928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40929
40930 fi
40931 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
40932 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6; }
40933         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
40934           cat >>confdefs.h <<\_ACEOF
40935 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
40936 _ACEOF
40937
40938         else
40939                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
40940 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
40941         fi
40942       fi
40943
40944       if test "$wxUSE_COMPILER_TLS" = "auto"; then
40945           if test "$USE_NETBSD" = 1; then
40946               { echo "$as_me:$LINENO: WARNING: Disabling TLS under NetBSD, please contact wx-dev if it works now" >&5
40947 echo "$as_me: WARNING: Disabling TLS under NetBSD, please contact wx-dev if it works now" >&2;}
40948               wxUSE_COMPILER_TLS=no
40949           else
40950               wxUSE_COMPILER_TLS=yes
40951           fi
40952       fi
40953
40954       if test "$wxUSE_COMPILER_TLS" = "yes"; then
40955                     { echo "$as_me:$LINENO: checking for __thread keyword" >&5
40956 echo $ECHO_N "checking for __thread keyword... $ECHO_C" >&6; }
40957 if test "${wx_cv_cc___thread+set}" = set; then
40958   echo $ECHO_N "(cached) $ECHO_C" >&6
40959 else
40960
40961                   cat >conftest.$ac_ext <<_ACEOF
40962 /* confdefs.h.  */
40963 _ACEOF
40964 cat confdefs.h >>conftest.$ac_ext
40965 cat >>conftest.$ac_ext <<_ACEOF
40966 /* end confdefs.h.  */
40967 #include <pthread.h>
40968 int
40969 main ()
40970 {
40971
40972                           static __thread int n = 0;
40973                           static __thread int *p = 0;
40974
40975   ;
40976   return 0;
40977 }
40978 _ACEOF
40979 rm -f conftest.$ac_objext
40980 if { (ac_try="$ac_compile"
40981 case "(($ac_try" in
40982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40983   *) ac_try_echo=$ac_try;;
40984 esac
40985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40986   (eval "$ac_compile") 2>conftest.er1
40987   ac_status=$?
40988   grep -v '^ *+' conftest.er1 >conftest.err
40989   rm -f conftest.er1
40990   cat conftest.err >&5
40991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40992   (exit $ac_status); } && {
40993          test -z "$ac_c_werror_flag" ||
40994          test ! -s conftest.err
40995        } && test -s conftest.$ac_objext; then
40996   wx_cv_cc___thread=yes
40997 else
40998   echo "$as_me: failed program was:" >&5
40999 sed 's/^/| /' conftest.$ac_ext >&5
41000
41001         wx_cv_cc___thread=no
41002
41003 fi
41004
41005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41006
41007
41008 fi
41009 { echo "$as_me:$LINENO: result: $wx_cv_cc___thread" >&5
41010 echo "${ECHO_T}$wx_cv_cc___thread" >&6; }
41011
41012           if test "$wx_cv_cc___thread" = "yes"; then
41013
41014   GXX_VERSION=""
41015
41016
41017
41018   { echo "$as_me:$LINENO: checking if gcc accepts -dumpversion option" >&5
41019 echo $ECHO_N "checking if gcc accepts -dumpversion option... $ECHO_C" >&6; }
41020
41021   if  test "x$GCC" = "xyes" ; then
41022
41023     if  test -z "" ; then
41024
41025       ax_gcc_option_test="int main()
41026 {
41027         return 0;
41028 }"
41029
41030 else
41031
41032       ax_gcc_option_test=""
41033
41034 fi
41035
41036
41037     # Dump the test program to file
41038     cat <<EOF > conftest.c
41039 $ax_gcc_option_test
41040 EOF
41041
41042     # Dump back the file to the log, useful for debugging purposes
41043     { ac_try='cat conftest.c 1>&5'
41044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41045   (eval $ac_try) 2>&5
41046   ac_status=$?
41047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41048   (exit $ac_status); }; }
41049
41050     if  { ac_try='$CC  -dumpversion -c conftest.c 1>&5'
41051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41052   (eval $ac_try) 2>&5
41053   ac_status=$?
41054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41055   (exit $ac_status); }; } ; then
41056
41057                 { echo "$as_me:$LINENO: result: yes" >&5
41058 echo "${ECHO_T}yes" >&6; }
41059
41060     ax_gcc_version_option=yes
41061
41062
41063 else
41064
41065                 { echo "$as_me:$LINENO: result: no" >&5
41066 echo "${ECHO_T}no" >&6; }
41067
41068     ax_gcc_version_option=no
41069
41070
41071 fi
41072
41073
41074 else
41075
41076     { echo "$as_me:$LINENO: result: no gcc available" >&5
41077 echo "${ECHO_T}no gcc available" >&6; }
41078
41079 fi
41080
41081
41082   if test "x$GXX" = "xyes"; then
41083
41084     if test "x$ax_gxx_version_option" != "no"; then
41085
41086       { echo "$as_me:$LINENO: checking gxx version" >&5
41087 echo $ECHO_N "checking gxx version... $ECHO_C" >&6; }
41088 if test "${ax_cv_gxx_version+set}" = set; then
41089   echo $ECHO_N "(cached) $ECHO_C" >&6
41090 else
41091
41092         ax_cv_gxx_version="`$CXX -dumpversion`"
41093         if test "x$ax_cv_gxx_version" = "x"; then
41094
41095           ax_cv_gxx_version=""
41096
41097 fi
41098
41099
41100 fi
41101 { echo "$as_me:$LINENO: result: $ax_cv_gxx_version" >&5
41102 echo "${ECHO_T}$ax_cv_gxx_version" >&6; }
41103       GXX_VERSION=$ax_cv_gxx_version
41104
41105 fi
41106
41107
41108 fi
41109
41110
41111
41112               if test -n "$ax_cv_gxx_version"; then
41113                                                                                                                                                                   { echo "$as_me:$LINENO: checking whether __thread support in g++ is usable" >&5
41114 echo $ECHO_N "checking whether __thread support in g++ is usable... $ECHO_C" >&6; }
41115                   case "$ax_cv_gxx_version" in
41116                     1.* | 2.* | 3.* )
41117                         { echo "$as_me:$LINENO: result: no, it's broken" >&5
41118 echo "${ECHO_T}no, it's broken" >&6; }
41119                         wx_cv_cc___thread=no
41120                         ;;
41121                     *)
41122                         { echo "$as_me:$LINENO: result: yes, it works" >&5
41123 echo "${ECHO_T}yes, it works" >&6; }
41124                         ;;
41125                   esac
41126               fi
41127           fi
41128
41129           if test "$wx_cv_cc___thread" = "yes"; then
41130             cat >>confdefs.h <<\_ACEOF
41131 #define HAVE___THREAD_KEYWORD 1
41132 _ACEOF
41133
41134           fi
41135         fi
41136     fi
41137
41138 else
41139     if test "$wxUSE_THREADS" = "yes" ; then
41140       case "${host}" in
41141         x86_64-*-mingw32* )
41142         ;;
41143         *-*-mingw32* )
41144                         { echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
41145 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6; }
41146 if test "${wx_cv_cflags_mthread+set}" = set; then
41147   echo $ECHO_N "(cached) $ECHO_C" >&6
41148 else
41149
41150                     CFLAGS_OLD="$CFLAGS"
41151                     CFLAGS="-mthreads $CFLAGS"
41152                     cat >conftest.$ac_ext <<_ACEOF
41153 /* confdefs.h.  */
41154 _ACEOF
41155 cat confdefs.h >>conftest.$ac_ext
41156 cat >>conftest.$ac_ext <<_ACEOF
41157 /* end confdefs.h.  */
41158
41159 int
41160 main ()
41161 {
41162
41163   ;
41164   return 0;
41165 }
41166 _ACEOF
41167 rm -f conftest.$ac_objext
41168 if { (ac_try="$ac_compile"
41169 case "(($ac_try" in
41170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41171   *) ac_try_echo=$ac_try;;
41172 esac
41173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41174   (eval "$ac_compile") 2>conftest.er1
41175   ac_status=$?
41176   grep -v '^ *+' conftest.er1 >conftest.err
41177   rm -f conftest.er1
41178   cat conftest.err >&5
41179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41180   (exit $ac_status); } && {
41181          test -z "$ac_c_werror_flag" ||
41182          test ! -s conftest.err
41183        } && test -s conftest.$ac_objext; then
41184   wx_cv_cflags_mthread=yes
41185 else
41186   echo "$as_me: failed program was:" >&5
41187 sed 's/^/| /' conftest.$ac_ext >&5
41188
41189         wx_cv_cflags_mthread=no
41190
41191 fi
41192
41193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41194
41195
41196 fi
41197 { echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
41198 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6; }
41199
41200             if test "$wx_cv_cflags_mthread" = "yes"; then
41201                                 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads"
41202                 LDFLAGS="$LDFLAGS -mthreads"
41203             else
41204                                 CFLAGS="$CFLAGS_OLD"
41205             fi
41206         ;;
41207         *-pc-os2*emx )
41208             WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
41209             LDFLAGS="$LDFLAGS -Zmt"
41210         ;;
41211       esac
41212     fi
41213 fi
41214
41215 { echo "$as_me:$LINENO: checking for localtime_r" >&5
41216 echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6; }
41217 if test "${ac_cv_func_localtime_r+set}" = set; then
41218   echo $ECHO_N "(cached) $ECHO_C" >&6
41219 else
41220   cat >conftest.$ac_ext <<_ACEOF
41221 /* confdefs.h.  */
41222 _ACEOF
41223 cat confdefs.h >>conftest.$ac_ext
41224 cat >>conftest.$ac_ext <<_ACEOF
41225 /* end confdefs.h.  */
41226 /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
41227    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41228 #define localtime_r innocuous_localtime_r
41229
41230 /* System header to define __stub macros and hopefully few prototypes,
41231     which can conflict with char localtime_r (); below.
41232     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41233     <limits.h> exists even on freestanding compilers.  */
41234
41235 #ifdef __STDC__
41236 # include <limits.h>
41237 #else
41238 # include <assert.h>
41239 #endif
41240
41241 #undef localtime_r
41242
41243 /* Override any GCC internal prototype to avoid an error.
41244    Use char because int might match the return type of a GCC
41245    builtin and then its argument prototype would still apply.  */
41246 #ifdef __cplusplus
41247 extern "C"
41248 #endif
41249 char localtime_r ();
41250 /* The GNU C library defines this for functions which it implements
41251     to always fail with ENOSYS.  Some functions are actually named
41252     something starting with __ and the normal name is an alias.  */
41253 #if defined __stub_localtime_r || defined __stub___localtime_r
41254 choke me
41255 #endif
41256
41257 int
41258 main ()
41259 {
41260 return localtime_r ();
41261   ;
41262   return 0;
41263 }
41264 _ACEOF
41265 rm -f conftest.$ac_objext conftest$ac_exeext
41266 if { (ac_try="$ac_link"
41267 case "(($ac_try" in
41268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41269   *) ac_try_echo=$ac_try;;
41270 esac
41271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41272   (eval "$ac_link") 2>conftest.er1
41273   ac_status=$?
41274   grep -v '^ *+' conftest.er1 >conftest.err
41275   rm -f conftest.er1
41276   cat conftest.err >&5
41277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41278   (exit $ac_status); } && {
41279          test -z "$ac_c_werror_flag" ||
41280          test ! -s conftest.err
41281        } && test -s conftest$ac_exeext &&
41282        $as_test_x conftest$ac_exeext; then
41283   ac_cv_func_localtime_r=yes
41284 else
41285   echo "$as_me: failed program was:" >&5
41286 sed 's/^/| /' conftest.$ac_ext >&5
41287
41288         ac_cv_func_localtime_r=no
41289 fi
41290
41291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41292       conftest$ac_exeext conftest.$ac_ext
41293 fi
41294 { echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
41295 echo "${ECHO_T}$ac_cv_func_localtime_r" >&6; }
41296 if test $ac_cv_func_localtime_r = yes; then
41297    cat >>confdefs.h <<\_ACEOF
41298 #define HAVE_LOCALTIME_R 1
41299 _ACEOF
41300
41301 fi
41302
41303 { echo "$as_me:$LINENO: checking for gmtime_r" >&5
41304 echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6; }
41305 if test "${ac_cv_func_gmtime_r+set}" = set; then
41306   echo $ECHO_N "(cached) $ECHO_C" >&6
41307 else
41308   cat >conftest.$ac_ext <<_ACEOF
41309 /* confdefs.h.  */
41310 _ACEOF
41311 cat confdefs.h >>conftest.$ac_ext
41312 cat >>conftest.$ac_ext <<_ACEOF
41313 /* end confdefs.h.  */
41314 /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
41315    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41316 #define gmtime_r innocuous_gmtime_r
41317
41318 /* System header to define __stub macros and hopefully few prototypes,
41319     which can conflict with char gmtime_r (); below.
41320     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41321     <limits.h> exists even on freestanding compilers.  */
41322
41323 #ifdef __STDC__
41324 # include <limits.h>
41325 #else
41326 # include <assert.h>
41327 #endif
41328
41329 #undef gmtime_r
41330
41331 /* Override any GCC internal prototype to avoid an error.
41332    Use char because int might match the return type of a GCC
41333    builtin and then its argument prototype would still apply.  */
41334 #ifdef __cplusplus
41335 extern "C"
41336 #endif
41337 char gmtime_r ();
41338 /* The GNU C library defines this for functions which it implements
41339     to always fail with ENOSYS.  Some functions are actually named
41340     something starting with __ and the normal name is an alias.  */
41341 #if defined __stub_gmtime_r || defined __stub___gmtime_r
41342 choke me
41343 #endif
41344
41345 int
41346 main ()
41347 {
41348 return gmtime_r ();
41349   ;
41350   return 0;
41351 }
41352 _ACEOF
41353 rm -f conftest.$ac_objext conftest$ac_exeext
41354 if { (ac_try="$ac_link"
41355 case "(($ac_try" in
41356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41357   *) ac_try_echo=$ac_try;;
41358 esac
41359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41360   (eval "$ac_link") 2>conftest.er1
41361   ac_status=$?
41362   grep -v '^ *+' conftest.er1 >conftest.err
41363   rm -f conftest.er1
41364   cat conftest.err >&5
41365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41366   (exit $ac_status); } && {
41367          test -z "$ac_c_werror_flag" ||
41368          test ! -s conftest.err
41369        } && test -s conftest$ac_exeext &&
41370        $as_test_x conftest$ac_exeext; then
41371   ac_cv_func_gmtime_r=yes
41372 else
41373   echo "$as_me: failed program was:" >&5
41374 sed 's/^/| /' conftest.$ac_ext >&5
41375
41376         ac_cv_func_gmtime_r=no
41377 fi
41378
41379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41380       conftest$ac_exeext conftest.$ac_ext
41381 fi
41382 { echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
41383 echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6; }
41384 if test $ac_cv_func_gmtime_r = yes; then
41385    cat >>confdefs.h <<\_ACEOF
41386 #define HAVE_GMTIME_R 1
41387 _ACEOF
41388
41389 fi
41390
41391
41392
41393
41394     ac_ext=c
41395 ac_cpp='$CPP $CPPFLAGS'
41396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41399
41400     { echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
41401 echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6; }
41402
41403     if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
41404   echo $ECHO_N "(cached) $ECHO_C" >&6
41405 else
41406
41407
41408 ################################################################
41409
41410 ac_cv_func_which_gethostbyname_r=unknown
41411
41412 #
41413 # ONE ARGUMENT (sanity check)
41414 #
41415
41416 # This should fail, as there is no variant of gethostbyname_r() that takes
41417 # a single argument. If it actually compiles, then we can assume that
41418 # netdb.h is not declaring the function, and the compiler is thereby
41419 # assuming an implicit prototype. In which case, we're out of luck.
41420 #
41421 cat >conftest.$ac_ext <<_ACEOF
41422 /* confdefs.h.  */
41423 _ACEOF
41424 cat confdefs.h >>conftest.$ac_ext
41425 cat >>conftest.$ac_ext <<_ACEOF
41426 /* end confdefs.h.  */
41427 #include <netdb.h>
41428 int
41429 main ()
41430 {
41431
41432             char *name = "www.gnu.org";
41433             (void)gethostbyname_r(name) /* ; */
41434
41435   ;
41436   return 0;
41437 }
41438 _ACEOF
41439 rm -f conftest.$ac_objext
41440 if { (ac_try="$ac_compile"
41441 case "(($ac_try" in
41442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41443   *) ac_try_echo=$ac_try;;
41444 esac
41445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41446   (eval "$ac_compile") 2>conftest.er1
41447   ac_status=$?
41448   grep -v '^ *+' conftest.er1 >conftest.err
41449   rm -f conftest.er1
41450   cat conftest.err >&5
41451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41452   (exit $ac_status); } && {
41453          test -z "$ac_c_werror_flag" ||
41454          test ! -s conftest.err
41455        } && test -s conftest.$ac_objext; then
41456   ac_cv_func_which_gethostbyname_r=no
41457 else
41458   echo "$as_me: failed program was:" >&5
41459 sed 's/^/| /' conftest.$ac_ext >&5
41460
41461
41462 fi
41463
41464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41465
41466 #
41467 # SIX ARGUMENTS
41468 # (e.g. Linux)
41469 #
41470
41471 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
41472
41473 cat >conftest.$ac_ext <<_ACEOF
41474 /* confdefs.h.  */
41475 _ACEOF
41476 cat confdefs.h >>conftest.$ac_ext
41477 cat >>conftest.$ac_ext <<_ACEOF
41478 /* end confdefs.h.  */
41479 #include <netdb.h>
41480 int
41481 main ()
41482 {
41483
41484             char *name = "www.gnu.org";
41485             struct hostent ret, *retp;
41486             char buf[1024];
41487             int buflen = 1024;
41488             int my_h_errno;
41489             (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
41490
41491   ;
41492   return 0;
41493 }
41494 _ACEOF
41495 rm -f conftest.$ac_objext
41496 if { (ac_try="$ac_compile"
41497 case "(($ac_try" in
41498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41499   *) ac_try_echo=$ac_try;;
41500 esac
41501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41502   (eval "$ac_compile") 2>conftest.er1
41503   ac_status=$?
41504   grep -v '^ *+' conftest.er1 >conftest.err
41505   rm -f conftest.er1
41506   cat conftest.err >&5
41507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41508   (exit $ac_status); } && {
41509          test -z "$ac_c_werror_flag" ||
41510          test ! -s conftest.err
41511        } && test -s conftest.$ac_objext; then
41512   ac_cv_func_which_gethostbyname_r=six
41513 else
41514   echo "$as_me: failed program was:" >&5
41515 sed 's/^/| /' conftest.$ac_ext >&5
41516
41517
41518 fi
41519
41520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41521
41522 fi
41523
41524 #
41525 # FIVE ARGUMENTS
41526 # (e.g. Solaris)
41527 #
41528
41529 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
41530
41531 cat >conftest.$ac_ext <<_ACEOF
41532 /* confdefs.h.  */
41533 _ACEOF
41534 cat confdefs.h >>conftest.$ac_ext
41535 cat >>conftest.$ac_ext <<_ACEOF
41536 /* end confdefs.h.  */
41537 #include <netdb.h>
41538 int
41539 main ()
41540 {
41541
41542             char *name = "www.gnu.org";
41543             struct hostent ret;
41544             char buf[1024];
41545             int buflen = 1024;
41546             int my_h_errno;
41547             (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
41548
41549   ;
41550   return 0;
41551 }
41552 _ACEOF
41553 rm -f conftest.$ac_objext
41554 if { (ac_try="$ac_compile"
41555 case "(($ac_try" in
41556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41557   *) ac_try_echo=$ac_try;;
41558 esac
41559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41560   (eval "$ac_compile") 2>conftest.er1
41561   ac_status=$?
41562   grep -v '^ *+' conftest.er1 >conftest.err
41563   rm -f conftest.er1
41564   cat conftest.err >&5
41565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41566   (exit $ac_status); } && {
41567          test -z "$ac_c_werror_flag" ||
41568          test ! -s conftest.err
41569        } && test -s conftest.$ac_objext; then
41570   ac_cv_func_which_gethostbyname_r=five
41571 else
41572   echo "$as_me: failed program was:" >&5
41573 sed 's/^/| /' conftest.$ac_ext >&5
41574
41575
41576 fi
41577
41578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41579
41580 fi
41581
41582 #
41583 # THREE ARGUMENTS
41584 # (e.g. AIX, HP-UX, Tru64)
41585 #
41586
41587 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
41588
41589 cat >conftest.$ac_ext <<_ACEOF
41590 /* confdefs.h.  */
41591 _ACEOF
41592 cat confdefs.h >>conftest.$ac_ext
41593 cat >>conftest.$ac_ext <<_ACEOF
41594 /* end confdefs.h.  */
41595 #include <netdb.h>
41596 int
41597 main ()
41598 {
41599
41600             char *name = "www.gnu.org";
41601             struct hostent ret;
41602             struct hostent_data data;
41603             (void)gethostbyname_r(name, &ret, &data) /* ; */
41604
41605   ;
41606   return 0;
41607 }
41608 _ACEOF
41609 rm -f conftest.$ac_objext
41610 if { (ac_try="$ac_compile"
41611 case "(($ac_try" in
41612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41613   *) ac_try_echo=$ac_try;;
41614 esac
41615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41616   (eval "$ac_compile") 2>conftest.er1
41617   ac_status=$?
41618   grep -v '^ *+' conftest.er1 >conftest.err
41619   rm -f conftest.er1
41620   cat conftest.err >&5
41621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41622   (exit $ac_status); } && {
41623          test -z "$ac_c_werror_flag" ||
41624          test ! -s conftest.err
41625        } && test -s conftest.$ac_objext; then
41626   ac_cv_func_which_gethostbyname_r=three
41627 else
41628   echo "$as_me: failed program was:" >&5
41629 sed 's/^/| /' conftest.$ac_ext >&5
41630
41631
41632 fi
41633
41634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41635
41636 fi
41637
41638 ################################################################
41639
41640
41641 fi
41642
41643 case "$ac_cv_func_which_gethostbyname_r" in
41644     three)
41645     { echo "$as_me:$LINENO: result: three" >&5
41646 echo "${ECHO_T}three" >&6; }
41647     cat >>confdefs.h <<\_ACEOF
41648 #define HAVE_FUNC_GETHOSTBYNAME_R_3 1
41649 _ACEOF
41650
41651     ;;
41652
41653     five)
41654     { echo "$as_me:$LINENO: result: five" >&5
41655 echo "${ECHO_T}five" >&6; }
41656     cat >>confdefs.h <<\_ACEOF
41657 #define HAVE_FUNC_GETHOSTBYNAME_R_5 1
41658 _ACEOF
41659
41660     ;;
41661
41662     six)
41663     { echo "$as_me:$LINENO: result: six" >&5
41664 echo "${ECHO_T}six" >&6; }
41665     cat >>confdefs.h <<\_ACEOF
41666 #define HAVE_FUNC_GETHOSTBYNAME_R_6 1
41667 _ACEOF
41668
41669     ;;
41670
41671     no)
41672     { echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
41673 echo "${ECHO_T}cannot find function declaration in netdb.h" >&6; }
41674     ;;
41675
41676     unknown)
41677     { echo "$as_me:$LINENO: result: can't tell" >&5
41678 echo "${ECHO_T}can't tell" >&6; }
41679     ;;
41680
41681     *)
41682     { { echo "$as_me:$LINENO: error: internal error" >&5
41683 echo "$as_me: error: internal error" >&2;}
41684    { (exit 1); exit 1; }; }
41685     ;;
41686 esac
41687
41688 ac_ext=c
41689 ac_cpp='$CPP $CPPFLAGS'
41690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41693
41694
41695
41696       if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
41697               "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
41698           { echo "$as_me:$LINENO: checking for gethostbyname" >&5
41699 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
41700 if test "${ac_cv_func_gethostbyname+set}" = set; then
41701   echo $ECHO_N "(cached) $ECHO_C" >&6
41702 else
41703   cat >conftest.$ac_ext <<_ACEOF
41704 /* confdefs.h.  */
41705 _ACEOF
41706 cat confdefs.h >>conftest.$ac_ext
41707 cat >>conftest.$ac_ext <<_ACEOF
41708 /* end confdefs.h.  */
41709 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
41710    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41711 #define gethostbyname innocuous_gethostbyname
41712
41713 /* System header to define __stub macros and hopefully few prototypes,
41714     which can conflict with char gethostbyname (); below.
41715     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41716     <limits.h> exists even on freestanding compilers.  */
41717
41718 #ifdef __STDC__
41719 # include <limits.h>
41720 #else
41721 # include <assert.h>
41722 #endif
41723
41724 #undef gethostbyname
41725
41726 /* Override any GCC internal prototype to avoid an error.
41727    Use char because int might match the return type of a GCC
41728    builtin and then its argument prototype would still apply.  */
41729 #ifdef __cplusplus
41730 extern "C"
41731 #endif
41732 char gethostbyname ();
41733 /* The GNU C library defines this for functions which it implements
41734     to always fail with ENOSYS.  Some functions are actually named
41735     something starting with __ and the normal name is an alias.  */
41736 #if defined __stub_gethostbyname || defined __stub___gethostbyname
41737 choke me
41738 #endif
41739
41740 int
41741 main ()
41742 {
41743 return gethostbyname ();
41744   ;
41745   return 0;
41746 }
41747 _ACEOF
41748 rm -f conftest.$ac_objext conftest$ac_exeext
41749 if { (ac_try="$ac_link"
41750 case "(($ac_try" in
41751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41752   *) ac_try_echo=$ac_try;;
41753 esac
41754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41755   (eval "$ac_link") 2>conftest.er1
41756   ac_status=$?
41757   grep -v '^ *+' conftest.er1 >conftest.err
41758   rm -f conftest.er1
41759   cat conftest.err >&5
41760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41761   (exit $ac_status); } && {
41762          test -z "$ac_c_werror_flag" ||
41763          test ! -s conftest.err
41764        } && test -s conftest$ac_exeext &&
41765        $as_test_x conftest$ac_exeext; then
41766   ac_cv_func_gethostbyname=yes
41767 else
41768   echo "$as_me: failed program was:" >&5
41769 sed 's/^/| /' conftest.$ac_ext >&5
41770
41771         ac_cv_func_gethostbyname=no
41772 fi
41773
41774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41775       conftest$ac_exeext conftest.$ac_ext
41776 fi
41777 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
41778 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
41779 if test $ac_cv_func_gethostbyname = yes; then
41780    cat >>confdefs.h <<\_ACEOF
41781 #define HAVE_GETHOSTBYNAME 1
41782 _ACEOF
41783
41784 fi
41785
41786       fi
41787
41788 { echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
41789 echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6; }
41790 if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
41791   echo $ECHO_N "(cached) $ECHO_C" >&6
41792 else
41793
41794                 ac_ext=cpp
41795 ac_cpp='$CXXCPP $CPPFLAGS'
41796 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41797 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41798 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41799
41800
41801         cat >conftest.$ac_ext <<_ACEOF
41802 /* confdefs.h.  */
41803 _ACEOF
41804 cat confdefs.h >>conftest.$ac_ext
41805 cat >>conftest.$ac_ext <<_ACEOF
41806 /* end confdefs.h.  */
41807 #include <netdb.h>
41808 int
41809 main ()
41810 {
41811
41812                 char *name;
41813                 char *proto;
41814                 struct servent *se, *res;
41815                 char buffer[2048];
41816                 int buflen = 2048;
41817                 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
41818
41819   ;
41820   return 0;
41821 }
41822 _ACEOF
41823 rm -f conftest.$ac_objext
41824 if { (ac_try="$ac_compile"
41825 case "(($ac_try" in
41826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41827   *) ac_try_echo=$ac_try;;
41828 esac
41829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41830   (eval "$ac_compile") 2>conftest.er1
41831   ac_status=$?
41832   grep -v '^ *+' conftest.er1 >conftest.err
41833   rm -f conftest.er1
41834   cat conftest.err >&5
41835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41836   (exit $ac_status); } && {
41837          test -z "$ac_cxx_werror_flag" ||
41838          test ! -s conftest.err
41839        } && test -s conftest.$ac_objext; then
41840   ac_cv_func_which_getservbyname_r=six
41841 else
41842   echo "$as_me: failed program was:" >&5
41843 sed 's/^/| /' conftest.$ac_ext >&5
41844
41845
41846                 cat >conftest.$ac_ext <<_ACEOF
41847 /* confdefs.h.  */
41848 _ACEOF
41849 cat confdefs.h >>conftest.$ac_ext
41850 cat >>conftest.$ac_ext <<_ACEOF
41851 /* end confdefs.h.  */
41852 #include <netdb.h>
41853 int
41854 main ()
41855 {
41856
41857                         char *name;
41858                         char *proto;
41859                         struct servent *se;
41860                         char buffer[2048];
41861                         int buflen = 2048;
41862                         (void) getservbyname_r(name, proto, se, buffer, buflen)
41863
41864   ;
41865   return 0;
41866 }
41867 _ACEOF
41868 rm -f conftest.$ac_objext
41869 if { (ac_try="$ac_compile"
41870 case "(($ac_try" in
41871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41872   *) ac_try_echo=$ac_try;;
41873 esac
41874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41875   (eval "$ac_compile") 2>conftest.er1
41876   ac_status=$?
41877   grep -v '^ *+' conftest.er1 >conftest.err
41878   rm -f conftest.er1
41879   cat conftest.err >&5
41880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41881   (exit $ac_status); } && {
41882          test -z "$ac_cxx_werror_flag" ||
41883          test ! -s conftest.err
41884        } && test -s conftest.$ac_objext; then
41885   ac_cv_func_which_getservbyname_r=five
41886 else
41887   echo "$as_me: failed program was:" >&5
41888 sed 's/^/| /' conftest.$ac_ext >&5
41889
41890
41891                         cat >conftest.$ac_ext <<_ACEOF
41892 /* confdefs.h.  */
41893 _ACEOF
41894 cat confdefs.h >>conftest.$ac_ext
41895 cat >>conftest.$ac_ext <<_ACEOF
41896 /* end confdefs.h.  */
41897 #include <netdb.h>
41898 int
41899 main ()
41900 {
41901
41902                                 char *name;
41903                                 char *proto;
41904                                 struct servent *se;
41905                                 struct servent_data data;
41906                                 (void) getservbyname_r(name, proto, se, &data);
41907
41908   ;
41909   return 0;
41910 }
41911 _ACEOF
41912 rm -f conftest.$ac_objext
41913 if { (ac_try="$ac_compile"
41914 case "(($ac_try" in
41915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41916   *) ac_try_echo=$ac_try;;
41917 esac
41918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41919   (eval "$ac_compile") 2>conftest.er1
41920   ac_status=$?
41921   grep -v '^ *+' conftest.er1 >conftest.err
41922   rm -f conftest.er1
41923   cat conftest.err >&5
41924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41925   (exit $ac_status); } && {
41926          test -z "$ac_cxx_werror_flag" ||
41927          test ! -s conftest.err
41928        } && test -s conftest.$ac_objext; then
41929   ac_cv_func_which_getservbyname_r=four
41930 else
41931   echo "$as_me: failed program was:" >&5
41932 sed 's/^/| /' conftest.$ac_ext >&5
41933
41934         ac_cv_func_which_getservbyname_r=no
41935
41936 fi
41937
41938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41939
41940
41941 fi
41942
41943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41944
41945
41946 fi
41947
41948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41949         ac_ext=c
41950 ac_cpp='$CPP $CPPFLAGS'
41951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41954
41955
41956
41957 fi
41958 { echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
41959 echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6; }
41960
41961 if test $ac_cv_func_which_getservbyname_r = six; then
41962   cat >>confdefs.h <<\_ACEOF
41963 #define HAVE_FUNC_GETSERVBYNAME_R_6 1
41964 _ACEOF
41965
41966 elif test $ac_cv_func_which_getservbyname_r = five; then
41967   cat >>confdefs.h <<\_ACEOF
41968 #define HAVE_FUNC_GETSERVBYNAME_R_5 1
41969 _ACEOF
41970
41971 elif test $ac_cv_func_which_getservbyname_r = four; then
41972   cat >>confdefs.h <<\_ACEOF
41973 #define HAVE_FUNC_GETSERVBYNAME_R_4 1
41974 _ACEOF
41975
41976 fi
41977
41978
41979       if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
41980               "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
41981
41982 for ac_func in getservbyname
41983 do
41984 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41985 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41986 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41987 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41988   echo $ECHO_N "(cached) $ECHO_C" >&6
41989 else
41990   cat >conftest.$ac_ext <<_ACEOF
41991 /* confdefs.h.  */
41992 _ACEOF
41993 cat confdefs.h >>conftest.$ac_ext
41994 cat >>conftest.$ac_ext <<_ACEOF
41995 /* end confdefs.h.  */
41996 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41997    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41998 #define $ac_func innocuous_$ac_func
41999
42000 /* System header to define __stub macros and hopefully few prototypes,
42001     which can conflict with char $ac_func (); below.
42002     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42003     <limits.h> exists even on freestanding compilers.  */
42004
42005 #ifdef __STDC__
42006 # include <limits.h>
42007 #else
42008 # include <assert.h>
42009 #endif
42010
42011 #undef $ac_func
42012
42013 /* Override any GCC internal prototype to avoid an error.
42014    Use char because int might match the return type of a GCC
42015    builtin and then its argument prototype would still apply.  */
42016 #ifdef __cplusplus
42017 extern "C"
42018 #endif
42019 char $ac_func ();
42020 /* The GNU C library defines this for functions which it implements
42021     to always fail with ENOSYS.  Some functions are actually named
42022     something starting with __ and the normal name is an alias.  */
42023 #if defined __stub_$ac_func || defined __stub___$ac_func
42024 choke me
42025 #endif
42026
42027 int
42028 main ()
42029 {
42030 return $ac_func ();
42031   ;
42032   return 0;
42033 }
42034 _ACEOF
42035 rm -f conftest.$ac_objext conftest$ac_exeext
42036 if { (ac_try="$ac_link"
42037 case "(($ac_try" in
42038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42039   *) ac_try_echo=$ac_try;;
42040 esac
42041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42042   (eval "$ac_link") 2>conftest.er1
42043   ac_status=$?
42044   grep -v '^ *+' conftest.er1 >conftest.err
42045   rm -f conftest.er1
42046   cat conftest.err >&5
42047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42048   (exit $ac_status); } && {
42049          test -z "$ac_c_werror_flag" ||
42050          test ! -s conftest.err
42051        } && test -s conftest$ac_exeext &&
42052        $as_test_x conftest$ac_exeext; then
42053   eval "$as_ac_var=yes"
42054 else
42055   echo "$as_me: failed program was:" >&5
42056 sed 's/^/| /' conftest.$ac_ext >&5
42057
42058         eval "$as_ac_var=no"
42059 fi
42060
42061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42062       conftest$ac_exeext conftest.$ac_ext
42063 fi
42064 ac_res=`eval echo '${'$as_ac_var'}'`
42065                { echo "$as_me:$LINENO: result: $ac_res" >&5
42066 echo "${ECHO_T}$ac_res" >&6; }
42067 if test `eval echo '${'$as_ac_var'}'` = yes; then
42068   cat >>confdefs.h <<_ACEOF
42069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42070 _ACEOF
42071   cat >>confdefs.h <<\_ACEOF
42072 #define HAVE_GETSERVBYNAME 1
42073 _ACEOF
42074
42075 fi
42076 done
42077
42078       fi
42079
42080 if test "$wxUSE_THREADS" = "yes"; then
42081   cat >>confdefs.h <<\_ACEOF
42082 #define wxUSE_THREADS 1
42083 _ACEOF
42084
42085
42086   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
42087 else
42088       if test "$wx_cv_func_strtok_r" = "yes"; then
42089     { echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
42090 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6; }
42091     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
42092         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
42093         { echo "$as_me:$LINENO: result: yes" >&5
42094 echo "${ECHO_T}yes" >&6; }
42095     else
42096         { echo "$as_me:$LINENO: result: no" >&5
42097 echo "${ECHO_T}no" >&6; }
42098     fi
42099   fi
42100 fi
42101
42102 if test "$WXGTK2" = 1 ; then
42103   cat >>confdefs.h <<_ACEOF
42104 #define __WXGTK20__ $WXGTK2
42105 _ACEOF
42106
42107   WXGTK12=1
42108 fi
42109
42110 if test "$WXGTK12" = 1 ; then
42111   cat >>confdefs.h <<_ACEOF
42112 #define __WXGTK12__ $WXGTK12
42113 _ACEOF
42114
42115 fi
42116
42117 if test "$WXGTK127" = 1 ; then
42118   cat >>confdefs.h <<_ACEOF
42119 #define __WXGTK127__ $WXGTK127
42120 _ACEOF
42121
42122 fi
42123
42124 if test "$WXGPE" = 1 ; then
42125   cat >>confdefs.h <<_ACEOF
42126 #define __WXGPE__ $WXGPE
42127 _ACEOF
42128
42129 fi
42130
42131 DEBUG_CFLAGS=
42132 if `echo $CXXFLAGS $CFLAGS | grep " -g" >/dev/null`; then
42133                     { echo "$as_me:$LINENO: WARNING: CXXFLAGS/CFLAGS already contains -g flag; ignoring the --enable-debug_info option" >&5
42134 echo "$as_me: WARNING: CXXFLAGS/CFLAGS already contains -g flag; ignoring the --enable-debug_info option" >&2;}
42135 elif test "$wxUSE_DEBUG_INFO" = "yes" ; then
42136     DEBUG_CFLAGS="-g"
42137 fi
42138
42139 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
42140     wxUSE_DEBUG_INFO=yes
42141     if test "$GCC" = yes; then
42142         DEBUG_CFLAGS="-ggdb"
42143     fi
42144 fi
42145
42146 if test "$wxUSE_DEBUG_FLAG" = "no" ; then
42147     if test "$wxUSE_GTK" = 1 ; then
42148         if test "x$wxGTK_VERSION" = "x1" ; then
42149             CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
42150         fi
42151     fi
42152 fi
42153
42154 if test "$wxUSE_MEM_TRACING" = "yes" ; then
42155     cat >>confdefs.h <<\_ACEOF
42156 #define wxUSE_MEMORY_TRACING 1
42157 _ACEOF
42158
42159     cat >>confdefs.h <<\_ACEOF
42160 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
42161 _ACEOF
42162
42163     cat >>confdefs.h <<\_ACEOF
42164 #define wxUSE_DEBUG_NEW_ALWAYS 1
42165 _ACEOF
42166
42167     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
42168 fi
42169
42170 if test "$wxUSE_DMALLOC" = "yes" ; then
42171     DMALLOC_LIBS="-ldmallocthcxx"
42172 fi
42173
42174 PROFILE_FLAGS=
42175 if test "$wxUSE_PROFILE" = "yes" ; then
42176     PROFILE_FLAGS=" -pg"
42177 fi
42178
42179 if test "$GCC" = "yes" ; then
42180     if test "$wxUSE_NO_RTTI" = "yes" ; then
42181                                 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -DwxNO_RTTI -fno-rtti"
42182     fi
42183     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
42184         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
42185     fi
42186     if test "$wxUSE_PERMISSIVE" = "yes" ; then
42187         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
42188     fi
42189
42190                                                 case "${host}" in
42191       powerpc*-*-aix* )
42192         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
42193         ;;
42194       *-hppa* )
42195         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
42196         ;;
42197     esac
42198 fi
42199
42200 OPTIMISE_CFLAGS=
42201 if `echo $CXXFLAGS $CFLAGS | grep " -O" >/dev/null`; then
42202                     { echo "$as_me:$LINENO: WARNING: CXXFLAGS/CFLAGS already contains -O flag; ignoring the --disable-optimise option" >&5
42203 echo "$as_me: WARNING: CXXFLAGS/CFLAGS already contains -O flag; ignoring the --disable-optimise option" >&2;}
42204 else
42205     if test "$wxUSE_OPTIMISE" = "no" ; then
42206         if test "$GCC" = yes ; then
42207                                     OPTIMISE_CFLAGS="-O0"
42208         fi
42209     else
42210         if test "$GCC" = yes ; then
42211             case "${host}" in
42212                 *-pc-os2_emx | *-pc-os2-emx )
42213                                                             OPTIMISE_CFLAGS="-O2"
42214                 ;;
42215                 *)
42216                                                                                 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
42217                 ;;
42218             esac
42219         else
42220             OPTIMISE_CFLAGS="-O"
42221         fi
42222     fi
42223 fi
42224
42225
42226 if test "x$WXWIN_COMPATIBILITY_2_6" = "xyes"; then
42227     cat >>confdefs.h <<\_ACEOF
42228 #define WXWIN_COMPATIBILITY_2_6 1
42229 _ACEOF
42230
42231
42232     WXWIN_COMPATIBILITY_2_8="yes"
42233 fi
42234
42235 if test "x$WXWIN_COMPATIBILITY_2_8" != "xno"; then
42236     cat >>confdefs.h <<\_ACEOF
42237 #define WXWIN_COMPATIBILITY_2_8 1
42238 _ACEOF
42239
42240 fi
42241
42242
42243 if test "$wxUSE_GUI" = "yes"; then
42244     cat >>confdefs.h <<\_ACEOF
42245 #define wxUSE_GUI 1
42246 _ACEOF
42247
42248
42249                                             fi
42250
42251
42252 if test "$wxUSE_UNIX" = "yes"; then
42253   cat >>confdefs.h <<\_ACEOF
42254 #define wxUSE_UNIX 1
42255 _ACEOF
42256
42257 fi
42258
42259
42260 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
42261
42262     HAVE_DL_FUNCS=0
42263     HAVE_SHL_FUNCS=0
42264     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
42265         if test "$USE_DOS" = 1; then
42266             HAVE_DL_FUNCS=0
42267         else
42268
42269 for ac_func in dlopen
42270 do
42271 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42272 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42273 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42274 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42275   echo $ECHO_N "(cached) $ECHO_C" >&6
42276 else
42277   cat >conftest.$ac_ext <<_ACEOF
42278 /* confdefs.h.  */
42279 _ACEOF
42280 cat confdefs.h >>conftest.$ac_ext
42281 cat >>conftest.$ac_ext <<_ACEOF
42282 /* end confdefs.h.  */
42283 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42284    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42285 #define $ac_func innocuous_$ac_func
42286
42287 /* System header to define __stub macros and hopefully few prototypes,
42288     which can conflict with char $ac_func (); below.
42289     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42290     <limits.h> exists even on freestanding compilers.  */
42291
42292 #ifdef __STDC__
42293 # include <limits.h>
42294 #else
42295 # include <assert.h>
42296 #endif
42297
42298 #undef $ac_func
42299
42300 /* Override any GCC internal prototype to avoid an error.
42301    Use char because int might match the return type of a GCC
42302    builtin and then its argument prototype would still apply.  */
42303 #ifdef __cplusplus
42304 extern "C"
42305 #endif
42306 char $ac_func ();
42307 /* The GNU C library defines this for functions which it implements
42308     to always fail with ENOSYS.  Some functions are actually named
42309     something starting with __ and the normal name is an alias.  */
42310 #if defined __stub_$ac_func || defined __stub___$ac_func
42311 choke me
42312 #endif
42313
42314 int
42315 main ()
42316 {
42317 return $ac_func ();
42318   ;
42319   return 0;
42320 }
42321 _ACEOF
42322 rm -f conftest.$ac_objext conftest$ac_exeext
42323 if { (ac_try="$ac_link"
42324 case "(($ac_try" in
42325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42326   *) ac_try_echo=$ac_try;;
42327 esac
42328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42329   (eval "$ac_link") 2>conftest.er1
42330   ac_status=$?
42331   grep -v '^ *+' conftest.er1 >conftest.err
42332   rm -f conftest.er1
42333   cat conftest.err >&5
42334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42335   (exit $ac_status); } && {
42336          test -z "$ac_c_werror_flag" ||
42337          test ! -s conftest.err
42338        } && test -s conftest$ac_exeext &&
42339        $as_test_x conftest$ac_exeext; then
42340   eval "$as_ac_var=yes"
42341 else
42342   echo "$as_me: failed program was:" >&5
42343 sed 's/^/| /' conftest.$ac_ext >&5
42344
42345         eval "$as_ac_var=no"
42346 fi
42347
42348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42349       conftest$ac_exeext conftest.$ac_ext
42350 fi
42351 ac_res=`eval echo '${'$as_ac_var'}'`
42352                { echo "$as_me:$LINENO: result: $ac_res" >&5
42353 echo "${ECHO_T}$ac_res" >&6; }
42354 if test `eval echo '${'$as_ac_var'}'` = yes; then
42355   cat >>confdefs.h <<_ACEOF
42356 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42357 _ACEOF
42358
42359                 cat >>confdefs.h <<\_ACEOF
42360 #define HAVE_DLOPEN 1
42361 _ACEOF
42362
42363                 HAVE_DL_FUNCS=1
42364
42365 else
42366
42367                 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
42368 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
42369 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
42370   echo $ECHO_N "(cached) $ECHO_C" >&6
42371 else
42372   ac_check_lib_save_LIBS=$LIBS
42373 LIBS="-ldl  $LIBS"
42374 cat >conftest.$ac_ext <<_ACEOF
42375 /* confdefs.h.  */
42376 _ACEOF
42377 cat confdefs.h >>conftest.$ac_ext
42378 cat >>conftest.$ac_ext <<_ACEOF
42379 /* end confdefs.h.  */
42380
42381 /* Override any GCC internal prototype to avoid an error.
42382    Use char because int might match the return type of a GCC
42383    builtin and then its argument prototype would still apply.  */
42384 #ifdef __cplusplus
42385 extern "C"
42386 #endif
42387 char dlopen ();
42388 int
42389 main ()
42390 {
42391 return dlopen ();
42392   ;
42393   return 0;
42394 }
42395 _ACEOF
42396 rm -f conftest.$ac_objext conftest$ac_exeext
42397 if { (ac_try="$ac_link"
42398 case "(($ac_try" in
42399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42400   *) ac_try_echo=$ac_try;;
42401 esac
42402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42403   (eval "$ac_link") 2>conftest.er1
42404   ac_status=$?
42405   grep -v '^ *+' conftest.er1 >conftest.err
42406   rm -f conftest.er1
42407   cat conftest.err >&5
42408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42409   (exit $ac_status); } && {
42410          test -z "$ac_c_werror_flag" ||
42411          test ! -s conftest.err
42412        } && test -s conftest$ac_exeext &&
42413        $as_test_x conftest$ac_exeext; then
42414   ac_cv_lib_dl_dlopen=yes
42415 else
42416   echo "$as_me: failed program was:" >&5
42417 sed 's/^/| /' conftest.$ac_ext >&5
42418
42419         ac_cv_lib_dl_dlopen=no
42420 fi
42421
42422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42423       conftest$ac_exeext conftest.$ac_ext
42424 LIBS=$ac_check_lib_save_LIBS
42425 fi
42426 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
42427 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
42428 if test $ac_cv_lib_dl_dlopen = yes; then
42429
42430                                 cat >>confdefs.h <<\_ACEOF
42431 #define HAVE_DLOPEN 1
42432 _ACEOF
42433
42434                                 HAVE_DL_FUNCS=1
42435                                 DL_LINK=" -ldl$DL_LINK"
42436
42437 else
42438
42439
42440 for ac_func in shl_load
42441 do
42442 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42443 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42444 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42445 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42446   echo $ECHO_N "(cached) $ECHO_C" >&6
42447 else
42448   cat >conftest.$ac_ext <<_ACEOF
42449 /* confdefs.h.  */
42450 _ACEOF
42451 cat confdefs.h >>conftest.$ac_ext
42452 cat >>conftest.$ac_ext <<_ACEOF
42453 /* end confdefs.h.  */
42454 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42455    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42456 #define $ac_func innocuous_$ac_func
42457
42458 /* System header to define __stub macros and hopefully few prototypes,
42459     which can conflict with char $ac_func (); below.
42460     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42461     <limits.h> exists even on freestanding compilers.  */
42462
42463 #ifdef __STDC__
42464 # include <limits.h>
42465 #else
42466 # include <assert.h>
42467 #endif
42468
42469 #undef $ac_func
42470
42471 /* Override any GCC internal prototype to avoid an error.
42472    Use char because int might match the return type of a GCC
42473    builtin and then its argument prototype would still apply.  */
42474 #ifdef __cplusplus
42475 extern "C"
42476 #endif
42477 char $ac_func ();
42478 /* The GNU C library defines this for functions which it implements
42479     to always fail with ENOSYS.  Some functions are actually named
42480     something starting with __ and the normal name is an alias.  */
42481 #if defined __stub_$ac_func || defined __stub___$ac_func
42482 choke me
42483 #endif
42484
42485 int
42486 main ()
42487 {
42488 return $ac_func ();
42489   ;
42490   return 0;
42491 }
42492 _ACEOF
42493 rm -f conftest.$ac_objext conftest$ac_exeext
42494 if { (ac_try="$ac_link"
42495 case "(($ac_try" in
42496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42497   *) ac_try_echo=$ac_try;;
42498 esac
42499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42500   (eval "$ac_link") 2>conftest.er1
42501   ac_status=$?
42502   grep -v '^ *+' conftest.er1 >conftest.err
42503   rm -f conftest.er1
42504   cat conftest.err >&5
42505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42506   (exit $ac_status); } && {
42507          test -z "$ac_c_werror_flag" ||
42508          test ! -s conftest.err
42509        } && test -s conftest$ac_exeext &&
42510        $as_test_x conftest$ac_exeext; then
42511   eval "$as_ac_var=yes"
42512 else
42513   echo "$as_me: failed program was:" >&5
42514 sed 's/^/| /' conftest.$ac_ext >&5
42515
42516         eval "$as_ac_var=no"
42517 fi
42518
42519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42520       conftest$ac_exeext conftest.$ac_ext
42521 fi
42522 ac_res=`eval echo '${'$as_ac_var'}'`
42523                { echo "$as_me:$LINENO: result: $ac_res" >&5
42524 echo "${ECHO_T}$ac_res" >&6; }
42525 if test `eval echo '${'$as_ac_var'}'` = yes; then
42526   cat >>confdefs.h <<_ACEOF
42527 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42528 _ACEOF
42529
42530                                                 cat >>confdefs.h <<\_ACEOF
42531 #define HAVE_SHL_LOAD 1
42532 _ACEOF
42533
42534                                                 HAVE_SHL_FUNCS=1
42535
42536 else
42537
42538                                                 { echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
42539 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6; }
42540 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
42541   echo $ECHO_N "(cached) $ECHO_C" >&6
42542 else
42543   ac_check_lib_save_LIBS=$LIBS
42544 LIBS="-lshl_load  $LIBS"
42545 cat >conftest.$ac_ext <<_ACEOF
42546 /* confdefs.h.  */
42547 _ACEOF
42548 cat confdefs.h >>conftest.$ac_ext
42549 cat >>conftest.$ac_ext <<_ACEOF
42550 /* end confdefs.h.  */
42551
42552 /* Override any GCC internal prototype to avoid an error.
42553    Use char because int might match the return type of a GCC
42554    builtin and then its argument prototype would still apply.  */
42555 #ifdef __cplusplus
42556 extern "C"
42557 #endif
42558 char dld ();
42559 int
42560 main ()
42561 {
42562 return dld ();
42563   ;
42564   return 0;
42565 }
42566 _ACEOF
42567 rm -f conftest.$ac_objext conftest$ac_exeext
42568 if { (ac_try="$ac_link"
42569 case "(($ac_try" in
42570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42571   *) ac_try_echo=$ac_try;;
42572 esac
42573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42574   (eval "$ac_link") 2>conftest.er1
42575   ac_status=$?
42576   grep -v '^ *+' conftest.er1 >conftest.err
42577   rm -f conftest.er1
42578   cat conftest.err >&5
42579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42580   (exit $ac_status); } && {
42581          test -z "$ac_c_werror_flag" ||
42582          test ! -s conftest.err
42583        } && test -s conftest$ac_exeext &&
42584        $as_test_x conftest$ac_exeext; then
42585   ac_cv_lib_shl_load_dld=yes
42586 else
42587   echo "$as_me: failed program was:" >&5
42588 sed 's/^/| /' conftest.$ac_ext >&5
42589
42590         ac_cv_lib_shl_load_dld=no
42591 fi
42592
42593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42594       conftest$ac_exeext conftest.$ac_ext
42595 LIBS=$ac_check_lib_save_LIBS
42596 fi
42597 { echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
42598 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6; }
42599 if test $ac_cv_lib_shl_load_dld = yes; then
42600
42601                                                                 HAVE_SHL_FUNCS=1
42602                                                                 DL_LINK=" -ldld$DL_LINK"
42603
42604 fi
42605
42606
42607 fi
42608 done
42609
42610
42611 fi
42612
42613
42614 fi
42615 done
42616
42617
42618                         if test "$HAVE_DL_FUNCS" = 1; then
42619
42620 for ac_func in dlerror
42621 do
42622 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42623 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42624 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42625 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42626   echo $ECHO_N "(cached) $ECHO_C" >&6
42627 else
42628   cat >conftest.$ac_ext <<_ACEOF
42629 /* confdefs.h.  */
42630 _ACEOF
42631 cat confdefs.h >>conftest.$ac_ext
42632 cat >>conftest.$ac_ext <<_ACEOF
42633 /* end confdefs.h.  */
42634 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42635    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42636 #define $ac_func innocuous_$ac_func
42637
42638 /* System header to define __stub macros and hopefully few prototypes,
42639     which can conflict with char $ac_func (); below.
42640     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42641     <limits.h> exists even on freestanding compilers.  */
42642
42643 #ifdef __STDC__
42644 # include <limits.h>
42645 #else
42646 # include <assert.h>
42647 #endif
42648
42649 #undef $ac_func
42650
42651 /* Override any GCC internal prototype to avoid an error.
42652    Use char because int might match the return type of a GCC
42653    builtin and then its argument prototype would still apply.  */
42654 #ifdef __cplusplus
42655 extern "C"
42656 #endif
42657 char $ac_func ();
42658 /* The GNU C library defines this for functions which it implements
42659     to always fail with ENOSYS.  Some functions are actually named
42660     something starting with __ and the normal name is an alias.  */
42661 #if defined __stub_$ac_func || defined __stub___$ac_func
42662 choke me
42663 #endif
42664
42665 int
42666 main ()
42667 {
42668 return $ac_func ();
42669   ;
42670   return 0;
42671 }
42672 _ACEOF
42673 rm -f conftest.$ac_objext conftest$ac_exeext
42674 if { (ac_try="$ac_link"
42675 case "(($ac_try" in
42676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42677   *) ac_try_echo=$ac_try;;
42678 esac
42679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42680   (eval "$ac_link") 2>conftest.er1
42681   ac_status=$?
42682   grep -v '^ *+' conftest.er1 >conftest.err
42683   rm -f conftest.er1
42684   cat conftest.err >&5
42685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42686   (exit $ac_status); } && {
42687          test -z "$ac_c_werror_flag" ||
42688          test ! -s conftest.err
42689        } && test -s conftest$ac_exeext &&
42690        $as_test_x conftest$ac_exeext; then
42691   eval "$as_ac_var=yes"
42692 else
42693   echo "$as_me: failed program was:" >&5
42694 sed 's/^/| /' conftest.$ac_ext >&5
42695
42696         eval "$as_ac_var=no"
42697 fi
42698
42699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42700       conftest$ac_exeext conftest.$ac_ext
42701 fi
42702 ac_res=`eval echo '${'$as_ac_var'}'`
42703                { echo "$as_me:$LINENO: result: $ac_res" >&5
42704 echo "${ECHO_T}$ac_res" >&6; }
42705 if test `eval echo '${'$as_ac_var'}'` = yes; then
42706   cat >>confdefs.h <<_ACEOF
42707 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42708 _ACEOF
42709  cat >>confdefs.h <<\_ACEOF
42710 #define HAVE_DLERROR 1
42711 _ACEOF
42712
42713 else
42714
42715                         { echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
42716 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6; }
42717 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
42718   echo $ECHO_N "(cached) $ECHO_C" >&6
42719 else
42720   ac_check_lib_save_LIBS=$LIBS
42721 LIBS="-ldl  $LIBS"
42722 cat >conftest.$ac_ext <<_ACEOF
42723 /* confdefs.h.  */
42724 _ACEOF
42725 cat confdefs.h >>conftest.$ac_ext
42726 cat >>conftest.$ac_ext <<_ACEOF
42727 /* end confdefs.h.  */
42728
42729 /* Override any GCC internal prototype to avoid an error.
42730    Use char because int might match the return type of a GCC
42731    builtin and then its argument prototype would still apply.  */
42732 #ifdef __cplusplus
42733 extern "C"
42734 #endif
42735 char dlerror ();
42736 int
42737 main ()
42738 {
42739 return dlerror ();
42740   ;
42741   return 0;
42742 }
42743 _ACEOF
42744 rm -f conftest.$ac_objext conftest$ac_exeext
42745 if { (ac_try="$ac_link"
42746 case "(($ac_try" in
42747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42748   *) ac_try_echo=$ac_try;;
42749 esac
42750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42751   (eval "$ac_link") 2>conftest.er1
42752   ac_status=$?
42753   grep -v '^ *+' conftest.er1 >conftest.err
42754   rm -f conftest.er1
42755   cat conftest.err >&5
42756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42757   (exit $ac_status); } && {
42758          test -z "$ac_c_werror_flag" ||
42759          test ! -s conftest.err
42760        } && test -s conftest$ac_exeext &&
42761        $as_test_x conftest$ac_exeext; then
42762   ac_cv_lib_dl_dlerror=yes
42763 else
42764   echo "$as_me: failed program was:" >&5
42765 sed 's/^/| /' conftest.$ac_ext >&5
42766
42767         ac_cv_lib_dl_dlerror=no
42768 fi
42769
42770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42771       conftest$ac_exeext conftest.$ac_ext
42772 LIBS=$ac_check_lib_save_LIBS
42773 fi
42774 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
42775 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6; }
42776 if test $ac_cv_lib_dl_dlerror = yes; then
42777   cat >>confdefs.h <<\_ACEOF
42778 #define HAVE_DLERROR 1
42779 _ACEOF
42780
42781 fi
42782
42783
42784
42785 fi
42786 done
42787
42788             fi
42789         fi
42790
42791                 if test "$USE_DARWIN" = 1; then
42792                         HAVE_DL_FUNCS=1
42793         fi
42794
42795         if test "$HAVE_DL_FUNCS" = 0; then
42796             if test "$HAVE_SHL_FUNCS" = 0; then
42797               if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
42798                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
42799 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
42800                   wxUSE_DYNAMIC_LOADER=no
42801                   wxUSE_DYNLIB_CLASS=no
42802               else
42803                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
42804 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
42805               fi
42806             fi
42807         fi
42808     fi
42809 fi
42810
42811 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
42812     cat >>confdefs.h <<\_ACEOF
42813 #define wxUSE_DYNAMIC_LOADER 1
42814 _ACEOF
42815
42816 fi
42817 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
42818     cat >>confdefs.h <<\_ACEOF
42819 #define wxUSE_DYNLIB_CLASS 1
42820 _ACEOF
42821
42822 fi
42823
42824
42825
42826 if test "$wxUSE_PLUGINS" = "yes" ; then
42827     if test "$wxUSE_SHARED" = "no" ; then
42828         { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
42829 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
42830         wxUSE_PLUGINS=no
42831     fi
42832     if test "$wxUSE_MONOLITHIC" = "yes" ; then
42833         { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
42834 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
42835         wxUSE_PLUGINS=no
42836     fi
42837     if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
42838         { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
42839 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
42840         wxUSE_PLUGINS=no
42841     fi
42842     if test "$wxUSE_PLUGINS" = "yes" ; then
42843         cat >>confdefs.h <<\_ACEOF
42844 #define wxUSE_PLUGINS 1
42845 _ACEOF
42846
42847     fi
42848 fi
42849
42850
42851 if test "$wxUSE_FSWATCHER" = "yes"; then
42852                 if test "$wxUSE_MSW" != "1"; then
42853         if test "$wxUSE_UNIX" = "yes"; then
42854
42855 for ac_header in sys/inotify.h
42856 do
42857 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
42858 { echo "$as_me:$LINENO: checking for $ac_header" >&5
42859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
42860 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42861   echo $ECHO_N "(cached) $ECHO_C" >&6
42862 else
42863   cat >conftest.$ac_ext <<_ACEOF
42864 /* confdefs.h.  */
42865 _ACEOF
42866 cat confdefs.h >>conftest.$ac_ext
42867 cat >>conftest.$ac_ext <<_ACEOF
42868 /* end confdefs.h.  */
42869 $ac_includes_default
42870
42871 #include <$ac_header>
42872 _ACEOF
42873 rm -f conftest.$ac_objext
42874 if { (ac_try="$ac_compile"
42875 case "(($ac_try" in
42876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42877   *) ac_try_echo=$ac_try;;
42878 esac
42879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42880   (eval "$ac_compile") 2>conftest.er1
42881   ac_status=$?
42882   grep -v '^ *+' conftest.er1 >conftest.err
42883   rm -f conftest.er1
42884   cat conftest.err >&5
42885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42886   (exit $ac_status); } && {
42887          test -z "$ac_c_werror_flag" ||
42888          test ! -s conftest.err
42889        } && test -s conftest.$ac_objext; then
42890   eval "$as_ac_Header=yes"
42891 else
42892   echo "$as_me: failed program was:" >&5
42893 sed 's/^/| /' conftest.$ac_ext >&5
42894
42895         eval "$as_ac_Header=no"
42896 fi
42897
42898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42899 fi
42900 ac_res=`eval echo '${'$as_ac_Header'}'`
42901                { echo "$as_me:$LINENO: result: $ac_res" >&5
42902 echo "${ECHO_T}$ac_res" >&6; }
42903 if test `eval echo '${'$as_ac_Header'}'` = yes; then
42904   cat >>confdefs.h <<_ACEOF
42905 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
42906 _ACEOF
42907
42908 fi
42909
42910 done
42911
42912             if test "$ac_cv_header_sys_inotify_h" = "yes"; then
42913                 cat >>confdefs.h <<\_ACEOF
42914 #define wxHAS_INOTIFY 1
42915 _ACEOF
42916
42917             else
42918
42919 for ac_header in sys/event.h
42920 do
42921 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
42922 { echo "$as_me:$LINENO: checking for $ac_header" >&5
42923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
42924 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42925   echo $ECHO_N "(cached) $ECHO_C" >&6
42926 else
42927   cat >conftest.$ac_ext <<_ACEOF
42928 /* confdefs.h.  */
42929 _ACEOF
42930 cat confdefs.h >>conftest.$ac_ext
42931 cat >>conftest.$ac_ext <<_ACEOF
42932 /* end confdefs.h.  */
42933 $ac_includes_default
42934
42935 #include <$ac_header>
42936 _ACEOF
42937 rm -f conftest.$ac_objext
42938 if { (ac_try="$ac_compile"
42939 case "(($ac_try" in
42940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42941   *) ac_try_echo=$ac_try;;
42942 esac
42943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42944   (eval "$ac_compile") 2>conftest.er1
42945   ac_status=$?
42946   grep -v '^ *+' conftest.er1 >conftest.err
42947   rm -f conftest.er1
42948   cat conftest.err >&5
42949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42950   (exit $ac_status); } && {
42951          test -z "$ac_c_werror_flag" ||
42952          test ! -s conftest.err
42953        } && test -s conftest.$ac_objext; then
42954   eval "$as_ac_Header=yes"
42955 else
42956   echo "$as_me: failed program was:" >&5
42957 sed 's/^/| /' conftest.$ac_ext >&5
42958
42959         eval "$as_ac_Header=no"
42960 fi
42961
42962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42963 fi
42964 ac_res=`eval echo '${'$as_ac_Header'}'`
42965                { echo "$as_me:$LINENO: result: $ac_res" >&5
42966 echo "${ECHO_T}$ac_res" >&6; }
42967 if test `eval echo '${'$as_ac_Header'}'` = yes; then
42968   cat >>confdefs.h <<_ACEOF
42969 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
42970 _ACEOF
42971
42972 fi
42973
42974 done
42975
42976                 if test "$ac_cv_header_sys_event_h" = "yes"; then
42977                     cat >>confdefs.h <<\_ACEOF
42978 #define wxHAS_KQUEUE 1
42979 _ACEOF
42980
42981                 else
42982                     wxUSE_FSWATCHER=no
42983                 fi
42984             fi
42985         else
42986             wxUSE_FSWATCHER=no
42987         fi
42988     fi
42989
42990     if test "$wxUSE_FSWATCHER" = "yes"; then
42991         cat >>confdefs.h <<\_ACEOF
42992 #define wxUSE_FSWATCHER 1
42993 _ACEOF
42994
42995         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS fswatcher"
42996     else
42997         { echo "$as_me:$LINENO: WARNING: wxFileSystemWatcher won't be available on this platform" >&5
42998 echo "$as_me: WARNING: wxFileSystemWatcher won't be available on this platform" >&2;}
42999     fi
43000 fi
43001
43002
43003 if test "$wxUSE_STL" = "yes"; then
43004   cat >>confdefs.h <<\_ACEOF
43005 #define wxUSE_STL 1
43006 _ACEOF
43007
43008 fi
43009
43010 if test "$wxUSE_EXTENDED_RTTI" = "yes"; then
43011   cat >>confdefs.h <<\_ACEOF
43012 #define wxUSE_EXTENDED_RTTI 1
43013 _ACEOF
43014
43015 fi
43016
43017 if test "$wxUSE_ANY" = "yes"; then
43018     cat >>confdefs.h <<\_ACEOF
43019 #define wxUSE_ANY 1
43020 _ACEOF
43021
43022 fi
43023
43024 if test "$wxUSE_APPLE_IEEE" = "yes"; then
43025   cat >>confdefs.h <<\_ACEOF
43026 #define wxUSE_APPLE_IEEE 1
43027 _ACEOF
43028
43029 fi
43030
43031 if test "$wxUSE_TIMER" = "yes"; then
43032   cat >>confdefs.h <<\_ACEOF
43033 #define wxUSE_TIMER 1
43034 _ACEOF
43035
43036 fi
43037
43038 if test "$USE_UNIX" = 1 ; then
43039         if test "$wxUSE_MGL" != 1; then
43040                                 { echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
43041 echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6; }
43042 if test "${ac_cv_header_sys_soundcard+set}" = set; then
43043   echo $ECHO_N "(cached) $ECHO_C" >&6
43044 else
43045
43046             cat >conftest.$ac_ext <<_ACEOF
43047 /* confdefs.h.  */
43048 _ACEOF
43049 cat confdefs.h >>conftest.$ac_ext
43050 cat >>conftest.$ac_ext <<_ACEOF
43051 /* end confdefs.h.  */
43052
43053                     #include <sys/ioctl.h>
43054                     #include <sys/soundcard.h>
43055
43056 int
43057 main ()
43058 {
43059
43060                     ioctl(0, SNDCTL_DSP_SPEED, 0);
43061
43062   ;
43063   return 0;
43064 }
43065 _ACEOF
43066 rm -f conftest.$ac_objext conftest$ac_exeext
43067 if { (ac_try="$ac_link"
43068 case "(($ac_try" in
43069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43070   *) ac_try_echo=$ac_try;;
43071 esac
43072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43073   (eval "$ac_link") 2>conftest.er1
43074   ac_status=$?
43075   grep -v '^ *+' conftest.er1 >conftest.err
43076   rm -f conftest.er1
43077   cat conftest.err >&5
43078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43079   (exit $ac_status); } && {
43080          test -z "$ac_c_werror_flag" ||
43081          test ! -s conftest.err
43082        } && test -s conftest$ac_exeext &&
43083        $as_test_x conftest$ac_exeext; then
43084   ac_cv_header_sys_soundcard=yes
43085 else
43086   echo "$as_me: failed program was:" >&5
43087 sed 's/^/| /' conftest.$ac_ext >&5
43088
43089
43090                     saveLibs="$LIBS"
43091                     LIBS="$saveLibs -lossaudio"
43092                     cat >conftest.$ac_ext <<_ACEOF
43093 /* confdefs.h.  */
43094 _ACEOF
43095 cat confdefs.h >>conftest.$ac_ext
43096 cat >>conftest.$ac_ext <<_ACEOF
43097 /* end confdefs.h.  */
43098
43099                             #include <sys/ioctl.h>
43100                             #include <sys/soundcard.h>
43101
43102 int
43103 main ()
43104 {
43105
43106                             ioctl(0, SNDCTL_DSP_SPEED, 0);
43107
43108   ;
43109   return 0;
43110 }
43111 _ACEOF
43112 rm -f conftest.$ac_objext conftest$ac_exeext
43113 if { (ac_try="$ac_link"
43114 case "(($ac_try" in
43115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43116   *) ac_try_echo=$ac_try;;
43117 esac
43118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43119   (eval "$ac_link") 2>conftest.er1
43120   ac_status=$?
43121   grep -v '^ *+' conftest.er1 >conftest.err
43122   rm -f conftest.er1
43123   cat conftest.err >&5
43124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43125   (exit $ac_status); } && {
43126          test -z "$ac_c_werror_flag" ||
43127          test ! -s conftest.err
43128        } && test -s conftest$ac_exeext &&
43129        $as_test_x conftest$ac_exeext; then
43130   ac_cv_header_sys_soundcard=yes
43131 else
43132   echo "$as_me: failed program was:" >&5
43133 sed 's/^/| /' conftest.$ac_ext >&5
43134
43135
43136                             LIBS="$saveLibs"
43137                             ac_cv_header_sys_soundcard=no
43138
43139
43140 fi
43141
43142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43143       conftest$ac_exeext conftest.$ac_ext
43144
43145
43146 fi
43147
43148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43149       conftest$ac_exeext conftest.$ac_ext
43150
43151 fi
43152 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
43153 echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6; }
43154     fi
43155
43156     if test "$ac_cv_header_sys_soundcard" = "yes"; then
43157         cat >>confdefs.h <<\_ACEOF
43158 #define HAVE_SYS_SOUNDCARD_H 1
43159 _ACEOF
43160
43161     fi
43162 fi
43163
43164 WITH_PLUGIN_SDL=0
43165 if test "$wxUSE_SOUND" = "yes"; then
43166   if test "$USE_UNIX" = 1 ; then
43167     if test "$wxUSE_LIBSDL" != "no"; then
43168
43169 # Check whether --with-sdl-prefix was given.
43170 if test "${with_sdl_prefix+set}" = set; then
43171   withval=$with_sdl_prefix; sdl_prefix="$withval"
43172 else
43173   sdl_prefix=""
43174 fi
43175
43176
43177 # Check whether --with-sdl-exec-prefix was given.
43178 if test "${with_sdl_exec_prefix+set}" = set; then
43179   withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
43180 else
43181   sdl_exec_prefix=""
43182 fi
43183
43184 # Check whether --enable-sdltest was given.
43185 if test "${enable_sdltest+set}" = set; then
43186   enableval=$enable_sdltest;
43187 else
43188   enable_sdltest=yes
43189 fi
43190
43191
43192   if test x$sdl_exec_prefix != x ; then
43193     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
43194     if test x${SDL_CONFIG+set} != xset ; then
43195       SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
43196     fi
43197   fi
43198   if test x$sdl_prefix != x ; then
43199     sdl_args="$sdl_args --prefix=$sdl_prefix"
43200     if test x${SDL_CONFIG+set} != xset ; then
43201       SDL_CONFIG=$sdl_prefix/bin/sdl-config
43202     fi
43203   fi
43204
43205   if test "x$prefix" != xNONE; then
43206     PATH="$prefix/bin:$prefix/usr/bin:$PATH"
43207   fi
43208   # Extract the first word of "sdl-config", so it can be a program name with args.
43209 set dummy sdl-config; ac_word=$2
43210 { echo "$as_me:$LINENO: checking for $ac_word" >&5
43211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
43212 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
43213   echo $ECHO_N "(cached) $ECHO_C" >&6
43214 else
43215   case $SDL_CONFIG in
43216   [\\/]* | ?:[\\/]*)
43217   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
43218   ;;
43219   *)
43220   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43221 for as_dir in $PATH
43222 do
43223   IFS=$as_save_IFS
43224   test -z "$as_dir" && as_dir=.
43225   for ac_exec_ext in '' $ac_executable_extensions; do
43226   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43227     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
43228     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43229     break 2
43230   fi
43231 done
43232 done
43233 IFS=$as_save_IFS
43234
43235   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
43236   ;;
43237 esac
43238 fi
43239 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
43240 if test -n "$SDL_CONFIG"; then
43241   { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
43242 echo "${ECHO_T}$SDL_CONFIG" >&6; }
43243 else
43244   { echo "$as_me:$LINENO: result: no" >&5
43245 echo "${ECHO_T}no" >&6; }
43246 fi
43247
43248
43249   min_sdl_version=1.2.0
43250   { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
43251 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
43252   no_sdl=""
43253   if test "$SDL_CONFIG" = "no" ; then
43254     no_sdl=yes
43255   else
43256     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
43257     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
43258
43259     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
43260            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
43261     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
43262            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
43263     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
43264            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
43265     if test "x$enable_sdltest" = "xyes" ; then
43266       ac_save_CFLAGS="$CFLAGS"
43267       ac_save_CXXFLAGS="$CXXFLAGS"
43268       ac_save_LIBS="$LIBS"
43269       CFLAGS="$CFLAGS $SDL_CFLAGS"
43270       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
43271       LIBS="$LIBS $SDL_LIBS"
43272       rm -f conf.sdltest
43273       if test "$cross_compiling" = yes; then
43274   echo $ac_n "cross compiling; assumed OK... $ac_c"
43275 else
43276   cat >conftest.$ac_ext <<_ACEOF
43277 /* confdefs.h.  */
43278 _ACEOF
43279 cat confdefs.h >>conftest.$ac_ext
43280 cat >>conftest.$ac_ext <<_ACEOF
43281 /* end confdefs.h.  */
43282
43283 #include <stdio.h>
43284 #include <stdlib.h>
43285 #include <string.h>
43286 #include "SDL.h"
43287
43288 char*
43289 my_strdup (char *str)
43290 {
43291   char *new_str;
43292
43293   if (str)
43294     {
43295       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
43296       strcpy (new_str, str);
43297     }
43298   else
43299     new_str = NULL;
43300
43301   return new_str;
43302 }
43303
43304 int main (int argc, char *argv[])
43305 {
43306   int major, minor, micro;
43307   char *tmp_version;
43308
43309   /* This hangs on some systems (?)
43310   system ("touch conf.sdltest");
43311   */
43312   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
43313
43314   /* HP/UX 9 (%@#!) writes to sscanf strings */
43315   tmp_version = my_strdup("$min_sdl_version");
43316   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
43317      printf("%s, bad version string\n", "$min_sdl_version");
43318      exit(1);
43319    }
43320
43321    if (($sdl_major_version > major) ||
43322       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
43323       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
43324     {
43325       return 0;
43326     }
43327   else
43328     {
43329       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
43330       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
43331       printf("*** best to upgrade to the required version.\n");
43332       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
43333       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
43334       printf("*** config.cache before re-running configure\n");
43335       return 1;
43336     }
43337 }
43338
43339
43340 _ACEOF
43341 rm -f conftest$ac_exeext
43342 if { (ac_try="$ac_link"
43343 case "(($ac_try" in
43344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43345   *) ac_try_echo=$ac_try;;
43346 esac
43347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43348   (eval "$ac_link") 2>&5
43349   ac_status=$?
43350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43351   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43352   { (case "(($ac_try" in
43353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43354   *) ac_try_echo=$ac_try;;
43355 esac
43356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43357   (eval "$ac_try") 2>&5
43358   ac_status=$?
43359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43360   (exit $ac_status); }; }; then
43361   :
43362 else
43363   echo "$as_me: program exited with status $ac_status" >&5
43364 echo "$as_me: failed program was:" >&5
43365 sed 's/^/| /' conftest.$ac_ext >&5
43366
43367 ( exit $ac_status )
43368 no_sdl=yes
43369 fi
43370 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43371 fi
43372
43373
43374        CFLAGS="$ac_save_CFLAGS"
43375        CXXFLAGS="$ac_save_CXXFLAGS"
43376        LIBS="$ac_save_LIBS"
43377      fi
43378   fi
43379   if test "x$no_sdl" = x ; then
43380      { echo "$as_me:$LINENO: result: yes" >&5
43381 echo "${ECHO_T}yes" >&6; }
43382
43383                     EXTRALIBS_SDL="$SDL_LIBS"
43384                     CFLAGS="$SDL_CFLAGS $CFLAGS"
43385                     CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
43386                     cat >>confdefs.h <<\_ACEOF
43387 #define wxUSE_LIBSDL 1
43388 _ACEOF
43389
43390
43391   else
43392      { echo "$as_me:$LINENO: result: no" >&5
43393 echo "${ECHO_T}no" >&6; }
43394      if test "$SDL_CONFIG" = "no" ; then
43395        echo "*** The sdl-config script installed by SDL could not be found"
43396        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
43397        echo "*** your path, or set the SDL_CONFIG environment variable to the"
43398        echo "*** full path to sdl-config."
43399      else
43400        if test -f conf.sdltest ; then
43401         :
43402        else
43403           echo "*** Could not run SDL test program, checking why..."
43404           CFLAGS="$CFLAGS $SDL_CFLAGS"
43405           CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
43406           LIBS="$LIBS $SDL_LIBS"
43407           cat >conftest.$ac_ext <<_ACEOF
43408 /* confdefs.h.  */
43409 _ACEOF
43410 cat confdefs.h >>conftest.$ac_ext
43411 cat >>conftest.$ac_ext <<_ACEOF
43412 /* end confdefs.h.  */
43413
43414 #include <stdio.h>
43415 #include "SDL.h"
43416
43417 int main(int argc, char *argv[])
43418 { return 0; }
43419 #undef  main
43420 #define main K_and_R_C_main
43421
43422 int
43423 main ()
43424 {
43425  return 0;
43426   ;
43427   return 0;
43428 }
43429 _ACEOF
43430 rm -f conftest.$ac_objext conftest$ac_exeext
43431 if { (ac_try="$ac_link"
43432 case "(($ac_try" in
43433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43434   *) ac_try_echo=$ac_try;;
43435 esac
43436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43437   (eval "$ac_link") 2>conftest.er1
43438   ac_status=$?
43439   grep -v '^ *+' conftest.er1 >conftest.err
43440   rm -f conftest.er1
43441   cat conftest.err >&5
43442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43443   (exit $ac_status); } && {
43444          test -z "$ac_c_werror_flag" ||
43445          test ! -s conftest.err
43446        } && test -s conftest$ac_exeext &&
43447        $as_test_x conftest$ac_exeext; then
43448    echo "*** The test program compiled, but did not run. This usually means"
43449           echo "*** that the run-time linker is not finding SDL or finding the wrong"
43450           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
43451           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
43452           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
43453           echo "*** is required on your system"
43454           echo "***"
43455           echo "*** If you have an old version installed, it is best to remove it, although"
43456           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
43457 else
43458   echo "$as_me: failed program was:" >&5
43459 sed 's/^/| /' conftest.$ac_ext >&5
43460
43461          echo "*** The test program failed to compile or link. See the file config.log for the"
43462           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
43463           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
43464           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
43465 fi
43466
43467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43468       conftest$ac_exeext conftest.$ac_ext
43469           CFLAGS="$ac_save_CFLAGS"
43470           CXXFLAGS="$ac_save_CXXFLAGS"
43471           LIBS="$ac_save_LIBS"
43472        fi
43473      fi
43474      SDL_CFLAGS=""
43475      SDL_LIBS=""
43476      wxUSE_LIBSDL="no"
43477   fi
43478
43479
43480   rm -f conf.sdltest
43481
43482       if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
43483         WITH_PLUGIN_SDL=1
43484       fi
43485     fi
43486   else
43487         if test "$wxUSE_MGL" = 1; then
43488         { echo "$as_me:$LINENO: WARNING: wxSound not supported in MGL under DOS... disabled" >&5
43489 echo "$as_me: WARNING: wxSound not supported in MGL under DOS... disabled" >&2;}
43490         wxUSE_SOUND="no"
43491     fi
43492   fi
43493 fi
43494
43495 if test "$wxUSE_SOUND" = "yes"; then
43496   cat >>confdefs.h <<\_ACEOF
43497 #define wxUSE_SOUND 1
43498 _ACEOF
43499
43500   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
43501 fi
43502
43503 if test "$WXGTK2" = 1; then
43504
43505
43506 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
43507         if test -n "$ac_tool_prefix"; then
43508   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
43509 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
43510 { echo "$as_me:$LINENO: checking for $ac_word" >&5
43511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
43512 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
43513   echo $ECHO_N "(cached) $ECHO_C" >&6
43514 else
43515   case $PKG_CONFIG in
43516   [\\/]* | ?:[\\/]*)
43517   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
43518   ;;
43519   *)
43520   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43521 for as_dir in $PATH
43522 do
43523   IFS=$as_save_IFS
43524   test -z "$as_dir" && as_dir=.
43525   for ac_exec_ext in '' $ac_executable_extensions; do
43526   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43527     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
43528     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43529     break 2
43530   fi
43531 done
43532 done
43533 IFS=$as_save_IFS
43534
43535   ;;
43536 esac
43537 fi
43538 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
43539 if test -n "$PKG_CONFIG"; then
43540   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
43541 echo "${ECHO_T}$PKG_CONFIG" >&6; }
43542 else
43543   { echo "$as_me:$LINENO: result: no" >&5
43544 echo "${ECHO_T}no" >&6; }
43545 fi
43546
43547
43548 fi
43549 if test -z "$ac_cv_path_PKG_CONFIG"; then
43550   ac_pt_PKG_CONFIG=$PKG_CONFIG
43551   # Extract the first word of "pkg-config", so it can be a program name with args.
43552 set dummy pkg-config; ac_word=$2
43553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
43554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
43555 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
43556   echo $ECHO_N "(cached) $ECHO_C" >&6
43557 else
43558   case $ac_pt_PKG_CONFIG in
43559   [\\/]* | ?:[\\/]*)
43560   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
43561   ;;
43562   *)
43563   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43564 for as_dir in $PATH
43565 do
43566   IFS=$as_save_IFS
43567   test -z "$as_dir" && as_dir=.
43568   for ac_exec_ext in '' $ac_executable_extensions; do
43569   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43570     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
43571     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43572     break 2
43573   fi
43574 done
43575 done
43576 IFS=$as_save_IFS
43577
43578   ;;
43579 esac
43580 fi
43581 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
43582 if test -n "$ac_pt_PKG_CONFIG"; then
43583   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
43584 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
43585 else
43586   { echo "$as_me:$LINENO: result: no" >&5
43587 echo "${ECHO_T}no" >&6; }
43588 fi
43589
43590   if test "x$ac_pt_PKG_CONFIG" = x; then
43591     PKG_CONFIG=""
43592   else
43593     case $cross_compiling:$ac_tool_warned in
43594 yes:)
43595 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
43596 whose name does not start with the host triplet.  If you think this
43597 configuration is useful to you, please write to autoconf@gnu.org." >&5
43598 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
43599 whose name does not start with the host triplet.  If you think this
43600 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
43601 ac_tool_warned=yes ;;
43602 esac
43603     PKG_CONFIG=$ac_pt_PKG_CONFIG
43604   fi
43605 else
43606   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
43607 fi
43608
43609 fi
43610 if test -n "$PKG_CONFIG"; then
43611         _pkg_min_version=0.9.0
43612         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
43613 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
43614         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
43615                 { echo "$as_me:$LINENO: result: yes" >&5
43616 echo "${ECHO_T}yes" >&6; }
43617         else
43618                 { echo "$as_me:$LINENO: result: no" >&5
43619 echo "${ECHO_T}no" >&6; }
43620                 PKG_CONFIG=""
43621         fi
43622
43623 fi
43624
43625     if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
43626
43627         if test "$wxUSE_GTKPRINT" = "yes" ; then
43628
43629
43630 pkg_failed=no
43631 { echo "$as_me:$LINENO: checking for GTKPRINT" >&5
43632 echo $ECHO_N "checking for GTKPRINT... $ECHO_C" >&6; }
43633
43634 if test -n "$PKG_CONFIG"; then
43635     if test -n "$GTKPRINT_CFLAGS"; then
43636         pkg_cv_GTKPRINT_CFLAGS="$GTKPRINT_CFLAGS"
43637     else
43638         if test -n "$PKG_CONFIG" && \
43639     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
43640   ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
43641   ac_status=$?
43642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43643   (exit $ac_status); }; then
43644   pkg_cv_GTKPRINT_CFLAGS=`$PKG_CONFIG --cflags "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
43645 else
43646   pkg_failed=yes
43647 fi
43648     fi
43649 else
43650         pkg_failed=untried
43651 fi
43652 if test -n "$PKG_CONFIG"; then
43653     if test -n "$GTKPRINT_LIBS"; then
43654         pkg_cv_GTKPRINT_LIBS="$GTKPRINT_LIBS"
43655     else
43656         if test -n "$PKG_CONFIG" && \
43657     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
43658   ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
43659   ac_status=$?
43660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43661   (exit $ac_status); }; then
43662   pkg_cv_GTKPRINT_LIBS=`$PKG_CONFIG --libs "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
43663 else
43664   pkg_failed=yes
43665 fi
43666     fi
43667 else
43668         pkg_failed=untried
43669 fi
43670
43671
43672
43673 if test $pkg_failed = yes; then
43674
43675 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43676         _pkg_short_errors_supported=yes
43677 else
43678         _pkg_short_errors_supported=no
43679 fi
43680         if test $_pkg_short_errors_supported = yes; then
43681                 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
43682         else
43683                 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
43684         fi
43685         # Put the nasty error message in config.log where it belongs
43686         echo "$GTKPRINT_PKG_ERRORS" >&5
43687
43688
43689                         { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
43690 echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
43691                         wxUSE_GTKPRINT="no"
43692
43693
43694 elif test $pkg_failed = untried; then
43695
43696                         { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
43697 echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
43698                         wxUSE_GTKPRINT="no"
43699
43700
43701 else
43702         GTKPRINT_CFLAGS=$pkg_cv_GTKPRINT_CFLAGS
43703         GTKPRINT_LIBS=$pkg_cv_GTKPRINT_LIBS
43704         { echo "$as_me:$LINENO: result: yes" >&5
43705 echo "${ECHO_T}yes" >&6; }
43706
43707                         CFLAGS="$GTKPRINT_CFLAGS $CFLAGS"
43708                         CXXFLAGS="$GTKPRINT_CFLAGS $CXXFLAGS"
43709                         cat >>confdefs.h <<\_ACEOF
43710 #define wxUSE_GTKPRINT 1
43711 _ACEOF
43712
43713
43714 fi
43715         fi
43716
43717         if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
43718
43719
43720 pkg_failed=no
43721 { echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
43722 echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6; }
43723
43724 if test -n "$PKG_CONFIG"; then
43725     if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
43726         pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
43727     else
43728         if test -n "$PKG_CONFIG" && \
43729     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
43730   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
43731   ac_status=$?
43732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43733   (exit $ac_status); }; then
43734   pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
43735 else
43736   pkg_failed=yes
43737 fi
43738     fi
43739 else
43740         pkg_failed=untried
43741 fi
43742 if test -n "$PKG_CONFIG"; then
43743     if test -n "$LIBGNOMEPRINTUI_LIBS"; then
43744         pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
43745     else
43746         if test -n "$PKG_CONFIG" && \
43747     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
43748   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
43749   ac_status=$?
43750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43751   (exit $ac_status); }; then
43752   pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
43753 else
43754   pkg_failed=yes
43755 fi
43756     fi
43757 else
43758         pkg_failed=untried
43759 fi
43760
43761
43762
43763 if test $pkg_failed = yes; then
43764
43765 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43766         _pkg_short_errors_supported=yes
43767 else
43768         _pkg_short_errors_supported=no
43769 fi
43770         if test $_pkg_short_errors_supported = yes; then
43771                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
43772         else
43773                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
43774         fi
43775         # Put the nasty error message in config.log where it belongs
43776         echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
43777
43778
43779                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
43780 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
43781                         wxUSE_LIBGNOMEPRINT="no"
43782
43783
43784 elif test $pkg_failed = untried; then
43785
43786                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
43787 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
43788                         wxUSE_LIBGNOMEPRINT="no"
43789
43790
43791 else
43792         LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
43793         LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
43794         { echo "$as_me:$LINENO: result: yes" >&5
43795 echo "${ECHO_T}yes" >&6; }
43796
43797                         CFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CFLAGS"
43798                         CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
43799                         cat >>confdefs.h <<\_ACEOF
43800 #define wxUSE_LIBGNOMEPRINT 1
43801 _ACEOF
43802
43803
43804 fi
43805         fi
43806     fi
43807
43808     if test "$wxUSE_MIMETYPE" = "yes" ; then
43809         if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
43810
43811
43812 pkg_failed=no
43813 { echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
43814 echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6; }
43815
43816 if test -n "$PKG_CONFIG"; then
43817     if test -n "$GNOMEVFS_CFLAGS"; then
43818         pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
43819     else
43820         if test -n "$PKG_CONFIG" && \
43821     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
43822   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
43823   ac_status=$?
43824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43825   (exit $ac_status); }; then
43826   pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
43827 else
43828   pkg_failed=yes
43829 fi
43830     fi
43831 else
43832         pkg_failed=untried
43833 fi
43834 if test -n "$PKG_CONFIG"; then
43835     if test -n "$GNOMEVFS_LIBS"; then
43836         pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
43837     else
43838         if test -n "$PKG_CONFIG" && \
43839     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
43840   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
43841   ac_status=$?
43842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43843   (exit $ac_status); }; then
43844   pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
43845 else
43846   pkg_failed=yes
43847 fi
43848     fi
43849 else
43850         pkg_failed=untried
43851 fi
43852
43853
43854
43855 if test $pkg_failed = yes; then
43856
43857 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43858         _pkg_short_errors_supported=yes
43859 else
43860         _pkg_short_errors_supported=no
43861 fi
43862         if test $_pkg_short_errors_supported = yes; then
43863                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
43864         else
43865                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
43866         fi
43867         # Put the nasty error message in config.log where it belongs
43868         echo "$GNOMEVFS_PKG_ERRORS" >&5
43869
43870
43871                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
43872 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
43873                         wxUSE_LIBGNOMEVFS="no"
43874
43875
43876 elif test $pkg_failed = untried; then
43877
43878                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
43879 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
43880                         wxUSE_LIBGNOMEVFS="no"
43881
43882
43883 else
43884         GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
43885         GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
43886         { echo "$as_me:$LINENO: result: yes" >&5
43887 echo "${ECHO_T}yes" >&6; }
43888
43889                         CFLAGS="$GNOMEVFS_CFLAGS $CFLAGS"
43890                         CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
43891                         cat >>confdefs.h <<\_ACEOF
43892 #define wxUSE_LIBGNOMEVFS 1
43893 _ACEOF
43894
43895
43896 fi
43897         fi
43898     fi
43899
43900     if test "$wxUSE_LIBHILDON" = "yes" ; then
43901
43902 pkg_failed=no
43903 { echo "$as_me:$LINENO: checking for HILDON" >&5
43904 echo $ECHO_N "checking for HILDON... $ECHO_C" >&6; }
43905
43906 if test -n "$PKG_CONFIG"; then
43907     if test -n "$HILDON_CFLAGS"; then
43908         pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
43909     else
43910         if test -n "$PKG_CONFIG" && \
43911     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
43912   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
43913   ac_status=$?
43914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43915   (exit $ac_status); }; then
43916   pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
43917 else
43918   pkg_failed=yes
43919 fi
43920     fi
43921 else
43922         pkg_failed=untried
43923 fi
43924 if test -n "$PKG_CONFIG"; then
43925     if test -n "$HILDON_LIBS"; then
43926         pkg_cv_HILDON_LIBS="$HILDON_LIBS"
43927     else
43928         if test -n "$PKG_CONFIG" && \
43929     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
43930   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
43931   ac_status=$?
43932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43933   (exit $ac_status); }; then
43934   pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
43935 else
43936   pkg_failed=yes
43937 fi
43938     fi
43939 else
43940         pkg_failed=untried
43941 fi
43942
43943
43944
43945 if test $pkg_failed = yes; then
43946
43947 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43948         _pkg_short_errors_supported=yes
43949 else
43950         _pkg_short_errors_supported=no
43951 fi
43952         if test $_pkg_short_errors_supported = yes; then
43953                 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
43954         else
43955                 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
43956         fi
43957         # Put the nasty error message in config.log where it belongs
43958         echo "$HILDON_PKG_ERRORS" >&5
43959
43960
43961                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
43962 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
43963                         wxUSE_LIBHILDON="no"
43964                         ac_hildon_lgpl=0
43965
43966
43967 elif test $pkg_failed = untried; then
43968
43969                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
43970 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
43971                         wxUSE_LIBHILDON="no"
43972                         ac_hildon_lgpl=0
43973
43974
43975 else
43976         HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
43977         HILDON_LIBS=$pkg_cv_HILDON_LIBS
43978         { echo "$as_me:$LINENO: result: yes" >&5
43979 echo "${ECHO_T}yes" >&6; }
43980
43981                 EXTRALIBS_HILDON="$HILDON_LIBS"
43982                 CFLAGS="$CFLAGS $HILDON_CFLAGS"
43983                 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
43984                 cat >>confdefs.h <<\_ACEOF
43985 #define wxUSE_LIBHILDON 1
43986 _ACEOF
43987
43988                 ac_hildon_lgpl=1
43989
43990 fi
43991
43992         if test "$ac_hildon_lgpl" = 0 ; then
43993
43994 pkg_failed=no
43995 { echo "$as_me:$LINENO: checking for HILDON2" >&5
43996 echo $ECHO_N "checking for HILDON2... $ECHO_C" >&6; }
43997
43998 if test -n "$PKG_CONFIG"; then
43999     if test -n "$HILDON2_CFLAGS"; then
44000         pkg_cv_HILDON2_CFLAGS="$HILDON2_CFLAGS"
44001     else
44002         if test -n "$PKG_CONFIG" && \
44003     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-1 >= 1.99\"") >&5
44004   ($PKG_CONFIG --exists --print-errors "hildon-1 >= 1.99") 2>&5
44005   ac_status=$?
44006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44007   (exit $ac_status); }; then
44008   pkg_cv_HILDON2_CFLAGS=`$PKG_CONFIG --cflags "hildon-1 >= 1.99" 2>/dev/null`
44009 else
44010   pkg_failed=yes
44011 fi
44012     fi
44013 else
44014         pkg_failed=untried
44015 fi
44016 if test -n "$PKG_CONFIG"; then
44017     if test -n "$HILDON2_LIBS"; then
44018         pkg_cv_HILDON2_LIBS="$HILDON2_LIBS"
44019     else
44020         if test -n "$PKG_CONFIG" && \
44021     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-1 >= 1.99\"") >&5
44022   ($PKG_CONFIG --exists --print-errors "hildon-1 >= 1.99") 2>&5
44023   ac_status=$?
44024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44025   (exit $ac_status); }; then
44026   pkg_cv_HILDON2_LIBS=`$PKG_CONFIG --libs "hildon-1 >= 1.99" 2>/dev/null`
44027 else
44028   pkg_failed=yes
44029 fi
44030     fi
44031 else
44032         pkg_failed=untried
44033 fi
44034
44035
44036
44037 if test $pkg_failed = yes; then
44038
44039 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44040         _pkg_short_errors_supported=yes
44041 else
44042         _pkg_short_errors_supported=no
44043 fi
44044         if test $_pkg_short_errors_supported = yes; then
44045                 HILDON2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-1 >= 1.99"`
44046         else
44047                 HILDON2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-1 >= 1.99"`
44048         fi
44049         # Put the nasty error message in config.log where it belongs
44050         echo "$HILDON2_PKG_ERRORS" >&5
44051
44052
44053                     { echo "$as_me:$LINENO: WARNING: libhildon_1 not found" >&5
44054 echo "$as_me: WARNING: libhildon_1 not found" >&2;}
44055                             wxUSE_LIBHILDON2="no"
44056
44057
44058 elif test $pkg_failed = untried; then
44059
44060                     { echo "$as_me:$LINENO: WARNING: libhildon_1 not found" >&5
44061 echo "$as_me: WARNING: libhildon_1 not found" >&2;}
44062                             wxUSE_LIBHILDON2="no"
44063
44064
44065 else
44066         HILDON2_CFLAGS=$pkg_cv_HILDON2_CFLAGS
44067         HILDON2_LIBS=$pkg_cv_HILDON2_LIBS
44068         { echo "$as_me:$LINENO: result: yes" >&5
44069 echo "${ECHO_T}yes" >&6; }
44070
44071                     EXTRALIBS_HILDON="$HILDON2_LIBS"
44072                     CFLAGS="$CFLAGS $HILDON2_CFLAGS"
44073                     CXXFLAGS="$CXXFLAGS $HILDON2_CFLAGS"
44074                     cat >>confdefs.h <<\_ACEOF
44075 #define wxUSE_LIBHILDON2 1
44076 _ACEOF
44077
44078
44079 fi
44080         fi
44081     fi
44082 fi
44083
44084 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
44085   cat >>confdefs.h <<\_ACEOF
44086 #define wxUSE_CMDLINE_PARSER 1
44087 _ACEOF
44088
44089 fi
44090
44091 if test "$wxUSE_STOPWATCH" = "yes"; then
44092   cat >>confdefs.h <<\_ACEOF
44093 #define wxUSE_STOPWATCH 1
44094 _ACEOF
44095
44096 fi
44097
44098 if test "$wxUSE_DATETIME" = "yes"; then
44099   cat >>confdefs.h <<\_ACEOF
44100 #define wxUSE_DATETIME 1
44101 _ACEOF
44102
44103 fi
44104
44105 if test "$wxUSE_FILE" = "yes"; then
44106   cat >>confdefs.h <<\_ACEOF
44107 #define wxUSE_FILE 1
44108 _ACEOF
44109
44110 fi
44111
44112 if test "$wxUSE_FFILE" = "yes"; then
44113   cat >>confdefs.h <<\_ACEOF
44114 #define wxUSE_FFILE 1
44115 _ACEOF
44116
44117 fi
44118
44119 if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
44120   if test "$wxUSE_STREAMS" != yes; then
44121     { echo "$as_me:$LINENO: WARNING: wxArchive requires wxStreams... disabled" >&5
44122 echo "$as_me: WARNING: wxArchive requires wxStreams... disabled" >&2;}
44123     wxUSE_ARCHIVE_STREAMS=no
44124   else
44125     cat >>confdefs.h <<\_ACEOF
44126 #define wxUSE_ARCHIVE_STREAMS 1
44127 _ACEOF
44128
44129   fi
44130 fi
44131
44132 if test "$wxUSE_ZIPSTREAM" = "yes"; then
44133   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
44134     { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
44135 echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
44136   elif test "$wxUSE_ZLIB" = "no"; then
44137     { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
44138 echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
44139   else
44140     cat >>confdefs.h <<\_ACEOF
44141 #define wxUSE_ZIPSTREAM 1
44142 _ACEOF
44143
44144   fi
44145 fi
44146
44147 if test "$wxUSE_TARSTREAM" = "yes"; then
44148   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
44149     { echo "$as_me:$LINENO: WARNING: wxTar requires wxArchive... disabled" >&5
44150 echo "$as_me: WARNING: wxTar requires wxArchive... disabled" >&2;}
44151   else
44152     cat >>confdefs.h <<\_ACEOF
44153 #define wxUSE_TARSTREAM 1
44154 _ACEOF
44155
44156   fi
44157 fi
44158
44159 if test "$wxUSE_FILE_HISTORY" = "yes"; then
44160   cat >>confdefs.h <<\_ACEOF
44161 #define wxUSE_FILE_HISTORY 1
44162 _ACEOF
44163
44164 fi
44165
44166 if test "$wxUSE_FILESYSTEM" = "yes"; then
44167   if test "$wxUSE_STREAMS" != yes -o \( "$wxUSE_FILE" != yes -a "$wxUSE_FFILE" != yes \); then
44168     { echo "$as_me:$LINENO: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&5
44169 echo "$as_me: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&2;}
44170     wxUSE_FILESYSTEM=no
44171   else
44172     cat >>confdefs.h <<\_ACEOF
44173 #define wxUSE_FILESYSTEM 1
44174 _ACEOF
44175
44176   fi
44177 fi
44178
44179 if test "$wxUSE_FS_ARCHIVE" = "yes"; then
44180   if test "$wxUSE_FILESYSTEM" != yes -o "$wxUSE_ARCHIVE_STREAMS" != yes; then
44181     { echo "$as_me:$LINENO: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&5
44182 echo "$as_me: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&2;}
44183   else
44184     cat >>confdefs.h <<\_ACEOF
44185 #define wxUSE_FS_ARCHIVE 1
44186 _ACEOF
44187
44188   fi
44189 fi
44190
44191 if test "$wxUSE_FS_ZIP" = "yes"; then
44192   if test "$wxUSE_FS_ARCHIVE" != yes; then
44193     { echo "$as_me:$LINENO: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&5
44194 echo "$as_me: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&2;}
44195   else
44196     cat >>confdefs.h <<\_ACEOF
44197 #define wxUSE_FS_ZIP 1
44198 _ACEOF
44199
44200   fi
44201 fi
44202
44203 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
44204   if test "$USE_UNIX" != 1; then
44205     { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
44206 echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
44207     wxUSE_ON_FATAL_EXCEPTION=no
44208   else
44209     cat >>confdefs.h <<\_ACEOF
44210 #define wxUSE_ON_FATAL_EXCEPTION 1
44211 _ACEOF
44212
44213   fi
44214 fi
44215
44216 if test "$wxUSE_STACKWALKER" = "yes"; then
44217     cat >>confdefs.h <<\_ACEOF
44218 #define wxUSE_STACKWALKER 1
44219 _ACEOF
44220
44221 fi
44222
44223 if test "$wxUSE_DEBUGREPORT" = "yes"; then
44224     if test "$USE_UNIX" != 1 -a "$USE_WIN32" != 1; then
44225         { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
44226 echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
44227         wxUSE_DEBUGREPORT=no
44228     else
44229         cat >>confdefs.h <<\_ACEOF
44230 #define wxUSE_DEBUGREPORT 1
44231 _ACEOF
44232
44233         if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
44234             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
44235         fi
44236     fi
44237 fi
44238
44239 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
44240   cat >>confdefs.h <<\_ACEOF
44241 #define wxUSE_SNGLINST_CHECKER 1
44242 _ACEOF
44243
44244 fi
44245
44246 if test "$wxUSE_BUSYINFO" = "yes"; then
44247   cat >>confdefs.h <<\_ACEOF
44248 #define wxUSE_BUSYINFO 1
44249 _ACEOF
44250
44251 fi
44252
44253 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
44254   cat >>confdefs.h <<\_ACEOF
44255 #define wxUSE_STD_IOSTREAM 1
44256 _ACEOF
44257
44258 fi
44259
44260 if test "$wxUSE_STD_STRING" = "yes"; then
44261   cat >>confdefs.h <<\_ACEOF
44262 #define wxUSE_STD_STRING 1
44263 _ACEOF
44264
44265 fi
44266
44267 if test "$wxUSE_STDPATHS" = "yes"; then
44268   cat >>confdefs.h <<\_ACEOF
44269 #define wxUSE_STDPATHS 1
44270 _ACEOF
44271
44272 fi
44273
44274 if test "$wxUSE_TEXTBUFFER" = "yes"; then
44275     cat >>confdefs.h <<\_ACEOF
44276 #define wxUSE_TEXTBUFFER 1
44277 _ACEOF
44278
44279 fi
44280
44281 if test "$wxUSE_TEXTFILE" = "yes"; then
44282   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
44283     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
44284 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
44285   else
44286     cat >>confdefs.h <<\_ACEOF
44287 #define wxUSE_TEXTFILE 1
44288 _ACEOF
44289
44290   fi
44291 fi
44292
44293 if test "$wxUSE_CONFIG" = "yes" ; then
44294   if test "$wxUSE_TEXTFILE" != "yes"; then
44295     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
44296 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
44297   else
44298     cat >>confdefs.h <<\_ACEOF
44299 #define wxUSE_CONFIG 1
44300 _ACEOF
44301
44302     cat >>confdefs.h <<\_ACEOF
44303 #define wxUSE_CONFIG_NATIVE 1
44304 _ACEOF
44305
44306     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
44307   fi
44308 fi
44309
44310 if test "$wxUSE_INTL" = "yes" ; then
44311   if test "$wxUSE_FILE" != "yes"; then
44312     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
44313 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
44314   else
44315     cat >>confdefs.h <<\_ACEOF
44316 #define wxUSE_INTL 1
44317 _ACEOF
44318
44319     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
44320     GUIDIST="$GUIDIST INTL_DIST"
44321   fi
44322 fi
44323
44324 if test "$wxUSE_XLOCALE" = "yes" ; then
44325     cat >>confdefs.h <<\_ACEOF
44326 #define wxUSE_XLOCALE 1
44327 _ACEOF
44328
44329     { echo "$as_me:$LINENO: checking for locale_t" >&5
44330 echo $ECHO_N "checking for locale_t... $ECHO_C" >&6; }
44331 if test "${ac_cv_type_locale_t+set}" = set; then
44332   echo $ECHO_N "(cached) $ECHO_C" >&6
44333 else
44334   cat >conftest.$ac_ext <<_ACEOF
44335 /* confdefs.h.  */
44336 _ACEOF
44337 cat confdefs.h >>conftest.$ac_ext
44338 cat >>conftest.$ac_ext <<_ACEOF
44339 /* end confdefs.h.  */
44340 #include <xlocale.h>
44341                     #include <locale.h>
44342
44343 typedef locale_t ac__type_new_;
44344 int
44345 main ()
44346 {
44347 if ((ac__type_new_ *) 0)
44348   return 0;
44349 if (sizeof (ac__type_new_))
44350   return 0;
44351   ;
44352   return 0;
44353 }
44354 _ACEOF
44355 rm -f conftest.$ac_objext
44356 if { (ac_try="$ac_compile"
44357 case "(($ac_try" in
44358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44359   *) ac_try_echo=$ac_try;;
44360 esac
44361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44362   (eval "$ac_compile") 2>conftest.er1
44363   ac_status=$?
44364   grep -v '^ *+' conftest.er1 >conftest.err
44365   rm -f conftest.er1
44366   cat conftest.err >&5
44367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44368   (exit $ac_status); } && {
44369          test -z "$ac_c_werror_flag" ||
44370          test ! -s conftest.err
44371        } && test -s conftest.$ac_objext; then
44372   ac_cv_type_locale_t=yes
44373 else
44374   echo "$as_me: failed program was:" >&5
44375 sed 's/^/| /' conftest.$ac_ext >&5
44376
44377         ac_cv_type_locale_t=no
44378 fi
44379
44380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44381 fi
44382 { echo "$as_me:$LINENO: result: $ac_cv_type_locale_t" >&5
44383 echo "${ECHO_T}$ac_cv_type_locale_t" >&6; }
44384 if test $ac_cv_type_locale_t = yes; then
44385
44386 cat >>confdefs.h <<_ACEOF
44387 #define HAVE_LOCALE_T 1
44388 _ACEOF
44389
44390
44391 fi
44392
44393 fi
44394
44395 if test "$wxUSE_LOG" = "yes"; then
44396   cat >>confdefs.h <<\_ACEOF
44397 #define wxUSE_LOG 1
44398 _ACEOF
44399
44400
44401     if test "$wxUSE_LOGGUI" = "yes"; then
44402       cat >>confdefs.h <<\_ACEOF
44403 #define wxUSE_LOGGUI 1
44404 _ACEOF
44405
44406     fi
44407
44408     if test "$wxUSE_LOGWINDOW" = "yes"; then
44409       cat >>confdefs.h <<\_ACEOF
44410 #define wxUSE_LOGWINDOW 1
44411 _ACEOF
44412
44413     fi
44414
44415     if test "$wxUSE_LOGDIALOG" = "yes"; then
44416       cat >>confdefs.h <<\_ACEOF
44417 #define wxUSE_LOG_DIALOG 1
44418 _ACEOF
44419
44420     fi
44421
44422         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
44423 fi
44424
44425 if test "$wxUSE_LONGLONG" = "yes"; then
44426   cat >>confdefs.h <<\_ACEOF
44427 #define wxUSE_LONGLONG 1
44428 _ACEOF
44429
44430 fi
44431
44432 if test "$wxUSE_GEOMETRY" = "yes"; then
44433   cat >>confdefs.h <<\_ACEOF
44434 #define wxUSE_GEOMETRY 1
44435 _ACEOF
44436
44437 fi
44438
44439 if test "$wxUSE_BASE64" = "yes"; then
44440   cat >>confdefs.h <<\_ACEOF
44441 #define wxUSE_BASE64 1
44442 _ACEOF
44443
44444 fi
44445
44446 if test "$wxUSE_STREAMS" = "yes" ; then
44447   cat >>confdefs.h <<\_ACEOF
44448 #define wxUSE_STREAMS 1
44449 _ACEOF
44450
44451 fi
44452
44453 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
44454   cat >>confdefs.h <<\_ACEOF
44455 #define wxUSE_PRINTF_POS_PARAMS 1
44456 _ACEOF
44457
44458 fi
44459
44460 if test "$wxUSE_OBJC_UNIQUIFYING" = "yes"; then
44461   cat >>confdefs.h <<\_ACEOF
44462 #define wxUSE_OBJC_UNIQUIFYING 1
44463 _ACEOF
44464
44465 fi
44466
44467
44468 if test "$wxUSE_CONSOLE_EVENTLOOP" = "yes"; then
44469     cat >>confdefs.h <<\_ACEOF
44470 #define wxUSE_CONSOLE_EVENTLOOP 1
44471 _ACEOF
44472
44473
44474     if test "$wxUSE_UNIX" = "yes"; then
44475         if test "$wxUSE_SELECT_DISPATCHER" = "yes"; then
44476             cat >>confdefs.h <<\_ACEOF
44477 #define wxUSE_SELECT_DISPATCHER 1
44478 _ACEOF
44479
44480         fi
44481
44482         if test "$wxUSE_EPOLL_DISPATCHER" = "yes"; then
44483
44484 for ac_header in sys/epoll.h
44485 do
44486 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44487 { echo "$as_me:$LINENO: checking for $ac_header" >&5
44488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
44489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
44490   echo $ECHO_N "(cached) $ECHO_C" >&6
44491 else
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 $ac_includes_default
44499
44500 #include <$ac_header>
44501 _ACEOF
44502 rm -f conftest.$ac_objext
44503 if { (ac_try="$ac_compile"
44504 case "(($ac_try" in
44505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44506   *) ac_try_echo=$ac_try;;
44507 esac
44508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44509   (eval "$ac_compile") 2>conftest.er1
44510   ac_status=$?
44511   grep -v '^ *+' conftest.er1 >conftest.err
44512   rm -f conftest.er1
44513   cat conftest.err >&5
44514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44515   (exit $ac_status); } && {
44516          test -z "$ac_c_werror_flag" ||
44517          test ! -s conftest.err
44518        } && test -s conftest.$ac_objext; then
44519   eval "$as_ac_Header=yes"
44520 else
44521   echo "$as_me: failed program was:" >&5
44522 sed 's/^/| /' conftest.$ac_ext >&5
44523
44524         eval "$as_ac_Header=no"
44525 fi
44526
44527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44528 fi
44529 ac_res=`eval echo '${'$as_ac_Header'}'`
44530                { echo "$as_me:$LINENO: result: $ac_res" >&5
44531 echo "${ECHO_T}$ac_res" >&6; }
44532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44533   cat >>confdefs.h <<_ACEOF
44534 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44535 _ACEOF
44536
44537 fi
44538
44539 done
44540
44541             if test "$ac_cv_header_sys_epoll_h" = "yes"; then
44542                 cat >>confdefs.h <<\_ACEOF
44543 #define wxUSE_EPOLL_DISPATCHER 1
44544 _ACEOF
44545
44546             else
44547                 { echo "$as_me:$LINENO: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&5
44548 echo "$as_me: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&2;}
44549             fi
44550         fi
44551     fi
44552 fi
44553
44554
44555
44556
44557 for ac_func in gettimeofday ftime
44558 do
44559 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44560 { echo "$as_me:$LINENO: checking for $ac_func" >&5
44561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
44562 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44563   echo $ECHO_N "(cached) $ECHO_C" >&6
44564 else
44565   cat >conftest.$ac_ext <<_ACEOF
44566 /* confdefs.h.  */
44567 _ACEOF
44568 cat confdefs.h >>conftest.$ac_ext
44569 cat >>conftest.$ac_ext <<_ACEOF
44570 /* end confdefs.h.  */
44571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44572    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44573 #define $ac_func innocuous_$ac_func
44574
44575 /* System header to define __stub macros and hopefully few prototypes,
44576     which can conflict with char $ac_func (); below.
44577     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44578     <limits.h> exists even on freestanding compilers.  */
44579
44580 #ifdef __STDC__
44581 # include <limits.h>
44582 #else
44583 # include <assert.h>
44584 #endif
44585
44586 #undef $ac_func
44587
44588 /* Override any GCC internal prototype to avoid an error.
44589    Use char because int might match the return type of a GCC
44590    builtin and then its argument prototype would still apply.  */
44591 #ifdef __cplusplus
44592 extern "C"
44593 #endif
44594 char $ac_func ();
44595 /* The GNU C library defines this for functions which it implements
44596     to always fail with ENOSYS.  Some functions are actually named
44597     something starting with __ and the normal name is an alias.  */
44598 #if defined __stub_$ac_func || defined __stub___$ac_func
44599 choke me
44600 #endif
44601
44602 int
44603 main ()
44604 {
44605 return $ac_func ();
44606   ;
44607   return 0;
44608 }
44609 _ACEOF
44610 rm -f conftest.$ac_objext conftest$ac_exeext
44611 if { (ac_try="$ac_link"
44612 case "(($ac_try" in
44613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44614   *) ac_try_echo=$ac_try;;
44615 esac
44616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44617   (eval "$ac_link") 2>conftest.er1
44618   ac_status=$?
44619   grep -v '^ *+' conftest.er1 >conftest.err
44620   rm -f conftest.er1
44621   cat conftest.err >&5
44622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44623   (exit $ac_status); } && {
44624          test -z "$ac_c_werror_flag" ||
44625          test ! -s conftest.err
44626        } && test -s conftest$ac_exeext &&
44627        $as_test_x conftest$ac_exeext; then
44628   eval "$as_ac_var=yes"
44629 else
44630   echo "$as_me: failed program was:" >&5
44631 sed 's/^/| /' conftest.$ac_ext >&5
44632
44633         eval "$as_ac_var=no"
44634 fi
44635
44636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44637       conftest$ac_exeext conftest.$ac_ext
44638 fi
44639 ac_res=`eval echo '${'$as_ac_var'}'`
44640                { echo "$as_me:$LINENO: result: $ac_res" >&5
44641 echo "${ECHO_T}$ac_res" >&6; }
44642 if test `eval echo '${'$as_ac_var'}'` = yes; then
44643   cat >>confdefs.h <<_ACEOF
44644 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44645 _ACEOF
44646  break
44647 fi
44648 done
44649
44650
44651 if test "$ac_cv_func_gettimeofday" = "yes"; then
44652     { echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
44653 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6; }
44654 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
44655   echo $ECHO_N "(cached) $ECHO_C" >&6
44656 else
44657
44658                 cat >conftest.$ac_ext <<_ACEOF
44659 /* confdefs.h.  */
44660 _ACEOF
44661 cat confdefs.h >>conftest.$ac_ext
44662 cat >>conftest.$ac_ext <<_ACEOF
44663 /* end confdefs.h.  */
44664
44665                 #include <sys/time.h>
44666                 #include <unistd.h>
44667
44668 int
44669 main ()
44670 {
44671
44672                 struct timeval tv;
44673                 gettimeofday(&tv, NULL);
44674
44675   ;
44676   return 0;
44677 }
44678 _ACEOF
44679 rm -f conftest.$ac_objext
44680 if { (ac_try="$ac_compile"
44681 case "(($ac_try" in
44682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44683   *) ac_try_echo=$ac_try;;
44684 esac
44685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44686   (eval "$ac_compile") 2>conftest.er1
44687   ac_status=$?
44688   grep -v '^ *+' conftest.er1 >conftest.err
44689   rm -f conftest.er1
44690   cat conftest.err >&5
44691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44692   (exit $ac_status); } && {
44693          test -z "$ac_c_werror_flag" ||
44694          test ! -s conftest.err
44695        } && test -s conftest.$ac_objext; then
44696   wx_cv_func_gettimeofday_has_2_args=yes
44697 else
44698   echo "$as_me: failed program was:" >&5
44699 sed 's/^/| /' conftest.$ac_ext >&5
44700
44701         cat >conftest.$ac_ext <<_ACEOF
44702 /* confdefs.h.  */
44703 _ACEOF
44704 cat confdefs.h >>conftest.$ac_ext
44705 cat >>conftest.$ac_ext <<_ACEOF
44706 /* end confdefs.h.  */
44707
44708                     #include <sys/time.h>
44709                     #include <unistd.h>
44710
44711 int
44712 main ()
44713 {
44714
44715                     struct timeval tv;
44716                     gettimeofday(&tv);
44717
44718   ;
44719   return 0;
44720 }
44721 _ACEOF
44722 rm -f conftest.$ac_objext
44723 if { (ac_try="$ac_compile"
44724 case "(($ac_try" in
44725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44726   *) ac_try_echo=$ac_try;;
44727 esac
44728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44729   (eval "$ac_compile") 2>conftest.er1
44730   ac_status=$?
44731   grep -v '^ *+' conftest.er1 >conftest.err
44732   rm -f conftest.er1
44733   cat conftest.err >&5
44734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44735   (exit $ac_status); } && {
44736          test -z "$ac_c_werror_flag" ||
44737          test ! -s conftest.err
44738        } && test -s conftest.$ac_objext; then
44739   wx_cv_func_gettimeofday_has_2_args=no
44740 else
44741   echo "$as_me: failed program was:" >&5
44742 sed 's/^/| /' conftest.$ac_ext >&5
44743
44744
44745                     { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
44746 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
44747                     wx_cv_func_gettimeofday_has_2_args=unknown
44748
44749
44750 fi
44751
44752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44753
44754 fi
44755
44756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44757
44758 fi
44759 { echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
44760 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6; }
44761
44762     if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
44763         cat >>confdefs.h <<\_ACEOF
44764 #define WX_GETTIMEOFDAY_NO_TZ 1
44765 _ACEOF
44766
44767     fi
44768 fi
44769
44770 if test "$wxUSE_DATETIME" = "yes"; then
44771             { echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
44772 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6; }
44773 if test "${wx_cv_var_timezone+set}" = set; then
44774   echo $ECHO_N "(cached) $ECHO_C" >&6
44775 else
44776
44777                         ac_ext=cpp
44778 ac_cpp='$CXXCPP $CPPFLAGS'
44779 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44780 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44781 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44782
44783                         cat >conftest.$ac_ext <<_ACEOF
44784 /* confdefs.h.  */
44785 _ACEOF
44786 cat confdefs.h >>conftest.$ac_ext
44787 cat >>conftest.$ac_ext <<_ACEOF
44788 /* end confdefs.h.  */
44789
44790                                 #include <time.h>
44791
44792 int
44793 main ()
44794 {
44795
44796                                 int tz;
44797                                 tz = timezone;
44798
44799   ;
44800   return 0;
44801 }
44802 _ACEOF
44803 rm -f conftest.$ac_objext
44804 if { (ac_try="$ac_compile"
44805 case "(($ac_try" in
44806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44807   *) ac_try_echo=$ac_try;;
44808 esac
44809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44810   (eval "$ac_compile") 2>conftest.er1
44811   ac_status=$?
44812   grep -v '^ *+' conftest.er1 >conftest.err
44813   rm -f conftest.er1
44814   cat conftest.err >&5
44815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44816   (exit $ac_status); } && {
44817          test -z "$ac_cxx_werror_flag" ||
44818          test ! -s conftest.err
44819        } && test -s conftest.$ac_objext; then
44820
44821                                 wx_cv_var_timezone=timezone
44822
44823 else
44824   echo "$as_me: failed program was:" >&5
44825 sed 's/^/| /' conftest.$ac_ext >&5
44826
44827
44828                                 cat >conftest.$ac_ext <<_ACEOF
44829 /* confdefs.h.  */
44830 _ACEOF
44831 cat confdefs.h >>conftest.$ac_ext
44832 cat >>conftest.$ac_ext <<_ACEOF
44833 /* end confdefs.h.  */
44834
44835                                         #include <time.h>
44836
44837 int
44838 main ()
44839 {
44840
44841                                         int tz;
44842                                         tz = _timezone;
44843
44844   ;
44845   return 0;
44846 }
44847 _ACEOF
44848 rm -f conftest.$ac_objext
44849 if { (ac_try="$ac_compile"
44850 case "(($ac_try" in
44851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44852   *) ac_try_echo=$ac_try;;
44853 esac
44854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44855   (eval "$ac_compile") 2>conftest.er1
44856   ac_status=$?
44857   grep -v '^ *+' conftest.er1 >conftest.err
44858   rm -f conftest.er1
44859   cat conftest.err >&5
44860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44861   (exit $ac_status); } && {
44862          test -z "$ac_cxx_werror_flag" ||
44863          test ! -s conftest.err
44864        } && test -s conftest.$ac_objext; then
44865
44866                                         wx_cv_var_timezone=_timezone
44867
44868 else
44869   echo "$as_me: failed program was:" >&5
44870 sed 's/^/| /' conftest.$ac_ext >&5
44871
44872
44873                                         cat >conftest.$ac_ext <<_ACEOF
44874 /* confdefs.h.  */
44875 _ACEOF
44876 cat confdefs.h >>conftest.$ac_ext
44877 cat >>conftest.$ac_ext <<_ACEOF
44878 /* end confdefs.h.  */
44879
44880                                                 #include <time.h>
44881
44882 int
44883 main ()
44884 {
44885
44886                                                 int tz;
44887                                                 tz = __timezone;
44888
44889   ;
44890   return 0;
44891 }
44892 _ACEOF
44893 rm -f conftest.$ac_objext
44894 if { (ac_try="$ac_compile"
44895 case "(($ac_try" in
44896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44897   *) ac_try_echo=$ac_try;;
44898 esac
44899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44900   (eval "$ac_compile") 2>conftest.er1
44901   ac_status=$?
44902   grep -v '^ *+' conftest.er1 >conftest.err
44903   rm -f conftest.er1
44904   cat conftest.err >&5
44905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44906   (exit $ac_status); } && {
44907          test -z "$ac_cxx_werror_flag" ||
44908          test ! -s conftest.err
44909        } && test -s conftest.$ac_objext; then
44910
44911                                                 wx_cv_var_timezone=__timezone
44912
44913 else
44914   echo "$as_me: failed program was:" >&5
44915 sed 's/^/| /' conftest.$ac_ext >&5
44916
44917
44918                                                 if test "$USE_DOS" = 0 ; then
44919                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
44920 echo "$as_me: WARNING: no timezone variable" >&2;}
44921                                                 fi
44922
44923
44924 fi
44925
44926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44927
44928
44929 fi
44930
44931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44932
44933
44934 fi
44935
44936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44937                         ac_ext=c
44938 ac_cpp='$CPP $CPPFLAGS'
44939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44942
44943
44944
44945 fi
44946 { echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
44947 echo "${ECHO_T}$wx_cv_var_timezone" >&6; }
44948
44949         if test "x$wx_cv_var_timezone" != x ; then
44950         cat >>confdefs.h <<_ACEOF
44951 #define WX_TIMEZONE $wx_cv_var_timezone
44952 _ACEOF
44953
44954     fi
44955
44956
44957 for ac_func in localtime
44958 do
44959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44960 { echo "$as_me:$LINENO: checking for $ac_func" >&5
44961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
44962 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44963   echo $ECHO_N "(cached) $ECHO_C" >&6
44964 else
44965   cat >conftest.$ac_ext <<_ACEOF
44966 /* confdefs.h.  */
44967 _ACEOF
44968 cat confdefs.h >>conftest.$ac_ext
44969 cat >>conftest.$ac_ext <<_ACEOF
44970 /* end confdefs.h.  */
44971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44972    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44973 #define $ac_func innocuous_$ac_func
44974
44975 /* System header to define __stub macros and hopefully few prototypes,
44976     which can conflict with char $ac_func (); below.
44977     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44978     <limits.h> exists even on freestanding compilers.  */
44979
44980 #ifdef __STDC__
44981 # include <limits.h>
44982 #else
44983 # include <assert.h>
44984 #endif
44985
44986 #undef $ac_func
44987
44988 /* Override any GCC internal prototype to avoid an error.
44989    Use char because int might match the return type of a GCC
44990    builtin and then its argument prototype would still apply.  */
44991 #ifdef __cplusplus
44992 extern "C"
44993 #endif
44994 char $ac_func ();
44995 /* The GNU C library defines this for functions which it implements
44996     to always fail with ENOSYS.  Some functions are actually named
44997     something starting with __ and the normal name is an alias.  */
44998 #if defined __stub_$ac_func || defined __stub___$ac_func
44999 choke me
45000 #endif
45001
45002 int
45003 main ()
45004 {
45005 return $ac_func ();
45006   ;
45007   return 0;
45008 }
45009 _ACEOF
45010 rm -f conftest.$ac_objext conftest$ac_exeext
45011 if { (ac_try="$ac_link"
45012 case "(($ac_try" in
45013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45014   *) ac_try_echo=$ac_try;;
45015 esac
45016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45017   (eval "$ac_link") 2>conftest.er1
45018   ac_status=$?
45019   grep -v '^ *+' conftest.er1 >conftest.err
45020   rm -f conftest.er1
45021   cat conftest.err >&5
45022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45023   (exit $ac_status); } && {
45024          test -z "$ac_c_werror_flag" ||
45025          test ! -s conftest.err
45026        } && test -s conftest$ac_exeext &&
45027        $as_test_x conftest$ac_exeext; then
45028   eval "$as_ac_var=yes"
45029 else
45030   echo "$as_me: failed program was:" >&5
45031 sed 's/^/| /' conftest.$ac_ext >&5
45032
45033         eval "$as_ac_var=no"
45034 fi
45035
45036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45037       conftest$ac_exeext conftest.$ac_ext
45038 fi
45039 ac_res=`eval echo '${'$as_ac_var'}'`
45040                { echo "$as_me:$LINENO: result: $ac_res" >&5
45041 echo "${ECHO_T}$ac_res" >&6; }
45042 if test `eval echo '${'$as_ac_var'}'` = yes; then
45043   cat >>confdefs.h <<_ACEOF
45044 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45045 _ACEOF
45046
45047 fi
45048 done
45049
45050
45051     if test "$ac_cv_func_localtime" = "yes"; then
45052         { echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
45053 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6; }
45054 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
45055   echo $ECHO_N "(cached) $ECHO_C" >&6
45056 else
45057
45058             cat >conftest.$ac_ext <<_ACEOF
45059 /* confdefs.h.  */
45060 _ACEOF
45061 cat confdefs.h >>conftest.$ac_ext
45062 cat >>conftest.$ac_ext <<_ACEOF
45063 /* end confdefs.h.  */
45064
45065                     #include <time.h>
45066
45067 int
45068 main ()
45069 {
45070
45071                     struct tm tm;
45072                     tm.tm_gmtoff++;
45073
45074   ;
45075   return 0;
45076 }
45077 _ACEOF
45078 rm -f conftest.$ac_objext
45079 if { (ac_try="$ac_compile"
45080 case "(($ac_try" in
45081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45082   *) ac_try_echo=$ac_try;;
45083 esac
45084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45085   (eval "$ac_compile") 2>conftest.er1
45086   ac_status=$?
45087   grep -v '^ *+' conftest.er1 >conftest.err
45088   rm -f conftest.er1
45089   cat conftest.err >&5
45090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45091   (exit $ac_status); } && {
45092          test -z "$ac_c_werror_flag" ||
45093          test ! -s conftest.err
45094        } && test -s conftest.$ac_objext; then
45095
45096                     wx_cv_struct_tm_has_gmtoff=yes
45097
45098 else
45099   echo "$as_me: failed program was:" >&5
45100 sed 's/^/| /' conftest.$ac_ext >&5
45101
45102         wx_cv_struct_tm_has_gmtoff=no
45103
45104 fi
45105
45106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45107
45108 fi
45109 { echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
45110 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6; }
45111     fi
45112
45113     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
45114         cat >>confdefs.h <<\_ACEOF
45115 #define WX_GMTOFF_IN_TM 1
45116 _ACEOF
45117
45118     fi
45119
45120     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
45121 fi
45122
45123
45124 if test "$wxUSE_SOCKETS" = "yes"; then
45125     if test "$wxUSE_MGL" = 1; then
45126         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
45127 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
45128         wxUSE_SOCKETS="no"
45129     fi
45130 fi
45131
45132 if test "$wxUSE_SOCKETS" = "yes"; then
45133         if test "$TOOLKIT" != "MSW"; then
45134                 { echo "$as_me:$LINENO: checking for socket" >&5
45135 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
45136 if test "${ac_cv_func_socket+set}" = set; then
45137   echo $ECHO_N "(cached) $ECHO_C" >&6
45138 else
45139   cat >conftest.$ac_ext <<_ACEOF
45140 /* confdefs.h.  */
45141 _ACEOF
45142 cat confdefs.h >>conftest.$ac_ext
45143 cat >>conftest.$ac_ext <<_ACEOF
45144 /* end confdefs.h.  */
45145 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
45146    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45147 #define socket innocuous_socket
45148
45149 /* System header to define __stub macros and hopefully few prototypes,
45150     which can conflict with char socket (); below.
45151     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45152     <limits.h> exists even on freestanding compilers.  */
45153
45154 #ifdef __STDC__
45155 # include <limits.h>
45156 #else
45157 # include <assert.h>
45158 #endif
45159
45160 #undef socket
45161
45162 /* Override any GCC internal prototype to avoid an error.
45163    Use char because int might match the return type of a GCC
45164    builtin and then its argument prototype would still apply.  */
45165 #ifdef __cplusplus
45166 extern "C"
45167 #endif
45168 char socket ();
45169 /* The GNU C library defines this for functions which it implements
45170     to always fail with ENOSYS.  Some functions are actually named
45171     something starting with __ and the normal name is an alias.  */
45172 #if defined __stub_socket || defined __stub___socket
45173 choke me
45174 #endif
45175
45176 int
45177 main ()
45178 {
45179 return socket ();
45180   ;
45181   return 0;
45182 }
45183 _ACEOF
45184 rm -f conftest.$ac_objext conftest$ac_exeext
45185 if { (ac_try="$ac_link"
45186 case "(($ac_try" in
45187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45188   *) ac_try_echo=$ac_try;;
45189 esac
45190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45191   (eval "$ac_link") 2>conftest.er1
45192   ac_status=$?
45193   grep -v '^ *+' conftest.er1 >conftest.err
45194   rm -f conftest.er1
45195   cat conftest.err >&5
45196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45197   (exit $ac_status); } && {
45198          test -z "$ac_c_werror_flag" ||
45199          test ! -s conftest.err
45200        } && test -s conftest$ac_exeext &&
45201        $as_test_x conftest$ac_exeext; then
45202   ac_cv_func_socket=yes
45203 else
45204   echo "$as_me: failed program was:" >&5
45205 sed 's/^/| /' conftest.$ac_ext >&5
45206
45207         ac_cv_func_socket=no
45208 fi
45209
45210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45211       conftest$ac_exeext conftest.$ac_ext
45212 fi
45213 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
45214 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
45215 if test $ac_cv_func_socket = yes; then
45216   :
45217 else
45218
45219                 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
45220 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
45221 if test "${ac_cv_lib_socket_socket+set}" = set; then
45222   echo $ECHO_N "(cached) $ECHO_C" >&6
45223 else
45224   ac_check_lib_save_LIBS=$LIBS
45225 LIBS="-lsocket  $LIBS"
45226 cat >conftest.$ac_ext <<_ACEOF
45227 /* confdefs.h.  */
45228 _ACEOF
45229 cat confdefs.h >>conftest.$ac_ext
45230 cat >>conftest.$ac_ext <<_ACEOF
45231 /* end confdefs.h.  */
45232
45233 /* Override any GCC internal prototype to avoid an error.
45234    Use char because int might match the return type of a GCC
45235    builtin and then its argument prototype would still apply.  */
45236 #ifdef __cplusplus
45237 extern "C"
45238 #endif
45239 char socket ();
45240 int
45241 main ()
45242 {
45243 return socket ();
45244   ;
45245   return 0;
45246 }
45247 _ACEOF
45248 rm -f conftest.$ac_objext conftest$ac_exeext
45249 if { (ac_try="$ac_link"
45250 case "(($ac_try" in
45251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45252   *) ac_try_echo=$ac_try;;
45253 esac
45254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45255   (eval "$ac_link") 2>conftest.er1
45256   ac_status=$?
45257   grep -v '^ *+' conftest.er1 >conftest.err
45258   rm -f conftest.er1
45259   cat conftest.err >&5
45260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45261   (exit $ac_status); } && {
45262          test -z "$ac_c_werror_flag" ||
45263          test ! -s conftest.err
45264        } && test -s conftest$ac_exeext &&
45265        $as_test_x conftest$ac_exeext; then
45266   ac_cv_lib_socket_socket=yes
45267 else
45268   echo "$as_me: failed program was:" >&5
45269 sed 's/^/| /' conftest.$ac_ext >&5
45270
45271         ac_cv_lib_socket_socket=no
45272 fi
45273
45274 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45275       conftest$ac_exeext conftest.$ac_ext
45276 LIBS=$ac_check_lib_save_LIBS
45277 fi
45278 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
45279 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
45280 if test $ac_cv_lib_socket_socket = yes; then
45281   if test "$INET_LINK" != " -lsocket"; then
45282                         INET_LINK="$INET_LINK -lsocket"
45283                     fi
45284 else
45285
45286                         { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
45287 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
45288                         wxUSE_SOCKETS=no
45289
45290
45291 fi
45292
45293
45294
45295 fi
45296
45297     fi
45298 fi
45299
45300 if test "$wxUSE_SOCKETS" = "yes" ; then
45301                 if test "$TOOLKIT" != "MSW"; then
45302                                         { echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
45303 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6; }
45304 if test "${wx_cv_type_getsockname3+set}" = set; then
45305   echo $ECHO_N "(cached) $ECHO_C" >&6
45306 else
45307
45308                 ac_ext=cpp
45309 ac_cpp='$CXXCPP $CPPFLAGS'
45310 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45311 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45312 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45313
45314                 cat >conftest.$ac_ext <<_ACEOF
45315 /* confdefs.h.  */
45316 _ACEOF
45317 cat confdefs.h >>conftest.$ac_ext
45318 cat >>conftest.$ac_ext <<_ACEOF
45319 /* end confdefs.h.  */
45320
45321                         #include <sys/types.h>
45322                         #include <sys/socket.h>
45323
45324 int
45325 main ()
45326 {
45327
45328                         socklen_t len;
45329                         getsockname(0, 0, &len);
45330
45331   ;
45332   return 0;
45333 }
45334 _ACEOF
45335 rm -f conftest.$ac_objext
45336 if { (ac_try="$ac_compile"
45337 case "(($ac_try" in
45338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45339   *) ac_try_echo=$ac_try;;
45340 esac
45341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45342   (eval "$ac_compile") 2>conftest.er1
45343   ac_status=$?
45344   grep -v '^ *+' conftest.er1 >conftest.err
45345   rm -f conftest.er1
45346   cat conftest.err >&5
45347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45348   (exit $ac_status); } && {
45349          test -z "$ac_cxx_werror_flag" ||
45350          test ! -s conftest.err
45351        } && test -s conftest.$ac_objext; then
45352   wx_cv_type_getsockname3=socklen_t
45353 else
45354   echo "$as_me: failed program was:" >&5
45355 sed 's/^/| /' conftest.$ac_ext >&5
45356
45357
45358                                                                                                                                                                         CFLAGS_OLD="$CFLAGS"
45359                         if test "$GCC" = yes ; then
45360                             CFLAGS="-Werror $CFLAGS"
45361                         fi
45362
45363                         cat >conftest.$ac_ext <<_ACEOF
45364 /* confdefs.h.  */
45365 _ACEOF
45366 cat confdefs.h >>conftest.$ac_ext
45367 cat >>conftest.$ac_ext <<_ACEOF
45368 /* end confdefs.h.  */
45369
45370                                 #include <sys/types.h>
45371                                 #include <sys/socket.h>
45372
45373 int
45374 main ()
45375 {
45376
45377                                 size_t len;
45378                                 getsockname(0, 0, &len);
45379
45380   ;
45381   return 0;
45382 }
45383 _ACEOF
45384 rm -f conftest.$ac_objext
45385 if { (ac_try="$ac_compile"
45386 case "(($ac_try" in
45387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45388   *) ac_try_echo=$ac_try;;
45389 esac
45390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45391   (eval "$ac_compile") 2>conftest.er1
45392   ac_status=$?
45393   grep -v '^ *+' conftest.er1 >conftest.err
45394   rm -f conftest.er1
45395   cat conftest.err >&5
45396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45397   (exit $ac_status); } && {
45398          test -z "$ac_cxx_werror_flag" ||
45399          test ! -s conftest.err
45400        } && test -s conftest.$ac_objext; then
45401   wx_cv_type_getsockname3=size_t
45402 else
45403   echo "$as_me: failed program was:" >&5
45404 sed 's/^/| /' conftest.$ac_ext >&5
45405
45406         cat >conftest.$ac_ext <<_ACEOF
45407 /* confdefs.h.  */
45408 _ACEOF
45409 cat confdefs.h >>conftest.$ac_ext
45410 cat >>conftest.$ac_ext <<_ACEOF
45411 /* end confdefs.h.  */
45412
45413                                     #include <sys/types.h>
45414                                     #include <sys/socket.h>
45415
45416 int
45417 main ()
45418 {
45419
45420                                     int len;
45421                                     getsockname(0, 0, &len);
45422
45423   ;
45424   return 0;
45425 }
45426 _ACEOF
45427 rm -f conftest.$ac_objext
45428 if { (ac_try="$ac_compile"
45429 case "(($ac_try" in
45430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45431   *) ac_try_echo=$ac_try;;
45432 esac
45433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45434   (eval "$ac_compile") 2>conftest.er1
45435   ac_status=$?
45436   grep -v '^ *+' conftest.er1 >conftest.err
45437   rm -f conftest.er1
45438   cat conftest.err >&5
45439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45440   (exit $ac_status); } && {
45441          test -z "$ac_cxx_werror_flag" ||
45442          test ! -s conftest.err
45443        } && test -s conftest.$ac_objext; then
45444   wx_cv_type_getsockname3=int
45445 else
45446   echo "$as_me: failed program was:" >&5
45447 sed 's/^/| /' conftest.$ac_ext >&5
45448
45449         wx_cv_type_getsockname3=unknown
45450
45451 fi
45452
45453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45454
45455 fi
45456
45457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45458
45459                         CFLAGS="$CFLAGS_OLD"
45460
45461
45462 fi
45463
45464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45465                 ac_ext=c
45466 ac_cpp='$CPP $CPPFLAGS'
45467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45470
45471
45472 fi
45473 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
45474 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6; }
45475
45476         if test "$wx_cv_type_getsockname3" = "unknown"; then
45477             wxUSE_SOCKETS=no
45478             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
45479 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
45480         else
45481             cat >>confdefs.h <<_ACEOF
45482 #define WX_SOCKLEN_T $wx_cv_type_getsockname3
45483 _ACEOF
45484
45485         fi
45486                 { echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
45487 echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6; }
45488 if test "${wx_cv_type_getsockopt5+set}" = set; then
45489   echo $ECHO_N "(cached) $ECHO_C" >&6
45490 else
45491
45492                                                                                                 ac_ext=cpp
45493 ac_cpp='$CXXCPP $CPPFLAGS'
45494 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45495 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45496 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45497
45498                 cat >conftest.$ac_ext <<_ACEOF
45499 /* confdefs.h.  */
45500 _ACEOF
45501 cat confdefs.h >>conftest.$ac_ext
45502 cat >>conftest.$ac_ext <<_ACEOF
45503 /* end confdefs.h.  */
45504
45505                         #include <sys/types.h>
45506                         #include <sys/socket.h>
45507
45508 int
45509 main ()
45510 {
45511
45512                         socklen_t len;
45513                         getsockopt(0, 0, 0, 0, &len);
45514
45515   ;
45516   return 0;
45517 }
45518 _ACEOF
45519 rm -f conftest.$ac_objext
45520 if { (ac_try="$ac_compile"
45521 case "(($ac_try" in
45522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45523   *) ac_try_echo=$ac_try;;
45524 esac
45525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45526   (eval "$ac_compile") 2>conftest.er1
45527   ac_status=$?
45528   grep -v '^ *+' conftest.er1 >conftest.err
45529   rm -f conftest.er1
45530   cat conftest.err >&5
45531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45532   (exit $ac_status); } && {
45533          test -z "$ac_cxx_werror_flag" ||
45534          test ! -s conftest.err
45535        } && test -s conftest.$ac_objext; then
45536   wx_cv_type_getsockopt5=socklen_t
45537 else
45538   echo "$as_me: failed program was:" >&5
45539 sed 's/^/| /' conftest.$ac_ext >&5
45540
45541
45542                         cat >conftest.$ac_ext <<_ACEOF
45543 /* confdefs.h.  */
45544 _ACEOF
45545 cat confdefs.h >>conftest.$ac_ext
45546 cat >>conftest.$ac_ext <<_ACEOF
45547 /* end confdefs.h.  */
45548
45549                                 #include <sys/types.h>
45550                                 #include <sys/socket.h>
45551
45552 int
45553 main ()
45554 {
45555
45556                                 size_t len;
45557                                 getsockopt(0, 0, 0, 0, &len);
45558
45559   ;
45560   return 0;
45561 }
45562 _ACEOF
45563 rm -f conftest.$ac_objext
45564 if { (ac_try="$ac_compile"
45565 case "(($ac_try" in
45566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45567   *) ac_try_echo=$ac_try;;
45568 esac
45569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45570   (eval "$ac_compile") 2>conftest.er1
45571   ac_status=$?
45572   grep -v '^ *+' conftest.er1 >conftest.err
45573   rm -f conftest.er1
45574   cat conftest.err >&5
45575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45576   (exit $ac_status); } && {
45577          test -z "$ac_cxx_werror_flag" ||
45578          test ! -s conftest.err
45579        } && test -s conftest.$ac_objext; then
45580   wx_cv_type_getsockopt5=size_t
45581 else
45582   echo "$as_me: failed program was:" >&5
45583 sed 's/^/| /' conftest.$ac_ext >&5
45584
45585         cat >conftest.$ac_ext <<_ACEOF
45586 /* confdefs.h.  */
45587 _ACEOF
45588 cat confdefs.h >>conftest.$ac_ext
45589 cat >>conftest.$ac_ext <<_ACEOF
45590 /* end confdefs.h.  */
45591
45592                                     #include <sys/types.h>
45593                                     #include <sys/socket.h>
45594
45595 int
45596 main ()
45597 {
45598
45599                                     int len;
45600                                     getsockopt(0, 0, 0, 0, &len);
45601
45602   ;
45603   return 0;
45604 }
45605 _ACEOF
45606 rm -f conftest.$ac_objext
45607 if { (ac_try="$ac_compile"
45608 case "(($ac_try" in
45609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45610   *) ac_try_echo=$ac_try;;
45611 esac
45612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45613   (eval "$ac_compile") 2>conftest.er1
45614   ac_status=$?
45615   grep -v '^ *+' conftest.er1 >conftest.err
45616   rm -f conftest.er1
45617   cat conftest.err >&5
45618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45619   (exit $ac_status); } && {
45620          test -z "$ac_cxx_werror_flag" ||
45621          test ! -s conftest.err
45622        } && test -s conftest.$ac_objext; then
45623   wx_cv_type_getsockopt5=int
45624 else
45625   echo "$as_me: failed program was:" >&5
45626 sed 's/^/| /' conftest.$ac_ext >&5
45627
45628         wx_cv_type_getsockopt5=unknown
45629
45630 fi
45631
45632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45633
45634 fi
45635
45636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45637
45638
45639 fi
45640
45641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45642                 ac_ext=c
45643 ac_cpp='$CPP $CPPFLAGS'
45644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45647
45648
45649 fi
45650 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
45651 echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6; }
45652
45653         if test "$wx_cv_type_getsockopt5" = "unknown"; then
45654             wxUSE_SOCKETS=no
45655             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
45656 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
45657         else
45658             cat >>confdefs.h <<_ACEOF
45659 #define SOCKOPTLEN_T $wx_cv_type_getsockopt5
45660 _ACEOF
45661
45662         fi
45663     fi
45664 fi
45665
45666 if test "$wxUSE_SOCKETS" = "yes" ; then
45667     if test "$wxUSE_IPV6" = "yes"; then
45668         { echo "$as_me:$LINENO: checking whether we have sockaddr_in6" >&5
45669 echo $ECHO_N "checking whether we have sockaddr_in6... $ECHO_C" >&6; }
45670 if test "${wx_cv_type_sockaddr_in6+set}" = set; then
45671   echo $ECHO_N "(cached) $ECHO_C" >&6
45672 else
45673
45674                 cat >conftest.$ac_ext <<_ACEOF
45675 /* confdefs.h.  */
45676 _ACEOF
45677 cat confdefs.h >>conftest.$ac_ext
45678 cat >>conftest.$ac_ext <<_ACEOF
45679 /* end confdefs.h.  */
45680
45681                         #include <sys/types.h>
45682                         #include <sys/socket.h>
45683                         #include <netinet/in.h>
45684
45685 int
45686 main ()
45687 {
45688
45689                         struct sockaddr_in6 sa6;
45690
45691   ;
45692   return 0;
45693 }
45694 _ACEOF
45695 rm -f conftest.$ac_objext
45696 if { (ac_try="$ac_compile"
45697 case "(($ac_try" in
45698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45699   *) ac_try_echo=$ac_try;;
45700 esac
45701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45702   (eval "$ac_compile") 2>conftest.er1
45703   ac_status=$?
45704   grep -v '^ *+' conftest.er1 >conftest.err
45705   rm -f conftest.er1
45706   cat conftest.err >&5
45707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45708   (exit $ac_status); } && {
45709          test -z "$ac_c_werror_flag" ||
45710          test ! -s conftest.err
45711        } && test -s conftest.$ac_objext; then
45712   wx_cv_type_sockaddr_in6=yes
45713 else
45714   echo "$as_me: failed program was:" >&5
45715 sed 's/^/| /' conftest.$ac_ext >&5
45716
45717         wx_cv_type_sockaddr_in6=no
45718
45719 fi
45720
45721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45722
45723
45724 fi
45725 { echo "$as_me:$LINENO: result: $wx_cv_type_sockaddr_in6" >&5
45726 echo "${ECHO_T}$wx_cv_type_sockaddr_in6" >&6; }
45727
45728         if test "$wx_cv_type_sockaddr_in6"="yes"; then
45729             cat >>confdefs.h <<\_ACEOF
45730 #define wxUSE_IPV6 1
45731 _ACEOF
45732
45733         else
45734             { echo "$as_me:$LINENO: WARNING: IPv6 support not available... disabled" >&5
45735 echo "$as_me: WARNING: IPv6 support not available... disabled" >&2;}
45736         fi
45737     fi
45738
45739     cat >>confdefs.h <<\_ACEOF
45740 #define wxUSE_SOCKETS 1
45741 _ACEOF
45742
45743     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
45744 fi
45745
45746 if test "$wxUSE_PROTOCOL" = "yes"; then
45747     if test "$wxUSE_SOCKETS" != "yes"; then
45748         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
45749 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
45750         wxUSE_PROTOCOL=no
45751     fi
45752 fi
45753
45754 if test "$wxUSE_PROTOCOL" = "yes"; then
45755     cat >>confdefs.h <<\_ACEOF
45756 #define wxUSE_PROTOCOL 1
45757 _ACEOF
45758
45759
45760     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
45761         cat >>confdefs.h <<\_ACEOF
45762 #define wxUSE_PROTOCOL_HTTP 1
45763 _ACEOF
45764
45765     fi
45766     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
45767         cat >>confdefs.h <<\_ACEOF
45768 #define wxUSE_PROTOCOL_FTP 1
45769 _ACEOF
45770
45771     fi
45772     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
45773         cat >>confdefs.h <<\_ACEOF
45774 #define wxUSE_PROTOCOL_FILE 1
45775 _ACEOF
45776
45777     fi
45778 else
45779     if test "$wxUSE_FS_INET" = "yes"; then
45780         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
45781 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
45782         wxUSE_FS_INET="no"
45783     fi
45784 fi
45785
45786 if test "$wxUSE_URL" = "yes"; then
45787     if test "$wxUSE_PROTOCOL" != "yes"; then
45788         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
45789 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
45790         wxUSE_URL=no
45791     fi
45792     if test "$wxUSE_URL" = "yes"; then
45793         cat >>confdefs.h <<\_ACEOF
45794 #define wxUSE_URL 1
45795 _ACEOF
45796
45797     fi
45798 fi
45799
45800 if test "$wxUSE_VARIANT" = "yes"; then
45801     cat >>confdefs.h <<\_ACEOF
45802 #define wxUSE_VARIANT 1
45803 _ACEOF
45804
45805 fi
45806
45807 if test "$wxUSE_FS_INET" = "yes"; then
45808   cat >>confdefs.h <<\_ACEOF
45809 #define wxUSE_FS_INET 1
45810 _ACEOF
45811
45812 fi
45813
45814
45815 if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
45816     wxUSE_JOYSTICK=no
45817
45818         if test "$TOOLKIT" = "MSW"; then
45819         wxUSE_JOYSTICK=yes
45820
45821         elif test "$TOOLKIT" = "OSX" -o "$TOOLKIT" = "COCOA"; then
45822         if test "$USE_DARWIN" = 1; then
45823                         { echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
45824 echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6; }
45825             ac_ext=cpp
45826 ac_cpp='$CXXCPP $CPPFLAGS'
45827 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45828 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45829 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45830
45831             cat >conftest.$ac_ext <<_ACEOF
45832 /* confdefs.h.  */
45833 _ACEOF
45834 cat confdefs.h >>conftest.$ac_ext
45835 cat >>conftest.$ac_ext <<_ACEOF
45836 /* end confdefs.h.  */
45837  #include <IOKit/hid/IOHIDLib.h>
45838 int
45839 main ()
45840 {
45841  IOHIDQueueInterface *qi = NULL;
45842                               IOHIDCallbackFunction cb = NULL;
45843                               qi->setEventCallout(NULL, cb, NULL, NULL);
45844   ;
45845   return 0;
45846 }
45847 _ACEOF
45848 rm -f conftest.$ac_objext
45849 if { (ac_try="$ac_compile"
45850 case "(($ac_try" in
45851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45852   *) ac_try_echo=$ac_try;;
45853 esac
45854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45855   (eval "$ac_compile") 2>conftest.er1
45856   ac_status=$?
45857   grep -v '^ *+' conftest.er1 >conftest.err
45858   rm -f conftest.er1
45859   cat conftest.err >&5
45860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45861   (exit $ac_status); } && {
45862          test -z "$ac_cxx_werror_flag" ||
45863          test ! -s conftest.err
45864        } && test -s conftest.$ac_objext; then
45865    wxUSE_JOYSTICK=yes
45866
45867 else
45868   echo "$as_me: failed program was:" >&5
45869 sed 's/^/| /' conftest.$ac_ext >&5
45870
45871
45872 fi
45873
45874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45875             ac_ext=c
45876 ac_cpp='$CPP $CPPFLAGS'
45877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45880
45881             { echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
45882 echo "${ECHO_T}$wxUSE_JOYSTICK" >&6; }
45883         fi
45884
45885         else
45886                 if test "$wxUSE_MGL" != 1; then
45887
45888 for ac_header in linux/joystick.h
45889 do
45890 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45891 { echo "$as_me:$LINENO: checking for $ac_header" >&5
45892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
45893 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45894   echo $ECHO_N "(cached) $ECHO_C" >&6
45895 else
45896   cat >conftest.$ac_ext <<_ACEOF
45897 /* confdefs.h.  */
45898 _ACEOF
45899 cat confdefs.h >>conftest.$ac_ext
45900 cat >>conftest.$ac_ext <<_ACEOF
45901 /* end confdefs.h.  */
45902 $ac_includes_default
45903
45904 #include <$ac_header>
45905 _ACEOF
45906 rm -f conftest.$ac_objext
45907 if { (ac_try="$ac_compile"
45908 case "(($ac_try" in
45909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45910   *) ac_try_echo=$ac_try;;
45911 esac
45912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45913   (eval "$ac_compile") 2>conftest.er1
45914   ac_status=$?
45915   grep -v '^ *+' conftest.er1 >conftest.err
45916   rm -f conftest.er1
45917   cat conftest.err >&5
45918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45919   (exit $ac_status); } && {
45920          test -z "$ac_c_werror_flag" ||
45921          test ! -s conftest.err
45922        } && test -s conftest.$ac_objext; then
45923   eval "$as_ac_Header=yes"
45924 else
45925   echo "$as_me: failed program was:" >&5
45926 sed 's/^/| /' conftest.$ac_ext >&5
45927
45928         eval "$as_ac_Header=no"
45929 fi
45930
45931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45932 fi
45933 ac_res=`eval echo '${'$as_ac_Header'}'`
45934                { echo "$as_me:$LINENO: result: $ac_res" >&5
45935 echo "${ECHO_T}$ac_res" >&6; }
45936 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45937   cat >>confdefs.h <<_ACEOF
45938 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45939 _ACEOF
45940  wxUSE_JOYSTICK=yes
45941 fi
45942
45943 done
45944
45945         fi
45946     fi
45947
45948     if test "$wxUSE_JOYSTICK" = "yes"; then
45949         cat >>confdefs.h <<\_ACEOF
45950 #define wxUSE_JOYSTICK 1
45951 _ACEOF
45952
45953         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
45954     else
45955         { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
45956 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
45957     fi
45958 fi
45959
45960
45961
45962 if test "$wxUSE_FONTENUM" = "yes" ; then
45963   cat >>confdefs.h <<\_ACEOF
45964 #define wxUSE_FONTENUM 1
45965 _ACEOF
45966
45967 fi
45968
45969 if test "$wxUSE_FONTMAP" = "yes" ; then
45970   cat >>confdefs.h <<\_ACEOF
45971 #define wxUSE_FONTMAP 1
45972 _ACEOF
45973
45974 fi
45975
45976 if test "$wxUSE_UNICODE" = "yes" ; then
45977   cat >>confdefs.h <<\_ACEOF
45978 #define wxUSE_UNICODE 1
45979 _ACEOF
45980
45981
45982   if test "$USE_WIN32" != 1; then
45983       wxUSE_UNICODE_MSLU=no
45984   fi
45985
45986   if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
45987         { echo "$as_me:$LINENO: checking for main in -lunicows" >&5
45988 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6; }
45989 if test "${ac_cv_lib_unicows_main+set}" = set; then
45990   echo $ECHO_N "(cached) $ECHO_C" >&6
45991 else
45992   ac_check_lib_save_LIBS=$LIBS
45993 LIBS="-lunicows  $LIBS"
45994 cat >conftest.$ac_ext <<_ACEOF
45995 /* confdefs.h.  */
45996 _ACEOF
45997 cat confdefs.h >>conftest.$ac_ext
45998 cat >>conftest.$ac_ext <<_ACEOF
45999 /* end confdefs.h.  */
46000
46001
46002 int
46003 main ()
46004 {
46005 return main ();
46006   ;
46007   return 0;
46008 }
46009 _ACEOF
46010 rm -f conftest.$ac_objext conftest$ac_exeext
46011 if { (ac_try="$ac_link"
46012 case "(($ac_try" in
46013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46014   *) ac_try_echo=$ac_try;;
46015 esac
46016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46017   (eval "$ac_link") 2>conftest.er1
46018   ac_status=$?
46019   grep -v '^ *+' conftest.er1 >conftest.err
46020   rm -f conftest.er1
46021   cat conftest.err >&5
46022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46023   (exit $ac_status); } && {
46024          test -z "$ac_c_werror_flag" ||
46025          test ! -s conftest.err
46026        } && test -s conftest$ac_exeext &&
46027        $as_test_x conftest$ac_exeext; then
46028   ac_cv_lib_unicows_main=yes
46029 else
46030   echo "$as_me: failed program was:" >&5
46031 sed 's/^/| /' conftest.$ac_ext >&5
46032
46033         ac_cv_lib_unicows_main=no
46034 fi
46035
46036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46037       conftest$ac_exeext conftest.$ac_ext
46038 LIBS=$ac_check_lib_save_LIBS
46039 fi
46040 { echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
46041 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6; }
46042 if test $ac_cv_lib_unicows_main = yes; then
46043
46044                 cat >>confdefs.h <<\_ACEOF
46045 #define wxUSE_UNICODE_MSLU 1
46046 _ACEOF
46047
46048
46049 else
46050
46051                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
46052                              Applications will only run on Windows NT/2000/XP!" >&5
46053 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
46054                              Applications will only run on Windows NT/2000/XP!" >&2;}
46055                 wxUSE_UNICODE_MSLU=no
46056
46057 fi
46058
46059     fi
46060 fi
46061
46062 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "yes"; then
46063     cat >>confdefs.h <<\_ACEOF
46064 #define wxUSE_UNICODE_UTF8 1
46065 _ACEOF
46066
46067
46068     if test "$wxUSE_UNICODE_UTF8_LOCALE" = "yes"; then
46069         cat >>confdefs.h <<\_ACEOF
46070 #define wxUSE_UTF8_LOCALE_ONLY 1
46071 _ACEOF
46072
46073     fi
46074 fi
46075
46076
46077 if test "$wxUSE_CONSTRAINTS" = "yes"; then
46078     cat >>confdefs.h <<\_ACEOF
46079 #define wxUSE_CONSTRAINTS 1
46080 _ACEOF
46081
46082     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
46083 fi
46084
46085 if test "$wxUSE_MDI" = "yes"; then
46086     cat >>confdefs.h <<\_ACEOF
46087 #define wxUSE_MDI 1
46088 _ACEOF
46089
46090
46091     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
46092         cat >>confdefs.h <<\_ACEOF
46093 #define wxUSE_MDI_ARCHITECTURE 1
46094 _ACEOF
46095
46096         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
46097     fi
46098 fi
46099
46100 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
46101     cat >>confdefs.h <<\_ACEOF
46102 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
46103 _ACEOF
46104
46105     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
46106 fi
46107
46108 if test "$wxUSE_HELP" = "yes"; then
46109     cat >>confdefs.h <<\_ACEOF
46110 #define wxUSE_HELP 1
46111 _ACEOF
46112
46113     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
46114
46115     if test "$wxUSE_MSW" = 1; then
46116       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
46117         cat >>confdefs.h <<\_ACEOF
46118 #define wxUSE_MS_HTML_HELP 1
46119 _ACEOF
46120
46121       fi
46122     fi
46123
46124     if test "$wxUSE_WXHTML_HELP" = "yes"; then
46125       if test "$wxUSE_HTML" = "yes"; then
46126         cat >>confdefs.h <<\_ACEOF
46127 #define wxUSE_WXHTML_HELP 1
46128 _ACEOF
46129
46130       else
46131         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
46132 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
46133         wxUSE_WXHTML_HELP=no
46134       fi
46135     fi
46136 fi
46137
46138 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
46139     cat >>confdefs.h <<\_ACEOF
46140 #define wxUSE_PRINTING_ARCHITECTURE 1
46141 _ACEOF
46142
46143     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
46144 fi
46145
46146 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
46147   cat >>confdefs.h <<\_ACEOF
46148 #define wxUSE_POSTSCRIPT 1
46149 _ACEOF
46150
46151 fi
46152
46153 cat >>confdefs.h <<\_ACEOF
46154 #define wxUSE_AFM_FOR_POSTSCRIPT 1
46155 _ACEOF
46156
46157
46158 if test "$wxUSE_SVG" = "yes"; then
46159     cat >>confdefs.h <<\_ACEOF
46160 #define wxUSE_SVG 1
46161 _ACEOF
46162
46163 fi
46164
46165
46166 if test "$wxUSE_METAFILE" = "yes"; then
46167     if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
46168         { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
46169 echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
46170         wxUSE_METAFILE=no
46171     fi
46172 fi
46173
46174
46175 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
46176                           -o "$wxUSE_CLIPBOARD"     = "yes" \
46177                           -o "$wxUSE_OLE"     = "yes" \
46178                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
46179     { echo "$as_me:$LINENO: checking for ole2.h" >&5
46180 echo $ECHO_N "checking for ole2.h... $ECHO_C" >&6; }
46181 if test "${ac_cv_header_ole2_h+set}" = set; then
46182   echo $ECHO_N "(cached) $ECHO_C" >&6
46183 else
46184   cat >conftest.$ac_ext <<_ACEOF
46185 /* confdefs.h.  */
46186 _ACEOF
46187 cat confdefs.h >>conftest.$ac_ext
46188 cat >>conftest.$ac_ext <<_ACEOF
46189 /* end confdefs.h.  */
46190
46191
46192 #include <ole2.h>
46193 _ACEOF
46194 rm -f conftest.$ac_objext
46195 if { (ac_try="$ac_compile"
46196 case "(($ac_try" in
46197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46198   *) ac_try_echo=$ac_try;;
46199 esac
46200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46201   (eval "$ac_compile") 2>conftest.er1
46202   ac_status=$?
46203   grep -v '^ *+' conftest.er1 >conftest.err
46204   rm -f conftest.er1
46205   cat conftest.err >&5
46206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46207   (exit $ac_status); } && {
46208          test -z "$ac_c_werror_flag" ||
46209          test ! -s conftest.err
46210        } && test -s conftest.$ac_objext; then
46211   ac_cv_header_ole2_h=yes
46212 else
46213   echo "$as_me: failed program was:" >&5
46214 sed 's/^/| /' conftest.$ac_ext >&5
46215
46216         ac_cv_header_ole2_h=no
46217 fi
46218
46219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46220 fi
46221 { echo "$as_me:$LINENO: result: $ac_cv_header_ole2_h" >&5
46222 echo "${ECHO_T}$ac_cv_header_ole2_h" >&6; }
46223
46224
46225
46226     if test "$ac_cv_header_ole2_h" = "yes" ; then
46227         if test "$GCC" = yes ; then
46228             { echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
46229 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6; }
46230             cat >conftest.$ac_ext <<_ACEOF
46231 /* confdefs.h.  */
46232 _ACEOF
46233 cat confdefs.h >>conftest.$ac_ext
46234 cat >>conftest.$ac_ext <<_ACEOF
46235 /* end confdefs.h.  */
46236 #include <windows.h>
46237                             #include <ole2.h>
46238 int
46239 main ()
46240 {
46241
46242   ;
46243   return 0;
46244 }
46245 _ACEOF
46246 rm -f conftest.$ac_objext
46247 if { (ac_try="$ac_compile"
46248 case "(($ac_try" in
46249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46250   *) ac_try_echo=$ac_try;;
46251 esac
46252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46253   (eval "$ac_compile") 2>conftest.er1
46254   ac_status=$?
46255   grep -v '^ *+' conftest.er1 >conftest.err
46256   rm -f conftest.er1
46257   cat conftest.err >&5
46258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46259   (exit $ac_status); } && {
46260          test -z "$ac_c_werror_flag" ||
46261          test ! -s conftest.err
46262        } && test -s conftest.$ac_objext; then
46263   { echo "$as_me:$LINENO: result: no" >&5
46264 echo "${ECHO_T}no" >&6; }
46265 else
46266   echo "$as_me: failed program was:" >&5
46267 sed 's/^/| /' conftest.$ac_ext >&5
46268
46269         { echo "$as_me:$LINENO: result: yes" >&5
46270 echo "${ECHO_T}yes" >&6; }
46271                             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
46272 fi
46273
46274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46275             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
46276             if test "$wxUSE_OLE" = "yes" ; then
46277                 cat >>confdefs.h <<\_ACEOF
46278 #define wxUSE_OLE 1
46279 _ACEOF
46280
46281                 cat >>confdefs.h <<\_ACEOF
46282 #define wxUSE_OLE_AUTOMATION 1
46283 _ACEOF
46284
46285                 cat >>confdefs.h <<\_ACEOF
46286 #define wxUSE_ACTIVEX 1
46287 _ACEOF
46288
46289                 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
46290             fi
46291         fi
46292
46293                 if test "$wxUSE_DATAOBJ" = "yes" ; then
46294             cat >>confdefs.h <<\_ACEOF
46295 #define wxUSE_DATAOBJ 1
46296 _ACEOF
46297
46298         fi
46299     else
46300         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
46301 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
46302
46303         wxUSE_CLIPBOARD=no
46304         wxUSE_DRAG_AND_DROP=no
46305         wxUSE_DATAOBJ=no
46306         wxUSE_OLE=no
46307     fi
46308
46309     if test "$wxUSE_METAFILE" = "yes"; then
46310         cat >>confdefs.h <<\_ACEOF
46311 #define wxUSE_METAFILE 1
46312 _ACEOF
46313
46314
46315                 cat >>confdefs.h <<\_ACEOF
46316 #define wxUSE_ENH_METAFILE 1
46317 _ACEOF
46318
46319     fi
46320 fi
46321
46322 if test "$wxUSE_IPC" = "yes"; then
46323     if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
46324         { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
46325 echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
46326         wxUSE_IPC=no
46327     fi
46328
46329     if test "$wxUSE_IPC" = "yes"; then
46330         cat >>confdefs.h <<\_ACEOF
46331 #define wxUSE_IPC 1
46332 _ACEOF
46333
46334         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
46335     fi
46336 fi
46337
46338 if test "$wxUSE_DATAOBJ" = "yes"; then
46339     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
46340         { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&5
46341 echo "$as_me: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&2;}
46342         wxUSE_DATAOBJ=no
46343     else
46344         cat >>confdefs.h <<\_ACEOF
46345 #define wxUSE_DATAOBJ 1
46346 _ACEOF
46347
46348     fi
46349 else
46350     { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
46351 echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
46352     wxUSE_CLIPBOARD=no
46353     wxUSE_DRAG_AND_DROP=no
46354 fi
46355
46356 if test "$wxUSE_CLIPBOARD" = "yes"; then
46357     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
46358         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&5
46359 echo "$as_me: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&2;}
46360         wxUSE_CLIPBOARD=no
46361     fi
46362
46363     if test "$wxUSE_CLIPBOARD" = "yes"; then
46364         cat >>confdefs.h <<\_ACEOF
46365 #define wxUSE_CLIPBOARD 1
46366 _ACEOF
46367
46368     fi
46369 fi
46370
46371 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
46372     if test "$wxUSE_GTK" = 1; then
46373         if test "$WXGTK12" != 1; then
46374             { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
46375 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
46376             wxUSE_DRAG_AND_DROP=no
46377         fi
46378     fi
46379
46380     if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_MGL" = 1 -o \
46381             "$wxUSE_DFB" = 1; then
46382         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&5
46383 echo "$as_me: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&2;}
46384         wxUSE_DRAG_AND_DROP=no
46385     fi
46386
46387     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
46388         cat >>confdefs.h <<\_ACEOF
46389 #define wxUSE_DRAG_AND_DROP 1
46390 _ACEOF
46391
46392     fi
46393
46394 fi
46395
46396 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
46397     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
46398 fi
46399
46400 if test "$wxUSE_CLIPBOARD" = "yes"; then
46401     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS clipboard"
46402 fi
46403
46404 if test "$wxUSE_SPLINES" = "yes" ; then
46405   cat >>confdefs.h <<\_ACEOF
46406 #define wxUSE_SPLINES 1
46407 _ACEOF
46408
46409 fi
46410
46411 if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
46412   cat >>confdefs.h <<\_ACEOF
46413 #define wxUSE_MOUSEWHEEL 1
46414 _ACEOF
46415
46416 fi
46417
46418 if test "$wxUSE_UIACTIONSIMULATOR" = "yes" ; then
46419     cat >>confdefs.h <<\_ACEOF
46420 #define wxUSE_UIACTIONSIMULATOR 1
46421 _ACEOF
46422
46423     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS uiaction"
46424 fi
46425
46426
46427 USES_CONTROLS=0
46428 if test "$wxUSE_CONTROLS" = "yes"; then
46429   USES_CONTROLS=1
46430 fi
46431
46432 if test "$wxUSE_ACCEL" = "yes"; then
46433   cat >>confdefs.h <<\_ACEOF
46434 #define wxUSE_ACCEL 1
46435 _ACEOF
46436
46437   USES_CONTROLS=1
46438 fi
46439
46440 if test "$wxUSE_ANIMATIONCTRL" = "yes"; then
46441   cat >>confdefs.h <<\_ACEOF
46442 #define wxUSE_ANIMATIONCTRL 1
46443 _ACEOF
46444
46445   USES_CONTROLS=1
46446   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate"
46447 fi
46448
46449 if test "$wxUSE_BUTTON" = "yes"; then
46450   cat >>confdefs.h <<\_ACEOF
46451 #define wxUSE_BUTTON 1
46452 _ACEOF
46453
46454   USES_CONTROLS=1
46455 fi
46456
46457 if test "$wxUSE_BMPBUTTON" = "yes"; then
46458   cat >>confdefs.h <<\_ACEOF
46459 #define wxUSE_BMPBUTTON 1
46460 _ACEOF
46461
46462   USES_CONTROLS=1
46463 fi
46464
46465 if test "$wxUSE_CALCTRL" = "yes"; then
46466   cat >>confdefs.h <<\_ACEOF
46467 #define wxUSE_CALENDARCTRL 1
46468 _ACEOF
46469
46470   USES_CONTROLS=1
46471   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
46472 fi
46473
46474 if test "$wxUSE_CARET" = "yes"; then
46475   cat >>confdefs.h <<\_ACEOF
46476 #define wxUSE_CARET 1
46477 _ACEOF
46478
46479   USES_CONTROLS=1
46480   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
46481 fi
46482
46483 if test "$wxUSE_COLLPANE" = "yes"; then
46484     cat >>confdefs.h <<\_ACEOF
46485 #define wxUSE_COLLPANE 1
46486 _ACEOF
46487
46488     USES_CONTROLS=1
46489     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS collpane"
46490 fi
46491
46492 if test "$wxUSE_COMBOBOX" = "yes"; then
46493   cat >>confdefs.h <<\_ACEOF
46494 #define wxUSE_COMBOBOX 1
46495 _ACEOF
46496
46497   USES_CONTROLS=1
46498 fi
46499
46500 if test "$wxUSE_COMBOCTRL" = "yes"; then
46501   cat >>confdefs.h <<\_ACEOF
46502 #define wxUSE_COMBOCTRL 1
46503 _ACEOF
46504
46505   USES_CONTROLS=1
46506 fi
46507
46508 if test "$wxUSE_CHOICE" = "yes"; then
46509   cat >>confdefs.h <<\_ACEOF
46510 #define wxUSE_CHOICE 1
46511 _ACEOF
46512
46513   USES_CONTROLS=1
46514 fi
46515
46516 if test "$wxUSE_CHOICEBOOK" = "yes"; then
46517     cat >>confdefs.h <<\_ACEOF
46518 #define wxUSE_CHOICEBOOK 1
46519 _ACEOF
46520
46521     USES_CONTROLS=1
46522 fi
46523
46524 if test "$wxUSE_CHECKBOX" = "yes"; then
46525   cat >>confdefs.h <<\_ACEOF
46526 #define wxUSE_CHECKBOX 1
46527 _ACEOF
46528
46529   USES_CONTROLS=1
46530 fi
46531
46532 if test "$wxUSE_CHECKLST" = "yes"; then
46533   cat >>confdefs.h <<\_ACEOF
46534 #define wxUSE_CHECKLISTBOX 1
46535 _ACEOF
46536
46537   USES_CONTROLS=1
46538 fi
46539
46540 if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
46541   cat >>confdefs.h <<\_ACEOF
46542 #define wxUSE_COLOURPICKERCTRL 1
46543 _ACEOF
46544
46545   USES_CONTROLS=1
46546 fi
46547
46548 if test "$wxUSE_DATEPICKCTRL" = "yes"; then
46549   cat >>confdefs.h <<\_ACEOF
46550 #define wxUSE_DATEPICKCTRL 1
46551 _ACEOF
46552
46553   USES_CONTROLS=1
46554 fi
46555
46556 if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
46557   cat >>confdefs.h <<\_ACEOF
46558 #define wxUSE_DIRPICKERCTRL 1
46559 _ACEOF
46560
46561   USES_CONTROLS=1
46562 fi
46563
46564 if test "$wxUSE_FILECTRL" = "yes"; then
46565   cat >>confdefs.h <<\_ACEOF
46566 #define wxUSE_FILECTRL 1
46567 _ACEOF
46568
46569   USES_CONTROLS=1
46570 fi
46571
46572 if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
46573   cat >>confdefs.h <<\_ACEOF
46574 #define wxUSE_FILEPICKERCTRL 1
46575 _ACEOF
46576
46577   USES_CONTROLS=1
46578 fi
46579
46580 if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
46581   cat >>confdefs.h <<\_ACEOF
46582 #define wxUSE_FONTPICKERCTRL 1
46583 _ACEOF
46584
46585   USES_CONTROLS=1
46586 fi
46587
46588 if test "$wxUSE_DISPLAY" = "yes"; then
46589     if test "$wxUSE_DFB" = 1 -o "$wxUSE_MGL" = 1; then
46590         { echo "$as_me:$LINENO: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&5
46591 echo "$as_me: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&2;}
46592         wxUSE_DISPLAY=no
46593     else
46594         cat >>confdefs.h <<\_ACEOF
46595 #define wxUSE_DISPLAY 1
46596 _ACEOF
46597
46598         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
46599     fi
46600 fi
46601
46602 if test "$wxUSE_DETECT_SM" = "yes"; then
46603     cat >>confdefs.h <<\_ACEOF
46604 #define wxUSE_DETECT_SM 1
46605 _ACEOF
46606
46607 fi
46608
46609 if test "$wxUSE_GAUGE" = "yes"; then
46610   cat >>confdefs.h <<\_ACEOF
46611 #define wxUSE_GAUGE 1
46612 _ACEOF
46613
46614   USES_CONTROLS=1
46615 fi
46616
46617 if test "$wxUSE_GRID" = "yes"; then
46618   cat >>confdefs.h <<\_ACEOF
46619 #define wxUSE_GRID 1
46620 _ACEOF
46621
46622   USES_CONTROLS=1
46623   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
46624 fi
46625
46626 if test "$wxUSE_HEADERCTRL" = "yes"; then
46627   cat >>confdefs.h <<\_ACEOF
46628 #define wxUSE_HEADERCTRL 1
46629 _ACEOF
46630
46631   USES_CONTROLS=1
46632 fi
46633
46634 if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
46635   cat >>confdefs.h <<\_ACEOF
46636 #define wxUSE_HYPERLINKCTRL 1
46637 _ACEOF
46638
46639   USES_CONTROLS=1
46640 fi
46641
46642 if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
46643   cat >>confdefs.h <<\_ACEOF
46644 #define wxUSE_BITMAPCOMBOBOX 1
46645 _ACEOF
46646
46647   USES_CONTROLS=1
46648 fi
46649
46650 if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
46651   cat >>confdefs.h <<\_ACEOF
46652 #define wxUSE_DATAVIEWCTRL 1
46653 _ACEOF
46654
46655   USES_CONTROLS=1
46656   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
46657 fi
46658
46659 if test "$wxUSE_IMAGLIST" = "yes"; then
46660     cat >>confdefs.h <<\_ACEOF
46661 #define wxUSE_IMAGLIST 1
46662 _ACEOF
46663
46664 fi
46665
46666 if test "$wxUSE_INFOBAR" = "yes"; then
46667     cat >>confdefs.h <<\_ACEOF
46668 #define wxUSE_INFOBAR 1
46669 _ACEOF
46670
46671 fi
46672
46673 if test "$wxUSE_LISTBOOK" = "yes"; then
46674     cat >>confdefs.h <<\_ACEOF
46675 #define wxUSE_LISTBOOK 1
46676 _ACEOF
46677
46678     USES_CONTROLS=1
46679 fi
46680
46681 if test "$wxUSE_LISTBOX" = "yes"; then
46682     cat >>confdefs.h <<\_ACEOF
46683 #define wxUSE_LISTBOX 1
46684 _ACEOF
46685
46686     USES_CONTROLS=1
46687 fi
46688
46689 if test "$wxUSE_LISTCTRL" = "yes"; then
46690     if test "$wxUSE_IMAGLIST" = "yes"; then
46691         cat >>confdefs.h <<\_ACEOF
46692 #define wxUSE_LISTCTRL 1
46693 _ACEOF
46694
46695         USES_CONTROLS=1
46696         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
46697     else
46698         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
46699 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
46700     fi
46701 fi
46702
46703 if test "$wxUSE_EDITABLELISTBOX" = "yes"; then
46704     cat >>confdefs.h <<\_ACEOF
46705 #define wxUSE_EDITABLELISTBOX 1
46706 _ACEOF
46707
46708     USES_CONTROLS=1
46709 fi
46710
46711 if test "$wxUSE_NOTEBOOK" = "yes"; then
46712     cat >>confdefs.h <<\_ACEOF
46713 #define wxUSE_NOTEBOOK 1
46714 _ACEOF
46715
46716     USES_CONTROLS=1
46717     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
46718 fi
46719
46720 if test "$wxUSE_NOTIFICATION_MESSAGE" = "yes"; then
46721     cat >>confdefs.h <<\_ACEOF
46722 #define wxUSE_NOTIFICATION_MESSAGE 1
46723 _ACEOF
46724
46725 fi
46726
46727 if test "$wxUSE_ODCOMBOBOX" = "yes"; then
46728   cat >>confdefs.h <<\_ACEOF
46729 #define wxUSE_ODCOMBOBOX 1
46730 _ACEOF
46731
46732   USES_CONTROLS=1
46733   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
46734 fi
46735
46736 if test "$wxUSE_RADIOBOX" = "yes"; then
46737     cat >>confdefs.h <<\_ACEOF
46738 #define wxUSE_RADIOBOX 1
46739 _ACEOF
46740
46741     USES_CONTROLS=1
46742 fi
46743
46744 if test "$wxUSE_RADIOBTN" = "yes"; then
46745     cat >>confdefs.h <<\_ACEOF
46746 #define wxUSE_RADIOBTN 1
46747 _ACEOF
46748
46749     USES_CONTROLS=1
46750 fi
46751
46752 if test "$wxUSE_REARRANGECTRL" = "yes"; then
46753     cat >>confdefs.h <<\_ACEOF
46754 #define wxUSE_REARRANGECTRL 1
46755 _ACEOF
46756
46757 fi
46758
46759 if test "$wxUSE_SASH" = "yes"; then
46760     cat >>confdefs.h <<\_ACEOF
46761 #define wxUSE_SASH 1
46762 _ACEOF
46763
46764     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
46765 fi
46766
46767 if test "$wxUSE_SCROLLBAR" = "yes"; then
46768     cat >>confdefs.h <<\_ACEOF
46769 #define wxUSE_SCROLLBAR 1
46770 _ACEOF
46771
46772     USES_CONTROLS=1
46773     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll"
46774 fi
46775
46776 if test "$wxUSE_SEARCHCTRL" = "yes"; then
46777     cat >>confdefs.h <<\_ACEOF
46778 #define wxUSE_SEARCHCTRL 1
46779 _ACEOF
46780
46781     USES_CONTROLS=1
46782 fi
46783
46784 if test "$wxUSE_SLIDER" = "yes"; then
46785     cat >>confdefs.h <<\_ACEOF
46786 #define wxUSE_SLIDER 1
46787 _ACEOF
46788
46789     USES_CONTROLS=1
46790 fi
46791
46792 if test "$wxUSE_SPINBTN" = "yes"; then
46793     cat >>confdefs.h <<\_ACEOF
46794 #define wxUSE_SPINBTN 1
46795 _ACEOF
46796
46797     USES_CONTROLS=1
46798 fi
46799
46800 if test "$wxUSE_SPINCTRL" = "yes"; then
46801     cat >>confdefs.h <<\_ACEOF
46802 #define wxUSE_SPINCTRL 1
46803 _ACEOF
46804
46805     USES_CONTROLS=1
46806 fi
46807
46808 if test "$wxUSE_SPLITTER" = "yes"; then
46809     cat >>confdefs.h <<\_ACEOF
46810 #define wxUSE_SPLITTER 1
46811 _ACEOF
46812
46813     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
46814 fi
46815
46816 if test "$wxUSE_STATBMP" = "yes"; then
46817     cat >>confdefs.h <<\_ACEOF
46818 #define wxUSE_STATBMP 1
46819 _ACEOF
46820
46821     USES_CONTROLS=1
46822 fi
46823
46824 if test "$wxUSE_STATBOX" = "yes"; then
46825     cat >>confdefs.h <<\_ACEOF
46826 #define wxUSE_STATBOX 1
46827 _ACEOF
46828
46829     USES_CONTROLS=1
46830 fi
46831
46832 if test "$wxUSE_STATTEXT" = "yes"; then
46833     cat >>confdefs.h <<\_ACEOF
46834 #define wxUSE_STATTEXT 1
46835 _ACEOF
46836
46837     USES_CONTROLS=1
46838 fi
46839
46840 if test "$wxUSE_STATLINE" = "yes"; then
46841     cat >>confdefs.h <<\_ACEOF
46842 #define wxUSE_STATLINE 1
46843 _ACEOF
46844
46845     USES_CONTROLS=1
46846 fi
46847
46848 if test "$wxUSE_STATUSBAR" = "yes"; then
46849         cat >>confdefs.h <<\_ACEOF
46850 #define wxUSE_NATIVE_STATUSBAR 1
46851 _ACEOF
46852
46853     cat >>confdefs.h <<\_ACEOF
46854 #define wxUSE_STATUSBAR 1
46855 _ACEOF
46856
46857     USES_CONTROLS=1
46858
46859     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
46860 fi
46861
46862 if test "$wxUSE_TEXTCTRL" = "yes"; then
46863     cat >>confdefs.h <<\_ACEOF
46864 #define wxUSE_TEXTCTRL 1
46865 _ACEOF
46866
46867     USES_CONTROLS=1
46868     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
46869
46870             cat >>confdefs.h <<\_ACEOF
46871 #define wxUSE_RICHEDIT 1
46872 _ACEOF
46873
46874     cat >>confdefs.h <<\_ACEOF
46875 #define wxUSE_RICHEDIT2 1
46876 _ACEOF
46877
46878 fi
46879
46880 if test "$wxUSE_TOGGLEBTN" = "yes"; then
46881     if test "$wxUSE_OLD_COCOA" = 1 ; then
46882         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
46883 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
46884         wxUSE_TOGGLEBTN=no
46885     fi
46886
46887     if test "$wxUSE_TOGGLEBTN" = "yes"; then
46888         cat >>confdefs.h <<\_ACEOF
46889 #define wxUSE_TOGGLEBTN 1
46890 _ACEOF
46891
46892         USES_CONTROLS=1
46893     fi
46894 fi
46895
46896 if test "$wxUSE_TOOLBAR" = "yes"; then
46897     cat >>confdefs.h <<\_ACEOF
46898 #define wxUSE_TOOLBAR 1
46899 _ACEOF
46900
46901     USES_CONTROLS=1
46902
46903     if test "$wxUSE_UNIVERSAL" = "yes"; then
46904         wxUSE_TOOLBAR_NATIVE="no"
46905     else
46906         wxUSE_TOOLBAR_NATIVE="yes"
46907         cat >>confdefs.h <<\_ACEOF
46908 #define wxUSE_TOOLBAR_NATIVE 1
46909 _ACEOF
46910
46911     fi
46912
46913     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
46914 fi
46915
46916 if test "$wxUSE_TOOLTIPS" = "yes"; then
46917     if test "$wxUSE_MOTIF" = 1; then
46918         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
46919 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
46920     else
46921         if test "$wxUSE_UNIVERSAL" = "yes"; then
46922             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
46923 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
46924         else
46925             cat >>confdefs.h <<\_ACEOF
46926 #define wxUSE_TOOLTIPS 1
46927 _ACEOF
46928
46929         fi
46930     fi
46931 fi
46932
46933 if test "$wxUSE_TREEBOOK" = "yes"; then
46934     cat >>confdefs.h <<\_ACEOF
46935 #define wxUSE_TREEBOOK 1
46936 _ACEOF
46937
46938     USES_CONTROLS=1
46939 fi
46940
46941 if test "$wxUSE_TOOLBOOK" = "yes"; then
46942     cat >>confdefs.h <<\_ACEOF
46943 #define wxUSE_TOOLBOOK 1
46944 _ACEOF
46945
46946     USES_CONTROLS=1
46947 fi
46948
46949 if test "$wxUSE_TREECTRL" = "yes"; then
46950     if test "$wxUSE_IMAGLIST" = "yes"; then
46951         cat >>confdefs.h <<\_ACEOF
46952 #define wxUSE_TREECTRL 1
46953 _ACEOF
46954
46955         USES_CONTROLS=1
46956         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
46957     else
46958         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
46959 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
46960     fi
46961 fi
46962
46963 if test "$wxUSE_POPUPWIN" = "yes"; then
46964     if test "$wxUSE_OLD_COCOA" = 1 ; then
46965         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
46966 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
46967     else
46968         if test "$wxUSE_PM" = 1; then
46969             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
46970 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
46971         else
46972             cat >>confdefs.h <<\_ACEOF
46973 #define wxUSE_POPUPWIN 1
46974 _ACEOF
46975
46976             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
46977
46978             USES_CONTROLS=1
46979         fi
46980     fi
46981 fi
46982
46983 if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
46984     if test "$wxUSE_MAC" = 1 -o "$wxUSE_OLD_COCOA" = 1 -o "$wxUSE_MGL" = 1; then
46985         { echo "$as_me:$LINENO: WARNING: Dialup manager not supported on this platform... disabled" >&5
46986 echo "$as_me: WARNING: Dialup manager not supported on this platform... disabled" >&2;}
46987     else
46988         cat >>confdefs.h <<\_ACEOF
46989 #define wxUSE_DIALUP_MANAGER 1
46990 _ACEOF
46991
46992         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
46993     fi
46994 fi
46995
46996 if test "$wxUSE_TIPWINDOW" = "yes"; then
46997     if test "$wxUSE_PM" = 1; then
46998         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
46999 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
47000     else
47001         cat >>confdefs.h <<\_ACEOF
47002 #define wxUSE_TIPWINDOW 1
47003 _ACEOF
47004
47005     fi
47006 fi
47007
47008 if test "$USES_CONTROLS" = 1; then
47009     cat >>confdefs.h <<\_ACEOF
47010 #define wxUSE_CONTROLS 1
47011 _ACEOF
47012
47013 fi
47014
47015
47016 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
47017     cat >>confdefs.h <<\_ACEOF
47018 #define wxUSE_ACCESSIBILITY 1
47019 _ACEOF
47020
47021     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
47022 fi
47023
47024 if test "$wxUSE_DRAGIMAGE" = "yes"; then
47025     cat >>confdefs.h <<\_ACEOF
47026 #define wxUSE_DRAGIMAGE 1
47027 _ACEOF
47028
47029     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
47030 fi
47031
47032 if test "$wxUSE_EXCEPTIONS" = "yes"; then
47033     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
47034         { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
47035 echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
47036     else
47037         cat >>confdefs.h <<\_ACEOF
47038 #define wxUSE_EXCEPTIONS 1
47039 _ACEOF
47040
47041         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
47042     fi
47043 fi
47044
47045 USE_HTML=0
47046 if test "$wxUSE_HTML" = "yes"; then
47047     cat >>confdefs.h <<\_ACEOF
47048 #define wxUSE_HTML 1
47049 _ACEOF
47050
47051     USE_HTML=1
47052     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
47053 fi
47054 if test "$wxUSE_WEBKIT" = "yes"; then
47055     if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
47056         old_CPPFLAGS="$CPPFLAGS"
47057         CPPFLAGS="-x objective-c++ $CPPFLAGS"
47058         { echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
47059 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6; }
47060 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
47061   echo $ECHO_N "(cached) $ECHO_C" >&6
47062 else
47063   cat >conftest.$ac_ext <<_ACEOF
47064 /* confdefs.h.  */
47065 _ACEOF
47066 cat confdefs.h >>conftest.$ac_ext
47067 cat >>conftest.$ac_ext <<_ACEOF
47068 /* end confdefs.h.  */
47069
47070                            #include <Carbon/Carbon.h>
47071                            #include <WebKit/WebKit.h>
47072
47073
47074 #include <WebKit/HIWebView.h>
47075 _ACEOF
47076 rm -f conftest.$ac_objext
47077 if { (ac_try="$ac_compile"
47078 case "(($ac_try" in
47079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47080   *) ac_try_echo=$ac_try;;
47081 esac
47082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47083   (eval "$ac_compile") 2>conftest.er1
47084   ac_status=$?
47085   grep -v '^ *+' conftest.er1 >conftest.err
47086   rm -f conftest.er1
47087   cat conftest.err >&5
47088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47089   (exit $ac_status); } && {
47090          test -z "$ac_c_werror_flag" ||
47091          test ! -s conftest.err
47092        } && test -s conftest.$ac_objext; then
47093   ac_cv_header_WebKit_HIWebView_h=yes
47094 else
47095   echo "$as_me: failed program was:" >&5
47096 sed 's/^/| /' conftest.$ac_ext >&5
47097
47098         ac_cv_header_WebKit_HIWebView_h=no
47099 fi
47100
47101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47102 fi
47103 { echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
47104 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6; }
47105 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
47106
47107                            cat >>confdefs.h <<\_ACEOF
47108 #define wxUSE_WEBKIT 1
47109 _ACEOF
47110
47111                            WEBKIT_LINK="-framework WebKit"
47112
47113 else
47114
47115                            { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
47116 echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
47117                            wxUSE_WEBKIT=no
47118
47119 fi
47120
47121
47122         CPPFLAGS="$old_CPPFLAGS"
47123     elif test "$wxUSE_OLD_COCOA" = 1; then
47124         cat >>confdefs.h <<\_ACEOF
47125 #define wxUSE_WEBKIT 1
47126 _ACEOF
47127
47128     else
47129         wxUSE_WEBKIT=no
47130     fi
47131     if test "$wxUSE_WEBKIT" = "yes"; then
47132         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
47133     fi
47134 fi
47135
47136 USE_XRC=0
47137 if test "$wxUSE_XRC" = "yes"; then
47138     if test "$wxUSE_XML" != "yes"; then
47139         { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
47140 echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
47141         wxUSE_XRC=no
47142     else
47143         cat >>confdefs.h <<\_ACEOF
47144 #define wxUSE_XRC 1
47145 _ACEOF
47146
47147         USE_XRC=1
47148         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
47149     fi
47150 fi
47151
47152 USE_AUI=0
47153 if test "$wxUSE_AUI" = "yes"; then
47154    cat >>confdefs.h <<\_ACEOF
47155 #define wxUSE_AUI 1
47156 _ACEOF
47157
47158    USE_AUI=1
47159    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
47160 fi
47161
47162 USE_PROPGRID=0
47163 if test "$wxUSE_PROPGRID" = "yes"; then
47164    cat >>confdefs.h <<\_ACEOF
47165 #define wxUSE_PROPGRID 1
47166 _ACEOF
47167
47168    USE_PROPGRID=1
47169    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS propgrid"
47170 fi
47171
47172 USE_RIBBON=0
47173 if test "$wxUSE_RIBBON" = "yes"; then
47174    cat >>confdefs.h <<\_ACEOF
47175 #define wxUSE_RIBBON 1
47176 _ACEOF
47177
47178    USE_RIBBON=1
47179    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ribbon"
47180 fi
47181
47182 USE_STC=0
47183 if test "$wxUSE_STC" = "yes"; then
47184    cat >>confdefs.h <<\_ACEOF
47185 #define wxUSE_STC 1
47186 _ACEOF
47187
47188    USE_STC=1
47189    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS stc"
47190
47191       # Extract the first word of "python", so it can be a program name with args.
47192 set dummy python; ac_word=$2
47193 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47195 if test "${ac_cv_path_PYTHON+set}" = set; then
47196   echo $ECHO_N "(cached) $ECHO_C" >&6
47197 else
47198   case $PYTHON in
47199   [\\/]* | ?:[\\/]*)
47200   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
47201   ;;
47202   *)
47203   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47204 for as_dir in $PATH
47205 do
47206   IFS=$as_save_IFS
47207   test -z "$as_dir" && as_dir=.
47208   for ac_exec_ext in '' $ac_executable_extensions; do
47209   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47210     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
47211     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47212     break 2
47213   fi
47214 done
47215 done
47216 IFS=$as_save_IFS
47217
47218   ;;
47219 esac
47220 fi
47221 PYTHON=$ac_cv_path_PYTHON
47222 if test -n "$PYTHON"; then
47223   { echo "$as_me:$LINENO: result: $PYTHON" >&5
47224 echo "${ECHO_T}$PYTHON" >&6; }
47225 else
47226   { echo "$as_me:$LINENO: result: no" >&5
47227 echo "${ECHO_T}no" >&6; }
47228 fi
47229
47230
47231    if test "x$PYTHON" = "x"; then
47232      COND_PYTHON="#"
47233    fi
47234
47235 fi
47236
47237 if test "$wxUSE_MENUS" = "yes"; then
47238     cat >>confdefs.h <<\_ACEOF
47239 #define wxUSE_MENUS 1
47240 _ACEOF
47241
47242     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
47243 fi
47244
47245 if test "$wxUSE_METAFILE" = "yes"; then
47246     cat >>confdefs.h <<\_ACEOF
47247 #define wxUSE_METAFILE 1
47248 _ACEOF
47249
47250 fi
47251
47252 if test "$wxUSE_MIMETYPE" = "yes"; then
47253     cat >>confdefs.h <<\_ACEOF
47254 #define wxUSE_MIMETYPE 1
47255 _ACEOF
47256
47257 fi
47258
47259 if test "$wxUSE_MINIFRAME" = "yes"; then
47260     cat >>confdefs.h <<\_ACEOF
47261 #define wxUSE_MINIFRAME 1
47262 _ACEOF
47263
47264 fi
47265
47266 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
47267     cat >>confdefs.h <<\_ACEOF
47268 #define wxUSE_SYSTEM_OPTIONS 1
47269 _ACEOF
47270
47271 fi
47272
47273 if test "$wxUSE_TASKBARICON" = "yes"; then
47274     cat >>confdefs.h <<\_ACEOF
47275 #define wxUSE_TASKBARICON 1
47276 _ACEOF
47277
47278     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
47279 fi
47280
47281
47282 if test "$wxUSE_VALIDATORS" = "yes"; then
47283     cat >>confdefs.h <<\_ACEOF
47284 #define wxUSE_VALIDATORS 1
47285 _ACEOF
47286
47287     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
47288 fi
47289
47290 if test "$wxUSE_PALETTE" = "yes" ; then
47291     if test "$wxUSE_DFB" = 1; then
47292         { echo "$as_me:$LINENO: WARNING: wxPalette not yet supported under DFB... disabled" >&5
47293 echo "$as_me: WARNING: wxPalette not yet supported under DFB... disabled" >&2;}
47294         wxUSE_PALETTE=no
47295     else
47296         cat >>confdefs.h <<\_ACEOF
47297 #define wxUSE_PALETTE 1
47298 _ACEOF
47299
47300     fi
47301 fi
47302
47303 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
47304     LIBS=" -lunicows $LIBS"
47305 fi
47306
47307 USE_RICHTEXT=0
47308 if test "$wxUSE_RICHTEXT" = "yes"; then
47309     cat >>confdefs.h <<\_ACEOF
47310 #define wxUSE_RICHTEXT 1
47311 _ACEOF
47312
47313     USE_RICHTEXT=1
47314     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
47315 fi
47316
47317
47318 if test "$wxUSE_IMAGE" = "yes" ; then
47319     cat >>confdefs.h <<\_ACEOF
47320 #define wxUSE_IMAGE 1
47321 _ACEOF
47322
47323
47324     if test "$wxUSE_GIF" = "yes" ; then
47325       cat >>confdefs.h <<\_ACEOF
47326 #define wxUSE_GIF 1
47327 _ACEOF
47328
47329     fi
47330
47331     if test "$wxUSE_PCX" = "yes" ; then
47332       cat >>confdefs.h <<\_ACEOF
47333 #define wxUSE_PCX 1
47334 _ACEOF
47335
47336     fi
47337
47338     if test "$wxUSE_TGA" = "yes" ; then
47339       cat >>confdefs.h <<\_ACEOF
47340 #define wxUSE_TGA 1
47341 _ACEOF
47342
47343     fi
47344
47345     if test "$wxUSE_IFF" = "yes" ; then
47346       cat >>confdefs.h <<\_ACEOF
47347 #define wxUSE_IFF 1
47348 _ACEOF
47349
47350     fi
47351
47352     if test "$wxUSE_PNM" = "yes" ; then
47353       cat >>confdefs.h <<\_ACEOF
47354 #define wxUSE_PNM 1
47355 _ACEOF
47356
47357     fi
47358
47359     if test "$wxUSE_XPM" = "yes" ; then
47360       cat >>confdefs.h <<\_ACEOF
47361 #define wxUSE_XPM 1
47362 _ACEOF
47363
47364     fi
47365
47366     if test "$wxUSE_ICO_CUR" = "yes" ; then
47367       cat >>confdefs.h <<\_ACEOF
47368 #define wxUSE_ICO_CUR 1
47369 _ACEOF
47370
47371     fi
47372 fi
47373
47374
47375 if test "$wxUSE_ABOUTDLG" = "yes"; then
47376     cat >>confdefs.h <<\_ACEOF
47377 #define wxUSE_ABOUTDLG 1
47378 _ACEOF
47379
47380 fi
47381
47382 if test "$wxUSE_CHOICEDLG" = "yes"; then
47383     cat >>confdefs.h <<\_ACEOF
47384 #define wxUSE_CHOICEDLG 1
47385 _ACEOF
47386
47387 fi
47388
47389 if test "$wxUSE_COLOURDLG" = "yes"; then
47390     cat >>confdefs.h <<\_ACEOF
47391 #define wxUSE_COLOURDLG 1
47392 _ACEOF
47393
47394 fi
47395
47396 if test "$wxUSE_FILEDLG" = "yes"; then
47397     cat >>confdefs.h <<\_ACEOF
47398 #define wxUSE_FILEDLG 1
47399 _ACEOF
47400
47401 fi
47402
47403 if test "$wxUSE_FINDREPLDLG" = "yes"; then
47404     cat >>confdefs.h <<\_ACEOF
47405 #define wxUSE_FINDREPLDLG 1
47406 _ACEOF
47407
47408 fi
47409
47410 if test "$wxUSE_FONTDLG" = "yes"; then
47411     cat >>confdefs.h <<\_ACEOF
47412 #define wxUSE_FONTDLG 1
47413 _ACEOF
47414
47415 fi
47416
47417 if test "$wxUSE_DIRDLG" = "yes"; then
47418     if test "$wxUSE_TREECTRL" != "yes"; then
47419         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
47420 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
47421     else
47422         cat >>confdefs.h <<\_ACEOF
47423 #define wxUSE_DIRDLG 1
47424 _ACEOF
47425
47426     fi
47427 fi
47428
47429 if test "$wxUSE_MSGDLG" = "yes"; then
47430     cat >>confdefs.h <<\_ACEOF
47431 #define wxUSE_MSGDLG 1
47432 _ACEOF
47433
47434 fi
47435
47436 if test "$wxUSE_NUMBERDLG" = "yes"; then
47437     cat >>confdefs.h <<\_ACEOF
47438 #define wxUSE_NUMBERDLG 1
47439 _ACEOF
47440
47441 fi
47442
47443 if test "$wxUSE_PROGRESSDLG" = "yes"; then
47444     cat >>confdefs.h <<\_ACEOF
47445 #define wxUSE_PROGRESSDLG 1
47446 _ACEOF
47447
47448 fi
47449
47450 if test "$wxUSE_SPLASH" = "yes"; then
47451     cat >>confdefs.h <<\_ACEOF
47452 #define wxUSE_SPLASH 1
47453 _ACEOF
47454
47455     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
47456 fi
47457
47458 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
47459     cat >>confdefs.h <<\_ACEOF
47460 #define wxUSE_STARTUP_TIPS 1
47461 _ACEOF
47462
47463 fi
47464
47465 if test "$wxUSE_TEXTDLG" = "yes"; then
47466     cat >>confdefs.h <<\_ACEOF
47467 #define wxUSE_TEXTDLG 1
47468 _ACEOF
47469
47470 fi
47471
47472 if test "$wxUSE_WIZARDDLG" = "yes"; then
47473     cat >>confdefs.h <<\_ACEOF
47474 #define wxUSE_WIZARDDLG 1
47475 _ACEOF
47476
47477     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
47478 fi
47479
47480
47481 if test "$wxUSE_MSW" = 1 -o "$wxUSE_PM" = 1; then
47482     if test "$wxUSE_OWNER_DRAWN" = "yes"; then
47483         cat >>confdefs.h <<\_ACEOF
47484 #define wxUSE_OWNER_DRAWN 1
47485 _ACEOF
47486
47487     fi
47488 fi
47489
47490
47491 if test "$wxUSE_MSW" = 1 ; then
47492
47493     if test "$wxUSE_DC_CACHEING" = "yes"; then
47494         cat >>confdefs.h <<\_ACEOF
47495 #define wxUSE_DC_CACHEING 1
47496 _ACEOF
47497
47498     fi
47499
47500     if test "$wxUSE_DIB" = "yes"; then
47501         cat >>confdefs.h <<\_ACEOF
47502 #define wxUSE_WXDIB 1
47503 _ACEOF
47504
47505     fi
47506
47507     if test "$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW" = "yes"; then
47508         cat >>confdefs.h <<\_ACEOF
47509 #define wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW 1
47510 _ACEOF
47511
47512     fi
47513
47514     if test "$wxUSE_UXTHEME" = "yes"; then
47515         cat >>confdefs.h <<\_ACEOF
47516 #define wxUSE_UXTHEME 1
47517 _ACEOF
47518
47519     fi
47520
47521 fi
47522
47523 if test "$wxUSE_AUTOID_MANAGEMENT" = "yes"; then
47524     cat >>confdefs.h <<\_ACEOF
47525 #define wxUSE_AUTOID_MANAGEMENT 1
47526 _ACEOF
47527
47528 fi
47529
47530 if test "$USE_WIN32" = 1 ; then
47531     if test "$wxUSE_INICONF" = "yes"; then
47532         cat >>confdefs.h <<\_ACEOF
47533 #define wxUSE_INICONF 1
47534 _ACEOF
47535
47536     fi
47537
47538     if test "$wxUSE_REGKEY" = "yes"; then
47539         cat >>confdefs.h <<\_ACEOF
47540 #define wxUSE_REGKEY 1
47541 _ACEOF
47542
47543     fi
47544 fi
47545
47546
47547 if test "$wxUSE_MAC" = 1; then
47548     wxUSE_GRAPHICS_CONTEXT="yes"
47549 fi
47550
47551 if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then
47552     wx_has_graphics=0
47553     if test "$wxUSE_MSW" = 1; then
47554         { echo "$as_me:$LINENO: checking if GDI+ is available" >&5
47555 echo $ECHO_N "checking if GDI+ is available... $ECHO_C" >&6; }
47556 if test "${wx_cv_lib_gdiplus+set}" = set; then
47557   echo $ECHO_N "(cached) $ECHO_C" >&6
47558 else
47559
47560                                                 ac_ext=cpp
47561 ac_cpp='$CXXCPP $CPPFLAGS'
47562 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47563 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47564 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47565
47566                 cat >conftest.$ac_ext <<_ACEOF
47567 /* confdefs.h.  */
47568 _ACEOF
47569 cat confdefs.h >>conftest.$ac_ext
47570 cat >>conftest.$ac_ext <<_ACEOF
47571 /* end confdefs.h.  */
47572 #include <windows.h>
47573                      #include <gdiplus.h>
47574 int
47575 main ()
47576 {
47577
47578                         using namespace Gdiplus;
47579
47580   ;
47581   return 0;
47582 }
47583 _ACEOF
47584 rm -f conftest.$ac_objext
47585 if { (ac_try="$ac_compile"
47586 case "(($ac_try" in
47587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47588   *) ac_try_echo=$ac_try;;
47589 esac
47590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47591   (eval "$ac_compile") 2>conftest.er1
47592   ac_status=$?
47593   grep -v '^ *+' conftest.er1 >conftest.err
47594   rm -f conftest.er1
47595   cat conftest.err >&5
47596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47597   (exit $ac_status); } && {
47598          test -z "$ac_cxx_werror_flag" ||
47599          test ! -s conftest.err
47600        } && test -s conftest.$ac_objext; then
47601   wx_cv_lib_gdiplus=yes
47602 else
47603   echo "$as_me: failed program was:" >&5
47604 sed 's/^/| /' conftest.$ac_ext >&5
47605
47606         wx_cv_lib_gdiplus=no
47607
47608 fi
47609
47610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47611                 ac_ext=c
47612 ac_cpp='$CPP $CPPFLAGS'
47613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47616
47617
47618
47619 fi
47620 { echo "$as_me:$LINENO: result: $wx_cv_lib_gdiplus" >&5
47621 echo "${ECHO_T}$wx_cv_lib_gdiplus" >&6; }
47622         if test "$wx_cv_lib_gdiplus" = "yes"; then
47623             wx_has_graphics=1
47624         fi
47625     elif test "$wxUSE_GTK" = 1; then
47626
47627 pkg_failed=no
47628 { echo "$as_me:$LINENO: checking for CAIRO" >&5
47629 echo $ECHO_N "checking for CAIRO... $ECHO_C" >&6; }
47630
47631 if test -n "$PKG_CONFIG"; then
47632     if test -n "$CAIRO_CFLAGS"; then
47633         pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
47634     else
47635         if test -n "$PKG_CONFIG" && \
47636     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
47637   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
47638   ac_status=$?
47639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47640   (exit $ac_status); }; then
47641   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
47642 else
47643   pkg_failed=yes
47644 fi
47645     fi
47646 else
47647         pkg_failed=untried
47648 fi
47649 if test -n "$PKG_CONFIG"; then
47650     if test -n "$CAIRO_LIBS"; then
47651         pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
47652     else
47653         if test -n "$PKG_CONFIG" && \
47654     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
47655   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
47656   ac_status=$?
47657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47658   (exit $ac_status); }; then
47659   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
47660 else
47661   pkg_failed=yes
47662 fi
47663     fi
47664 else
47665         pkg_failed=untried
47666 fi
47667
47668
47669
47670 if test $pkg_failed = yes; then
47671
47672 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47673         _pkg_short_errors_supported=yes
47674 else
47675         _pkg_short_errors_supported=no
47676 fi
47677         if test $_pkg_short_errors_supported = yes; then
47678                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
47679         else
47680                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
47681         fi
47682         # Put the nasty error message in config.log where it belongs
47683         echo "$CAIRO_PKG_ERRORS" >&5
47684
47685         { echo "$as_me:$LINENO: WARNING: Cairo library not found" >&5
47686 echo "$as_me: WARNING: Cairo library not found" >&2;}
47687
47688 elif test $pkg_failed = untried; then
47689         { echo "$as_me:$LINENO: WARNING: Cairo library not found" >&5
47690 echo "$as_me: WARNING: Cairo library not found" >&2;}
47691
47692 else
47693         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
47694         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
47695         { echo "$as_me:$LINENO: result: yes" >&5
47696 echo "${ECHO_T}yes" >&6; }
47697         wx_has_graphics=1
47698 fi
47699     else
47700                 wx_has_graphics=1
47701     fi
47702
47703     if test "$wx_has_graphics" = 1; then
47704         cat >>confdefs.h <<\_ACEOF
47705 #define wxUSE_GRAPHICS_CONTEXT 1
47706 _ACEOF
47707
47708     else
47709         { echo "$as_me:$LINENO: WARNING: wxGraphicsContext won't be available" >&5
47710 echo "$as_me: WARNING: wxGraphicsContext won't be available" >&2;}
47711     fi
47712 fi
47713
47714
47715 USE_MEDIA=0
47716
47717 if test "$wxUSE_MEDIACTRL" = "yes" -o "$wxUSE_MEDIACTRL" = "auto"; then
47718     USE_MEDIA=1
47719
47720                 if test "$wxUSE_GTK" = 1; then
47721         wxUSE_GSTREAMER="no"
47722
47723                                                                 GST_VERSION_MAJOR=0
47724         GST_VERSION_MINOR=10
47725         GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
47726
47727         if test "$wxUSE_GSTREAMER8" = "no"; then
47728
47729 pkg_failed=no
47730 { echo "$as_me:$LINENO: checking for GST" >&5
47731 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
47732
47733 if test -n "$PKG_CONFIG"; then
47734     if test -n "$GST_CFLAGS"; then
47735         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
47736     else
47737         if test -n "$PKG_CONFIG" && \
47738     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
47739   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
47740   ac_status=$?
47741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47742   (exit $ac_status); }; then
47743   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
47744 else
47745   pkg_failed=yes
47746 fi
47747     fi
47748 else
47749         pkg_failed=untried
47750 fi
47751 if test -n "$PKG_CONFIG"; then
47752     if test -n "$GST_LIBS"; then
47753         pkg_cv_GST_LIBS="$GST_LIBS"
47754     else
47755         if test -n "$PKG_CONFIG" && \
47756     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
47757   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
47758   ac_status=$?
47759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47760   (exit $ac_status); }; then
47761   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
47762 else
47763   pkg_failed=yes
47764 fi
47765     fi
47766 else
47767         pkg_failed=untried
47768 fi
47769
47770
47771
47772 if test $pkg_failed = yes; then
47773
47774 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47775         _pkg_short_errors_supported=yes
47776 else
47777         _pkg_short_errors_supported=no
47778 fi
47779         if test $_pkg_short_errors_supported = yes; then
47780                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
47781         else
47782                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
47783         fi
47784         # Put the nasty error message in config.log where it belongs
47785         echo "$GST_PKG_ERRORS" >&5
47786
47787
47788                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
47789 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
47790                     GST_VERSION_MINOR=8
47791
47792
47793 elif test $pkg_failed = untried; then
47794
47795                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
47796 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
47797                     GST_VERSION_MINOR=8
47798
47799
47800 else
47801         GST_CFLAGS=$pkg_cv_GST_CFLAGS
47802         GST_LIBS=$pkg_cv_GST_LIBS
47803         { echo "$as_me:$LINENO: result: yes" >&5
47804 echo "${ECHO_T}yes" >&6; }
47805
47806                     wxUSE_GSTREAMER="yes"
47807                     GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
47808
47809 fi
47810         else
47811                         GST_VERSION_MINOR=8
47812         fi
47813
47814         if test $GST_VERSION_MINOR = "8"; then
47815             GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
47816
47817 pkg_failed=no
47818 { echo "$as_me:$LINENO: checking for GST" >&5
47819 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
47820
47821 if test -n "$PKG_CONFIG"; then
47822     if test -n "$GST_CFLAGS"; then
47823         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
47824     else
47825         if test -n "$PKG_CONFIG" && \
47826     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
47827   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
47828   ac_status=$?
47829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47830   (exit $ac_status); }; then
47831   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
47832 else
47833   pkg_failed=yes
47834 fi
47835     fi
47836 else
47837         pkg_failed=untried
47838 fi
47839 if test -n "$PKG_CONFIG"; then
47840     if test -n "$GST_LIBS"; then
47841         pkg_cv_GST_LIBS="$GST_LIBS"
47842     else
47843         if test -n "$PKG_CONFIG" && \
47844     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
47845   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
47846   ac_status=$?
47847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47848   (exit $ac_status); }; then
47849   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
47850 else
47851   pkg_failed=yes
47852 fi
47853     fi
47854 else
47855         pkg_failed=untried
47856 fi
47857
47858
47859
47860 if test $pkg_failed = yes; then
47861
47862 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47863         _pkg_short_errors_supported=yes
47864 else
47865         _pkg_short_errors_supported=no
47866 fi
47867         if test $_pkg_short_errors_supported = yes; then
47868                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
47869         else
47870                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
47871         fi
47872         # Put the nasty error message in config.log where it belongs
47873         echo "$GST_PKG_ERRORS" >&5
47874
47875
47876                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
47877 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
47878
47879 elif test $pkg_failed = untried; then
47880
47881                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
47882 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
47883
47884 else
47885         GST_CFLAGS=$pkg_cv_GST_CFLAGS
47886         GST_LIBS=$pkg_cv_GST_LIBS
47887         { echo "$as_me:$LINENO: result: yes" >&5
47888 echo "${ECHO_T}yes" >&6; }
47889         wxUSE_GSTREAMER="yes"
47890 fi
47891         fi
47892
47893
47894         if test "$wxUSE_GSTREAMER" = "yes"; then
47895             CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
47896             EXTRALIBS_MEDIA="$GST_LIBS"
47897
47898             cat >>confdefs.h <<\_ACEOF
47899 #define wxUSE_GSTREAMER 1
47900 _ACEOF
47901
47902         else
47903             USE_MEDIA=0
47904         fi
47905     fi
47906
47907     if test $USE_MEDIA = 1; then
47908         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
47909         cat >>confdefs.h <<\_ACEOF
47910 #define wxUSE_MEDIACTRL 1
47911 _ACEOF
47912
47913     else
47914         if test "$wxUSE_MEDIACTRL" = "yes"; then
47915             { { echo "$as_me:$LINENO: error: GStreamer not available" >&5
47916 echo "$as_me: error: GStreamer not available" >&2;}
47917    { (exit 1); exit 1; }; }
47918         else
47919                         { echo "$as_me:$LINENO: WARNING: GStreamer not available... disabling wxMediaCtrl" >&5
47920 echo "$as_me: WARNING: GStreamer not available... disabling wxMediaCtrl" >&2;}
47921         fi
47922     fi
47923 fi
47924
47925
47926 if test "$cross_compiling" != "no"; then
47927         OSINFO="\"$host\""
47928 else
47929         OSINFO=`uname -s -r -m`
47930     OSINFO="\"$OSINFO\""
47931 fi
47932
47933 cat >>confdefs.h <<_ACEOF
47934 #define WXWIN_OS_DESCRIPTION $OSINFO
47935 _ACEOF
47936
47937
47938
47939 if test "x$prefix" != "xNONE"; then
47940     wxPREFIX=$prefix
47941 else
47942     wxPREFIX=$ac_default_prefix
47943 fi
47944
47945 cat >>confdefs.h <<_ACEOF
47946 #define wxINSTALL_PREFIX "$wxPREFIX"
47947 _ACEOF
47948
47949
47950
47951
47952 STD_BASE_LIBS="base"
47953 STD_GUI_LIBS=""
47954 BUILT_WX_LIBS="base"
47955 ALL_WX_LIBS="xrc stc gl media qa html adv core xml net base"
47956
47957 if test "$wxUSE_SOCKETS" = "yes" ; then
47958     STD_BASE_LIBS="net $STD_BASE_LIBS"
47959     BUILT_WX_LIBS="net $BUILT_WX_LIBS"
47960 fi
47961 if test "$wxUSE_XML" = "yes" ; then
47962     STD_BASE_LIBS="xml $STD_BASE_LIBS"
47963     BUILT_WX_LIBS="xml $BUILT_WX_LIBS"
47964 fi
47965
47966 if test "$wxUSE_GUI" = "yes"; then
47967     STD_GUI_LIBS="adv core"
47968     BUILT_WX_LIBS="$STD_GUI_LIBS $BUILT_WX_LIBS"
47969
47970     if test "$wxUSE_DEBUGREPORT" = "yes" ; then
47971         STD_GUI_LIBS="qa $STD_GUI_LIBS"
47972         BUILT_WX_LIBS="qa $BUILT_WX_LIBS"
47973     fi
47974     if test "$wxUSE_HTML" = "yes" ; then
47975         STD_GUI_LIBS="html $STD_GUI_LIBS"
47976         BUILT_WX_LIBS="html $BUILT_WX_LIBS"
47977     fi
47978     if test "$wxUSE_MEDIACTRL" = "yes" ; then
47979         BUILT_WX_LIBS="media $BUILT_WX_LIBS"
47980     fi
47981     if test "$wxUSE_OPENGL" = "yes" ; then
47982         BUILT_WX_LIBS="gl $BUILT_WX_LIBS"
47983     fi
47984     if test "$wxUSE_AUI" = "yes" ; then
47985         BUILT_WX_LIBS="aui $BUILT_WX_LIBS"
47986     fi
47987     if test "$wxUSE_PROPGRID" = "yes" ; then
47988         BUILT_WX_LIBS="propgrid $BUILT_WX_LIBS"
47989     fi
47990     if test "$wxUSE_RIBBON" = "yes" ; then
47991         BUILT_WX_LIBS="ribbon $BUILT_WX_LIBS"
47992     fi
47993     if test "$wxUSE_RICHTEXT" = "yes" ; then
47994         BUILT_WX_LIBS="richtext $BUILT_WX_LIBS"
47995     fi
47996     if test "$wxUSE_STC" = "yes" ; then
47997         BUILT_WX_LIBS="stc $BUILT_WX_LIBS"
47998     fi
47999     if test "$wxUSE_XRC" = "yes" ; then
48000         STD_GUI_LIBS="xrc $STD_GUI_LIBS"
48001         BUILT_WX_LIBS="xrc $BUILT_WX_LIBS"
48002     fi
48003 fi
48004
48005
48006
48007
48008
48009
48010
48011 EXTRA_FRAMEWORKS=
48012 if test "$wxUSE_MAC" = 1 ; then
48013     if test "$USE_DARWIN" = 1; then
48014         EXTRA_FRAMEWORKS="-framework IOKit -framework Carbon -framework Cocoa -framework AudioToolbox -framework System -framework OpenGL -framework QuickTime"
48015     fi
48016 fi
48017 if test "$wxUSE_OLD_COCOA" = 1 ; then
48018     EXTRA_FRAMEWORKS="-framework IOKit -framework Cocoa"
48019     if test "$wxUSE_MEDIACTRL" = "yes"; then
48020         EXTRA_FRAMEWORKS="$EXTRA_FRAMEWORKS -framework QuickTime"
48021     fi
48022 fi
48023 if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_OLD_COCOA" != 1 ; then
48024     EXTRA_FRAMEWORKS="$EXTRA_FRAMEWORKS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
48025 fi
48026
48027 LDFLAGS="$LDFLAGS $EXTRA_FRAMEWORKS"
48028 WXCONFIG_LDFLAGS="$WXCONFIG_LDFLAGS $EXTRA_FRAMEWORKS"
48029
48030 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
48031
48032 if test "$wxUSE_GUI" = "yes"; then
48033
48034
48035         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
48036                      erase event exec font image minimal render \
48037                      shaped svg taborder vscroll widgets wrapsizer"
48038
48039     if test "$wxUSE_MONOLITHIC" != "yes"; then
48040         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
48041     fi
48042     if test "$TOOLKIT" = "MSW"; then
48043         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
48044         if test "$wxUSE_UNIVERSAL" != "yes"; then
48045             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg dll"
48046         fi
48047     fi
48048     if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
48049         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
48050     fi
48051 else
48052     SAMPLES_SUBDIRS="console"
48053     if test "$wxUSE_SOCKETS" = "yes" ; then
48054         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
48055     fi
48056     if test "$wxUSE_IPC" = "yes" ; then
48057         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
48058     fi
48059 fi
48060
48061
48062 if test "x$INTELCC" = "xyes" ; then
48063                                         CWARNINGS="-Wall -wd810,869,981,1418,1572,1684,2259"
48064 elif test "$GCC" = yes ; then
48065     CWARNINGS="-Wall -Wundef"
48066 fi
48067
48068 if test "x$INTELCXX" = "xyes" ; then
48069                                                                 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419,1881,2259"
48070 elif test "$GXX" = yes ; then
48071     CXXWARNINGS="-Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy"
48072     { echo "$as_me:$LINENO: checking CXXWARNINGS for gcc -Woverloaded-virtual" >&5
48073 echo $ECHO_N "checking CXXWARNINGS for gcc -Woverloaded-virtual... $ECHO_C" >&6; }
48074 if test "${ac_cv_cxxflags_gcc_option__Woverloaded_virtual+set}" = set; then
48075   echo $ECHO_N "(cached) $ECHO_C" >&6
48076 else
48077   ac_cv_cxxflags_gcc_option__Woverloaded_virtual="no, unknown"
48078
48079  ac_ext=cpp
48080 ac_cpp='$CXXCPP $CPPFLAGS'
48081 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48082 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48083 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48084
48085  ac_save_CXXFLAGS="$CXXFLAGS"
48086 for ac_arg in "-pedantic -Werror % -Woverloaded-virtual"     "-pedantic % -Woverloaded-virtual %% no, obsolete"     #
48087 do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
48088    cat >conftest.$ac_ext <<_ACEOF
48089 /* confdefs.h.  */
48090 _ACEOF
48091 cat confdefs.h >>conftest.$ac_ext
48092 cat >>conftest.$ac_ext <<_ACEOF
48093 /* end confdefs.h.  */
48094
48095 int
48096 main ()
48097 {
48098 return 0;
48099   ;
48100   return 0;
48101 }
48102 _ACEOF
48103 rm -f conftest.$ac_objext
48104 if { (ac_try="$ac_compile"
48105 case "(($ac_try" in
48106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48107   *) ac_try_echo=$ac_try;;
48108 esac
48109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48110   (eval "$ac_compile") 2>conftest.er1
48111   ac_status=$?
48112   grep -v '^ *+' conftest.er1 >conftest.err
48113   rm -f conftest.er1
48114   cat conftest.err >&5
48115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48116   (exit $ac_status); } && {
48117          test -z "$ac_cxx_werror_flag" ||
48118          test ! -s conftest.err
48119        } && test -s conftest.$ac_objext; then
48120   ac_cv_cxxflags_gcc_option__Woverloaded_virtual=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
48121 else
48122   echo "$as_me: failed program was:" >&5
48123 sed 's/^/| /' conftest.$ac_ext >&5
48124
48125
48126 fi
48127
48128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48129 done
48130  CXXFLAGS="$ac_save_CXXFLAGS"
48131  ac_ext=c
48132 ac_cpp='$CPP $CPPFLAGS'
48133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48136
48137
48138 fi
48139 { echo "$as_me:$LINENO: result: $ac_cv_cxxflags_gcc_option__Woverloaded_virtual" >&5
48140 echo "${ECHO_T}$ac_cv_cxxflags_gcc_option__Woverloaded_virtual" >&6; }
48141 case ".$ac_cv_cxxflags_gcc_option__Woverloaded_virtual" in
48142      .ok|.ok,*)  ;;
48143    .|.no|.no,*)  ;;
48144    *)
48145    if echo " $CXXWARNINGS " | grep " $ac_cv_cxxflags_gcc_option__Woverloaded_virtual " 2>&1 >/dev/null
48146    then { (echo "$as_me:$LINENO: : CXXWARNINGS does contain \$ac_cv_cxxflags_gcc_option__Woverloaded_virtual") >&5
48147   (: CXXWARNINGS does contain $ac_cv_cxxflags_gcc_option__Woverloaded_virtual) 2>&5
48148   ac_status=$?
48149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48150   (exit $ac_status); }
48151    else { (echo "$as_me:$LINENO: : CXXWARNINGS=\"\$CXXWARNINGS \$ac_cv_cxxflags_gcc_option__Woverloaded_virtual\"") >&5
48152   (: CXXWARNINGS="$CXXWARNINGS $ac_cv_cxxflags_gcc_option__Woverloaded_virtual") 2>&5
48153   ac_status=$?
48154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48155   (exit $ac_status); }
48156                       CXXWARNINGS="$CXXWARNINGS $ac_cv_cxxflags_gcc_option__Woverloaded_virtual"
48157    fi
48158  ;;
48159 esac
48160
48161
48162                     if test "$wxUSE_MAC" = 1 ; then
48163         CXXWARNINGS="$CXXWARNINGS -Wno-deprecated-declarations"
48164     fi
48165 fi
48166
48167
48168 WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
48169 WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
48170
48171
48172 CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
48173  -I\\${wx_top_builddir}/lib/wx/include/${TOOLCHAIN_FULLNAME} \
48174  -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
48175  $CPPFLAGS `
48176
48177 C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
48178 CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
48179 CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $CXXFLAGS `
48180 OBJCFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $OBJCFLAGS `
48181 OBJCXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $OBJCXXFLAGS `
48182
48183 WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
48184
48185
48186 if test "x$MWCC" = "xyes"; then
48187
48188             CC="$CC -cwd source -I-"
48189     CXX="$CXX -cwd source -I-"
48190 fi
48191
48192
48193 LIBS=`echo $LIBS`
48194 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
48195 EXTRALIBS_XML="$EXPAT_LINK"
48196 EXTRALIBS_HTML="$MSPACK_LINK"
48197 EXTRALIBS_MEDIA="$GST_LIBS"
48198 EXTRALIBS_STC="-lwxscintilla${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
48199 if test "$wxUSE_GUI" = "yes"; then
48200     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
48201 fi
48202 if test "$wxUSE_OPENGL" = "yes"; then
48203     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
48204 fi
48205
48206 LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
48207
48208 WXCONFIG_LIBS="$LIBS"
48209
48210 if test "$wxUSE_REGEX" = "builtin" ; then
48211     wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
48212 fi
48213 if test "$wxUSE_EXPAT" = "builtin" ; then
48214     wxconfig_3rdparty="expat $wxconfig_3rdparty"
48215 fi
48216 if test "$wxUSE_LIBTIFF" = "builtin" ; then
48217     wxconfig_3rdparty="tiff $wxconfig_3rdparty"
48218 fi
48219 if test "$wxUSE_LIBJPEG" = "builtin" ; then
48220     wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
48221 fi
48222 if test "$wxUSE_LIBPNG" = "builtin" ; then
48223     wxconfig_3rdparty="png $wxconfig_3rdparty"
48224 fi
48225 if test "$wxUSE_ZLIB" = "builtin" ; then
48226     wxconfig_3rdparty="zlib $wxconfig_3rdparty"
48227 fi
48228
48229 for i in $wxconfig_3rdparty ; do
48230     WXCONFIG_LIBS="-lwx${i}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
48231 done
48232
48233
48234 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
48235     WXUNIV=1
48236
48237     case "$wxUNIV_THEMES" in
48238         ''|all)
48239             cat >>confdefs.h <<\_ACEOF
48240 #define wxUSE_ALL_THEMES 1
48241 _ACEOF
48242
48243             ;;
48244
48245         *)
48246             for t in `echo $wxUNIV_THEMES | tr , ' ' | tr '[a-z]' '[A-Z]'`; do
48247                 cat >>confdefs.h <<_ACEOF
48248 #define wxUSE_THEME_$t 1
48249 _ACEOF
48250
48251             done
48252     esac
48253 else
48254     WXUNIV=0
48255 fi
48256
48257
48258
48259
48260
48261
48262
48263
48264 if test $wxUSE_MONOLITHIC = "yes" ; then
48265     MONOLITHIC=1
48266 else
48267     MONOLITHIC=0
48268 fi
48269
48270 if test $wxUSE_PLUGINS = "yes" ; then
48271     USE_PLUGINS=1
48272 else
48273     USE_PLUGINS=0
48274 fi
48275
48276 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
48277     USE_QA=1
48278 else
48279     USE_QA=0
48280 fi
48281
48282 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
48283     OFFICIAL_BUILD=1
48284 else
48285     OFFICIAL_BUILD=0
48286 fi
48287
48288
48289
48290
48291
48292
48293
48294
48295
48296
48297
48298
48299
48300
48301
48302
48303
48304
48305
48306
48307
48308
48309
48310
48311
48312
48313
48314 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr '[A-Z]' '[a-z]'`
48315
48316
48317
48318
48319
48320
48321
48322
48323
48324
48325 case "$TOOLKIT" in
48326     GTK)
48327         TOOLKIT_DESC="GTK+"
48328         if test "$WXGTK2" = 1; then
48329             TOOLKIT_DESC="$TOOLKIT_DESC 2"
48330             if test "$wxUSE_GTKPRINT" = "yes" ; then
48331                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA GTK+ printing";
48332             fi
48333             if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
48334                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
48335             fi
48336             if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
48337                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
48338             fi
48339             if test "$wxUSE_LIBHILDON" = "yes"; then
48340                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
48341             fi
48342             if test "$wxUSE_LIBHILDON2" = "yes"; then
48343                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
48344             fi
48345
48346             if test "$TOOLKIT_EXTRA" != ""; then
48347                 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
48348             fi
48349         fi
48350         ;;
48351
48352     ?*)
48353         TOOLKIT_DESC=$TOOLKIT_LOWERCASE
48354         ;;
48355
48356     *)
48357         TOOLKIT_DESC="base only"
48358         ;;
48359 esac
48360
48361 if test "$wxUSE_WINE" = "yes"; then
48362     BAKEFILE_FORCE_PLATFORM=win32
48363 fi
48364
48365 if test "$wxUSE_UNICODE" = yes -a "$GCC" = yes -a "$bk_use_pch" != no
48366 then
48367     { echo "$as_me:$LINENO: checking for gcc precompiled header bug" >&5
48368 echo $ECHO_N "checking for gcc precompiled header bug... $ECHO_C" >&6; }
48369 if test "${wx_cv_gcc_pch_bug+set}" = set; then
48370   echo $ECHO_N "(cached) $ECHO_C" >&6
48371 else
48372
48373             echo '#include <stdio.h>
48374                   const wchar_t test_var[] = L"awidetest";' > conftest.h
48375
48376             echo '#include "conftest.h"
48377                   int main()
48378                   {
48379                      printf("%ls", test_var);
48380                      return 0;
48381                   }' > conftest.cpp
48382
48383             wx_cv_gcc_pch_bug="pch not supported"
48384
48385             if $CXX conftest.h >/dev/null 2>&1
48386             then
48387                 wx_cv_gcc_pch_bug=
48388
48389                 if $CXX -o conftest$PROGRAM_EXT conftest.cpp >/dev/null 2>&1
48390                 then
48391                     if tr -dc '[a-z]' < conftest$PROGRAM_EXT |
48392                         grep awidetest >/dev/null
48393                     then
48394                         wx_cv_gcc_pch_bug=no
48395                     else
48396                         wx_cv_gcc_pch_bug=yes
48397                     fi
48398                 fi
48399             fi
48400
48401             rm -f conftest.h conftest.gch conftest.cpp conftest$PROGRAM_EXT
48402
48403 fi
48404 { echo "$as_me:$LINENO: result: $wx_cv_gcc_pch_bug" >&5
48405 echo "${ECHO_T}$wx_cv_gcc_pch_bug" >&6; }
48406
48407     if test "$wx_cv_gcc_pch_bug" = yes; then
48408                         bk_use_pch=no
48409     fi
48410 fi
48411
48412
48413
48414
48415
48416
48417
48418     if test "x$BAKEFILE_HOST" = "x"; then
48419                if test "x${host}" = "x" ; then
48420                        { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
48421 echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
48422    { (exit 1); exit 1; }; }
48423                fi
48424
48425         BAKEFILE_HOST="${host}"
48426     fi
48427
48428     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
48429
48430     if test -n "$ac_tool_prefix"; then
48431   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
48432 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
48433 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48435 if test "${ac_cv_prog_RANLIB+set}" = set; then
48436   echo $ECHO_N "(cached) $ECHO_C" >&6
48437 else
48438   if test -n "$RANLIB"; then
48439   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
48440 else
48441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48442 for as_dir in $PATH
48443 do
48444   IFS=$as_save_IFS
48445   test -z "$as_dir" && as_dir=.
48446   for ac_exec_ext in '' $ac_executable_extensions; do
48447   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48448     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
48449     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48450     break 2
48451   fi
48452 done
48453 done
48454 IFS=$as_save_IFS
48455
48456 fi
48457 fi
48458 RANLIB=$ac_cv_prog_RANLIB
48459 if test -n "$RANLIB"; then
48460   { echo "$as_me:$LINENO: result: $RANLIB" >&5
48461 echo "${ECHO_T}$RANLIB" >&6; }
48462 else
48463   { echo "$as_me:$LINENO: result: no" >&5
48464 echo "${ECHO_T}no" >&6; }
48465 fi
48466
48467
48468 fi
48469 if test -z "$ac_cv_prog_RANLIB"; then
48470   ac_ct_RANLIB=$RANLIB
48471   # Extract the first word of "ranlib", so it can be a program name with args.
48472 set dummy ranlib; ac_word=$2
48473 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48475 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
48476   echo $ECHO_N "(cached) $ECHO_C" >&6
48477 else
48478   if test -n "$ac_ct_RANLIB"; then
48479   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
48480 else
48481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48482 for as_dir in $PATH
48483 do
48484   IFS=$as_save_IFS
48485   test -z "$as_dir" && as_dir=.
48486   for ac_exec_ext in '' $ac_executable_extensions; do
48487   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48488     ac_cv_prog_ac_ct_RANLIB="ranlib"
48489     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48490     break 2
48491   fi
48492 done
48493 done
48494 IFS=$as_save_IFS
48495
48496 fi
48497 fi
48498 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
48499 if test -n "$ac_ct_RANLIB"; then
48500   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
48501 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
48502 else
48503   { echo "$as_me:$LINENO: result: no" >&5
48504 echo "${ECHO_T}no" >&6; }
48505 fi
48506
48507   if test "x$ac_ct_RANLIB" = x; then
48508     RANLIB=":"
48509   else
48510     case $cross_compiling:$ac_tool_warned in
48511 yes:)
48512 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
48513 whose name does not start with the host triplet.  If you think this
48514 configuration is useful to you, please write to autoconf@gnu.org." >&5
48515 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
48516 whose name does not start with the host triplet.  If you think this
48517 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
48518 ac_tool_warned=yes ;;
48519 esac
48520     RANLIB=$ac_ct_RANLIB
48521   fi
48522 else
48523   RANLIB="$ac_cv_prog_RANLIB"
48524 fi
48525
48526     # Find a good install program.  We prefer a C program (faster),
48527 # so one script is as good as another.  But avoid the broken or
48528 # incompatible versions:
48529 # SysV /etc/install, /usr/sbin/install
48530 # SunOS /usr/etc/install
48531 # IRIX /sbin/install
48532 # AIX /bin/install
48533 # AmigaOS /C/install, which installs bootblocks on floppy discs
48534 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
48535 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
48536 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
48537 # OS/2's system install, which has a completely different semantic
48538 # ./install, which can be erroneously created by make from ./install.sh.
48539 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
48540 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
48541 if test -z "$INSTALL"; then
48542 if test "${ac_cv_path_install+set}" = set; then
48543   echo $ECHO_N "(cached) $ECHO_C" >&6
48544 else
48545   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48546 for as_dir in $PATH
48547 do
48548   IFS=$as_save_IFS
48549   test -z "$as_dir" && as_dir=.
48550   # Account for people who put trailing slashes in PATH elements.
48551 case $as_dir/ in
48552   ./ | .// | /cC/* | \
48553   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
48554   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
48555   /usr/ucb/* ) ;;
48556   *)
48557     # OSF1 and SCO ODT 3.0 have their own names for install.
48558     # Don't use installbsd from OSF since it installs stuff as root
48559     # by default.
48560     for ac_prog in ginstall scoinst install; do
48561       for ac_exec_ext in '' $ac_executable_extensions; do
48562         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
48563           if test $ac_prog = install &&
48564             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
48565             # AIX install.  It has an incompatible calling convention.
48566             :
48567           elif test $ac_prog = install &&
48568             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
48569             # program-specific install script used by HP pwplus--don't use.
48570             :
48571           else
48572             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
48573             break 3
48574           fi
48575         fi
48576       done
48577     done
48578     ;;
48579 esac
48580 done
48581 IFS=$as_save_IFS
48582
48583
48584 fi
48585   if test "${ac_cv_path_install+set}" = set; then
48586     INSTALL=$ac_cv_path_install
48587   else
48588     # As a last resort, use the slow shell script.  Don't cache a
48589     # value for INSTALL within a source directory, because that will
48590     # break other packages using the cache if that directory is
48591     # removed, or if the value is a relative name.
48592     INSTALL=$ac_install_sh
48593   fi
48594 fi
48595 { echo "$as_me:$LINENO: result: $INSTALL" >&5
48596 echo "${ECHO_T}$INSTALL" >&6; }
48597
48598 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
48599 # It thinks the first close brace ends the variable substitution.
48600 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
48601
48602 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
48603
48604 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
48605
48606     { echo "$as_me:$LINENO: checking whether ln -s works" >&5
48607 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
48608 LN_S=$as_ln_s
48609 if test "$LN_S" = "ln -s"; then
48610   { echo "$as_me:$LINENO: result: yes" >&5
48611 echo "${ECHO_T}yes" >&6; }
48612 else
48613   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
48614 echo "${ECHO_T}no, using $LN_S" >&6; }
48615 fi
48616
48617
48618     { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
48619 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
48620 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
48621 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
48622   echo $ECHO_N "(cached) $ECHO_C" >&6
48623 else
48624   cat >conftest.make <<\_ACEOF
48625 SHELL = /bin/sh
48626 all:
48627         @echo '@@@%%%=$(MAKE)=@@@%%%'
48628 _ACEOF
48629 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
48630 case `${MAKE-make} -f conftest.make 2>/dev/null` in
48631   *@@@%%%=?*=@@@%%%*)
48632     eval ac_cv_prog_make_${ac_make}_set=yes;;
48633   *)
48634     eval ac_cv_prog_make_${ac_make}_set=no;;
48635 esac
48636 rm -f conftest.make
48637 fi
48638 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
48639   { echo "$as_me:$LINENO: result: yes" >&5
48640 echo "${ECHO_T}yes" >&6; }
48641   SET_MAKE=
48642 else
48643   { echo "$as_me:$LINENO: result: no" >&5
48644 echo "${ECHO_T}no" >&6; }
48645   SET_MAKE="MAKE=${MAKE-make}"
48646 fi
48647
48648
48649
48650     if test "x$SUNCXX" = "xyes"; then
48651                                 AR=$CXX
48652         AROPTIONS="-xar -o"
48653
48654     elif test "x$SGICC" = "xyes"; then
48655                 AR=$CXX
48656         AROPTIONS="-ar -o"
48657
48658     else
48659         if test -n "$ac_tool_prefix"; then
48660   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
48661 set dummy ${ac_tool_prefix}ar; ac_word=$2
48662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48664 if test "${ac_cv_prog_AR+set}" = set; then
48665   echo $ECHO_N "(cached) $ECHO_C" >&6
48666 else
48667   if test -n "$AR"; then
48668   ac_cv_prog_AR="$AR" # Let the user override the test.
48669 else
48670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48671 for as_dir in $PATH
48672 do
48673   IFS=$as_save_IFS
48674   test -z "$as_dir" && as_dir=.
48675   for ac_exec_ext in '' $ac_executable_extensions; do
48676   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48677     ac_cv_prog_AR="${ac_tool_prefix}ar"
48678     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48679     break 2
48680   fi
48681 done
48682 done
48683 IFS=$as_save_IFS
48684
48685 fi
48686 fi
48687 AR=$ac_cv_prog_AR
48688 if test -n "$AR"; then
48689   { echo "$as_me:$LINENO: result: $AR" >&5
48690 echo "${ECHO_T}$AR" >&6; }
48691 else
48692   { echo "$as_me:$LINENO: result: no" >&5
48693 echo "${ECHO_T}no" >&6; }
48694 fi
48695
48696
48697 fi
48698 if test -z "$ac_cv_prog_AR"; then
48699   ac_ct_AR=$AR
48700   # Extract the first word of "ar", so it can be a program name with args.
48701 set dummy ar; ac_word=$2
48702 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48704 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
48705   echo $ECHO_N "(cached) $ECHO_C" >&6
48706 else
48707   if test -n "$ac_ct_AR"; then
48708   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
48709 else
48710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48711 for as_dir in $PATH
48712 do
48713   IFS=$as_save_IFS
48714   test -z "$as_dir" && as_dir=.
48715   for ac_exec_ext in '' $ac_executable_extensions; do
48716   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48717     ac_cv_prog_ac_ct_AR="ar"
48718     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48719     break 2
48720   fi
48721 done
48722 done
48723 IFS=$as_save_IFS
48724
48725 fi
48726 fi
48727 ac_ct_AR=$ac_cv_prog_ac_ct_AR
48728 if test -n "$ac_ct_AR"; then
48729   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
48730 echo "${ECHO_T}$ac_ct_AR" >&6; }
48731 else
48732   { echo "$as_me:$LINENO: result: no" >&5
48733 echo "${ECHO_T}no" >&6; }
48734 fi
48735
48736   if test "x$ac_ct_AR" = x; then
48737     AR="ar"
48738   else
48739     case $cross_compiling:$ac_tool_warned in
48740 yes:)
48741 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
48742 whose name does not start with the host triplet.  If you think this
48743 configuration is useful to you, please write to autoconf@gnu.org." >&5
48744 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
48745 whose name does not start with the host triplet.  If you think this
48746 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
48747 ac_tool_warned=yes ;;
48748 esac
48749     AR=$ac_ct_AR
48750   fi
48751 else
48752   AR="$ac_cv_prog_AR"
48753 fi
48754
48755         AROPTIONS=rcu
48756     fi
48757
48758
48759     if test -n "$ac_tool_prefix"; then
48760   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
48761 set dummy ${ac_tool_prefix}strip; ac_word=$2
48762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48764 if test "${ac_cv_prog_STRIP+set}" = set; then
48765   echo $ECHO_N "(cached) $ECHO_C" >&6
48766 else
48767   if test -n "$STRIP"; then
48768   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
48769 else
48770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48771 for as_dir in $PATH
48772 do
48773   IFS=$as_save_IFS
48774   test -z "$as_dir" && as_dir=.
48775   for ac_exec_ext in '' $ac_executable_extensions; do
48776   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48777     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
48778     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48779     break 2
48780   fi
48781 done
48782 done
48783 IFS=$as_save_IFS
48784
48785 fi
48786 fi
48787 STRIP=$ac_cv_prog_STRIP
48788 if test -n "$STRIP"; then
48789   { echo "$as_me:$LINENO: result: $STRIP" >&5
48790 echo "${ECHO_T}$STRIP" >&6; }
48791 else
48792   { echo "$as_me:$LINENO: result: no" >&5
48793 echo "${ECHO_T}no" >&6; }
48794 fi
48795
48796
48797 fi
48798 if test -z "$ac_cv_prog_STRIP"; then
48799   ac_ct_STRIP=$STRIP
48800   # Extract the first word of "strip", so it can be a program name with args.
48801 set dummy strip; ac_word=$2
48802 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48804 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
48805   echo $ECHO_N "(cached) $ECHO_C" >&6
48806 else
48807   if test -n "$ac_ct_STRIP"; then
48808   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
48809 else
48810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48811 for as_dir in $PATH
48812 do
48813   IFS=$as_save_IFS
48814   test -z "$as_dir" && as_dir=.
48815   for ac_exec_ext in '' $ac_executable_extensions; do
48816   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48817     ac_cv_prog_ac_ct_STRIP="strip"
48818     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48819     break 2
48820   fi
48821 done
48822 done
48823 IFS=$as_save_IFS
48824
48825 fi
48826 fi
48827 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
48828 if test -n "$ac_ct_STRIP"; then
48829   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
48830 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
48831 else
48832   { echo "$as_me:$LINENO: result: no" >&5
48833 echo "${ECHO_T}no" >&6; }
48834 fi
48835
48836   if test "x$ac_ct_STRIP" = x; then
48837     STRIP=":"
48838   else
48839     case $cross_compiling:$ac_tool_warned in
48840 yes:)
48841 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
48842 whose name does not start with the host triplet.  If you think this
48843 configuration is useful to you, please write to autoconf@gnu.org." >&5
48844 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
48845 whose name does not start with the host triplet.  If you think this
48846 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
48847 ac_tool_warned=yes ;;
48848 esac
48849     STRIP=$ac_ct_STRIP
48850   fi
48851 else
48852   STRIP="$ac_cv_prog_STRIP"
48853 fi
48854
48855     if test -n "$ac_tool_prefix"; then
48856   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
48857 set dummy ${ac_tool_prefix}nm; ac_word=$2
48858 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48860 if test "${ac_cv_prog_NM+set}" = set; then
48861   echo $ECHO_N "(cached) $ECHO_C" >&6
48862 else
48863   if test -n "$NM"; then
48864   ac_cv_prog_NM="$NM" # Let the user override the test.
48865 else
48866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48867 for as_dir in $PATH
48868 do
48869   IFS=$as_save_IFS
48870   test -z "$as_dir" && as_dir=.
48871   for ac_exec_ext in '' $ac_executable_extensions; do
48872   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48873     ac_cv_prog_NM="${ac_tool_prefix}nm"
48874     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48875     break 2
48876   fi
48877 done
48878 done
48879 IFS=$as_save_IFS
48880
48881 fi
48882 fi
48883 NM=$ac_cv_prog_NM
48884 if test -n "$NM"; then
48885   { echo "$as_me:$LINENO: result: $NM" >&5
48886 echo "${ECHO_T}$NM" >&6; }
48887 else
48888   { echo "$as_me:$LINENO: result: no" >&5
48889 echo "${ECHO_T}no" >&6; }
48890 fi
48891
48892
48893 fi
48894 if test -z "$ac_cv_prog_NM"; then
48895   ac_ct_NM=$NM
48896   # Extract the first word of "nm", so it can be a program name with args.
48897 set dummy nm; ac_word=$2
48898 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48900 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
48901   echo $ECHO_N "(cached) $ECHO_C" >&6
48902 else
48903   if test -n "$ac_ct_NM"; then
48904   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
48905 else
48906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48907 for as_dir in $PATH
48908 do
48909   IFS=$as_save_IFS
48910   test -z "$as_dir" && as_dir=.
48911   for ac_exec_ext in '' $ac_executable_extensions; do
48912   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48913     ac_cv_prog_ac_ct_NM="nm"
48914     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48915     break 2
48916   fi
48917 done
48918 done
48919 IFS=$as_save_IFS
48920
48921 fi
48922 fi
48923 ac_ct_NM=$ac_cv_prog_ac_ct_NM
48924 if test -n "$ac_ct_NM"; then
48925   { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
48926 echo "${ECHO_T}$ac_ct_NM" >&6; }
48927 else
48928   { echo "$as_me:$LINENO: result: no" >&5
48929 echo "${ECHO_T}no" >&6; }
48930 fi
48931
48932   if test "x$ac_ct_NM" = x; then
48933     NM=":"
48934   else
48935     case $cross_compiling:$ac_tool_warned in
48936 yes:)
48937 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
48938 whose name does not start with the host triplet.  If you think this
48939 configuration is useful to you, please write to autoconf@gnu.org." >&5
48940 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
48941 whose name does not start with the host triplet.  If you think this
48942 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
48943 ac_tool_warned=yes ;;
48944 esac
48945     NM=$ac_ct_NM
48946   fi
48947 else
48948   NM="$ac_cv_prog_NM"
48949 fi
48950
48951
48952             { echo "$as_me:$LINENO: checking for command to install directories" >&5
48953 echo $ECHO_N "checking for command to install directories... $ECHO_C" >&6; }
48954     INSTALL_TEST_DIR=acbftest$$
48955     $INSTALL -d $INSTALL_TEST_DIR > /dev/null 2>&1
48956     if test $? = 0 -a -d $INSTALL_TEST_DIR; then
48957         rmdir $INSTALL_TEST_DIR
48958                         INSTALL_DIR='$(INSTALL) -d'
48959         { echo "$as_me:$LINENO: result: $INSTALL -d" >&5
48960 echo "${ECHO_T}$INSTALL -d" >&6; }
48961     else
48962         INSTALL_DIR="mkdir -p"
48963         { echo "$as_me:$LINENO: result: mkdir -p" >&5
48964 echo "${ECHO_T}mkdir -p" >&6; }
48965     fi
48966
48967
48968     LDFLAGS_GUI=
48969     case ${BAKEFILE_HOST} in
48970         *-*-cygwin* | *-*-mingw32* )
48971         LDFLAGS_GUI="-mwindows"
48972     esac
48973
48974
48975     fi
48976
48977         { echo "$as_me:$LINENO: checking if make is GNU make" >&5
48978 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6; }
48979 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
48980   echo $ECHO_N "(cached) $ECHO_C" >&6
48981 else
48982
48983         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
48984                 egrep -s GNU > /dev/null); then
48985             bakefile_cv_prog_makeisgnu="yes"
48986         else
48987             bakefile_cv_prog_makeisgnu="no"
48988         fi
48989
48990 fi
48991 { echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
48992 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6; }
48993
48994     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
48995         IF_GNU_MAKE=""
48996     else
48997         IF_GNU_MAKE="#"
48998     fi
48999
49000
49001
49002     PLATFORM_UNIX=0
49003     PLATFORM_WIN32=0
49004     PLATFORM_MSDOS=0
49005     PLATFORM_MAC=0
49006     PLATFORM_MACOS=0
49007     PLATFORM_MACOSX=0
49008     PLATFORM_OS2=0
49009     PLATFORM_BEOS=0
49010
49011     if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
49012         case "${BAKEFILE_HOST}" in
49013             *-*-mingw32* )
49014                 PLATFORM_WIN32=1
49015             ;;
49016             *-pc-msdosdjgpp )
49017                 PLATFORM_MSDOS=1
49018             ;;
49019             *-pc-os2_emx | *-pc-os2-emx )
49020                 PLATFORM_OS2=1
49021             ;;
49022             *-*-darwin* )
49023                 PLATFORM_MAC=1
49024                 PLATFORM_MACOSX=1
49025             ;;
49026             *-*-beos* )
49027                 PLATFORM_BEOS=1
49028             ;;
49029             powerpc-apple-macos* )
49030                 PLATFORM_MAC=1
49031                 PLATFORM_MACOS=1
49032             ;;
49033             * )
49034                 PLATFORM_UNIX=1
49035             ;;
49036         esac
49037     else
49038         case "$BAKEFILE_FORCE_PLATFORM" in
49039             win32 )
49040                 PLATFORM_WIN32=1
49041             ;;
49042             msdos )
49043                 PLATFORM_MSDOS=1
49044             ;;
49045             os2 )
49046                 PLATFORM_OS2=1
49047             ;;
49048             darwin )
49049                 PLATFORM_MAC=1
49050                 PLATFORM_MACOSX=1
49051             ;;
49052             unix )
49053                 PLATFORM_UNIX=1
49054             ;;
49055             beos )
49056                 PLATFORM_BEOS=1
49057             ;;
49058             * )
49059                 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
49060 echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
49061    { (exit 1); exit 1; }; }
49062             ;;
49063         esac
49064     fi
49065
49066
49067
49068
49069
49070
49071
49072
49073
49074
49075
49076     # Check whether --enable-omf was given.
49077 if test "${enable_omf+set}" = set; then
49078   enableval=$enable_omf; bk_os2_use_omf="$enableval"
49079 fi
49080
49081
49082     case "${BAKEFILE_HOST}" in
49083       *-*-darwin* )
49084                         if test "x$GCC" = "xyes"; then
49085             CFLAGS="$CFLAGS -fno-common"
49086             CXXFLAGS="$CXXFLAGS -fno-common"
49087         fi
49088         if test "x$XLCC" = "xyes"; then
49089             CFLAGS="$CFLAGS -qnocommon"
49090             CXXFLAGS="$CXXFLAGS -qnocommon"
49091         fi
49092         ;;
49093
49094       *-pc-os2_emx | *-pc-os2-emx )
49095         if test "x$bk_os2_use_omf" = "xyes" ; then
49096             AR=emxomfar
49097             RANLIB=:
49098             LDFLAGS="-Zomf $LDFLAGS"
49099             CFLAGS="-Zomf $CFLAGS"
49100             CXXFLAGS="-Zomf $CXXFLAGS"
49101             OS2_LIBEXT="lib"
49102         else
49103             OS2_LIBEXT="a"
49104         fi
49105         ;;
49106
49107       i*86-*-beos* )
49108         LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
49109         ;;
49110     esac
49111
49112
49113     SO_SUFFIX="so"
49114     SO_SUFFIX_MODULE="so"
49115     EXEEXT=""
49116     LIBPREFIX="lib"
49117     LIBEXT=".a"
49118     DLLPREFIX="lib"
49119     DLLPREFIX_MODULE=""
49120     DLLIMP_SUFFIX=""
49121     dlldir="$libdir"
49122
49123     case "${BAKEFILE_HOST}" in
49124                         ia64-hp-hpux* )
49125         ;;
49126         *-hp-hpux* )
49127             SO_SUFFIX="sl"
49128             SO_SUFFIX_MODULE="sl"
49129         ;;
49130         *-*-aix* )
49131                                                                         SO_SUFFIX="a"
49132             SO_SUFFIX_MODULE="a"
49133         ;;
49134         *-*-cygwin* )
49135             SO_SUFFIX="dll"
49136             SO_SUFFIX_MODULE="dll"
49137             DLLIMP_SUFFIX="dll.a"
49138             EXEEXT=".exe"
49139             DLLPREFIX="cyg"
49140             dlldir="$bindir"
49141         ;;
49142         *-*-mingw32* )
49143             SO_SUFFIX="dll"
49144             SO_SUFFIX_MODULE="dll"
49145             DLLIMP_SUFFIX="dll.a"
49146             EXEEXT=".exe"
49147             DLLPREFIX=""
49148             dlldir="$bindir"
49149         ;;
49150         *-pc-msdosdjgpp )
49151             EXEEXT=".exe"
49152             DLLPREFIX=""
49153             dlldir="$bindir"
49154         ;;
49155         *-pc-os2_emx | *-pc-os2-emx )
49156             SO_SUFFIX="dll"
49157             SO_SUFFIX_MODULE="dll"
49158             DLLIMP_SUFFIX=$OS2_LIBEXT
49159             EXEEXT=".exe"
49160             DLLPREFIX=""
49161             LIBPREFIX=""
49162             LIBEXT=".$OS2_LIBEXT"
49163             dlldir="$bindir"
49164         ;;
49165         *-*-darwin* )
49166             SO_SUFFIX="dylib"
49167             SO_SUFFIX_MODULE="bundle"
49168         ;;
49169     esac
49170
49171     if test "x$DLLIMP_SUFFIX" = "x" ; then
49172         DLLIMP_SUFFIX="$SO_SUFFIX"
49173     fi
49174
49175
49176
49177
49178
49179
49180
49181
49182
49183
49184
49185
49186         PIC_FLAG=""
49187     if test "x$GCC" = "xyes"; then
49188                 PIC_FLAG="-fPIC"
49189     fi
49190
49191         SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
49192     SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
49193     WINDOWS_IMPLIB=0
49194
49195     case "${BAKEFILE_HOST}" in
49196       *-hp-hpux* )
49197                 if test "x$GCC" != "xyes"; then
49198                         LDFLAGS="$LDFLAGS -L/usr/lib"
49199
49200             SHARED_LD_CC="${CC} -b -o"
49201             SHARED_LD_CXX="${CXX} -b -o"
49202             PIC_FLAG="+Z"
49203         fi
49204       ;;
49205
49206       *-*-linux* )
49207                         if test "$INTELCC" = "yes" -a "$INTELCC8" != "yes"; then
49208             PIC_FLAG="-KPIC"
49209         elif test "x$SUNCXX" = "xyes"; then
49210             SHARED_LD_CC="${CC} -G -o"
49211             SHARED_LD_CXX="${CXX} -G -o"
49212             PIC_FLAG="-KPIC"
49213         fi
49214       ;;
49215
49216       *-*-solaris2* )
49217         if test "x$SUNCXX" = xyes ; then
49218             SHARED_LD_CC="${CC} -G -o"
49219             SHARED_LD_CXX="${CXX} -G -o"
49220             PIC_FLAG="-KPIC"
49221         fi
49222       ;;
49223
49224       *-*-darwin* )
49225
49226 D='$'
49227 cat <<EOF >shared-ld-sh
49228 #!/bin/sh
49229 #-----------------------------------------------------------------------------
49230 #-- Name:        distrib/mac/shared-ld-sh
49231 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
49232 #-- Author:      Gilles Depeyrot
49233 #-- Copyright:   (c) 2002 Gilles Depeyrot
49234 #-- Licence:     any use permitted
49235 #-----------------------------------------------------------------------------
49236
49237 verbose=0
49238 args=""
49239 objects=""
49240 linking_flag="-dynamiclib"
49241 ldargs="-r -keep_private_externs -nostdlib"
49242
49243 if test "x${D}CXX" = "x"; then
49244     CXX="c++"
49245 fi
49246
49247 while test ${D}# -gt 0; do
49248     case ${D}1 in
49249
49250        -v)
49251         verbose=1
49252         ;;
49253
49254        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
49255         # collect these options and values
49256         args="${D}{args} ${D}1 ${D}2"
49257         shift
49258         ;;
49259
49260        -arch|-isysroot)
49261         # collect these options and values
49262         ldargs="${D}{ldargs} ${D}1 ${D}2"
49263         shift
49264         ;;
49265
49266        -s|-Wl,*)
49267         # collect these load args
49268         ldargs="${D}{ldargs} ${D}1"
49269         ;;
49270
49271        -l*|-L*|-flat_namespace|-headerpad_max_install_names)
49272         # collect these options
49273         args="${D}{args} ${D}1"
49274         ;;
49275
49276        -dynamiclib|-bundle)
49277         linking_flag="${D}1"
49278         ;;
49279
49280        -*)
49281         echo "shared-ld: unhandled option '${D}1'"
49282         exit 1
49283         ;;
49284
49285         *.o | *.a | *.dylib)
49286         # collect object files
49287         objects="${D}{objects} ${D}1"
49288         ;;
49289
49290         *)
49291         echo "shared-ld: unhandled argument '${D}1'"
49292         exit 1
49293         ;;
49294
49295     esac
49296     shift
49297 done
49298
49299 status=0
49300
49301 #
49302 # Link one module containing all the others
49303 #
49304 if test ${D}{verbose} = 1; then
49305     echo "${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
49306 fi
49307 ${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
49308 status=${D}?
49309
49310 #
49311 # Link the shared library from the single module created, but only if the
49312 # previous command didn't fail:
49313 #
49314 if test ${D}{status} = 0; then
49315     if test ${D}{verbose} = 1; then
49316         echo "${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
49317     fi
49318     ${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}
49319     status=${D}?
49320 fi
49321
49322 #
49323 # Remove intermediate module
49324 #
49325 rm -f master.${D}${D}.o
49326
49327 exit ${D}status
49328 EOF
49329
49330         chmod +x shared-ld-sh
49331
49332         SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
49333         SHARED_LD_MODULE_CXX="CXX=\"\$(CXX)\" $SHARED_LD_MODULE_CC"
49334
49335
49336                                 { echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
49337 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6; }
49338 if test "${bakefile_cv_gcc31+set}" = set; then
49339   echo $ECHO_N "(cached) $ECHO_C" >&6
49340 else
49341
49342            cat >conftest.$ac_ext <<_ACEOF
49343 /* confdefs.h.  */
49344 _ACEOF
49345 cat confdefs.h >>conftest.$ac_ext
49346 cat >>conftest.$ac_ext <<_ACEOF
49347 /* end confdefs.h.  */
49348
49349 int
49350 main ()
49351 {
49352
49353                    #if (__GNUC__ < 3) || \
49354                        ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
49355                        This is old gcc
49356                    #endif
49357
49358   ;
49359   return 0;
49360 }
49361 _ACEOF
49362 rm -f conftest.$ac_objext
49363 if { (ac_try="$ac_compile"
49364 case "(($ac_try" in
49365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49366   *) ac_try_echo=$ac_try;;
49367 esac
49368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49369   (eval "$ac_compile") 2>conftest.er1
49370   ac_status=$?
49371   grep -v '^ *+' conftest.er1 >conftest.err
49372   rm -f conftest.er1
49373   cat conftest.err >&5
49374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49375   (exit $ac_status); } && {
49376          test -z "$ac_c_werror_flag" ||
49377          test ! -s conftest.err
49378        } && test -s conftest.$ac_objext; then
49379
49380                    bakefile_cv_gcc31=yes
49381
49382 else
49383   echo "$as_me: failed program was:" >&5
49384 sed 's/^/| /' conftest.$ac_ext >&5
49385
49386
49387                    bakefile_cv_gcc31=no
49388
49389
49390 fi
49391
49392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49393
49394 fi
49395 { echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
49396 echo "${ECHO_T}$bakefile_cv_gcc31" >&6; }
49397         if test "$bakefile_cv_gcc31" = "no"; then
49398                         SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
49399             SHARED_LD_CXX="$SHARED_LD_CC"
49400         else
49401                         SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
49402             SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
49403         fi
49404
49405         if test "x$GCC" == "xyes"; then
49406             PIC_FLAG="-dynamic -fPIC"
49407         fi
49408         if test "x$XLCC" = "xyes"; then
49409             PIC_FLAG="-dynamic -DPIC"
49410         fi
49411       ;;
49412
49413       *-*-aix* )
49414         if test "x$GCC" = "xyes"; then
49415                                                             PIC_FLAG=""
49416
49417                                                                                     case "${BAKEFILE_HOST}" in
49418                 *-*-aix5* )
49419                     LD_EXPFULL="-Wl,-bexpfull"
49420                     ;;
49421             esac
49422
49423             SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
49424             SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
49425         else
49426                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
49427 set dummy makeC++SharedLib; ac_word=$2
49428 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49430 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
49431   echo $ECHO_N "(cached) $ECHO_C" >&6
49432 else
49433   if test -n "$AIX_CXX_LD"; then
49434   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
49435 else
49436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49437 for as_dir in $PATH
49438 do
49439   IFS=$as_save_IFS
49440   test -z "$as_dir" && as_dir=.
49441   for ac_exec_ext in '' $ac_executable_extensions; do
49442   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49443     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
49444     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49445     break 2
49446   fi
49447 done
49448 done
49449 IFS=$as_save_IFS
49450
49451   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
49452 fi
49453 fi
49454 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
49455 if test -n "$AIX_CXX_LD"; then
49456   { echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
49457 echo "${ECHO_T}$AIX_CXX_LD" >&6; }
49458 else
49459   { echo "$as_me:$LINENO: result: no" >&5
49460 echo "${ECHO_T}no" >&6; }
49461 fi
49462
49463
49464             SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
49465             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
49466         fi
49467       ;;
49468
49469       *-*-beos* )
49470                         SHARED_LD_CC="${LD} -nostart -o"
49471         SHARED_LD_CXX="${LD} -nostart -o"
49472       ;;
49473
49474       *-*-irix* )
49475                 if test "x$GCC" != "xyes"; then
49476             PIC_FLAG="-KPIC"
49477         fi
49478       ;;
49479
49480       *-*-cygwin* | *-*-mingw32* )
49481         PIC_FLAG=""
49482         SHARED_LD_CC="\$(CC) -shared -o"
49483         SHARED_LD_CXX="\$(CXX) -shared -o"
49484         WINDOWS_IMPLIB=1
49485       ;;
49486
49487       *-pc-os2_emx | *-pc-os2-emx )
49488         SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
49489         SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
49490         PIC_FLAG=""
49491
49492 D='$'
49493 cat <<EOF >dllar.sh
49494 #!/bin/sh
49495 #
49496 # dllar - a tool to build both a .dll and an .a file
49497 # from a set of object (.o) files for EMX/OS2.
49498 #
49499 #  Written by Andrew Zabolotny, bit@freya.etu.ru
49500 #  Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
49501 #
49502 #  This script will accept a set of files on the command line.
49503 #  All the public symbols from the .o files will be exported into
49504 #  a .DEF file, then linker will be run (through gcc) against them to
49505 #  build a shared library consisting of all given .o files. All libraries
49506 #  (.a) will be first decompressed into component .o files then act as
49507 #  described above. You can optionally give a description (-d "description")
49508 #  which will be put into .DLL. To see the list of accepted options (as well
49509 #  as command-line format) simply run this program without options. The .DLL
49510 #  is built to be imported by name (there is no guarantee that new versions
49511 #  of the library you build will have same ordinals for same symbols).
49512 #
49513 #  dllar is free software; you can redistribute it and/or modify
49514 #  it under the terms of the GNU General Public License as published by
49515 #  the Free Software Foundation; either version 2, or (at your option)
49516 #  any later version.
49517 #
49518 #  dllar is distributed in the hope that it will be useful,
49519 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
49520 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
49521 #  GNU General Public License for more details.
49522 #
49523 #  You should have received a copy of the GNU General Public License
49524 #  along with dllar; see the file COPYING.  If not, write to the Free
49525 #  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
49526 #  02111-1307, USA.
49527
49528 # To successfuly run this program you will need:
49529 #  - Current drive should have LFN support (HPFS, ext2, network, etc)
49530 #    (Sometimes dllar generates filenames which won't fit 8.3 scheme)
49531 #  - gcc
49532 #    (used to build the .dll)
49533 #  - emxexp
49534 #    (used to create .def file from .o files)
49535 #  - emximp
49536 #    (used to create .a file from .def file)
49537 #  - GNU text utilites (cat, sort, uniq)
49538 #    used to process emxexp output
49539 #  - GNU file utilities (mv, rm)
49540 #  - GNU sed
49541 #  - lxlite (optional, see flag below)
49542 #    (used for general .dll cleanup)
49543 #
49544
49545 flag_USE_LXLITE=1;
49546
49547 #
49548 # helper functions
49549 # basnam, variant of basename, which does _not_ remove the path, _iff_
49550 #                              second argument (suffix to remove) is given
49551 basnam(){
49552     case ${D}# in
49553     1)
49554         echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
49555         ;;
49556     2)
49557         echo ${D}1 | sed 's/'${D}2'${D}//'
49558         ;;
49559     *)
49560         echo "error in basnam ${D}*"
49561         exit 8
49562         ;;
49563     esac
49564 }
49565
49566 # Cleanup temporary files and output
49567 CleanUp() {
49568     cd ${D}curDir
49569     for i in ${D}inputFiles ; do
49570         case ${D}i in
49571         *!)
49572             rm -rf \`basnam ${D}i !\`
49573             ;;
49574         *)
49575             ;;
49576         esac
49577     done
49578
49579     # Kill result in case of failure as there is just to many stupid make/nmake
49580     # things out there which doesn't do this.
49581     if [ ${D}# -eq 0 ]; then
49582         rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
49583     fi
49584 }
49585
49586 # Print usage and exit script with rc=1.
49587 PrintHelp() {
49588  echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
49589  echo '       [-name-mangler-script script.sh]'
49590  echo '       [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
49591  echo '       [-ord[inals]] -ex[clude] "symbol(s)"'
49592  echo '       [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
49593  echo '       [*.o] [*.a]'
49594  echo '*> "output_file" should have no extension.'
49595  echo '   If it has the .o, .a or .dll extension, it is automatically removed.'
49596  echo '   The import library name is derived from this and is set to "name".a,'
49597  echo '   unless overridden by -import'
49598  echo '*> "importlib_name" should have no extension.'
49599  echo '   If it has the .o, or .a extension, it is automatically removed.'
49600  echo '   This name is used as the import library name and may be longer and'
49601  echo '   more descriptive than the DLL name which has to follow the old '
49602  echo '   8.3 convention of FAT.'
49603  echo '*> "script.sh may be given to override the output_file name by a'
49604  echo '   different name. It is mainly useful if the regular make process'
49605  echo '   of some package does not take into account OS/2 restriction of'
49606  echo '   DLL name lengths. It takes the importlib name as input and is'
49607  echo '   supposed to procude a shorter name as output. The script should'
49608  echo '   expect to get importlib_name without extension and should produce'
49609  echo '   a (max.) 8 letter name without extension.'
49610  echo '*> "cc" is used to use another GCC executable.   (default: gcc.exe)'
49611  echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
49612  echo '   These flags will be put at the start of GCC command line.'
49613  echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
49614  echo '*> -ex[clude] defines symbols which will not be exported. You can define'
49615  echo '   multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
49616  echo '   If the last character of a symbol is "*", all symbols beginning'
49617  echo '   with the prefix before "*" will be exclude, (see _GLOBAL* above).'
49618  echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
49619  echo '   TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
49620  echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
49621  echo '   C runtime DLLs.'
49622  echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
49623  echo '*> All other switches (for example -L./ or -lmylib) will be passed'
49624  echo '   unchanged to GCC at the end of command line.'
49625  echo '*> If you create a DLL from a library and you do not specify -o,'
49626  echo '   the basename for DLL and import library will be set to library name,'
49627  echo '   the initial library will be renamed to 'name'_s.a (_s for static)'
49628  echo '   i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
49629  echo '   library will be renamed into gcc_s.a.'
49630  echo '--------'
49631  echo 'Example:'
49632  echo '   dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
49633  echo '    -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
49634  CleanUp
49635  exit 1
49636 }
49637
49638 # Execute a command.
49639 # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
49640 # @Uses    Whatever CleanUp() uses.
49641 doCommand() {
49642     echo "${D}*"
49643     eval ${D}*
49644     rcCmd=${D}?
49645
49646     if [ ${D}rcCmd -ne 0 ]; then
49647         echo "command failed, exit code="${D}rcCmd
49648         CleanUp
49649         exit ${D}rcCmd
49650     fi
49651 }
49652
49653 # main routine
49654 # setup globals
49655 cmdLine=${D}*
49656 outFile=""
49657 outimpFile=""
49658 inputFiles=""
49659 renameScript=""
49660 description=""
49661 CC=gcc.exe
49662 CFLAGS="-s -Zcrtdll"
49663 EXTRA_CFLAGS=""
49664 EXPORT_BY_ORDINALS=0
49665 exclude_symbols=""
49666 library_flags=""
49667 curDir=\`pwd\`
49668 curDirS=curDir
49669 case ${D}curDirS in
49670 */)
49671   ;;
49672 *)
49673   curDirS=${D}{curDirS}"/"
49674   ;;
49675 esac
49676 # Parse commandline
49677 libsToLink=0
49678 omfLinking=0
49679 while [ ${D}1 ]; do
49680     case ${D}1 in
49681     -ord*)
49682         EXPORT_BY_ORDINALS=1;
49683         ;;
49684     -o*)
49685         shift
49686         outFile=${D}1
49687         ;;
49688     -i*)
49689         shift
49690         outimpFile=${D}1
49691         ;;
49692     -name-mangler-script)
49693         shift
49694         renameScript=${D}1
49695         ;;
49696     -d*)
49697         shift
49698         description=${D}1
49699         ;;
49700     -f*)
49701         shift
49702         CFLAGS=${D}1
49703         ;;
49704     -c*)
49705         shift
49706         CC=${D}1
49707         ;;
49708     -h*)
49709         PrintHelp
49710         ;;
49711     -ex*)
49712         shift
49713         exclude_symbols=${D}{exclude_symbols}${D}1" "
49714         ;;
49715     -libf*)
49716         shift
49717         library_flags=${D}{library_flags}${D}1" "
49718         ;;
49719     -nocrt*)
49720         CFLAGS="-s"
49721         ;;
49722     -nolxl*)
49723         flag_USE_LXLITE=0
49724         ;;
49725     -* | /*)
49726         case ${D}1 in
49727         -L* | -l*)
49728             libsToLink=1
49729             ;;
49730         -Zomf)
49731             omfLinking=1
49732             ;;
49733         *)
49734             ;;
49735         esac
49736         EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
49737         ;;
49738     *.dll)
49739         EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
49740         if [ ${D}omfLinking -eq 1 ]; then
49741             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
49742         else
49743             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
49744         fi
49745         ;;
49746     *)
49747         found=0;
49748         if [ ${D}libsToLink -ne 0 ]; then
49749             EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
49750         else
49751             for file in ${D}1 ; do
49752                 if [ -f ${D}file ]; then
49753                     inputFiles="${D}{inputFiles} ${D}file"
49754                     found=1
49755                 fi
49756             done
49757             if [ ${D}found -eq 0 ]; then
49758                 echo "ERROR: No file(s) found: "${D}1
49759                 exit 8
49760             fi
49761         fi
49762       ;;
49763     esac
49764     shift
49765 done # iterate cmdline words
49766
49767 #
49768 if [ -z "${D}inputFiles" ]; then
49769     echo "dllar: no input files"
49770     PrintHelp
49771 fi
49772
49773 # Now extract all .o files from .a files
49774 newInputFiles=""
49775 for file in ${D}inputFiles ; do
49776     case ${D}file in
49777     *.a | *.lib)
49778         case ${D}file in
49779         *.a)
49780             suffix=".a"
49781             AR="ar"
49782             ;;
49783         *.lib)
49784             suffix=".lib"
49785             AR="emxomfar"
49786             EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
49787             ;;
49788         *)
49789             ;;
49790         esac
49791         dirname=\`basnam ${D}file ${D}suffix\`"_%"
49792         mkdir ${D}dirname
49793         if [ ${D}? -ne 0 ]; then
49794             echo "Failed to create subdirectory ./${D}dirname"
49795             CleanUp
49796             exit 8;
49797         fi
49798         # Append '!' to indicate archive
49799         newInputFiles="${D}newInputFiles ${D}{dirname}!"
49800         doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
49801         cd ${D}curDir
49802         found=0;
49803         for subfile in ${D}dirname/*.o* ; do
49804             if [ -f ${D}subfile ]; then
49805                 found=1
49806                 if [ -s ${D}subfile ]; then
49807                     # FIXME: This should be: is file size > 32 byte, _not_ > 0!
49808                     newInputFiles="${D}newInputFiles ${D}subfile"
49809                 fi
49810             fi
49811         done
49812         if [ ${D}found -eq 0 ]; then
49813             echo "WARNING: there are no files in archive \\'${D}file\\'"
49814         fi
49815         ;;
49816     *)
49817         newInputFiles="${D}{newInputFiles} ${D}file"
49818         ;;
49819     esac
49820 done
49821 inputFiles="${D}newInputFiles"
49822
49823 # Output filename(s).
49824 do_backup=0;
49825 if [ -z ${D}outFile ]; then
49826     do_backup=1;
49827     set outFile ${D}inputFiles; outFile=${D}2
49828 fi
49829
49830 # If it is an archive, remove the '!' and the '_%' suffixes
49831 case ${D}outFile in
49832 *_%!)
49833     outFile=\`basnam ${D}outFile _%!\`
49834     ;;
49835 *)
49836     ;;
49837 esac
49838 case ${D}outFile in
49839 *.dll)
49840     outFile=\`basnam ${D}outFile .dll\`
49841     ;;
49842 *.DLL)
49843     outFile=\`basnam ${D}outFile .DLL\`
49844     ;;
49845 *.o)
49846     outFile=\`basnam ${D}outFile .o\`
49847     ;;
49848 *.obj)
49849     outFile=\`basnam ${D}outFile .obj\`
49850     ;;
49851 *.a)
49852     outFile=\`basnam ${D}outFile .a\`
49853     ;;
49854 *.lib)
49855     outFile=\`basnam ${D}outFile .lib\`
49856     ;;
49857 *)
49858     ;;
49859 esac
49860 case ${D}outimpFile in
49861 *.a)
49862     outimpFile=\`basnam ${D}outimpFile .a\`
49863     ;;
49864 *.lib)
49865     outimpFile=\`basnam ${D}outimpFile .lib\`
49866     ;;
49867 *)
49868     ;;
49869 esac
49870 if [ -z ${D}outimpFile ]; then
49871     outimpFile=${D}outFile
49872 fi
49873 defFile="${D}{outFile}.def"
49874 arcFile="${D}{outimpFile}.a"
49875 arcFile2="${D}{outimpFile}.lib"
49876
49877 #create ${D}dllFile as something matching 8.3 restrictions,
49878 if [ -z ${D}renameScript ] ; then
49879     dllFile="${D}outFile"
49880 else
49881     dllFile=\`${D}renameScript ${D}outimpFile\`
49882 fi
49883
49884 if [ ${D}do_backup -ne 0 ] ; then
49885     if [ -f ${D}arcFile ] ; then
49886         doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
49887     fi
49888     if [ -f ${D}arcFile2 ] ; then
49889         doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
49890     fi
49891 fi
49892
49893 # Extract public symbols from all the object files.
49894 tmpdefFile=${D}{defFile}_%
49895 rm -f ${D}tmpdefFile
49896 for file in ${D}inputFiles ; do
49897     case ${D}file in
49898     *!)
49899         ;;
49900     *)
49901         doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
49902         ;;
49903     esac
49904 done
49905
49906 # Create the def file.
49907 rm -f ${D}defFile
49908 echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
49909 dllFile="${D}{dllFile}.dll"
49910 if [ ! -z ${D}description ]; then
49911     echo "DESCRIPTION  \\"${D}{description}\\"" >> ${D}defFile
49912 fi
49913 echo "EXPORTS" >> ${D}defFile
49914
49915 doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
49916 grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
49917
49918 # Checks if the export is ok or not.
49919 for word in ${D}exclude_symbols; do
49920     grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
49921     mv ${D}{tmpdefFile}% ${D}tmpdefFile
49922 done
49923
49924
49925 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
49926     sed "=" < ${D}tmpdefFile | \\
49927     sed '
49928       N
49929       : loop
49930       s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
49931       t loop
49932     ' > ${D}{tmpdefFile}%
49933     grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
49934 else
49935     rm -f ${D}{tmpdefFile}%
49936 fi
49937 cat ${D}tmpdefFile >> ${D}defFile
49938 rm -f ${D}tmpdefFile
49939
49940 # Do linking, create implib, and apply lxlite.
49941 gccCmdl="";
49942 for file in ${D}inputFiles ; do
49943     case ${D}file in
49944     *!)
49945         ;;
49946     *)
49947         gccCmdl="${D}gccCmdl ${D}file"
49948         ;;
49949     esac
49950 done
49951 doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
49952 touch "${D}{outFile}.dll"
49953
49954 doCommand "emximp -o ${D}arcFile ${D}defFile"
49955 if [ ${D}flag_USE_LXLITE -ne 0 ]; then
49956     add_flags="";
49957     if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
49958         add_flags="-ynd"
49959     fi
49960     doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
49961 fi
49962 doCommand "emxomf -s -l ${D}arcFile"
49963
49964 # Successful exit.
49965 CleanUp 1
49966 exit 0
49967 EOF
49968
49969         chmod +x dllar.sh
49970       ;;
49971
49972       powerpc-apple-macos* | \
49973       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
49974       *-*-mirbsd* | \
49975       *-*-sunos4* | \
49976       *-*-osf* | \
49977       *-*-dgux5* | \
49978       *-*-sysv5* | \
49979       *-pc-msdosdjgpp )
49980               ;;
49981
49982       *)
49983         { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
49984 echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
49985    { (exit 1); exit 1; }; }
49986     esac
49987
49988     if test "x$PIC_FLAG" != "x" ; then
49989         PIC_FLAG="$PIC_FLAG -DPIC"
49990     fi
49991
49992     if test "x$SHARED_LD_MODULE_CC" = "x" ; then
49993         SHARED_LD_MODULE_CC="$SHARED_LD_CC"
49994     fi
49995     if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
49996         SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
49997     fi
49998
49999
50000
50001
50002
50003
50004
50005
50006
50007     USE_SOVERSION=0
50008     USE_SOVERLINUX=0
50009     USE_SOVERSOLARIS=0
50010     USE_SOVERCYGWIN=0
50011     USE_SOTWOSYMLINKS=0
50012     USE_MACVERSION=0
50013     SONAME_FLAG=
50014
50015     case "${BAKEFILE_HOST}" in
50016       *-*-linux* | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
50017       *-*-k*bsd*-gnu | *-*-mirbsd* )
50018         if test "x$SUNCXX" = "xyes"; then
50019             SONAME_FLAG="-h "
50020         else
50021             SONAME_FLAG="-Wl,-soname,"
50022         fi
50023         USE_SOVERSION=1
50024         USE_SOVERLINUX=1
50025         USE_SOTWOSYMLINKS=1
50026       ;;
50027
50028       *-*-solaris2* )
50029         SONAME_FLAG="-h "
50030         USE_SOVERSION=1
50031         USE_SOVERSOLARIS=1
50032       ;;
50033
50034       *-*-darwin* )
50035         USE_MACVERSION=1
50036         USE_SOVERSION=1
50037         USE_SOTWOSYMLINKS=1
50038       ;;
50039
50040       *-*-cygwin* )
50041         USE_SOVERSION=1
50042         USE_SOVERCYGWIN=1
50043       ;;
50044     esac
50045
50046
50047
50048
50049
50050
50051
50052
50053
50054
50055     # Check whether --enable-dependency-tracking was given.
50056 if test "${enable_dependency_tracking+set}" = set; then
50057   enableval=$enable_dependency_tracking; bk_use_trackdeps="$enableval"
50058 fi
50059
50060
50061     { echo "$as_me:$LINENO: checking for dependency tracking method" >&5
50062 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6; }
50063
50064     BK_DEPS=""
50065     if test "x$bk_use_trackdeps" = "xno" ; then
50066         DEPS_TRACKING=0
50067         { echo "$as_me:$LINENO: result: disabled" >&5
50068 echo "${ECHO_T}disabled" >&6; }
50069     else
50070         DEPS_TRACKING=1
50071
50072         if test "x$GCC" = "xyes"; then
50073             DEPSMODE=gcc
50074             case "${BAKEFILE_HOST}" in
50075                 *-*-darwin* )
50076                                                             DEPSFLAG="-no-cpp-precomp -MMD"
50077                 ;;
50078                 * )
50079                     DEPSFLAG="-MMD"
50080                 ;;
50081             esac
50082             { echo "$as_me:$LINENO: result: gcc" >&5
50083 echo "${ECHO_T}gcc" >&6; }
50084         elif test "x$MWCC" = "xyes"; then
50085             DEPSMODE=mwcc
50086             DEPSFLAG="-MM"
50087             { echo "$as_me:$LINENO: result: mwcc" >&5
50088 echo "${ECHO_T}mwcc" >&6; }
50089         elif test "x$SUNCC" = "xyes"; then
50090             DEPSMODE=unixcc
50091             DEPSFLAG="-xM1"
50092             { echo "$as_me:$LINENO: result: Sun cc" >&5
50093 echo "${ECHO_T}Sun cc" >&6; }
50094         elif test "x$SGICC" = "xyes"; then
50095             DEPSMODE=unixcc
50096             DEPSFLAG="-M"
50097             { echo "$as_me:$LINENO: result: SGI cc" >&5
50098 echo "${ECHO_T}SGI cc" >&6; }
50099         elif test "x$HPCC" = "xyes"; then
50100             DEPSMODE=unixcc
50101             DEPSFLAG="+make"
50102             { echo "$as_me:$LINENO: result: HP cc" >&5
50103 echo "${ECHO_T}HP cc" >&6; }
50104         elif test "x$COMPAQCC" = "xyes"; then
50105             DEPSMODE=gcc
50106             DEPSFLAG="-MD"
50107             { echo "$as_me:$LINENO: result: Compaq cc" >&5
50108 echo "${ECHO_T}Compaq cc" >&6; }
50109         else
50110             DEPS_TRACKING=0
50111             { echo "$as_me:$LINENO: result: none" >&5
50112 echo "${ECHO_T}none" >&6; }
50113         fi
50114
50115         if test $DEPS_TRACKING = 1 ; then
50116
50117 D='$'
50118 cat <<EOF >bk-deps
50119 #!/bin/sh
50120
50121 # This script is part of Bakefile (http://www.bakefile.org) autoconf
50122 # script. It is used to track C/C++ files dependencies in portable way.
50123 #
50124 # Permission is given to use this file in any way.
50125
50126 DEPSMODE=${DEPSMODE}
50127 DEPSFLAG="${DEPSFLAG}"
50128 DEPSDIRBASE=.deps
50129
50130 if test ${D}DEPSMODE = gcc ; then
50131     ${D}* ${D}{DEPSFLAG}
50132     status=${D}?
50133
50134     # determine location of created files:
50135     while test ${D}# -gt 0; do
50136         case "${D}1" in
50137             -o )
50138                 shift
50139                 objfile=${D}1
50140             ;;
50141             -* )
50142             ;;
50143             * )
50144                 srcfile=${D}1
50145             ;;
50146         esac
50147         shift
50148     done
50149     objfilebase=\`basename ${D}objfile\`
50150     builddir=\`dirname ${D}objfile\`
50151     depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
50152     depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
50153     depsdir=${D}builddir/${D}DEPSDIRBASE
50154     mkdir -p ${D}depsdir
50155
50156     # if the compiler failed, we're done:
50157     if test ${D}{status} != 0 ; then
50158         rm -f ${D}depfile
50159         exit ${D}{status}
50160     fi
50161
50162     # move created file to the location we want it in:
50163     if test -f ${D}depfile ; then
50164         sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{depsdir}/${D}{objfilebase}.d
50165         rm -f ${D}depfile
50166     else
50167         # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
50168         depfile=\`echo "${D}objfile" | sed -e 's/\\..*${D}/.d/g'\`
50169         if test ! -f ${D}depfile ; then
50170             # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
50171             depfile="${D}objfile.d"
50172         fi
50173         if test -f ${D}depfile ; then
50174             sed -e "\\,^${D}objfile,!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{depsdir}/${D}{objfilebase}.d
50175             rm -f ${D}depfile
50176         fi
50177     fi
50178     exit 0
50179
50180 elif test ${D}DEPSMODE = mwcc ; then
50181     ${D}* || exit ${D}?
50182     # Run mwcc again with -MM and redirect into the dep file we want
50183     # NOTE: We can't use shift here because we need ${D}* to be valid
50184     prevarg=
50185     for arg in ${D}* ; do
50186         if test "${D}prevarg" = "-o"; then
50187             objfile=${D}arg
50188         else
50189             case "${D}arg" in
50190                 -* )
50191                 ;;
50192                 * )
50193                     srcfile=${D}arg
50194                 ;;
50195             esac
50196         fi
50197         prevarg="${D}arg"
50198     done
50199
50200     objfilebase=\`basename ${D}objfile\`
50201     builddir=\`dirname ${D}objfile\`
50202     depsdir=${D}builddir/${D}DEPSDIRBASE
50203     mkdir -p ${D}depsdir
50204
50205     ${D}* ${D}DEPSFLAG >${D}{depsdir}/${D}{objfilebase}.d
50206     exit 0
50207
50208 elif test ${D}DEPSMODE = unixcc; then
50209     ${D}* || exit ${D}?
50210     # Run compiler again with deps flag and redirect into the dep file.
50211     # It doesn't work if the '-o FILE' option is used, but without it the
50212     # dependency file will contain the wrong name for the object. So it is
50213     # removed from the command line, and the dep file is fixed with sed.
50214     cmd=""
50215     while test ${D}# -gt 0; do
50216         case "${D}1" in
50217             -o )
50218                 shift
50219                 objfile=${D}1
50220             ;;
50221             * )
50222                 eval arg${D}#=\\${D}1
50223                 cmd="${D}cmd \\${D}arg${D}#"
50224             ;;
50225         esac
50226         shift
50227     done
50228
50229     objfilebase=\`basename ${D}objfile\`
50230     builddir=\`dirname ${D}objfile\`
50231     depsdir=${D}builddir/${D}DEPSDIRBASE
50232     mkdir -p ${D}depsdir
50233
50234     eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{depsdir}/${D}{objfilebase}.d
50235     exit 0
50236
50237 else
50238     ${D}*
50239     exit ${D}?
50240 fi
50241 EOF
50242
50243             chmod +x bk-deps
50244                                     BK_DEPS="`pwd`/bk-deps"
50245         fi
50246     fi
50247
50248
50249
50250
50251
50252     case ${BAKEFILE_HOST} in
50253         *-*-cygwin* | *-*-mingw32* )
50254                         if test -n "$ac_tool_prefix"; then
50255   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
50256 set dummy ${ac_tool_prefix}windres; ac_word=$2
50257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50259 if test "${ac_cv_prog_WINDRES+set}" = set; then
50260   echo $ECHO_N "(cached) $ECHO_C" >&6
50261 else
50262   if test -n "$WINDRES"; then
50263   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
50264 else
50265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50266 for as_dir in $PATH
50267 do
50268   IFS=$as_save_IFS
50269   test -z "$as_dir" && as_dir=.
50270   for ac_exec_ext in '' $ac_executable_extensions; do
50271   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50272     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
50273     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50274     break 2
50275   fi
50276 done
50277 done
50278 IFS=$as_save_IFS
50279
50280 fi
50281 fi
50282 WINDRES=$ac_cv_prog_WINDRES
50283 if test -n "$WINDRES"; then
50284   { echo "$as_me:$LINENO: result: $WINDRES" >&5
50285 echo "${ECHO_T}$WINDRES" >&6; }
50286 else
50287   { echo "$as_me:$LINENO: result: no" >&5
50288 echo "${ECHO_T}no" >&6; }
50289 fi
50290
50291
50292 fi
50293 if test -z "$ac_cv_prog_WINDRES"; then
50294   ac_ct_WINDRES=$WINDRES
50295   # Extract the first word of "windres", so it can be a program name with args.
50296 set dummy windres; ac_word=$2
50297 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50299 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
50300   echo $ECHO_N "(cached) $ECHO_C" >&6
50301 else
50302   if test -n "$ac_ct_WINDRES"; then
50303   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
50304 else
50305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50306 for as_dir in $PATH
50307 do
50308   IFS=$as_save_IFS
50309   test -z "$as_dir" && as_dir=.
50310   for ac_exec_ext in '' $ac_executable_extensions; do
50311   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50312     ac_cv_prog_ac_ct_WINDRES="windres"
50313     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50314     break 2
50315   fi
50316 done
50317 done
50318 IFS=$as_save_IFS
50319
50320 fi
50321 fi
50322 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
50323 if test -n "$ac_ct_WINDRES"; then
50324   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
50325 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
50326 else
50327   { echo "$as_me:$LINENO: result: no" >&5
50328 echo "${ECHO_T}no" >&6; }
50329 fi
50330
50331   if test "x$ac_ct_WINDRES" = x; then
50332     WINDRES=""
50333   else
50334     case $cross_compiling:$ac_tool_warned in
50335 yes:)
50336 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
50337 whose name does not start with the host triplet.  If you think this
50338 configuration is useful to you, please write to autoconf@gnu.org." >&5
50339 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
50340 whose name does not start with the host triplet.  If you think this
50341 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
50342 ac_tool_warned=yes ;;
50343 esac
50344     WINDRES=$ac_ct_WINDRES
50345   fi
50346 else
50347   WINDRES="$ac_cv_prog_WINDRES"
50348 fi
50349
50350          ;;
50351
50352       *-*-darwin* | powerpc-apple-macos* )
50353             # Extract the first word of "Rez", so it can be a program name with args.
50354 set dummy Rez; ac_word=$2
50355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50357 if test "${ac_cv_prog_REZ+set}" = set; then
50358   echo $ECHO_N "(cached) $ECHO_C" >&6
50359 else
50360   if test -n "$REZ"; then
50361   ac_cv_prog_REZ="$REZ" # Let the user override the test.
50362 else
50363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50364 for as_dir in $PATH
50365 do
50366   IFS=$as_save_IFS
50367   test -z "$as_dir" && as_dir=.
50368   for ac_exec_ext in '' $ac_executable_extensions; do
50369   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50370     ac_cv_prog_REZ="Rez"
50371     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50372     break 2
50373   fi
50374 done
50375 done
50376 IFS=$as_save_IFS
50377
50378   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
50379 fi
50380 fi
50381 REZ=$ac_cv_prog_REZ
50382 if test -n "$REZ"; then
50383   { echo "$as_me:$LINENO: result: $REZ" >&5
50384 echo "${ECHO_T}$REZ" >&6; }
50385 else
50386   { echo "$as_me:$LINENO: result: no" >&5
50387 echo "${ECHO_T}no" >&6; }
50388 fi
50389
50390
50391             # Extract the first word of "SetFile", so it can be a program name with args.
50392 set dummy SetFile; ac_word=$2
50393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50395 if test "${ac_cv_prog_SETFILE+set}" = set; then
50396   echo $ECHO_N "(cached) $ECHO_C" >&6
50397 else
50398   if test -n "$SETFILE"; then
50399   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
50400 else
50401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50402 for as_dir in $PATH
50403 do
50404   IFS=$as_save_IFS
50405   test -z "$as_dir" && as_dir=.
50406   for ac_exec_ext in '' $ac_executable_extensions; do
50407   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50408     ac_cv_prog_SETFILE="SetFile"
50409     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50410     break 2
50411   fi
50412 done
50413 done
50414 IFS=$as_save_IFS
50415
50416   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
50417 fi
50418 fi
50419 SETFILE=$ac_cv_prog_SETFILE
50420 if test -n "$SETFILE"; then
50421   { echo "$as_me:$LINENO: result: $SETFILE" >&5
50422 echo "${ECHO_T}$SETFILE" >&6; }
50423 else
50424   { echo "$as_me:$LINENO: result: no" >&5
50425 echo "${ECHO_T}no" >&6; }
50426 fi
50427
50428
50429         ;;
50430     esac
50431
50432
50433
50434
50435
50436
50437
50438
50439
50440     BAKEFILE_BAKEFILE_M4_VERSION="0.2.8"
50441
50442
50443 BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.8"
50444
50445
50446
50447     # Check whether --enable-precomp-headers was given.
50448 if test "${enable_precomp_headers+set}" = set; then
50449   enableval=$enable_precomp_headers; bk_use_pch="$enableval"
50450 fi
50451
50452
50453     GCC_PCH=0
50454     ICC_PCH=0
50455     USE_PCH=0
50456     BK_MAKE_PCH=""
50457
50458     case ${BAKEFILE_HOST} in
50459         *-*-cygwin* )
50460                                                 bk_use_pch="no"
50461             ;;
50462     esac
50463
50464     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
50465         if test "x$GCC" = "xyes"; then
50466                         { echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
50467 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6; }
50468             cat >conftest.$ac_ext <<_ACEOF
50469 /* confdefs.h.  */
50470 _ACEOF
50471 cat confdefs.h >>conftest.$ac_ext
50472 cat >>conftest.$ac_ext <<_ACEOF
50473 /* end confdefs.h.  */
50474
50475 int
50476 main ()
50477 {
50478
50479                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
50480                         There is no PCH support
50481                     #endif
50482                     #if (__GNUC__ < 3)
50483                         There is no PCH support
50484                     #endif
50485                     #if (__GNUC__ == 3) && \
50486                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
50487                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
50488                        ( defined(__INTEL_COMPILER) )
50489                         There is no PCH support
50490                     #endif
50491
50492   ;
50493   return 0;
50494 }
50495 _ACEOF
50496 rm -f conftest.$ac_objext
50497 if { (ac_try="$ac_compile"
50498 case "(($ac_try" in
50499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50500   *) ac_try_echo=$ac_try;;
50501 esac
50502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50503   (eval "$ac_compile") 2>conftest.er1
50504   ac_status=$?
50505   grep -v '^ *+' conftest.er1 >conftest.err
50506   rm -f conftest.er1
50507   cat conftest.err >&5
50508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50509   (exit $ac_status); } && {
50510          test -z "$ac_c_werror_flag" ||
50511          test ! -s conftest.err
50512        } && test -s conftest.$ac_objext; then
50513
50514                     { echo "$as_me:$LINENO: result: yes" >&5
50515 echo "${ECHO_T}yes" >&6; }
50516                     GCC_PCH=1
50517
50518 else
50519   echo "$as_me: failed program was:" >&5
50520 sed 's/^/| /' conftest.$ac_ext >&5
50521
50522
50523                     if test "$INTELCXX8" = "yes"; then
50524                         { echo "$as_me:$LINENO: result: yes" >&5
50525 echo "${ECHO_T}yes" >&6; }
50526                         ICC_PCH=1
50527                         if test "$INTELCXX10" = "yes"; then
50528                             ICC_PCH_CREATE_SWITCH="-pch-create"
50529                             ICC_PCH_USE_SWITCH="-pch-use"
50530                         else
50531                             ICC_PCH_CREATE_SWITCH="-create-pch"
50532                             ICC_PCH_USE_SWITCH="-use-pch"
50533                         fi
50534                     else
50535                         { echo "$as_me:$LINENO: result: no" >&5
50536 echo "${ECHO_T}no" >&6; }
50537                     fi
50538
50539 fi
50540
50541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50542             if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
50543                 USE_PCH=1
50544
50545 D='$'
50546 cat <<EOF >bk-make-pch
50547 #!/bin/sh
50548
50549 # This script is part of Bakefile (http://www.bakefile.org) autoconf
50550 # script. It is used to generated precompiled headers.
50551 #
50552 # Permission is given to use this file in any way.
50553
50554 outfile="${D}{1}"
50555 header="${D}{2}"
50556 shift
50557 shift
50558
50559 builddir=\`echo ${D}outfile | sed -e 's,/\\.pch/.*${D},,g'\`
50560
50561 compiler=""
50562 headerfile=""
50563
50564 while test ${D}{#} -gt 0; do
50565     add_to_cmdline=1
50566     case "${D}{1}" in
50567         -I* )
50568             incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
50569             if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
50570                 headerfile="${D}{incdir}/${D}{header}"
50571             fi
50572         ;;
50573         -use-pch|-use_pch|-pch-use )
50574             shift
50575             add_to_cmdline=0
50576         ;;
50577     esac
50578     if test ${D}add_to_cmdline = 1 ; then
50579         compiler="${D}{compiler} ${D}{1}"
50580     fi
50581     shift
50582 done
50583
50584 if test "x${D}{headerfile}" = "x" ; then
50585     echo "error: can't find header ${D}{header} in include paths" >&2
50586 else
50587     if test -f ${D}{outfile} ; then
50588         rm -f ${D}{outfile}
50589     else
50590         mkdir -p \`dirname ${D}{outfile}\`
50591     fi
50592     depsfile="${D}{builddir}/.deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
50593     mkdir -p ${D}{builddir}/.deps
50594     if test "x${GCC_PCH}" = "x1" ; then
50595         # can do this because gcc is >= 3.4:
50596         ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
50597     elif test "x${ICC_PCH}" = "x1" ; then
50598         filename=pch_gen-${D}${D}
50599         file=${D}{filename}.c
50600         dfile=${D}{filename}.d
50601         cat > ${D}file <<EOT
50602 #include "${D}header"
50603 EOT
50604         # using -MF icc complains about differing command lines in creation/use
50605         ${D}compiler -c ${ICC_PCH_CREATE_SWITCH} ${D}outfile -MMD ${D}file && \\
50606           sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
50607           rm -f ${D}file ${D}dfile ${D}{filename}.o
50608     fi
50609     exit ${D}{?}
50610 fi
50611 EOF
50612
50613                 chmod +x bk-make-pch
50614                                                                 BK_MAKE_PCH="`pwd`/bk-make-pch"
50615             fi
50616         fi
50617     fi
50618
50619
50620
50621
50622
50623
50624
50625     COND_BUILD_DEBUG="#"
50626     if test "x$BUILD" = "xdebug" ; then
50627         COND_BUILD_DEBUG=""
50628     fi
50629
50630     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
50631     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
50632         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
50633     fi
50634
50635     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
50636     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
50637         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
50638     fi
50639
50640     COND_BUILD_DEBUG_UNICODE_0="#"
50641     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
50642         COND_BUILD_DEBUG_UNICODE_0=""
50643     fi
50644
50645     COND_BUILD_DEBUG_UNICODE_1="#"
50646     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
50647         COND_BUILD_DEBUG_UNICODE_1=""
50648     fi
50649
50650     COND_BUILD_RELEASE="#"
50651     if test "x$BUILD" = "xrelease" ; then
50652         COND_BUILD_RELEASE=""
50653     fi
50654
50655     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
50656     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
50657         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
50658     fi
50659
50660     COND_BUILD_RELEASE_UNICODE_0="#"
50661     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
50662         COND_BUILD_RELEASE_UNICODE_0=""
50663     fi
50664
50665     COND_BUILD_RELEASE_UNICODE_1="#"
50666     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
50667         COND_BUILD_RELEASE_UNICODE_1=""
50668     fi
50669
50670     COND_BUILD_debug="#"
50671     if test "x$BUILD" = "xdebug" ; then
50672         COND_BUILD_debug=""
50673     fi
50674
50675     COND_BUILD_debug_DEBUG_FLAG_default="#"
50676     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
50677         COND_BUILD_debug_DEBUG_FLAG_default=""
50678     fi
50679
50680     COND_BUILD_debug_DEBUG_INFO_default="#"
50681     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
50682         COND_BUILD_debug_DEBUG_INFO_default=""
50683     fi
50684
50685     COND_BUILD_debug_UNICODE_0="#"
50686     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
50687         COND_BUILD_debug_UNICODE_0=""
50688     fi
50689
50690     COND_BUILD_debug_UNICODE_1="#"
50691     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
50692         COND_BUILD_debug_UNICODE_1=""
50693     fi
50694
50695     COND_BUILD_release="#"
50696     if test "x$BUILD" = "xrelease" ; then
50697         COND_BUILD_release=""
50698     fi
50699
50700     COND_BUILD_release_DEBUG_INFO_default="#"
50701     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
50702         COND_BUILD_release_DEBUG_INFO_default=""
50703     fi
50704
50705     COND_BUILD_release_UNICODE_0="#"
50706     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
50707         COND_BUILD_release_UNICODE_0=""
50708     fi
50709
50710     COND_BUILD_release_UNICODE_1="#"
50711     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
50712         COND_BUILD_release_UNICODE_1=""
50713     fi
50714
50715     COND_DEBUG_FLAG_0="#"
50716     if test "x$DEBUG_FLAG" = "x0" ; then
50717         COND_DEBUG_FLAG_0=""
50718     fi
50719
50720     COND_DEBUG_FLAG_1="#"
50721     if test "x$DEBUG_FLAG" = "x1" ; then
50722         COND_DEBUG_FLAG_1=""
50723     fi
50724
50725     COND_DEBUG_INFO_0="#"
50726     if test "x$DEBUG_INFO" = "x0" ; then
50727         COND_DEBUG_INFO_0=""
50728     fi
50729
50730     COND_DEBUG_INFO_1="#"
50731     if test "x$DEBUG_INFO" = "x1" ; then
50732         COND_DEBUG_INFO_1=""
50733     fi
50734
50735     COND_DEPS_TRACKING_0="#"
50736     if test "x$DEPS_TRACKING" = "x0" ; then
50737         COND_DEPS_TRACKING_0=""
50738     fi
50739
50740     COND_DEPS_TRACKING_1="#"
50741     if test "x$DEPS_TRACKING" = "x1" ; then
50742         COND_DEPS_TRACKING_1=""
50743     fi
50744
50745     COND_GCC_PCH_1="#"
50746     if test "x$GCC_PCH" = "x1" ; then
50747         COND_GCC_PCH_1=""
50748     fi
50749
50750     COND_ICC_PCH_1="#"
50751     if test "x$ICC_PCH" = "x1" ; then
50752         COND_ICC_PCH_1=""
50753     fi
50754
50755     COND_MONOLITHIC_0="#"
50756     if test "x$MONOLITHIC" = "x0" ; then
50757         COND_MONOLITHIC_0=""
50758     fi
50759
50760     COND_MONOLITHIC_0_SHARED_0="#"
50761     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
50762         COND_MONOLITHIC_0_SHARED_0=""
50763     fi
50764
50765     COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
50766     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
50767         COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
50768     fi
50769
50770     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
50771     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
50772         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
50773     fi
50774
50775     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
50776     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
50777         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
50778     fi
50779
50780     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
50781     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
50782         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
50783     fi
50784
50785     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
50786     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
50787         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
50788     fi
50789
50790     COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1="#"
50791     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_PROPGRID" = "x1" ; then
50792         COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1=""
50793     fi
50794
50795     COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1="#"
50796     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RIBBON" = "x1" ; then
50797         COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1=""
50798     fi
50799
50800     COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
50801     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
50802         COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
50803     fi
50804
50805     COND_MONOLITHIC_0_SHARED_0_USE_STC_1="#"
50806     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
50807         COND_MONOLITHIC_0_SHARED_0_USE_STC_1=""
50808     fi
50809
50810     COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
50811     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
50812         COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
50813     fi
50814
50815     COND_MONOLITHIC_0_SHARED_1="#"
50816     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
50817         COND_MONOLITHIC_0_SHARED_1=""
50818     fi
50819
50820     COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
50821     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
50822         COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
50823     fi
50824
50825     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
50826     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
50827         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
50828     fi
50829
50830     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
50831     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
50832         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
50833     fi
50834
50835     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
50836     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
50837         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
50838     fi
50839
50840     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
50841     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
50842         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
50843     fi
50844
50845     COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1="#"
50846     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_PROPGRID" = "x1" ; then
50847         COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1=""
50848     fi
50849
50850     COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1="#"
50851     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RIBBON" = "x1" ; then
50852         COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1=""
50853     fi
50854
50855     COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
50856     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
50857         COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
50858     fi
50859
50860     COND_MONOLITHIC_0_SHARED_1_USE_STC_1="#"
50861     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_STC" = "x1" ; then
50862         COND_MONOLITHIC_0_SHARED_1_USE_STC_1=""
50863     fi
50864
50865     COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
50866     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
50867         COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
50868     fi
50869
50870     COND_MONOLITHIC_0_USE_AUI_1="#"
50871     if test "x$MONOLITHIC" = "x0" -a "x$USE_AUI" = "x1" ; then
50872         COND_MONOLITHIC_0_USE_AUI_1=""
50873     fi
50874
50875     COND_MONOLITHIC_0_USE_GUI_1="#"
50876     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" ; then
50877         COND_MONOLITHIC_0_USE_GUI_1=""
50878     fi
50879
50880     COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1="#"
50881     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
50882         COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1=""
50883     fi
50884
50885     COND_MONOLITHIC_0_USE_HTML_1="#"
50886     if test "x$MONOLITHIC" = "x0" -a "x$USE_HTML" = "x1" ; then
50887         COND_MONOLITHIC_0_USE_HTML_1=""
50888     fi
50889
50890     COND_MONOLITHIC_0_USE_MEDIA_1="#"
50891     if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
50892         COND_MONOLITHIC_0_USE_MEDIA_1=""
50893     fi
50894
50895     COND_MONOLITHIC_0_USE_PROPGRID_1="#"
50896     if test "x$MONOLITHIC" = "x0" -a "x$USE_PROPGRID" = "x1" ; then
50897         COND_MONOLITHIC_0_USE_PROPGRID_1=""
50898     fi
50899
50900     COND_MONOLITHIC_0_USE_QA_1="#"
50901     if test "x$MONOLITHIC" = "x0" -a "x$USE_QA" = "x1" ; then
50902         COND_MONOLITHIC_0_USE_QA_1=""
50903     fi
50904
50905     COND_MONOLITHIC_0_USE_RIBBON_1="#"
50906     if test "x$MONOLITHIC" = "x0" -a "x$USE_RIBBON" = "x1" ; then
50907         COND_MONOLITHIC_0_USE_RIBBON_1=""
50908     fi
50909
50910     COND_MONOLITHIC_0_USE_RICHTEXT_1="#"
50911     if test "x$MONOLITHIC" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
50912         COND_MONOLITHIC_0_USE_RICHTEXT_1=""
50913     fi
50914
50915     COND_MONOLITHIC_0_USE_STC_1="#"
50916     if test "x$MONOLITHIC" = "x0" -a "x$USE_STC" = "x1" ; then
50917         COND_MONOLITHIC_0_USE_STC_1=""
50918     fi
50919
50920     COND_MONOLITHIC_0_USE_XRC_1="#"
50921     if test "x$MONOLITHIC" = "x0" -a "x$USE_XRC" = "x1" ; then
50922         COND_MONOLITHIC_0_USE_XRC_1=""
50923     fi
50924
50925     COND_MONOLITHIC_1="#"
50926     if test "x$MONOLITHIC" = "x1" ; then
50927         COND_MONOLITHIC_1=""
50928     fi
50929
50930     COND_MONOLITHIC_1_SHARED_0="#"
50931     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
50932         COND_MONOLITHIC_1_SHARED_0=""
50933     fi
50934
50935     COND_MONOLITHIC_1_SHARED_1="#"
50936     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
50937         COND_MONOLITHIC_1_SHARED_1=""
50938     fi
50939
50940     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
50941     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
50942         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
50943     fi
50944
50945     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
50946     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
50947         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
50948     fi
50949
50950     COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
50951     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
50952         COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
50953     fi
50954
50955     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
50956     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
50957         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
50958     fi
50959
50960     COND_PLATFORM_MACOSX_1="#"
50961     if test "x$PLATFORM_MACOSX" = "x1" ; then
50962         COND_PLATFORM_MACOSX_1=""
50963     fi
50964
50965     COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0="#"
50966     if test "x$PLATFORM_MACOSX" = "x1" -a "x$PLATFORM_MSDOS" = "x0" ; then
50967         COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0=""
50968     fi
50969
50970     COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0="#"
50971     if test "x$PLATFORM_MACOSX" = "x1" -a "x$PLATFORM_WIN32" = "x1" -a "x$SHARED" = "x0" ; then
50972         COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0=""
50973     fi
50974
50975     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1="#"
50976     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" ; then
50977         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1=""
50978     fi
50979
50980     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0="#"
50981     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50982         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0=""
50983     fi
50984
50985     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1="#"
50986     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" ; then
50987         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1=""
50988     fi
50989
50990     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0="#"
50991     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50992         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0=""
50993     fi
50994
50995     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1="#"
50996     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" ; then
50997         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1=""
50998     fi
50999
51000     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0="#"
51001     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
51002         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0=""
51003     fi
51004
51005     COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
51006     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
51007         COND_PLATFORM_MACOSX_1_USE_GUI_1=""
51008     fi
51009
51010     COND_PLATFORM_MACOSX_1_USE_OPENGL_1="#"
51011     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_OPENGL" = "x1" ; then
51012         COND_PLATFORM_MACOSX_1_USE_OPENGL_1=""
51013     fi
51014
51015     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
51016     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
51017         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
51018     fi
51019
51020     COND_PLATFORM_MACOS_1="#"
51021     if test "x$PLATFORM_MACOS" = "x1" ; then
51022         COND_PLATFORM_MACOS_1=""
51023     fi
51024
51025     COND_PLATFORM_MAC_0="#"
51026     if test "x$PLATFORM_MAC" = "x0" ; then
51027         COND_PLATFORM_MAC_0=""
51028     fi
51029
51030     COND_PLATFORM_MAC_1="#"
51031     if test "x$PLATFORM_MAC" = "x1" ; then
51032         COND_PLATFORM_MAC_1=""
51033     fi
51034
51035     COND_PLATFORM_MSDOS_0="#"
51036     if test "x$PLATFORM_MSDOS" = "x0" ; then
51037         COND_PLATFORM_MSDOS_0=""
51038     fi
51039
51040     COND_PLATFORM_MSDOS_1="#"
51041     if test "x$PLATFORM_MSDOS" = "x1" ; then
51042         COND_PLATFORM_MSDOS_1=""
51043     fi
51044
51045     COND_PLATFORM_OS2_1="#"
51046     if test "x$PLATFORM_OS2" = "x1" ; then
51047         COND_PLATFORM_OS2_1=""
51048     fi
51049
51050     COND_PLATFORM_UNIX_0="#"
51051     if test "x$PLATFORM_UNIX" = "x0" ; then
51052         COND_PLATFORM_UNIX_0=""
51053     fi
51054
51055     COND_PLATFORM_UNIX_1="#"
51056     if test "x$PLATFORM_UNIX" = "x1" ; then
51057         COND_PLATFORM_UNIX_1=""
51058     fi
51059
51060     COND_PLATFORM_UNIX_1_TOOLKIT_MGL="#"
51061     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" ; then
51062         COND_PLATFORM_UNIX_1_TOOLKIT_MGL=""
51063     fi
51064
51065     COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1="#"
51066     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
51067         COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1=""
51068     fi
51069
51070     COND_PLATFORM_UNIX_1_USE_GUI_1="#"
51071     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
51072         COND_PLATFORM_UNIX_1_USE_GUI_1=""
51073     fi
51074
51075     COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
51076     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
51077         COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
51078     fi
51079
51080     COND_PLATFORM_WIN32_0="#"
51081     if test "x$PLATFORM_WIN32" = "x0" ; then
51082         COND_PLATFORM_WIN32_0=""
51083     fi
51084
51085     COND_PLATFORM_WIN32_1="#"
51086     if test "x$PLATFORM_WIN32" = "x1" ; then
51087         COND_PLATFORM_WIN32_1=""
51088     fi
51089
51090     COND_PLATFORM_WIN32_1_SHARED_0="#"
51091     if test "x$PLATFORM_WIN32" = "x1" -a "x$SHARED" = "x0" ; then
51092         COND_PLATFORM_WIN32_1_SHARED_0=""
51093     fi
51094
51095     COND_SHARED_0="#"
51096     if test "x$SHARED" = "x0" ; then
51097         COND_SHARED_0=""
51098     fi
51099
51100     COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
51101     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
51102         COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
51103     fi
51104
51105     COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
51106     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
51107         COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
51108     fi
51109
51110     COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
51111     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
51112         COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
51113     fi
51114
51115     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
51116     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
51117         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
51118     fi
51119
51120     COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin="#"
51121     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
51122         COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin=""
51123     fi
51124
51125     COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin="#"
51126     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
51127         COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin=""
51128     fi
51129
51130     COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin="#"
51131     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
51132         COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin=""
51133     fi
51134
51135     COND_SHARED_0_USE_STC_1="#"
51136     if test "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
51137         COND_SHARED_0_USE_STC_1=""
51138     fi
51139
51140     COND_SHARED_0_wxUSE_EXPAT_builtin="#"
51141     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
51142         COND_SHARED_0_wxUSE_EXPAT_builtin=""
51143     fi
51144
51145     COND_SHARED_0_wxUSE_REGEX_builtin="#"
51146     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
51147         COND_SHARED_0_wxUSE_REGEX_builtin=""
51148     fi
51149
51150     COND_SHARED_0_wxUSE_ZLIB_builtin="#"
51151     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
51152         COND_SHARED_0_wxUSE_ZLIB_builtin=""
51153     fi
51154
51155     COND_SHARED_1="#"
51156     if test "x$SHARED" = "x1" ; then
51157         COND_SHARED_1=""
51158     fi
51159
51160     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
51161     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
51162         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
51163     fi
51164
51165     COND_TOOLKIT_="#"
51166     if test "x$TOOLKIT" = "x" ; then
51167         COND_TOOLKIT_=""
51168     fi
51169
51170     COND_TOOLKIT_COCOA="#"
51171     if test "x$TOOLKIT" = "xCOCOA" ; then
51172         COND_TOOLKIT_COCOA=""
51173     fi
51174
51175     COND_TOOLKIT_COCOA_USE_GUI_1="#"
51176     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
51177         COND_TOOLKIT_COCOA_USE_GUI_1=""
51178     fi
51179
51180     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
51181     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
51182         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
51183     fi
51184
51185     COND_TOOLKIT_DFB="#"
51186     if test "x$TOOLKIT" = "xDFB" ; then
51187         COND_TOOLKIT_DFB=""
51188     fi
51189
51190     COND_TOOLKIT_DFB_USE_GUI_1="#"
51191     if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
51192         COND_TOOLKIT_DFB_USE_GUI_1=""
51193     fi
51194
51195     COND_TOOLKIT_GTK="#"
51196     if test "x$TOOLKIT" = "xGTK" ; then
51197         COND_TOOLKIT_GTK=""
51198     fi
51199
51200     COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
51201     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
51202         COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
51203     fi
51204
51205     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
51206     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
51207         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
51208     fi
51209
51210     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
51211     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
51212         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
51213     fi
51214
51215     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
51216     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
51217         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
51218     fi
51219
51220     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
51221     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
51222         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
51223     fi
51224
51225     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
51226     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
51227         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
51228     fi
51229
51230     COND_TOOLKIT_GTK_USE_GUI_1="#"
51231     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
51232         COND_TOOLKIT_GTK_USE_GUI_1=""
51233     fi
51234
51235     COND_TOOLKIT_MAC="#"
51236     if test "x$TOOLKIT" = "xMAC" ; then
51237         COND_TOOLKIT_MAC=""
51238     fi
51239
51240     COND_TOOLKIT_MGL="#"
51241     if test "x$TOOLKIT" = "xMGL" ; then
51242         COND_TOOLKIT_MGL=""
51243     fi
51244
51245     COND_TOOLKIT_MGL_USE_GUI_1="#"
51246     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
51247         COND_TOOLKIT_MGL_USE_GUI_1=""
51248     fi
51249
51250     COND_TOOLKIT_MOTIF="#"
51251     if test "x$TOOLKIT" = "xMOTIF" ; then
51252         COND_TOOLKIT_MOTIF=""
51253     fi
51254
51255     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
51256     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
51257         COND_TOOLKIT_MOTIF_USE_GUI_1=""
51258     fi
51259
51260     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
51261     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
51262         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
51263     fi
51264
51265     COND_TOOLKIT_MSW="#"
51266     if test "x$TOOLKIT" = "xMSW" ; then
51267         COND_TOOLKIT_MSW=""
51268     fi
51269
51270     COND_TOOLKIT_MSW_USE_GUI_1="#"
51271     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
51272         COND_TOOLKIT_MSW_USE_GUI_1=""
51273     fi
51274
51275     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
51276     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
51277         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
51278     fi
51279
51280     COND_TOOLKIT_MSW_WXUNIV_0="#"
51281     if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
51282         COND_TOOLKIT_MSW_WXUNIV_0=""
51283     fi
51284
51285     COND_TOOLKIT_OSX_CARBON="#"
51286     if test "x$TOOLKIT" = "xOSX_CARBON" ; then
51287         COND_TOOLKIT_OSX_CARBON=""
51288     fi
51289
51290     COND_TOOLKIT_OSX_CARBON_USE_GUI_1="#"
51291     if test "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" ; then
51292         COND_TOOLKIT_OSX_CARBON_USE_GUI_1=""
51293     fi
51294
51295     COND_TOOLKIT_OSX_COCOA="#"
51296     if test "x$TOOLKIT" = "xOSX_COCOA" ; then
51297         COND_TOOLKIT_OSX_COCOA=""
51298     fi
51299
51300     COND_TOOLKIT_OSX_COCOA_USE_GUI_1="#"
51301     if test "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" ; then
51302         COND_TOOLKIT_OSX_COCOA_USE_GUI_1=""
51303     fi
51304
51305     COND_TOOLKIT_OSX_IPHONE="#"
51306     if test "x$TOOLKIT" = "xOSX_IPHONE" ; then
51307         COND_TOOLKIT_OSX_IPHONE=""
51308     fi
51309
51310     COND_TOOLKIT_OSX_IPHONE_USE_GUI_1="#"
51311     if test "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" ; then
51312         COND_TOOLKIT_OSX_IPHONE_USE_GUI_1=""
51313     fi
51314
51315     COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0="#"
51316     if test "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
51317         COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0=""
51318     fi
51319
51320     COND_TOOLKIT_PM="#"
51321     if test "x$TOOLKIT" = "xPM" ; then
51322         COND_TOOLKIT_PM=""
51323     fi
51324
51325     COND_TOOLKIT_PM_USE_GUI_1="#"
51326     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
51327         COND_TOOLKIT_PM_USE_GUI_1=""
51328     fi
51329
51330     COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
51331     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
51332         COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
51333     fi
51334
51335     COND_TOOLKIT_WINCE="#"
51336     if test "x$TOOLKIT" = "xWINCE" ; then
51337         COND_TOOLKIT_WINCE=""
51338     fi
51339
51340     COND_TOOLKIT_WINCE_USE_GUI_1="#"
51341     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
51342         COND_TOOLKIT_WINCE_USE_GUI_1=""
51343     fi
51344
51345     COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
51346     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
51347         COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
51348     fi
51349
51350     COND_TOOLKIT_WINCE_WXUNIV_0="#"
51351     if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
51352         COND_TOOLKIT_WINCE_WXUNIV_0=""
51353     fi
51354
51355     COND_TOOLKIT_X11="#"
51356     if test "x$TOOLKIT" = "xX11" ; then
51357         COND_TOOLKIT_X11=""
51358     fi
51359
51360     COND_TOOLKIT_X11_USE_GUI_1="#"
51361     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
51362         COND_TOOLKIT_X11_USE_GUI_1=""
51363     fi
51364
51365     COND_UNICODE_1="#"
51366     if test "x$UNICODE" = "x1" ; then
51367         COND_UNICODE_1=""
51368     fi
51369
51370     COND_USE_CAIRO_1="#"
51371     if test "x$USE_CAIRO" = "x1" ; then
51372         COND_USE_CAIRO_1=""
51373     fi
51374
51375     COND_USE_EXCEPTIONS_0="#"
51376     if test "x$USE_EXCEPTIONS" = "x0" ; then
51377         COND_USE_EXCEPTIONS_0=""
51378     fi
51379
51380     COND_USE_EXCEPTIONS_1="#"
51381     if test "x$USE_EXCEPTIONS" = "x1" ; then
51382         COND_USE_EXCEPTIONS_1=""
51383     fi
51384
51385     COND_USE_GUI_0="#"
51386     if test "x$USE_GUI" = "x0" ; then
51387         COND_USE_GUI_0=""
51388     fi
51389
51390     COND_USE_GUI_1="#"
51391     if test "x$USE_GUI" = "x1" ; then
51392         COND_USE_GUI_1=""
51393     fi
51394
51395     COND_USE_GUI_1_USE_OPENGL_1="#"
51396     if test "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
51397         COND_USE_GUI_1_USE_OPENGL_1=""
51398     fi
51399
51400     COND_USE_GUI_1_WXUNIV_0="#"
51401     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
51402         COND_USE_GUI_1_WXUNIV_0=""
51403     fi
51404
51405     COND_USE_GUI_1_WXUNIV_1="#"
51406     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
51407         COND_USE_GUI_1_WXUNIV_1=""
51408     fi
51409
51410     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
51411     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
51412         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
51413     fi
51414
51415     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
51416     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
51417         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
51418     fi
51419
51420     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
51421     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
51422         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
51423     fi
51424
51425     COND_USE_GUI_1_wxUSE_LIBJPEG_builtin="#"
51426     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
51427         COND_USE_GUI_1_wxUSE_LIBJPEG_builtin=""
51428     fi
51429
51430     COND_USE_GUI_1_wxUSE_LIBPNG_builtin="#"
51431     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
51432         COND_USE_GUI_1_wxUSE_LIBPNG_builtin=""
51433     fi
51434
51435     COND_USE_GUI_1_wxUSE_LIBTIFF_builtin="#"
51436     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
51437         COND_USE_GUI_1_wxUSE_LIBTIFF_builtin=""
51438     fi
51439
51440     COND_USE_OPENGL_1="#"
51441     if test "x$USE_OPENGL" = "x1" ; then
51442         COND_USE_OPENGL_1=""
51443     fi
51444
51445     COND_USE_PCH_1="#"
51446     if test "x$USE_PCH" = "x1" ; then
51447         COND_USE_PCH_1=""
51448     fi
51449
51450     COND_USE_PLUGINS_0="#"
51451     if test "x$USE_PLUGINS" = "x0" ; then
51452         COND_USE_PLUGINS_0=""
51453     fi
51454
51455     COND_USE_RTTI_0="#"
51456     if test "x$USE_RTTI" = "x0" ; then
51457         COND_USE_RTTI_0=""
51458     fi
51459
51460     COND_USE_RTTI_1="#"
51461     if test "x$USE_RTTI" = "x1" ; then
51462         COND_USE_RTTI_1=""
51463     fi
51464
51465     COND_USE_SOTWOSYMLINKS_1="#"
51466     if test "x$USE_SOTWOSYMLINKS" = "x1" ; then
51467         COND_USE_SOTWOSYMLINKS_1=""
51468     fi
51469
51470     COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
51471     if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
51472         COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
51473     fi
51474
51475     COND_USE_SOVERLINUX_1="#"
51476     if test "x$USE_SOVERLINUX" = "x1" ; then
51477         COND_USE_SOVERLINUX_1=""
51478     fi
51479
51480     COND_USE_SOVERSION_0="#"
51481     if test "x$USE_SOVERSION" = "x0" ; then
51482         COND_USE_SOVERSION_0=""
51483     fi
51484
51485     COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1="#"
51486     if test "x$USE_SOVERSION" = "x1" -a "x$USE_SOVERSOLARIS" = "x1" ; then
51487         COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1=""
51488     fi
51489
51490     COND_USE_SOVERSOLARIS_1="#"
51491     if test "x$USE_SOVERSOLARIS" = "x1" ; then
51492         COND_USE_SOVERSOLARIS_1=""
51493     fi
51494
51495     COND_USE_STC_1="#"
51496     if test "x$USE_STC" = "x1" ; then
51497         COND_USE_STC_1=""
51498     fi
51499
51500     COND_USE_THREADS_0="#"
51501     if test "x$USE_THREADS" = "x0" ; then
51502         COND_USE_THREADS_0=""
51503     fi
51504
51505     COND_USE_THREADS_1="#"
51506     if test "x$USE_THREADS" = "x1" ; then
51507         COND_USE_THREADS_1=""
51508     fi
51509
51510     COND_USE_XRC_1="#"
51511     if test "x$USE_XRC" = "x1" ; then
51512         COND_USE_XRC_1=""
51513     fi
51514
51515     COND_WINDOWS_IMPLIB_1="#"
51516     if test "x$WINDOWS_IMPLIB" = "x1" ; then
51517         COND_WINDOWS_IMPLIB_1=""
51518     fi
51519
51520     COND_WITH_PLUGIN_SDL_1="#"
51521     if test "x$WITH_PLUGIN_SDL" = "x1" ; then
51522         COND_WITH_PLUGIN_SDL_1=""
51523     fi
51524
51525     COND_WXUNIV_0="#"
51526     if test "x$WXUNIV" = "x0" ; then
51527         COND_WXUNIV_0=""
51528     fi
51529
51530     COND_WXUNIV_1="#"
51531     if test "x$WXUNIV" = "x1" ; then
51532         COND_WXUNIV_1=""
51533     fi
51534
51535     COND_WXUSE_EXPAT_BUILTIN="#"
51536     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
51537         COND_WXUSE_EXPAT_BUILTIN=""
51538     fi
51539
51540     COND_WXUSE_LIBJPEG_BUILTIN="#"
51541     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
51542         COND_WXUSE_LIBJPEG_BUILTIN=""
51543     fi
51544
51545     COND_WXUSE_LIBPNG_BUILTIN="#"
51546     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
51547         COND_WXUSE_LIBPNG_BUILTIN=""
51548     fi
51549
51550     COND_WXUSE_LIBTIFF_BUILTIN="#"
51551     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
51552         COND_WXUSE_LIBTIFF_BUILTIN=""
51553     fi
51554
51555     COND_WXUSE_REGEX_BUILTIN="#"
51556     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
51557         COND_WXUSE_REGEX_BUILTIN=""
51558     fi
51559
51560     COND_WXUSE_ZLIB_BUILTIN="#"
51561     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
51562         COND_WXUSE_ZLIB_BUILTIN=""
51563     fi
51564
51565     COND_wxUSE_EXPAT_builtin="#"
51566     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
51567         COND_wxUSE_EXPAT_builtin=""
51568     fi
51569
51570     COND_wxUSE_LIBJPEG_builtin="#"
51571     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
51572         COND_wxUSE_LIBJPEG_builtin=""
51573     fi
51574
51575     COND_wxUSE_LIBPNG_builtin="#"
51576     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
51577         COND_wxUSE_LIBPNG_builtin=""
51578     fi
51579
51580     COND_wxUSE_LIBTIFF_builtin="#"
51581     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
51582         COND_wxUSE_LIBTIFF_builtin=""
51583     fi
51584
51585     COND_wxUSE_REGEX_builtin="#"
51586     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
51587         COND_wxUSE_REGEX_builtin=""
51588     fi
51589
51590     COND_wxUSE_ZLIB_builtin="#"
51591     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
51592         COND_wxUSE_ZLIB_builtin=""
51593     fi
51594
51595
51596
51597     if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
51598         { { 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
51599 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;}
51600    { (exit 1); exit 1; }; }
51601     fi
51602
51603     if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
51604         { { 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
51605 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;}
51606    { (exit 1); exit 1; }; }
51607     fi
51608
51609
51610 case ${INSTALL} in
51611   /* ) # Absolute
51612      ;;
51613   ?:* ) # Drive letter, considered as absolute.
51614      ;;
51615   *)
51616      INSTALL=`pwd`/${INSTALL} ;;
51617 esac
51618
51619 if test "$wxUSE_GUI" = "yes"; then
51620
51621 if test "$wxUSE_MSW" = 1 ; then
51622     if test "x$WINDRES" = "x"; then
51623         { { echo "$as_me:$LINENO: error: Required windres program not found" >&5
51624 echo "$as_me: error: Required windres program not found" >&2;}
51625    { (exit 1); exit 1; }; }
51626     fi
51627
51628     RESCOMP="$WINDRES $WINDRES_CPU_DEFINE"
51629 fi
51630
51631 if test "$wxUSE_MAC" = 1 -o "$wxUSE_OLD_COCOA" = 1; then
51632             WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
51633     WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
51634
51635         LIBWXMACRES="\$(wx_top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
51636
51637     # Extract the first word of "DeRez", so it can be a program name with args.
51638 set dummy DeRez; ac_word=$2
51639 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51641 if test "${ac_cv_prog_DEREZ+set}" = set; then
51642   echo $ECHO_N "(cached) $ECHO_C" >&6
51643 else
51644   if test -n "$DEREZ"; then
51645   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
51646 else
51647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51648 for as_dir in $PATH
51649 do
51650   IFS=$as_save_IFS
51651   test -z "$as_dir" && as_dir=.
51652   for ac_exec_ext in '' $ac_executable_extensions; do
51653   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51654     ac_cv_prog_DEREZ="DeRez"
51655     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51656     break 2
51657   fi
51658 done
51659 done
51660 IFS=$as_save_IFS
51661
51662   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
51663 fi
51664 fi
51665 DEREZ=$ac_cv_prog_DEREZ
51666 if test -n "$DEREZ"; then
51667   { echo "$as_me:$LINENO: result: $DEREZ" >&5
51668 echo "${ECHO_T}$DEREZ" >&6; }
51669 else
51670   { echo "$as_me:$LINENO: result: no" >&5
51671 echo "${ECHO_T}no" >&6; }
51672 fi
51673
51674
51675
51676     MACSETFILE="\$(SETFILE)"
51677
51678             if test "$wxUSE_OSX_CARBON" = 1; then
51679         POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
51680         RESCOMP="$REZ"
51681         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
51682     else
51683         POSTLINK_COMMAND="cat /dev/null | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
51684         RESCOMP="cat /dev/null \| $REZ"
51685         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
51686     fi
51687
51688 else
51689         MACSETFILE="@true"
51690
51691     if test "$wxUSE_PM" = 1; then
51692         RESCOMP="emxbind"
51693         WXCONFIG_RESFLAGS="-ep"
51694
51695                 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
51696     else
51697         POSTLINK_COMMAND="@true"
51698     fi
51699 fi
51700
51701 fi
51702
51703
51704 if test $GCC_PCH = 1
51705 then
51706     if test "$wx_cv_gcc_pch_bug" = yes; then
51707         { echo "$as_me:$LINENO: WARNING: *** Precompiled header support is broken on this compiler" >&5
51708 echo "$as_me: WARNING: *** Precompiled header support is broken on this compiler" >&2;}
51709         { echo "$as_me:$LINENO: WARNING: *** --enable-precomp-headers is not recommended" >&5
51710 echo "$as_me: WARNING: *** --enable-precomp-headers is not recommended" >&2;}
51711         { echo "$as_me:$LINENO: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&5
51712 echo "$as_me: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&2;}
51713     fi
51714
51715     # Our WX_PRECOMP flag does not make sense for any language except C++ because
51716     # the headers that benefit from precompilation are mostly C++ headers.
51717     CXXFLAGS="-DWX_PRECOMP $CXXFLAGS"
51718     # When Bakefile can do multi-language PCH (e.g. C++ and Objective-C++) enable this:
51719     #OBJCXXFLAGS="-DWX_PRECOMP $CXXFLAGS"
51720 fi
51721
51722
51723 if test "$wxUSE_MAC" = 1 ; then
51724     if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
51725         sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
51726         mv temp bk-deps
51727         chmod +x bk-deps
51728     fi
51729 fi
51730
51731 if test "$wxUSE_SHARED" = "yes"; then
51732                 case "${host}" in
51733       *-pc-os2_emx | *-pc-os2-emx )
51734         SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
51735         SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
51736         cp -p ${srcdir}/src/os2/dllnames.sh .
51737         cp -p ${srcdir}/src/os2/dllar.sh .
51738       ;;
51739     esac
51740 fi
51741 if test "$wxUSE_OMF" = "yes"; then
51742     case "${host}" in
51743       *-pc-os2_emx | *-pc-os2-emx )
51744         LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
51745         LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
51746         WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
51747       ;;
51748     esac
51749 fi
51750
51751 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
51752
51753
51754 case "${host}" in
51755     *-*-solaris2* )
51756                         if test "$GCC" = yes; then
51757             CPPFLAGS=`echo $CPPFLAGS | sed 's/-mt//'`
51758             LIBS=`echo $LIBS | sed 's/-mt//'`
51759             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-mt//'`
51760         fi
51761         ;;
51762
51763     *-*-linux* )
51764                         if test "x$SUNCXX" = xyes; then
51765             CPPFLAGS=`echo $CPPFLAGS | sed 's/-pthread//'`
51766             LIBS=`echo $LIBS | sed 's/-pthread//'`
51767             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-pthread//'`
51768         fi
51769         ;;
51770 esac
51771
51772 CFLAGS="$CFLAGS $CFLAGS_VISIBILITY"
51773 CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
51774 OBJCFLAGS="$OBJCFLAGS $CFLAGS_VISIBILITY"
51775 OBJCXXFLAGS="$OBJCXXFLAGS $CXXFLAGS_VISIBILITY"
51776
51777 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
51778
51779
51780
51781
51782
51783
51784
51785
51786
51787
51788
51789
51790
51791
51792
51793
51794
51795
51796
51797
51798
51799
51800
51801
51802
51803
51804
51805
51806
51807
51808
51809
51810
51811
51812
51813
51814
51815
51816
51817
51818
51819
51820
51821
51822
51823
51824
51825
51826
51827
51828
51829
51830
51831
51832
51833
51834
51835
51836
51837
51838 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
51839 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
51840 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
51841 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
51842   echo $ECHO_N "(cached) $ECHO_C" >&6
51843 else
51844   cat >conftest.make <<\_ACEOF
51845 SHELL = /bin/sh
51846 all:
51847         @echo '@@@%%%=$(MAKE)=@@@%%%'
51848 _ACEOF
51849 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
51850 case `${MAKE-make} -f conftest.make 2>/dev/null` in
51851   *@@@%%%=?*=@@@%%%*)
51852     eval ac_cv_prog_make_${ac_make}_set=yes;;
51853   *)
51854     eval ac_cv_prog_make_${ac_make}_set=no;;
51855 esac
51856 rm -f conftest.make
51857 fi
51858 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
51859   { echo "$as_me:$LINENO: result: yes" >&5
51860 echo "${ECHO_T}yes" >&6; }
51861   SET_MAKE=
51862 else
51863   { echo "$as_me:$LINENO: result: no" >&5
51864 echo "${ECHO_T}no" >&6; }
51865   SET_MAKE="MAKE=${MAKE-make}"
51866 fi
51867
51868
51869
51870 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
51871
51872
51873 if test "$USE_WIN32" = 1; then
51874     ac_config_commands="$ac_config_commands rcdefs.h"
51875
51876 fi
51877
51878 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
51879
51880
51881 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
51882
51883
51884 ac_config_files="$ac_config_files utils/ifacecheck/rungccxml.sh"
51885
51886
51887 if test "$wx_cv_version_script" = "yes"; then
51888     ac_config_files="$ac_config_files version-script"
51889
51890 fi
51891 ac_config_files="$ac_config_files Makefile"
51892
51893
51894 ac_config_commands="$ac_config_commands wx-config"
51895
51896
51897
51898 if test "$wxWITH_SUBDIRS" != "no"; then
51899 if test "$wxUSE_GUI" = "yes"; then
51900     SUBDIRS="samples demos utils"
51901 else
51902             SUBDIRS="samples utils"
51903 fi
51904
51905
51906
51907 # Check whether --with-cppunit-prefix was given.
51908 if test "${with_cppunit_prefix+set}" = set; then
51909   withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
51910 else
51911   cppunit_config_prefix=""
51912 fi
51913
51914
51915 # Check whether --with-cppunit-exec-prefix was given.
51916 if test "${with_cppunit_exec_prefix+set}" = set; then
51917   withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
51918 else
51919   cppunit_config_exec_prefix=""
51920 fi
51921
51922
51923   if test x$cppunit_config_exec_prefix != x ; then
51924      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
51925      if test x${CPPUNIT_CONFIG+set} != xset ; then
51926         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
51927      fi
51928   fi
51929   if test x$cppunit_config_prefix != x ; then
51930      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
51931      if test x${CPPUNIT_CONFIG+set} != xset ; then
51932         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
51933      fi
51934   fi
51935
51936   # Extract the first word of "cppunit-config", so it can be a program name with args.
51937 set dummy cppunit-config; ac_word=$2
51938 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51940 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
51941   echo $ECHO_N "(cached) $ECHO_C" >&6
51942 else
51943   case $CPPUNIT_CONFIG in
51944   [\\/]* | ?:[\\/]*)
51945   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
51946   ;;
51947   *)
51948   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51949 for as_dir in $PATH
51950 do
51951   IFS=$as_save_IFS
51952   test -z "$as_dir" && as_dir=.
51953   for ac_exec_ext in '' $ac_executable_extensions; do
51954   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51955     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
51956     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51957     break 2
51958   fi
51959 done
51960 done
51961 IFS=$as_save_IFS
51962
51963   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
51964   ;;
51965 esac
51966 fi
51967 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
51968 if test -n "$CPPUNIT_CONFIG"; then
51969   { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
51970 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
51971 else
51972   { echo "$as_me:$LINENO: result: no" >&5
51973 echo "${ECHO_T}no" >&6; }
51974 fi
51975
51976
51977   cppunit_version_min=1.8.0
51978
51979   { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
51980 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
51981   no_cppunit=""
51982   if test "$CPPUNIT_CONFIG" = "no" ; then
51983     { echo "$as_me:$LINENO: result: no" >&5
51984 echo "${ECHO_T}no" >&6; }
51985     no_cppunit=yes
51986   else
51987     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
51988     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
51989     cppunit_version=`$CPPUNIT_CONFIG --version`
51990
51991     cppunit_major_version=`echo $cppunit_version | \
51992            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
51993     cppunit_minor_version=`echo $cppunit_version | \
51994            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
51995     cppunit_micro_version=`echo $cppunit_version | \
51996            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
51997
51998     cppunit_major_min=`echo $cppunit_version_min | \
51999            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
52000     cppunit_minor_min=`echo $cppunit_version_min | \
52001            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
52002     cppunit_micro_min=`echo $cppunit_version_min | \
52003            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
52004
52005     cppunit_version_proper=`expr \
52006         $cppunit_major_version \> $cppunit_major_min \| \
52007         $cppunit_major_version \= $cppunit_major_min \& \
52008         $cppunit_minor_version \> $cppunit_minor_min \| \
52009         $cppunit_major_version \= $cppunit_major_min \& \
52010         $cppunit_minor_version \= $cppunit_minor_min \& \
52011         $cppunit_micro_version \>= $cppunit_micro_min `
52012
52013     if test "$cppunit_version_proper" = "1" ; then
52014       { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
52015 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
52016     else
52017       { echo "$as_me:$LINENO: result: no" >&5
52018 echo "${ECHO_T}no" >&6; }
52019       no_cppunit=yes
52020     fi
52021   fi
52022
52023   if test "x$no_cppunit" = x ; then
52024      SUBDIRS="$SUBDIRS tests"
52025   else
52026      CPPUNIT_CFLAGS=""
52027      CPPUNIT_LIBS=""
52028      :
52029   fi
52030
52031
52032
52033
52034
52035 for subdir in $SUBDIRS; do
52036     if test -d ${srcdir}/${subdir} ; then
52037         if test "$wxUSE_GUI" = "yes"; then
52038             if test ${subdir} = "samples"; then
52039                                                 makefiles="samples/Makefile.in $makefiles"
52040                 for sample in $SAMPLES_SUBDIRS; do
52041                     if test -d $srcdir/samples/$sample; then
52042                         makefiles="samples/$sample/Makefile.in $makefiles"
52043                     fi
52044                 done
52045             else
52046                                                                 disabled_var=DISABLED_`echo $subdir | tr '[a-z]' '[A-Z]'`
52047                 eval "disabled=\$$disabled_var"
52048                 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
52049                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | $EGREP -v "$disabled"`
52050             fi
52051         else
52052                                     if test ${subdir} = "samples"; then
52053                                                 makefiles="samples/Makefile.in $makefiles"
52054                 for sample in `echo $SAMPLES_SUBDIRS`; do
52055                     if test -d $srcdir/samples/$sample; then
52056                         makefiles="samples/$sample/Makefile.in $makefiles"
52057                     fi
52058                 done
52059             elif test ${subdir} = "utils"; then
52060                 makefiles=""
52061                 for util in ifacecheck ; do
52062                     if test -d $srcdir/utils/$util ; then
52063                         makefiles="utils/$util/src/Makefile.in \
52064                                    $makefiles"
52065                     fi
52066                 done
52067             else
52068                                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
52069             fi
52070         fi
52071
52072         for mkin in $makefiles ; do
52073             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
52074             ac_config_files="$ac_config_files $mk"
52075
52076         done
52077     fi
52078 done
52079 fi
52080 cat >confcache <<\_ACEOF
52081 # This file is a shell script that caches the results of configure
52082 # tests run on this system so they can be shared between configure
52083 # scripts and configure runs, see configure's option --config-cache.
52084 # It is not useful on other systems.  If it contains results you don't
52085 # want to keep, you may remove or edit it.
52086 #
52087 # config.status only pays attention to the cache file if you give it
52088 # the --recheck option to rerun configure.
52089 #
52090 # `ac_cv_env_foo' variables (set or unset) will be overridden when
52091 # loading this file, other *unset* `ac_cv_foo' will be assigned the
52092 # following values.
52093
52094 _ACEOF
52095
52096 # The following way of writing the cache mishandles newlines in values,
52097 # but we know of no workaround that is simple, portable, and efficient.
52098 # So, we kill variables containing newlines.
52099 # Ultrix sh set writes to stderr and can't be redirected directly,
52100 # and sets the high bit in the cache file unless we assign to the vars.
52101 (
52102   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
52103     eval ac_val=\$$ac_var
52104     case $ac_val in #(
52105     *${as_nl}*)
52106       case $ac_var in #(
52107       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
52108 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
52109       esac
52110       case $ac_var in #(
52111       _ | IFS | as_nl) ;; #(
52112       *) $as_unset $ac_var ;;
52113       esac ;;
52114     esac
52115   done
52116
52117   (set) 2>&1 |
52118     case $as_nl`(ac_space=' '; set) 2>&1` in #(
52119     *${as_nl}ac_space=\ *)
52120       # `set' does not quote correctly, so add quotes (double-quote
52121       # substitution turns \\\\ into \\, and sed turns \\ into \).
52122       sed -n \
52123         "s/'/'\\\\''/g;
52124           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
52125       ;; #(
52126     *)
52127       # `set' quotes correctly as required by POSIX, so do not add quotes.
52128       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
52129       ;;
52130     esac |
52131     sort
52132 ) |
52133   sed '
52134      /^ac_cv_env_/b end
52135      t clear
52136      :clear
52137      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
52138      t end
52139      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
52140      :end' >>confcache
52141 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
52142   if test -w "$cache_file"; then
52143     test "x$cache_file" != "x/dev/null" &&
52144       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
52145 echo "$as_me: updating cache $cache_file" >&6;}
52146     cat confcache >$cache_file
52147   else
52148     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
52149 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
52150   fi
52151 fi
52152 rm -f confcache
52153
52154 test "x$prefix" = xNONE && prefix=$ac_default_prefix
52155 # Let make expand exec_prefix.
52156 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
52157
52158 DEFS=-DHAVE_CONFIG_H
52159
52160 ac_libobjs=
52161 ac_ltlibobjs=
52162 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
52163   # 1. Remove the extension, and $U if already installed.
52164   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
52165   ac_i=`echo "$ac_i" | sed "$ac_script"`
52166   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
52167   #    will be set to the directory where LIBOBJS objects are built.
52168   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
52169   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
52170 done
52171 LIBOBJS=$ac_libobjs
52172
52173 LTLIBOBJS=$ac_ltlibobjs
52174
52175
52176
52177 : ${CONFIG_STATUS=./config.status}
52178 ac_clean_files_save=$ac_clean_files
52179 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
52180 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
52181 echo "$as_me: creating $CONFIG_STATUS" >&6;}
52182 cat >$CONFIG_STATUS <<_ACEOF
52183 #! $SHELL
52184 # Generated by $as_me.
52185 # Run this file to recreate the current configuration.
52186 # Compiler output produced by configure, useful for debugging
52187 # configure, is in config.log if it exists.
52188
52189 debug=false
52190 ac_cs_recheck=false
52191 ac_cs_silent=false
52192 SHELL=\${CONFIG_SHELL-$SHELL}
52193 _ACEOF
52194
52195 cat >>$CONFIG_STATUS <<\_ACEOF
52196 ## --------------------- ##
52197 ## M4sh Initialization.  ##
52198 ## --------------------- ##
52199
52200 # Be more Bourne compatible
52201 DUALCASE=1; export DUALCASE # for MKS sh
52202 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
52203   emulate sh
52204   NULLCMD=:
52205   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
52206   # is contrary to our usage.  Disable this feature.
52207   alias -g '${1+"$@"}'='"$@"'
52208   setopt NO_GLOB_SUBST
52209 else
52210   case `(set -o) 2>/dev/null` in
52211   *posix*) set -o posix ;;
52212 esac
52213
52214 fi
52215
52216
52217
52218
52219 # PATH needs CR
52220 # Avoid depending upon Character Ranges.
52221 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
52222 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
52223 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
52224 as_cr_digits='0123456789'
52225 as_cr_alnum=$as_cr_Letters$as_cr_digits
52226
52227 # The user is always right.
52228 if test "${PATH_SEPARATOR+set}" != set; then
52229   echo "#! /bin/sh" >conf$$.sh
52230   echo  "exit 0"   >>conf$$.sh
52231   chmod +x conf$$.sh
52232   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
52233     PATH_SEPARATOR=';'
52234   else
52235     PATH_SEPARATOR=:
52236   fi
52237   rm -f conf$$.sh
52238 fi
52239
52240 # Support unset when possible.
52241 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
52242   as_unset=unset
52243 else
52244   as_unset=false
52245 fi
52246
52247
52248 # IFS
52249 # We need space, tab and new line, in precisely that order.  Quoting is
52250 # there to prevent editors from complaining about space-tab.
52251 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
52252 # splitting by setting IFS to empty value.)
52253 as_nl='
52254 '
52255 IFS=" ""        $as_nl"
52256
52257 # Find who we are.  Look in the path if we contain no directory separator.
52258 case $0 in
52259   *[\\/]* ) as_myself=$0 ;;
52260   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52261 for as_dir in $PATH
52262 do
52263   IFS=$as_save_IFS
52264   test -z "$as_dir" && as_dir=.
52265   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
52266 done
52267 IFS=$as_save_IFS
52268
52269      ;;
52270 esac
52271 # We did not find ourselves, most probably we were run as `sh COMMAND'
52272 # in which case we are not to be found in the path.
52273 if test "x$as_myself" = x; then
52274   as_myself=$0
52275 fi
52276 if test ! -f "$as_myself"; then
52277   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
52278   { (exit 1); exit 1; }
52279 fi
52280
52281 # Work around bugs in pre-3.0 UWIN ksh.
52282 for as_var in ENV MAIL MAILPATH
52283 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
52284 done
52285 PS1='$ '
52286 PS2='> '
52287 PS4='+ '
52288
52289 # NLS nuisances.
52290 for as_var in \
52291   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
52292   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
52293   LC_TELEPHONE LC_TIME
52294 do
52295   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
52296     eval $as_var=C; export $as_var
52297   else
52298     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
52299   fi
52300 done
52301
52302 # Required to use basename.
52303 if expr a : '\(a\)' >/dev/null 2>&1 &&
52304    test "X`expr 00001 : '.*\(...\)'`" = X001; then
52305   as_expr=expr
52306 else
52307   as_expr=false
52308 fi
52309
52310 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
52311   as_basename=basename
52312 else
52313   as_basename=false
52314 fi
52315
52316
52317 # Name of the executable.
52318 as_me=`$as_basename -- "$0" ||
52319 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
52320          X"$0" : 'X\(//\)$' \| \
52321          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
52322 echo X/"$0" |
52323     sed '/^.*\/\([^/][^/]*\)\/*$/{
52324             s//\1/
52325             q
52326           }
52327           /^X\/\(\/\/\)$/{
52328             s//\1/
52329             q
52330           }
52331           /^X\/\(\/\).*/{
52332             s//\1/
52333             q
52334           }
52335           s/.*/./; q'`
52336
52337 # CDPATH.
52338 $as_unset CDPATH
52339
52340
52341
52342   as_lineno_1=$LINENO
52343   as_lineno_2=$LINENO
52344   test "x$as_lineno_1" != "x$as_lineno_2" &&
52345   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
52346
52347   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
52348   # uniformly replaced by the line number.  The first 'sed' inserts a
52349   # line-number line after each line using $LINENO; the second 'sed'
52350   # does the real work.  The second script uses 'N' to pair each
52351   # line-number line with the line containing $LINENO, and appends
52352   # trailing '-' during substitution so that $LINENO is not a special
52353   # case at line end.
52354   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
52355   # scripts with optimization help from Paolo Bonzini.  Blame Lee
52356   # E. McMahon (1931-1989) for sed's syntax.  :-)
52357   sed -n '
52358     p
52359     /[$]LINENO/=
52360   ' <$as_myself |
52361     sed '
52362       s/[$]LINENO.*/&-/
52363       t lineno
52364       b
52365       :lineno
52366       N
52367       :loop
52368       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
52369       t loop
52370       s/-\n.*//
52371     ' >$as_me.lineno &&
52372   chmod +x "$as_me.lineno" ||
52373     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
52374    { (exit 1); exit 1; }; }
52375
52376   # Don't try to exec as it changes $[0], causing all sort of problems
52377   # (the dirname of $[0] is not the place where we might find the
52378   # original and so on.  Autoconf is especially sensitive to this).
52379   . "./$as_me.lineno"
52380   # Exit status is that of the last command.
52381   exit
52382 }
52383
52384
52385 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
52386   as_dirname=dirname
52387 else
52388   as_dirname=false
52389 fi
52390
52391 ECHO_C= ECHO_N= ECHO_T=
52392 case `echo -n x` in
52393 -n*)
52394   case `echo 'x\c'` in
52395   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
52396   *)   ECHO_C='\c';;
52397   esac;;
52398 *)
52399   ECHO_N='-n';;
52400 esac
52401
52402 if expr a : '\(a\)' >/dev/null 2>&1 &&
52403    test "X`expr 00001 : '.*\(...\)'`" = X001; then
52404   as_expr=expr
52405 else
52406   as_expr=false
52407 fi
52408
52409 rm -f conf$$ conf$$.exe conf$$.file
52410 if test -d conf$$.dir; then
52411   rm -f conf$$.dir/conf$$.file
52412 else
52413   rm -f conf$$.dir
52414   mkdir conf$$.dir
52415 fi
52416 echo >conf$$.file
52417 if ln -s conf$$.file conf$$ 2>/dev/null; then
52418   as_ln_s='ln -s'
52419   # ... but there are two gotchas:
52420   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
52421   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
52422   # In both cases, we have to default to `cp -p'.
52423   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
52424     as_ln_s='cp -p'
52425 elif ln conf$$.file conf$$ 2>/dev/null; then
52426   as_ln_s=ln
52427 else
52428   as_ln_s='cp -p'
52429 fi
52430 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
52431 rmdir conf$$.dir 2>/dev/null
52432
52433 if mkdir -p . 2>/dev/null; then
52434   as_mkdir_p=:
52435 else
52436   test -d ./-p && rmdir ./-p
52437   as_mkdir_p=false
52438 fi
52439
52440 if test -x / >/dev/null 2>&1; then
52441   as_test_x='test -x'
52442 else
52443   if ls -dL / >/dev/null 2>&1; then
52444     as_ls_L_option=L
52445   else
52446     as_ls_L_option=
52447   fi
52448   as_test_x='
52449     eval sh -c '\''
52450       if test -d "$1"; then
52451         test -d "$1/.";
52452       else
52453         case $1 in
52454         -*)set "./$1";;
52455         esac;
52456         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
52457         ???[sx]*):;;*)false;;esac;fi
52458     '\'' sh
52459   '
52460 fi
52461 as_executable_p=$as_test_x
52462
52463 # Sed expression to map a string onto a valid CPP name.
52464 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
52465
52466 # Sed expression to map a string onto a valid variable name.
52467 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
52468
52469
52470 exec 6>&1
52471
52472 # Save the log message, to keep $[0] and so on meaningful, and to
52473 # report actual input values of CONFIG_FILES etc. instead of their
52474 # values after options handling.
52475 ac_log="
52476 This file was extended by wxWidgets $as_me 2.9.1, which was
52477 generated by GNU Autoconf 2.61.  Invocation command line was
52478
52479   CONFIG_FILES    = $CONFIG_FILES
52480   CONFIG_HEADERS  = $CONFIG_HEADERS
52481   CONFIG_LINKS    = $CONFIG_LINKS
52482   CONFIG_COMMANDS = $CONFIG_COMMANDS
52483   $ $0 $@
52484
52485 on `(hostname || uname -n) 2>/dev/null | sed 1q`
52486 "
52487
52488 _ACEOF
52489
52490 cat >>$CONFIG_STATUS <<_ACEOF
52491 # Files that config.status was made for.
52492 config_files="$ac_config_files"
52493 config_headers="$ac_config_headers"
52494 config_commands="$ac_config_commands"
52495
52496 _ACEOF
52497
52498 cat >>$CONFIG_STATUS <<\_ACEOF
52499 ac_cs_usage="\
52500 \`$as_me' instantiates files from templates according to the
52501 current configuration.
52502
52503 Usage: $0 [OPTIONS] [FILE]...
52504
52505   -h, --help       print this help, then exit
52506   -V, --version    print version number and configuration settings, then exit
52507   -q, --quiet      do not print progress messages
52508   -d, --debug      don't remove temporary files
52509       --recheck    update $as_me by reconfiguring in the same conditions
52510   --file=FILE[:TEMPLATE]
52511                    instantiate the configuration file FILE
52512   --header=FILE[:TEMPLATE]
52513                    instantiate the configuration header FILE
52514
52515 Configuration files:
52516 $config_files
52517
52518 Configuration headers:
52519 $config_headers
52520
52521 Configuration commands:
52522 $config_commands
52523
52524 Report bugs to <bug-autoconf@gnu.org>."
52525
52526 _ACEOF
52527 cat >>$CONFIG_STATUS <<_ACEOF
52528 ac_cs_version="\\
52529 wxWidgets config.status 2.9.1
52530 configured by $0, generated by GNU Autoconf 2.61,
52531   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
52532
52533 Copyright (C) 2006 Free Software Foundation, Inc.
52534 This config.status script is free software; the Free Software Foundation
52535 gives unlimited permission to copy, distribute and modify it."
52536
52537 ac_pwd='$ac_pwd'
52538 srcdir='$srcdir'
52539 INSTALL='$INSTALL'
52540 _ACEOF
52541
52542 cat >>$CONFIG_STATUS <<\_ACEOF
52543 # If no file are specified by the user, then we need to provide default
52544 # value.  By we need to know if files were specified by the user.
52545 ac_need_defaults=:
52546 while test $# != 0
52547 do
52548   case $1 in
52549   --*=*)
52550     ac_option=`expr "X$1" : 'X\([^=]*\)='`
52551     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
52552     ac_shift=:
52553     ;;
52554   *)
52555     ac_option=$1
52556     ac_optarg=$2
52557     ac_shift=shift
52558     ;;
52559   esac
52560
52561   case $ac_option in
52562   # Handling of the options.
52563   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
52564     ac_cs_recheck=: ;;
52565   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
52566     echo "$ac_cs_version"; exit ;;
52567   --debug | --debu | --deb | --de | --d | -d )
52568     debug=: ;;
52569   --file | --fil | --fi | --f )
52570     $ac_shift
52571     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
52572     ac_need_defaults=false;;
52573   --header | --heade | --head | --hea )
52574     $ac_shift
52575     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
52576     ac_need_defaults=false;;
52577   --he | --h)
52578     # Conflict between --help and --header
52579     { echo "$as_me: error: ambiguous option: $1
52580 Try \`$0 --help' for more information." >&2
52581    { (exit 1); exit 1; }; };;
52582   --help | --hel | -h )
52583     echo "$ac_cs_usage"; exit ;;
52584   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
52585   | -silent | --silent | --silen | --sile | --sil | --si | --s)
52586     ac_cs_silent=: ;;
52587
52588   # This is an error.
52589   -*) { echo "$as_me: error: unrecognized option: $1
52590 Try \`$0 --help' for more information." >&2
52591    { (exit 1); exit 1; }; } ;;
52592
52593   *) ac_config_targets="$ac_config_targets $1"
52594      ac_need_defaults=false ;;
52595
52596   esac
52597   shift
52598 done
52599
52600 ac_configure_extra_args=
52601
52602 if $ac_cs_silent; then
52603   exec 6>/dev/null
52604   ac_configure_extra_args="$ac_configure_extra_args --silent"
52605 fi
52606
52607 _ACEOF
52608 cat >>$CONFIG_STATUS <<_ACEOF
52609 if \$ac_cs_recheck; then
52610   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
52611   CONFIG_SHELL=$SHELL
52612   export CONFIG_SHELL
52613   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
52614 fi
52615
52616 _ACEOF
52617 cat >>$CONFIG_STATUS <<\_ACEOF
52618 exec 5>>config.log
52619 {
52620   echo
52621   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
52622 ## Running $as_me. ##
52623 _ASBOX
52624   echo "$ac_log"
52625 } >&5
52626
52627 _ACEOF
52628 cat >>$CONFIG_STATUS <<_ACEOF
52629 #
52630 # INIT-COMMANDS
52631 #
52632
52633             CPP="$CPP"
52634             infile="$srcdir/include/wx/msw/genrcdefs.h"
52635             outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
52636
52637
52638  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
52639  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
52640  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
52641                      LN_S="${LN_S}"
52642
52643
52644 _ACEOF
52645
52646 cat >>$CONFIG_STATUS <<\_ACEOF
52647
52648 # Handling of arguments.
52649 for ac_config_target in $ac_config_targets
52650 do
52651   case $ac_config_target in
52652     "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
52653     "rcdefs.h") CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
52654     "lib/wx/config/${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
52655     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
52656     "utils/ifacecheck/rungccxml.sh") CONFIG_FILES="$CONFIG_FILES utils/ifacecheck/rungccxml.sh" ;;
52657     "version-script") CONFIG_FILES="$CONFIG_FILES version-script" ;;
52658     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
52659     "wx-config") CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
52660     "$mk") CONFIG_FILES="$CONFIG_FILES $mk" ;;
52661
52662   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
52663 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
52664    { (exit 1); exit 1; }; };;
52665   esac
52666 done
52667
52668
52669 # If the user did not use the arguments to specify the items to instantiate,
52670 # then the envvar interface is used.  Set only those that are not.
52671 # We use the long form for the default assignment because of an extremely
52672 # bizarre bug on SunOS 4.1.3.
52673 if $ac_need_defaults; then
52674   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
52675   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
52676   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
52677 fi
52678
52679 # Have a temporary directory for convenience.  Make it in the build tree
52680 # simply because there is no reason against having it here, and in addition,
52681 # creating and moving files from /tmp can sometimes cause problems.
52682 # Hook for its removal unless debugging.
52683 # Note that there is a small window in which the directory will not be cleaned:
52684 # after its creation but before its name has been assigned to `$tmp'.
52685 $debug ||
52686 {
52687   tmp=
52688   trap 'exit_status=$?
52689   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
52690 ' 0
52691   trap '{ (exit 1); exit 1; }' 1 2 13 15
52692 }
52693 # Create a (secure) tmp directory for tmp files.
52694
52695 {
52696   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
52697   test -n "$tmp" && test -d "$tmp"
52698 }  ||
52699 {
52700   tmp=./conf$$-$RANDOM
52701   (umask 077 && mkdir "$tmp")
52702 } ||
52703 {
52704    echo "$me: cannot create a temporary directory in ." >&2
52705    { (exit 1); exit 1; }
52706 }
52707
52708 #
52709 # Set up the sed scripts for CONFIG_FILES section.
52710 #
52711
52712 # No need to generate the scripts if there are no CONFIG_FILES.
52713 # This happens for instance when ./config.status config.h
52714 if test -n "$CONFIG_FILES"; then
52715
52716 _ACEOF
52717
52718
52719
52720 ac_delim='%!_!# '
52721 for ac_last_try in false false false false false :; do
52722   cat >conf$$subs.sed <<_ACEOF
52723 SHELL!$SHELL$ac_delim
52724 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
52725 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
52726 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
52727 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
52728 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
52729 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
52730 exec_prefix!$exec_prefix$ac_delim
52731 prefix!$prefix$ac_delim
52732 program_transform_name!$program_transform_name$ac_delim
52733 bindir!$bindir$ac_delim
52734 sbindir!$sbindir$ac_delim
52735 libexecdir!$libexecdir$ac_delim
52736 datarootdir!$datarootdir$ac_delim
52737 datadir!$datadir$ac_delim
52738 sysconfdir!$sysconfdir$ac_delim
52739 sharedstatedir!$sharedstatedir$ac_delim
52740 localstatedir!$localstatedir$ac_delim
52741 includedir!$includedir$ac_delim
52742 oldincludedir!$oldincludedir$ac_delim
52743 docdir!$docdir$ac_delim
52744 infodir!$infodir$ac_delim
52745 htmldir!$htmldir$ac_delim
52746 dvidir!$dvidir$ac_delim
52747 pdfdir!$pdfdir$ac_delim
52748 psdir!$psdir$ac_delim
52749 libdir!$libdir$ac_delim
52750 localedir!$localedir$ac_delim
52751 mandir!$mandir$ac_delim
52752 DEFS!$DEFS$ac_delim
52753 ECHO_C!$ECHO_C$ac_delim
52754 ECHO_N!$ECHO_N$ac_delim
52755 ECHO_T!$ECHO_T$ac_delim
52756 LIBS!$LIBS$ac_delim
52757 build_alias!$build_alias$ac_delim
52758 host_alias!$host_alias$ac_delim
52759 target_alias!$target_alias$ac_delim
52760 build!$build$ac_delim
52761 build_cpu!$build_cpu$ac_delim
52762 build_vendor!$build_vendor$ac_delim
52763 build_os!$build_os$ac_delim
52764 host!$host$ac_delim
52765 host_cpu!$host_cpu$ac_delim
52766 host_vendor!$host_vendor$ac_delim
52767 host_os!$host_os$ac_delim
52768 wx_top_builddir!$wx_top_builddir$ac_delim
52769 CC!$CC$ac_delim
52770 CFLAGS!$CFLAGS$ac_delim
52771 LDFLAGS!$LDFLAGS$ac_delim
52772 CPPFLAGS!$CPPFLAGS$ac_delim
52773 ac_ct_CC!$ac_ct_CC$ac_delim
52774 EXEEXT!$EXEEXT$ac_delim
52775 OBJEXT!$OBJEXT$ac_delim
52776 CPP!$CPP$ac_delim
52777 GREP!$GREP$ac_delim
52778 EGREP!$EGREP$ac_delim
52779 CXX!$CXX$ac_delim
52780 CXXFLAGS!$CXXFLAGS$ac_delim
52781 ac_ct_CXX!$ac_ct_CXX$ac_delim
52782 AR!$AR$ac_delim
52783 OSX_SW_VERS!$OSX_SW_VERS$ac_delim
52784 subdirs!$subdirs$ac_delim
52785 PKG_CONFIG!$PKG_CONFIG$ac_delim
52786 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
52787 GTK_LIBS!$GTK_LIBS$ac_delim
52788 GTK_CONFIG!$GTK_CONFIG$ac_delim
52789 DIRECTFB_CFLAGS!$DIRECTFB_CFLAGS$ac_delim
52790 DIRECTFB_LIBS!$DIRECTFB_LIBS$ac_delim
52791 XMKMF!$XMKMF$ac_delim
52792 X_CFLAGS!$X_CFLAGS$ac_delim
52793 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
52794 X_LIBS!$X_LIBS$ac_delim
52795 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
52796 PANGOX_CFLAGS!$PANGOX_CFLAGS$ac_delim
52797 PANGOX_LIBS!$PANGOX_LIBS$ac_delim
52798 PANGOFT2_CFLAGS!$PANGOFT2_CFLAGS$ac_delim
52799 PANGOFT2_LIBS!$PANGOFT2_LIBS$ac_delim
52800 PANGOXFT_CFLAGS!$PANGOXFT_CFLAGS$ac_delim
52801 PANGOXFT_LIBS!$PANGOXFT_LIBS$ac_delim
52802 CFLAGS_VISIBILITY!$CFLAGS_VISIBILITY$ac_delim
52803 CXXFLAGS_VISIBILITY!$CXXFLAGS_VISIBILITY$ac_delim
52804 LIBICONV!$LIBICONV$ac_delim
52805 GXX_VERSION!$GXX_VERSION$ac_delim
52806 SDL_CONFIG!$SDL_CONFIG$ac_delim
52807 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
52808 SDL_LIBS!$SDL_LIBS$ac_delim
52809 GTKPRINT_CFLAGS!$GTKPRINT_CFLAGS$ac_delim
52810 GTKPRINT_LIBS!$GTKPRINT_LIBS$ac_delim
52811 LIBGNOMEPRINTUI_CFLAGS!$LIBGNOMEPRINTUI_CFLAGS$ac_delim
52812 LIBGNOMEPRINTUI_LIBS!$LIBGNOMEPRINTUI_LIBS$ac_delim
52813 GNOMEVFS_CFLAGS!$GNOMEVFS_CFLAGS$ac_delim
52814 GNOMEVFS_LIBS!$GNOMEVFS_LIBS$ac_delim
52815 HILDON_CFLAGS!$HILDON_CFLAGS$ac_delim
52816 HILDON_LIBS!$HILDON_LIBS$ac_delim
52817 HILDON2_CFLAGS!$HILDON2_CFLAGS$ac_delim
52818 HILDON2_LIBS!$HILDON2_LIBS$ac_delim
52819 PYTHON!$PYTHON$ac_delim
52820 _ACEOF
52821
52822   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
52823     break
52824   elif $ac_last_try; then
52825     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
52826 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
52827    { (exit 1); exit 1; }; }
52828   else
52829     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
52830   fi
52831 done
52832
52833 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
52834 if test -n "$ac_eof"; then
52835   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
52836   ac_eof=`expr $ac_eof + 1`
52837 fi
52838
52839 cat >>$CONFIG_STATUS <<_ACEOF
52840 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
52841 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
52842 _ACEOF
52843 sed '
52844 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
52845 s/^/s,@/; s/!/@,|#_!!_#|/
52846 :n
52847 t n
52848 s/'"$ac_delim"'$/,g/; t
52849 s/$/\\/; p
52850 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
52851 ' >>$CONFIG_STATUS <conf$$subs.sed
52852 rm -f conf$$subs.sed
52853 cat >>$CONFIG_STATUS <<_ACEOF
52854 CEOF$ac_eof
52855 _ACEOF
52856
52857
52858 ac_delim='%!_!# '
52859 for ac_last_try in false false false false false :; do
52860   cat >conf$$subs.sed <<_ACEOF
52861 COND_PYTHON!$COND_PYTHON$ac_delim
52862 CAIRO_CFLAGS!$CAIRO_CFLAGS$ac_delim
52863 CAIRO_LIBS!$CAIRO_LIBS$ac_delim
52864 GST_CFLAGS!$GST_CFLAGS$ac_delim
52865 GST_LIBS!$GST_LIBS$ac_delim
52866 ALL_WX_LIBS!$ALL_WX_LIBS$ac_delim
52867 BUILT_WX_LIBS!$BUILT_WX_LIBS$ac_delim
52868 STD_BASE_LIBS!$STD_BASE_LIBS$ac_delim
52869 STD_GUI_LIBS!$STD_GUI_LIBS$ac_delim
52870 wxUSE_ZLIB!$wxUSE_ZLIB$ac_delim
52871 wxUSE_REGEX!$wxUSE_REGEX$ac_delim
52872 wxUSE_EXPAT!$wxUSE_EXPAT$ac_delim
52873 wxUSE_LIBJPEG!$wxUSE_LIBJPEG$ac_delim
52874 wxUSE_LIBPNG!$wxUSE_LIBPNG$ac_delim
52875 wxUSE_LIBTIFF!$wxUSE_LIBTIFF$ac_delim
52876 VENDOR!$VENDOR$ac_delim
52877 OFFICIAL_BUILD!$OFFICIAL_BUILD$ac_delim
52878 WX_FLAVOUR!$WX_FLAVOUR$ac_delim
52879 WX_LIB_FLAVOUR!$WX_LIB_FLAVOUR$ac_delim
52880 WXUNIV!$WXUNIV$ac_delim
52881 MONOLITHIC!$MONOLITHIC$ac_delim
52882 USE_PLUGINS!$USE_PLUGINS$ac_delim
52883 CXXWARNINGS!$CXXWARNINGS$ac_delim
52884 EXTRALIBS!$EXTRALIBS$ac_delim
52885 EXTRALIBS_XML!$EXTRALIBS_XML$ac_delim
52886 EXTRALIBS_HTML!$EXTRALIBS_HTML$ac_delim
52887 EXTRALIBS_MEDIA!$EXTRALIBS_MEDIA$ac_delim
52888 EXTRALIBS_GUI!$EXTRALIBS_GUI$ac_delim
52889 EXTRALIBS_OPENGL!$EXTRALIBS_OPENGL$ac_delim
52890 EXTRALIBS_SDL!$EXTRALIBS_SDL$ac_delim
52891 EXTRALIBS_STC!$EXTRALIBS_STC$ac_delim
52892 WITH_PLUGIN_SDL!$WITH_PLUGIN_SDL$ac_delim
52893 EXTRALIBS_GTKPRINT!$EXTRALIBS_GTKPRINT$ac_delim
52894 EXTRALIBS_GNOMEPRINT!$EXTRALIBS_GNOMEPRINT$ac_delim
52895 EXTRALIBS_GNOMEVFS!$EXTRALIBS_GNOMEVFS$ac_delim
52896 EXTRALIBS_HILDON!$EXTRALIBS_HILDON$ac_delim
52897 UNICODE!$UNICODE$ac_delim
52898 DEBUG_INFO!$DEBUG_INFO$ac_delim
52899 DEBUG_FLAG!$DEBUG_FLAG$ac_delim
52900 TOOLKIT_LOWERCASE!$TOOLKIT_LOWERCASE$ac_delim
52901 TOOLKIT_VERSION!$TOOLKIT_VERSION$ac_delim
52902 DYLIB_RPATH_INSTALL!$DYLIB_RPATH_INSTALL$ac_delim
52903 DYLIB_RPATH_POSTLINK!$DYLIB_RPATH_POSTLINK$ac_delim
52904 SAMPLES_RPATH_FLAG!$SAMPLES_RPATH_FLAG$ac_delim
52905 HEADER_PAD_OPTION!$HEADER_PAD_OPTION$ac_delim
52906 HOST_SUFFIX!$HOST_SUFFIX$ac_delim
52907 CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
52908 CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
52909 RANLIB!$RANLIB$ac_delim
52910 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
52911 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
52912 INSTALL_DATA!$INSTALL_DATA$ac_delim
52913 LN_S!$LN_S$ac_delim
52914 SET_MAKE!$SET_MAKE$ac_delim
52915 MAKE_SET!$MAKE_SET$ac_delim
52916 AROPTIONS!$AROPTIONS$ac_delim
52917 STRIP!$STRIP$ac_delim
52918 NM!$NM$ac_delim
52919 INSTALL_DIR!$INSTALL_DIR$ac_delim
52920 LDFLAGS_GUI!$LDFLAGS_GUI$ac_delim
52921 IF_GNU_MAKE!$IF_GNU_MAKE$ac_delim
52922 PLATFORM_UNIX!$PLATFORM_UNIX$ac_delim
52923 PLATFORM_WIN32!$PLATFORM_WIN32$ac_delim
52924 PLATFORM_MSDOS!$PLATFORM_MSDOS$ac_delim
52925 PLATFORM_MAC!$PLATFORM_MAC$ac_delim
52926 PLATFORM_MACOS!$PLATFORM_MACOS$ac_delim
52927 PLATFORM_MACOSX!$PLATFORM_MACOSX$ac_delim
52928 PLATFORM_OS2!$PLATFORM_OS2$ac_delim
52929 PLATFORM_BEOS!$PLATFORM_BEOS$ac_delim
52930 SO_SUFFIX!$SO_SUFFIX$ac_delim
52931 SO_SUFFIX_MODULE!$SO_SUFFIX_MODULE$ac_delim
52932 DLLIMP_SUFFIX!$DLLIMP_SUFFIX$ac_delim
52933 LIBPREFIX!$LIBPREFIX$ac_delim
52934 LIBEXT!$LIBEXT$ac_delim
52935 DLLPREFIX!$DLLPREFIX$ac_delim
52936 DLLPREFIX_MODULE!$DLLPREFIX_MODULE$ac_delim
52937 dlldir!$dlldir$ac_delim
52938 AIX_CXX_LD!$AIX_CXX_LD$ac_delim
52939 SHARED_LD_CC!$SHARED_LD_CC$ac_delim
52940 SHARED_LD_CXX!$SHARED_LD_CXX$ac_delim
52941 SHARED_LD_MODULE_CC!$SHARED_LD_MODULE_CC$ac_delim
52942 SHARED_LD_MODULE_CXX!$SHARED_LD_MODULE_CXX$ac_delim
52943 PIC_FLAG!$PIC_FLAG$ac_delim
52944 WINDOWS_IMPLIB!$WINDOWS_IMPLIB$ac_delim
52945 USE_SOVERSION!$USE_SOVERSION$ac_delim
52946 USE_SOVERLINUX!$USE_SOVERLINUX$ac_delim
52947 USE_SOVERSOLARIS!$USE_SOVERSOLARIS$ac_delim
52948 USE_SOVERCYGWIN!$USE_SOVERCYGWIN$ac_delim
52949 USE_MACVERSION!$USE_MACVERSION$ac_delim
52950 USE_SOTWOSYMLINKS!$USE_SOTWOSYMLINKS$ac_delim
52951 SONAME_FLAG!$SONAME_FLAG$ac_delim
52952 DEPS_TRACKING!$DEPS_TRACKING$ac_delim
52953 BK_DEPS!$BK_DEPS$ac_delim
52954 WINDRES!$WINDRES$ac_delim
52955 REZ!$REZ$ac_delim
52956 SETFILE!$SETFILE$ac_delim
52957 OBJCXXFLAGS!$OBJCXXFLAGS$ac_delim
52958 _ACEOF
52959
52960   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
52961     break
52962   elif $ac_last_try; then
52963     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
52964 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
52965    { (exit 1); exit 1; }; }
52966   else
52967     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
52968   fi
52969 done
52970
52971 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
52972 if test -n "$ac_eof"; then
52973   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
52974   ac_eof=`expr $ac_eof + 1`
52975 fi
52976
52977 cat >>$CONFIG_STATUS <<_ACEOF
52978 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
52979 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
52980 _ACEOF
52981 sed '
52982 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
52983 s/^/s,@/; s/!/@,|#_!!_#|/
52984 :n
52985 t n
52986 s/'"$ac_delim"'$/,g/; t
52987 s/$/\\/; p
52988 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
52989 ' >>$CONFIG_STATUS <conf$$subs.sed
52990 rm -f conf$$subs.sed
52991 cat >>$CONFIG_STATUS <<_ACEOF
52992 CEOF$ac_eof
52993 _ACEOF
52994
52995
52996 ac_delim='%!_!# '
52997 for ac_last_try in false false false false false :; do
52998   cat >conf$$subs.sed <<_ACEOF
52999 GCC_PCH!$GCC_PCH$ac_delim
53000 ICC_PCH!$ICC_PCH$ac_delim
53001 ICC_PCH_CREATE_SWITCH!$ICC_PCH_CREATE_SWITCH$ac_delim
53002 ICC_PCH_USE_SWITCH!$ICC_PCH_USE_SWITCH$ac_delim
53003 BK_MAKE_PCH!$BK_MAKE_PCH$ac_delim
53004 COND_BUILD_DEBUG!$COND_BUILD_DEBUG$ac_delim
53005 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT!$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT$ac_delim
53006 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT!$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT$ac_delim
53007 COND_BUILD_DEBUG_UNICODE_0!$COND_BUILD_DEBUG_UNICODE_0$ac_delim
53008 COND_BUILD_DEBUG_UNICODE_1!$COND_BUILD_DEBUG_UNICODE_1$ac_delim
53009 COND_BUILD_RELEASE!$COND_BUILD_RELEASE$ac_delim
53010 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT!$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT$ac_delim
53011 COND_BUILD_RELEASE_UNICODE_0!$COND_BUILD_RELEASE_UNICODE_0$ac_delim
53012 COND_BUILD_RELEASE_UNICODE_1!$COND_BUILD_RELEASE_UNICODE_1$ac_delim
53013 COND_BUILD_debug!$COND_BUILD_debug$ac_delim
53014 COND_BUILD_debug_DEBUG_FLAG_default!$COND_BUILD_debug_DEBUG_FLAG_default$ac_delim
53015 COND_BUILD_debug_DEBUG_INFO_default!$COND_BUILD_debug_DEBUG_INFO_default$ac_delim
53016 COND_BUILD_debug_UNICODE_0!$COND_BUILD_debug_UNICODE_0$ac_delim
53017 COND_BUILD_debug_UNICODE_1!$COND_BUILD_debug_UNICODE_1$ac_delim
53018 COND_BUILD_release!$COND_BUILD_release$ac_delim
53019 COND_BUILD_release_DEBUG_INFO_default!$COND_BUILD_release_DEBUG_INFO_default$ac_delim
53020 COND_BUILD_release_UNICODE_0!$COND_BUILD_release_UNICODE_0$ac_delim
53021 COND_BUILD_release_UNICODE_1!$COND_BUILD_release_UNICODE_1$ac_delim
53022 COND_DEBUG_FLAG_0!$COND_DEBUG_FLAG_0$ac_delim
53023 COND_DEBUG_FLAG_1!$COND_DEBUG_FLAG_1$ac_delim
53024 COND_DEBUG_INFO_0!$COND_DEBUG_INFO_0$ac_delim
53025 COND_DEBUG_INFO_1!$COND_DEBUG_INFO_1$ac_delim
53026 COND_DEPS_TRACKING_0!$COND_DEPS_TRACKING_0$ac_delim
53027 COND_DEPS_TRACKING_1!$COND_DEPS_TRACKING_1$ac_delim
53028 COND_GCC_PCH_1!$COND_GCC_PCH_1$ac_delim
53029 COND_ICC_PCH_1!$COND_ICC_PCH_1$ac_delim
53030 COND_MONOLITHIC_0!$COND_MONOLITHIC_0$ac_delim
53031 COND_MONOLITHIC_0_SHARED_0!$COND_MONOLITHIC_0_SHARED_0$ac_delim
53032 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1$ac_delim
53033 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1$ac_delim
53034 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1$ac_delim
53035 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1$ac_delim
53036 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1$ac_delim
53037 COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1!$COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1$ac_delim
53038 COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1!$COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1$ac_delim
53039 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1$ac_delim
53040 COND_MONOLITHIC_0_SHARED_0_USE_STC_1!$COND_MONOLITHIC_0_SHARED_0_USE_STC_1$ac_delim
53041 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1$ac_delim
53042 COND_MONOLITHIC_0_SHARED_1!$COND_MONOLITHIC_0_SHARED_1$ac_delim
53043 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1$ac_delim
53044 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1$ac_delim
53045 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1$ac_delim
53046 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1$ac_delim
53047 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1$ac_delim
53048 COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1!$COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1$ac_delim
53049 COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1!$COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1$ac_delim
53050 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1$ac_delim
53051 COND_MONOLITHIC_0_SHARED_1_USE_STC_1!$COND_MONOLITHIC_0_SHARED_1_USE_STC_1$ac_delim
53052 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1$ac_delim
53053 COND_MONOLITHIC_0_USE_AUI_1!$COND_MONOLITHIC_0_USE_AUI_1$ac_delim
53054 COND_MONOLITHIC_0_USE_GUI_1!$COND_MONOLITHIC_0_USE_GUI_1$ac_delim
53055 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1$ac_delim
53056 COND_MONOLITHIC_0_USE_HTML_1!$COND_MONOLITHIC_0_USE_HTML_1$ac_delim
53057 COND_MONOLITHIC_0_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_MEDIA_1$ac_delim
53058 COND_MONOLITHIC_0_USE_PROPGRID_1!$COND_MONOLITHIC_0_USE_PROPGRID_1$ac_delim
53059 COND_MONOLITHIC_0_USE_QA_1!$COND_MONOLITHIC_0_USE_QA_1$ac_delim
53060 COND_MONOLITHIC_0_USE_RIBBON_1!$COND_MONOLITHIC_0_USE_RIBBON_1$ac_delim
53061 COND_MONOLITHIC_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_USE_RICHTEXT_1$ac_delim
53062 COND_MONOLITHIC_0_USE_STC_1!$COND_MONOLITHIC_0_USE_STC_1$ac_delim
53063 COND_MONOLITHIC_0_USE_XRC_1!$COND_MONOLITHIC_0_USE_XRC_1$ac_delim
53064 COND_MONOLITHIC_1!$COND_MONOLITHIC_1$ac_delim
53065 COND_MONOLITHIC_1_SHARED_0!$COND_MONOLITHIC_1_SHARED_0$ac_delim
53066 COND_MONOLITHIC_1_SHARED_1!$COND_MONOLITHIC_1_SHARED_1$ac_delim
53067 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1$ac_delim
53068 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1$ac_delim
53069 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1$ac_delim
53070 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1$ac_delim
53071 COND_PLATFORM_MACOSX_1!$COND_PLATFORM_MACOSX_1$ac_delim
53072 COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0!$COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0$ac_delim
53073 COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0!$COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0$ac_delim
53074 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1$ac_delim
53075 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
53076 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1$ac_delim
53077 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
53078 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1$ac_delim
53079 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0$ac_delim
53080 COND_PLATFORM_MACOSX_1_USE_GUI_1!$COND_PLATFORM_MACOSX_1_USE_GUI_1$ac_delim
53081 COND_PLATFORM_MACOSX_1_USE_OPENGL_1!$COND_PLATFORM_MACOSX_1_USE_OPENGL_1$ac_delim
53082 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1$ac_delim
53083 COND_PLATFORM_MACOS_1!$COND_PLATFORM_MACOS_1$ac_delim
53084 COND_PLATFORM_MAC_0!$COND_PLATFORM_MAC_0$ac_delim
53085 COND_PLATFORM_MAC_1!$COND_PLATFORM_MAC_1$ac_delim
53086 COND_PLATFORM_MSDOS_0!$COND_PLATFORM_MSDOS_0$ac_delim
53087 COND_PLATFORM_MSDOS_1!$COND_PLATFORM_MSDOS_1$ac_delim
53088 COND_PLATFORM_OS2_1!$COND_PLATFORM_OS2_1$ac_delim
53089 COND_PLATFORM_UNIX_0!$COND_PLATFORM_UNIX_0$ac_delim
53090 COND_PLATFORM_UNIX_1!$COND_PLATFORM_UNIX_1$ac_delim
53091 COND_PLATFORM_UNIX_1_TOOLKIT_MGL!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL$ac_delim
53092 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1$ac_delim
53093 COND_PLATFORM_UNIX_1_USE_GUI_1!$COND_PLATFORM_UNIX_1_USE_GUI_1$ac_delim
53094 COND_PLATFORM_UNIX_1_USE_PLUGINS_0!$COND_PLATFORM_UNIX_1_USE_PLUGINS_0$ac_delim
53095 COND_PLATFORM_WIN32_0!$COND_PLATFORM_WIN32_0$ac_delim
53096 _ACEOF
53097
53098   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
53099     break
53100   elif $ac_last_try; then
53101     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
53102 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
53103    { (exit 1); exit 1; }; }
53104   else
53105     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
53106   fi
53107 done
53108
53109 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
53110 if test -n "$ac_eof"; then
53111   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
53112   ac_eof=`expr $ac_eof + 1`
53113 fi
53114
53115 cat >>$CONFIG_STATUS <<_ACEOF
53116 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
53117 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
53118 _ACEOF
53119 sed '
53120 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
53121 s/^/s,@/; s/!/@,|#_!!_#|/
53122 :n
53123 t n
53124 s/'"$ac_delim"'$/,g/; t
53125 s/$/\\/; p
53126 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
53127 ' >>$CONFIG_STATUS <conf$$subs.sed
53128 rm -f conf$$subs.sed
53129 cat >>$CONFIG_STATUS <<_ACEOF
53130 CEOF$ac_eof
53131 _ACEOF
53132
53133
53134 ac_delim='%!_!# '
53135 for ac_last_try in false false false false false :; do
53136   cat >conf$$subs.sed <<_ACEOF
53137 COND_PLATFORM_WIN32_1!$COND_PLATFORM_WIN32_1$ac_delim
53138 COND_PLATFORM_WIN32_1_SHARED_0!$COND_PLATFORM_WIN32_1_SHARED_0$ac_delim
53139 COND_SHARED_0!$COND_SHARED_0$ac_delim
53140 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0$ac_delim
53141 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0$ac_delim
53142 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0!$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0$ac_delim
53143 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1$ac_delim
53144 COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin$ac_delim
53145 COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin$ac_delim
53146 COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin$ac_delim
53147 COND_SHARED_0_USE_STC_1!$COND_SHARED_0_USE_STC_1$ac_delim
53148 COND_SHARED_0_wxUSE_EXPAT_builtin!$COND_SHARED_0_wxUSE_EXPAT_builtin$ac_delim
53149 COND_SHARED_0_wxUSE_REGEX_builtin!$COND_SHARED_0_wxUSE_REGEX_builtin$ac_delim
53150 COND_SHARED_0_wxUSE_ZLIB_builtin!$COND_SHARED_0_wxUSE_ZLIB_builtin$ac_delim
53151 COND_SHARED_1!$COND_SHARED_1$ac_delim
53152 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1$ac_delim
53153 COND_TOOLKIT_!$COND_TOOLKIT_$ac_delim
53154 COND_TOOLKIT_COCOA!$COND_TOOLKIT_COCOA$ac_delim
53155 COND_TOOLKIT_COCOA_USE_GUI_1!$COND_TOOLKIT_COCOA_USE_GUI_1$ac_delim
53156 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0$ac_delim
53157 COND_TOOLKIT_DFB!$COND_TOOLKIT_DFB$ac_delim
53158 COND_TOOLKIT_DFB_USE_GUI_1!$COND_TOOLKIT_DFB_USE_GUI_1$ac_delim
53159 COND_TOOLKIT_GTK!$COND_TOOLKIT_GTK$ac_delim
53160 COND_TOOLKIT_GTK_TOOLKIT_VERSION_!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_$ac_delim
53161 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2$ac_delim
53162 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1$ac_delim
53163 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0$ac_delim
53164 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1$ac_delim
53165 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0$ac_delim
53166 COND_TOOLKIT_GTK_USE_GUI_1!$COND_TOOLKIT_GTK_USE_GUI_1$ac_delim
53167 COND_TOOLKIT_MAC!$COND_TOOLKIT_MAC$ac_delim
53168 COND_TOOLKIT_MGL!$COND_TOOLKIT_MGL$ac_delim
53169 COND_TOOLKIT_MGL_USE_GUI_1!$COND_TOOLKIT_MGL_USE_GUI_1$ac_delim
53170 COND_TOOLKIT_MOTIF!$COND_TOOLKIT_MOTIF$ac_delim
53171 COND_TOOLKIT_MOTIF_USE_GUI_1!$COND_TOOLKIT_MOTIF_USE_GUI_1$ac_delim
53172 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0$ac_delim
53173 COND_TOOLKIT_MSW!$COND_TOOLKIT_MSW$ac_delim
53174 COND_TOOLKIT_MSW_USE_GUI_1!$COND_TOOLKIT_MSW_USE_GUI_1$ac_delim
53175 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0$ac_delim
53176 COND_TOOLKIT_MSW_WXUNIV_0!$COND_TOOLKIT_MSW_WXUNIV_0$ac_delim
53177 COND_TOOLKIT_OSX_CARBON!$COND_TOOLKIT_OSX_CARBON$ac_delim
53178 COND_TOOLKIT_OSX_CARBON_USE_GUI_1!$COND_TOOLKIT_OSX_CARBON_USE_GUI_1$ac_delim
53179 COND_TOOLKIT_OSX_COCOA!$COND_TOOLKIT_OSX_COCOA$ac_delim
53180 COND_TOOLKIT_OSX_COCOA_USE_GUI_1!$COND_TOOLKIT_OSX_COCOA_USE_GUI_1$ac_delim
53181 COND_TOOLKIT_OSX_IPHONE!$COND_TOOLKIT_OSX_IPHONE$ac_delim
53182 COND_TOOLKIT_OSX_IPHONE_USE_GUI_1!$COND_TOOLKIT_OSX_IPHONE_USE_GUI_1$ac_delim
53183 COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0$ac_delim
53184 COND_TOOLKIT_PM!$COND_TOOLKIT_PM$ac_delim
53185 COND_TOOLKIT_PM_USE_GUI_1!$COND_TOOLKIT_PM_USE_GUI_1$ac_delim
53186 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0$ac_delim
53187 COND_TOOLKIT_WINCE!$COND_TOOLKIT_WINCE$ac_delim
53188 COND_TOOLKIT_WINCE_USE_GUI_1!$COND_TOOLKIT_WINCE_USE_GUI_1$ac_delim
53189 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0$ac_delim
53190 COND_TOOLKIT_WINCE_WXUNIV_0!$COND_TOOLKIT_WINCE_WXUNIV_0$ac_delim
53191 COND_TOOLKIT_X11!$COND_TOOLKIT_X11$ac_delim
53192 COND_TOOLKIT_X11_USE_GUI_1!$COND_TOOLKIT_X11_USE_GUI_1$ac_delim
53193 COND_UNICODE_1!$COND_UNICODE_1$ac_delim
53194 COND_USE_CAIRO_1!$COND_USE_CAIRO_1$ac_delim
53195 COND_USE_EXCEPTIONS_0!$COND_USE_EXCEPTIONS_0$ac_delim
53196 COND_USE_EXCEPTIONS_1!$COND_USE_EXCEPTIONS_1$ac_delim
53197 COND_USE_GUI_0!$COND_USE_GUI_0$ac_delim
53198 COND_USE_GUI_1!$COND_USE_GUI_1$ac_delim
53199 COND_USE_GUI_1_USE_OPENGL_1!$COND_USE_GUI_1_USE_OPENGL_1$ac_delim
53200 COND_USE_GUI_1_WXUNIV_0!$COND_USE_GUI_1_WXUNIV_0$ac_delim
53201 COND_USE_GUI_1_WXUNIV_1!$COND_USE_GUI_1_WXUNIV_1$ac_delim
53202 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
53203 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
53204 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
53205 COND_USE_GUI_1_wxUSE_LIBJPEG_builtin!$COND_USE_GUI_1_wxUSE_LIBJPEG_builtin$ac_delim
53206 COND_USE_GUI_1_wxUSE_LIBPNG_builtin!$COND_USE_GUI_1_wxUSE_LIBPNG_builtin$ac_delim
53207 COND_USE_GUI_1_wxUSE_LIBTIFF_builtin!$COND_USE_GUI_1_wxUSE_LIBTIFF_builtin$ac_delim
53208 COND_USE_OPENGL_1!$COND_USE_OPENGL_1$ac_delim
53209 COND_USE_PCH_1!$COND_USE_PCH_1$ac_delim
53210 COND_USE_PLUGINS_0!$COND_USE_PLUGINS_0$ac_delim
53211 COND_USE_RTTI_0!$COND_USE_RTTI_0$ac_delim
53212 COND_USE_RTTI_1!$COND_USE_RTTI_1$ac_delim
53213 COND_USE_SOTWOSYMLINKS_1!$COND_USE_SOTWOSYMLINKS_1$ac_delim
53214 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1!$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1$ac_delim
53215 COND_USE_SOVERLINUX_1!$COND_USE_SOVERLINUX_1$ac_delim
53216 COND_USE_SOVERSION_0!$COND_USE_SOVERSION_0$ac_delim
53217 COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1!$COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1$ac_delim
53218 COND_USE_SOVERSOLARIS_1!$COND_USE_SOVERSOLARIS_1$ac_delim
53219 COND_USE_STC_1!$COND_USE_STC_1$ac_delim
53220 COND_USE_THREADS_0!$COND_USE_THREADS_0$ac_delim
53221 COND_USE_THREADS_1!$COND_USE_THREADS_1$ac_delim
53222 COND_USE_XRC_1!$COND_USE_XRC_1$ac_delim
53223 COND_WINDOWS_IMPLIB_1!$COND_WINDOWS_IMPLIB_1$ac_delim
53224 COND_WITH_PLUGIN_SDL_1!$COND_WITH_PLUGIN_SDL_1$ac_delim
53225 COND_WXUNIV_0!$COND_WXUNIV_0$ac_delim
53226 COND_WXUNIV_1!$COND_WXUNIV_1$ac_delim
53227 COND_WXUSE_EXPAT_BUILTIN!$COND_WXUSE_EXPAT_BUILTIN$ac_delim
53228 COND_WXUSE_LIBJPEG_BUILTIN!$COND_WXUSE_LIBJPEG_BUILTIN$ac_delim
53229 COND_WXUSE_LIBPNG_BUILTIN!$COND_WXUSE_LIBPNG_BUILTIN$ac_delim
53230 COND_WXUSE_LIBTIFF_BUILTIN!$COND_WXUSE_LIBTIFF_BUILTIN$ac_delim
53231 COND_WXUSE_REGEX_BUILTIN!$COND_WXUSE_REGEX_BUILTIN$ac_delim
53232 COND_WXUSE_ZLIB_BUILTIN!$COND_WXUSE_ZLIB_BUILTIN$ac_delim
53233 COND_wxUSE_EXPAT_builtin!$COND_wxUSE_EXPAT_builtin$ac_delim
53234 _ACEOF
53235
53236   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
53237     break
53238   elif $ac_last_try; then
53239     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
53240 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
53241    { (exit 1); exit 1; }; }
53242   else
53243     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
53244   fi
53245 done
53246
53247 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
53248 if test -n "$ac_eof"; then
53249   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
53250   ac_eof=`expr $ac_eof + 1`
53251 fi
53252
53253 cat >>$CONFIG_STATUS <<_ACEOF
53254 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
53255 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
53256 _ACEOF
53257 sed '
53258 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
53259 s/^/s,@/; s/!/@,|#_!!_#|/
53260 :n
53261 t n
53262 s/'"$ac_delim"'$/,g/; t
53263 s/$/\\/; p
53264 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
53265 ' >>$CONFIG_STATUS <conf$$subs.sed
53266 rm -f conf$$subs.sed
53267 cat >>$CONFIG_STATUS <<_ACEOF
53268 CEOF$ac_eof
53269 _ACEOF
53270
53271
53272 ac_delim='%!_!# '
53273 for ac_last_try in false false false false false :; do
53274   cat >conf$$subs.sed <<_ACEOF
53275 COND_wxUSE_LIBJPEG_builtin!$COND_wxUSE_LIBJPEG_builtin$ac_delim
53276 COND_wxUSE_LIBPNG_builtin!$COND_wxUSE_LIBPNG_builtin$ac_delim
53277 COND_wxUSE_LIBTIFF_builtin!$COND_wxUSE_LIBTIFF_builtin$ac_delim
53278 COND_wxUSE_REGEX_builtin!$COND_wxUSE_REGEX_builtin$ac_delim
53279 COND_wxUSE_ZLIB_builtin!$COND_wxUSE_ZLIB_builtin$ac_delim
53280 DEREZ!$DEREZ$ac_delim
53281 SHARED!$SHARED$ac_delim
53282 WX_LIBRARY_BASENAME_NOGUI!$WX_LIBRARY_BASENAME_NOGUI$ac_delim
53283 WX_LIBRARY_BASENAME_GUI!$WX_LIBRARY_BASENAME_GUI$ac_delim
53284 USE_GUI!$USE_GUI$ac_delim
53285 AFMINSTALL!$AFMINSTALL$ac_delim
53286 WIN32INSTALL!$WIN32INSTALL$ac_delim
53287 TOOLKIT!$TOOLKIT$ac_delim
53288 TOOLKIT_DIR!$TOOLKIT_DIR$ac_delim
53289 TOOLCHAIN_NAME!$TOOLCHAIN_NAME$ac_delim
53290 TOOLCHAIN_FULLNAME!$TOOLCHAIN_FULLNAME$ac_delim
53291 cross_compiling!$cross_compiling$ac_delim
53292 WIDGET_SET!$WIDGET_SET$ac_delim
53293 WX_RELEASE!$WX_RELEASE$ac_delim
53294 WX_VERSION!$WX_VERSION$ac_delim
53295 WX_SUBVERSION!$WX_SUBVERSION$ac_delim
53296 WX_CHARTYPE!$WX_CHARTYPE$ac_delim
53297 WXCONFIG_CPPFLAGS!$WXCONFIG_CPPFLAGS$ac_delim
53298 WXCONFIG_CFLAGS!$WXCONFIG_CFLAGS$ac_delim
53299 WXCONFIG_CXXFLAGS!$WXCONFIG_CXXFLAGS$ac_delim
53300 WXCONFIG_LIBS!$WXCONFIG_LIBS$ac_delim
53301 WXCONFIG_RPATH!$WXCONFIG_RPATH$ac_delim
53302 WXCONFIG_LDFLAGS!$WXCONFIG_LDFLAGS$ac_delim
53303 WXCONFIG_LDFLAGS_GUI!$WXCONFIG_LDFLAGS_GUI$ac_delim
53304 WXCONFIG_RESFLAGS!$WXCONFIG_RESFLAGS$ac_delim
53305 GUIDIST!$GUIDIST$ac_delim
53306 DISTDIR!$DISTDIR$ac_delim
53307 SAMPLES_SUBDIRS!$SAMPLES_SUBDIRS$ac_delim
53308 LDFLAGS_GL!$LDFLAGS_GL$ac_delim
53309 OPENGL_LIBS!$OPENGL_LIBS$ac_delim
53310 DMALLOC_LIBS!$DMALLOC_LIBS$ac_delim
53311 WX_VERSION_TAG!$WX_VERSION_TAG$ac_delim
53312 RESCOMP!$RESCOMP$ac_delim
53313 RESFLAGS!$RESFLAGS$ac_delim
53314 RESPROGRAMOBJ!$RESPROGRAMOBJ$ac_delim
53315 WX_RESOURCES_MACOSX_ASCII!$WX_RESOURCES_MACOSX_ASCII$ac_delim
53316 WX_RESOURCES_MACOSX_DATA!$WX_RESOURCES_MACOSX_DATA$ac_delim
53317 LIBWXMACRES!$LIBWXMACRES$ac_delim
53318 POSTLINK_COMMAND!$POSTLINK_COMMAND$ac_delim
53319 MACSETFILE!$MACSETFILE$ac_delim
53320 GCC!$GCC$ac_delim
53321 DLLTOOL!$DLLTOOL$ac_delim
53322 CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
53323 LIBOBJS!$LIBOBJS$ac_delim
53324 LTLIBOBJS!$LTLIBOBJS$ac_delim
53325 _ACEOF
53326
53327   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 50; then
53328     break
53329   elif $ac_last_try; then
53330     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
53331 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
53332    { (exit 1); exit 1; }; }
53333   else
53334     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
53335   fi
53336 done
53337
53338 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
53339 if test -n "$ac_eof"; then
53340   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
53341   ac_eof=`expr $ac_eof + 1`
53342 fi
53343
53344 cat >>$CONFIG_STATUS <<_ACEOF
53345 cat >"\$tmp/subs-5.sed" <<\CEOF$ac_eof
53346 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
53347 _ACEOF
53348 sed '
53349 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
53350 s/^/s,@/; s/!/@,|#_!!_#|/
53351 :n
53352 t n
53353 s/'"$ac_delim"'$/,g/; t
53354 s/$/\\/; p
53355 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
53356 ' >>$CONFIG_STATUS <conf$$subs.sed
53357 rm -f conf$$subs.sed
53358 cat >>$CONFIG_STATUS <<_ACEOF
53359 :end
53360 s/|#_!!_#|//g
53361 CEOF$ac_eof
53362 _ACEOF
53363
53364
53365 # VPATH may cause trouble with some makes, so we remove $(srcdir),
53366 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
53367 # trailing colons and then remove the whole line if VPATH becomes empty
53368 # (actually we leave an empty line to preserve line numbers).
53369 if test "x$srcdir" = x.; then
53370   ac_vpsub='/^[  ]*VPATH[        ]*=/{
53371 s/:*\$(srcdir):*/:/
53372 s/:*\${srcdir}:*/:/
53373 s/:*@srcdir@:*/:/
53374 s/^\([^=]*=[     ]*\):*/\1/
53375 s/:*$//
53376 s/^[^=]*=[       ]*$//
53377 }'
53378 fi
53379
53380 cat >>$CONFIG_STATUS <<\_ACEOF
53381 fi # test -n "$CONFIG_FILES"
53382
53383
53384 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
53385 do
53386   case $ac_tag in
53387   :[FHLC]) ac_mode=$ac_tag; continue;;
53388   esac
53389   case $ac_mode$ac_tag in
53390   :[FHL]*:*);;
53391   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
53392 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
53393    { (exit 1); exit 1; }; };;
53394   :[FH]-) ac_tag=-:-;;
53395   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
53396   esac
53397   ac_save_IFS=$IFS
53398   IFS=:
53399   set x $ac_tag
53400   IFS=$ac_save_IFS
53401   shift
53402   ac_file=$1
53403   shift
53404
53405   case $ac_mode in
53406   :L) ac_source=$1;;
53407   :[FH])
53408     ac_file_inputs=
53409     for ac_f
53410     do
53411       case $ac_f in
53412       -) ac_f="$tmp/stdin";;
53413       *) # Look for the file first in the build tree, then in the source tree
53414          # (if the path is not absolute).  The absolute path cannot be DOS-style,
53415          # because $ac_f cannot contain `:'.
53416          test -f "$ac_f" ||
53417            case $ac_f in
53418            [\\/$]*) false;;
53419            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
53420            esac ||
53421            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
53422 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
53423    { (exit 1); exit 1; }; };;
53424       esac
53425       ac_file_inputs="$ac_file_inputs $ac_f"
53426     done
53427
53428     # Let's still pretend it is `configure' which instantiates (i.e., don't
53429     # use $as_me), people would be surprised to read:
53430     #    /* config.h.  Generated by config.status.  */
53431     configure_input="Generated from "`IFS=:
53432           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
53433     if test x"$ac_file" != x-; then
53434       configure_input="$ac_file.  $configure_input"
53435       { echo "$as_me:$LINENO: creating $ac_file" >&5
53436 echo "$as_me: creating $ac_file" >&6;}
53437     fi
53438
53439     case $ac_tag in
53440     *:-:* | *:-) cat >"$tmp/stdin";;
53441     esac
53442     ;;
53443   esac
53444
53445   ac_dir=`$as_dirname -- "$ac_file" ||
53446 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53447          X"$ac_file" : 'X\(//\)[^/]' \| \
53448          X"$ac_file" : 'X\(//\)$' \| \
53449          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
53450 echo X"$ac_file" |
53451     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
53452             s//\1/
53453             q
53454           }
53455           /^X\(\/\/\)[^/].*/{
53456             s//\1/
53457             q
53458           }
53459           /^X\(\/\/\)$/{
53460             s//\1/
53461             q
53462           }
53463           /^X\(\/\).*/{
53464             s//\1/
53465             q
53466           }
53467           s/.*/./; q'`
53468   { as_dir="$ac_dir"
53469   case $as_dir in #(
53470   -*) as_dir=./$as_dir;;
53471   esac
53472   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
53473     as_dirs=
53474     while :; do
53475       case $as_dir in #(
53476       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
53477       *) as_qdir=$as_dir;;
53478       esac
53479       as_dirs="'$as_qdir' $as_dirs"
53480       as_dir=`$as_dirname -- "$as_dir" ||
53481 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53482          X"$as_dir" : 'X\(//\)[^/]' \| \
53483          X"$as_dir" : 'X\(//\)$' \| \
53484          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
53485 echo X"$as_dir" |
53486     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
53487             s//\1/
53488             q
53489           }
53490           /^X\(\/\/\)[^/].*/{
53491             s//\1/
53492             q
53493           }
53494           /^X\(\/\/\)$/{
53495             s//\1/
53496             q
53497           }
53498           /^X\(\/\).*/{
53499             s//\1/
53500             q
53501           }
53502           s/.*/./; q'`
53503       test -d "$as_dir" && break
53504     done
53505     test -z "$as_dirs" || eval "mkdir $as_dirs"
53506   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
53507 echo "$as_me: error: cannot create directory $as_dir" >&2;}
53508    { (exit 1); exit 1; }; }; }
53509   ac_builddir=.
53510
53511 case "$ac_dir" in
53512 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
53513 *)
53514   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
53515   # A ".." for each directory in $ac_dir_suffix.
53516   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
53517   case $ac_top_builddir_sub in
53518   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
53519   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
53520   esac ;;
53521 esac
53522 ac_abs_top_builddir=$ac_pwd
53523 ac_abs_builddir=$ac_pwd$ac_dir_suffix
53524 # for backward compatibility:
53525 ac_top_builddir=$ac_top_build_prefix
53526
53527 case $srcdir in
53528   .)  # We are building in place.
53529     ac_srcdir=.
53530     ac_top_srcdir=$ac_top_builddir_sub
53531     ac_abs_top_srcdir=$ac_pwd ;;
53532   [\\/]* | ?:[\\/]* )  # Absolute name.
53533     ac_srcdir=$srcdir$ac_dir_suffix;
53534     ac_top_srcdir=$srcdir
53535     ac_abs_top_srcdir=$srcdir ;;
53536   *) # Relative name.
53537     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
53538     ac_top_srcdir=$ac_top_build_prefix$srcdir
53539     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
53540 esac
53541 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
53542
53543
53544   case $ac_mode in
53545   :F)
53546   #
53547   # CONFIG_FILE
53548   #
53549
53550   case $INSTALL in
53551   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
53552   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
53553   esac
53554 _ACEOF
53555
53556 cat >>$CONFIG_STATUS <<\_ACEOF
53557 # If the template does not know about datarootdir, expand it.
53558 # FIXME: This hack should be removed a few years after 2.60.
53559 ac_datarootdir_hack=; ac_datarootdir_seen=
53560
53561 case `sed -n '/datarootdir/ {
53562   p
53563   q
53564 }
53565 /@datadir@/p
53566 /@docdir@/p
53567 /@infodir@/p
53568 /@localedir@/p
53569 /@mandir@/p
53570 ' $ac_file_inputs` in
53571 *datarootdir*) ac_datarootdir_seen=yes;;
53572 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
53573   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
53574 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
53575 _ACEOF
53576 cat >>$CONFIG_STATUS <<_ACEOF
53577   ac_datarootdir_hack='
53578   s&@datadir@&$datadir&g
53579   s&@docdir@&$docdir&g
53580   s&@infodir@&$infodir&g
53581   s&@localedir@&$localedir&g
53582   s&@mandir@&$mandir&g
53583     s&\\\${datarootdir}&$datarootdir&g' ;;
53584 esac
53585 _ACEOF
53586
53587 # Neutralize VPATH when `$srcdir' = `.'.
53588 # Shell code in configure.ac might set extrasub.
53589 # FIXME: do we really want to maintain this feature?
53590 cat >>$CONFIG_STATUS <<_ACEOF
53591   sed "$ac_vpsub
53592 $extrasub
53593 _ACEOF
53594 cat >>$CONFIG_STATUS <<\_ACEOF
53595 :t
53596 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
53597 s&@configure_input@&$configure_input&;t t
53598 s&@top_builddir@&$ac_top_builddir_sub&;t t
53599 s&@srcdir@&$ac_srcdir&;t t
53600 s&@abs_srcdir@&$ac_abs_srcdir&;t t
53601 s&@top_srcdir@&$ac_top_srcdir&;t t
53602 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
53603 s&@builddir@&$ac_builddir&;t t
53604 s&@abs_builddir@&$ac_abs_builddir&;t t
53605 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
53606 s&@INSTALL@&$ac_INSTALL&;t t
53607 $ac_datarootdir_hack
53608 " $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
53609
53610 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
53611   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
53612   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
53613   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
53614 which seems to be undefined.  Please make sure it is defined." >&5
53615 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
53616 which seems to be undefined.  Please make sure it is defined." >&2;}
53617
53618   rm -f "$tmp/stdin"
53619   case $ac_file in
53620   -) cat "$tmp/out"; rm -f "$tmp/out";;
53621   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
53622   esac
53623  ;;
53624   :H)
53625   #
53626   # CONFIG_HEADER
53627   #
53628 _ACEOF
53629
53630 # Transform confdefs.h into a sed script `conftest.defines', that
53631 # substitutes the proper values into config.h.in to produce config.h.
53632 rm -f conftest.defines conftest.tail
53633 # First, append a space to every undef/define line, to ease matching.
53634 echo 's/$/ /' >conftest.defines
53635 # Then, protect against being on the right side of a sed subst, or in
53636 # an unquoted here document, in config.status.  If some macros were
53637 # called several times there might be several #defines for the same
53638 # symbol, which is useless.  But do not sort them, since the last
53639 # AC_DEFINE must be honored.
53640 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
53641 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
53642 # NAME is the cpp macro being defined, VALUE is the value it is being given.
53643 # PARAMS is the parameter list in the macro definition--in most cases, it's
53644 # just an empty string.
53645 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
53646 ac_dB='\\)[      (].*,\\1define\\2'
53647 ac_dC=' '
53648 ac_dD=' ,'
53649
53650 uniq confdefs.h |
53651   sed -n '
53652         t rset
53653         :rset
53654         s/^[     ]*#[    ]*define[       ][      ]*//
53655         t ok
53656         d
53657         :ok
53658         s/[\\&,]/\\&/g
53659         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
53660         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
53661   ' >>conftest.defines
53662
53663 # Remove the space that was appended to ease matching.
53664 # Then replace #undef with comments.  This is necessary, for
53665 # example, in the case of _POSIX_SOURCE, which is predefined and required
53666 # on some systems where configure will not decide to define it.
53667 # (The regexp can be short, since the line contains either #define or #undef.)
53668 echo 's/ $//
53669 s,^[     #]*u.*,/* & */,' >>conftest.defines
53670
53671 # Break up conftest.defines:
53672 ac_max_sed_lines=50
53673
53674 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
53675 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
53676 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
53677 # et cetera.
53678 ac_in='$ac_file_inputs'
53679 ac_out='"$tmp/out1"'
53680 ac_nxt='"$tmp/out2"'
53681
53682 while :
53683 do
53684   # Write a here document:
53685     cat >>$CONFIG_STATUS <<_ACEOF
53686     # First, check the format of the line:
53687     cat >"\$tmp/defines.sed" <<\\CEOF
53688 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
53689 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
53690 b
53691 :def
53692 _ACEOF
53693   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
53694   echo 'CEOF
53695     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
53696   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
53697   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
53698   grep . conftest.tail >/dev/null || break
53699   rm -f conftest.defines
53700   mv conftest.tail conftest.defines
53701 done
53702 rm -f conftest.defines conftest.tail
53703
53704 echo "ac_result=$ac_in" >>$CONFIG_STATUS
53705 cat >>$CONFIG_STATUS <<\_ACEOF
53706   if test x"$ac_file" != x-; then
53707     echo "/* $configure_input  */" >"$tmp/config.h"
53708     cat "$ac_result" >>"$tmp/config.h"
53709     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
53710       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
53711 echo "$as_me: $ac_file is unchanged" >&6;}
53712     else
53713       rm -f $ac_file
53714       mv "$tmp/config.h" $ac_file
53715     fi
53716   else
53717     echo "/* $configure_input  */"
53718     cat "$ac_result"
53719   fi
53720   rm -f "$tmp/out12"
53721  ;;
53722
53723   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
53724 echo "$as_me: executing $ac_file commands" >&6;}
53725  ;;
53726   esac
53727
53728
53729   case $ac_file$ac_mode in
53730     "rcdefs.h":C)
53731             mkdir -p $outdir &&
53732             $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
53733          ;;
53734     "lib/wx/config/${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME}  ;;
53735     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}  ;;
53736     "utils/ifacecheck/rungccxml.sh":F)  chmod +x utils/ifacecheck/rungccxml.sh  ;;
53737     "wx-config":C)  rm -f wx-config
53738                      ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
53739                     ;;
53740
53741   esac
53742 done # for ac_tag
53743
53744
53745 { (exit 0); exit 0; }
53746 _ACEOF
53747 chmod +x $CONFIG_STATUS
53748 ac_clean_files=$ac_clean_files_save
53749
53750
53751 # configure is writing to config.log, and then calls config.status.
53752 # config.status does its own redirection, appending to config.log.
53753 # Unfortunately, on DOS this fails, as config.log is still kept open
53754 # by configure, so config.status won't be able to write to it; its
53755 # output is simply discarded.  So we exec the FD to /dev/null,
53756 # effectively closing config.log, so it can be properly (re)opened and
53757 # appended to by config.status.  When coming back to configure, we
53758 # need to make the FD available again.
53759 if test "$no_create" != yes; then
53760   ac_cs_success=:
53761   ac_config_status_args=
53762   test "$silent" = yes &&
53763     ac_config_status_args="$ac_config_status_args --quiet"
53764   exec 5>/dev/null
53765   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
53766   exec 5>>config.log
53767   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
53768   # would make configure fail if this is the last instruction.
53769   $ac_cs_success || { (exit 1); exit 1; }
53770 fi
53771
53772 #
53773 # CONFIG_SUBDIRS section.
53774 #
53775 if test "$no_recursion" != yes; then
53776
53777   # Remove --cache-file and --srcdir arguments so they do not pile up.
53778   ac_sub_configure_args=
53779   ac_prev=
53780   eval "set x $ac_configure_args"
53781   shift
53782   for ac_arg
53783   do
53784     if test -n "$ac_prev"; then
53785       ac_prev=
53786       continue
53787     fi
53788     case $ac_arg in
53789     -cache-file | --cache-file | --cache-fil | --cache-fi \
53790     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
53791       ac_prev=cache_file ;;
53792     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
53793     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
53794     | --c=*)
53795       ;;
53796     --config-cache | -C)
53797       ;;
53798     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
53799       ac_prev=srcdir ;;
53800     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
53801       ;;
53802     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
53803       ac_prev=prefix ;;
53804     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
53805       ;;
53806     *)
53807       case $ac_arg in
53808       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
53809       esac
53810       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
53811     esac
53812   done
53813
53814   # Always prepend --prefix to ensure using the same prefix
53815   # in subdir configurations.
53816   ac_arg="--prefix=$prefix"
53817   case $ac_arg in
53818   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
53819   esac
53820   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
53821
53822   # Pass --silent
53823   if test "$silent" = yes; then
53824     ac_sub_configure_args="--silent $ac_sub_configure_args"
53825   fi
53826
53827   ac_popdir=`pwd`
53828   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
53829
53830     # Do not complain, so a configure script can configure whichever
53831     # parts of a large source tree are present.
53832     test -d "$srcdir/$ac_dir" || continue
53833
53834     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
53835     echo "$as_me:$LINENO: $ac_msg" >&5
53836     echo "$ac_msg" >&6
53837     { as_dir="$ac_dir"
53838   case $as_dir in #(
53839   -*) as_dir=./$as_dir;;
53840   esac
53841   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
53842     as_dirs=
53843     while :; do
53844       case $as_dir in #(
53845       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
53846       *) as_qdir=$as_dir;;
53847       esac
53848       as_dirs="'$as_qdir' $as_dirs"
53849       as_dir=`$as_dirname -- "$as_dir" ||
53850 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53851          X"$as_dir" : 'X\(//\)[^/]' \| \
53852          X"$as_dir" : 'X\(//\)$' \| \
53853          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
53854 echo X"$as_dir" |
53855     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
53856             s//\1/
53857             q
53858           }
53859           /^X\(\/\/\)[^/].*/{
53860             s//\1/
53861             q
53862           }
53863           /^X\(\/\/\)$/{
53864             s//\1/
53865             q
53866           }
53867           /^X\(\/\).*/{
53868             s//\1/
53869             q
53870           }
53871           s/.*/./; q'`
53872       test -d "$as_dir" && break
53873     done
53874     test -z "$as_dirs" || eval "mkdir $as_dirs"
53875   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
53876 echo "$as_me: error: cannot create directory $as_dir" >&2;}
53877    { (exit 1); exit 1; }; }; }
53878     ac_builddir=.
53879
53880 case "$ac_dir" in
53881 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
53882 *)
53883   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
53884   # A ".." for each directory in $ac_dir_suffix.
53885   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
53886   case $ac_top_builddir_sub in
53887   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
53888   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
53889   esac ;;
53890 esac
53891 ac_abs_top_builddir=$ac_pwd
53892 ac_abs_builddir=$ac_pwd$ac_dir_suffix
53893 # for backward compatibility:
53894 ac_top_builddir=$ac_top_build_prefix
53895
53896 case $srcdir in
53897   .)  # We are building in place.
53898     ac_srcdir=.
53899     ac_top_srcdir=$ac_top_builddir_sub
53900     ac_abs_top_srcdir=$ac_pwd ;;
53901   [\\/]* | ?:[\\/]* )  # Absolute name.
53902     ac_srcdir=$srcdir$ac_dir_suffix;
53903     ac_top_srcdir=$srcdir
53904     ac_abs_top_srcdir=$srcdir ;;
53905   *) # Relative name.
53906     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
53907     ac_top_srcdir=$ac_top_build_prefix$srcdir
53908     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
53909 esac
53910 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
53911
53912
53913     cd "$ac_dir"
53914
53915     # Check for guested configure; otherwise get Cygnus style configure.
53916     if test -f "$ac_srcdir/configure.gnu"; then
53917       ac_sub_configure=$ac_srcdir/configure.gnu
53918     elif test -f "$ac_srcdir/configure"; then
53919       ac_sub_configure=$ac_srcdir/configure
53920     elif test -f "$ac_srcdir/configure.in"; then
53921       # This should be Cygnus configure.
53922       ac_sub_configure=$ac_aux_dir/configure
53923     else
53924       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
53925 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
53926       ac_sub_configure=
53927     fi
53928
53929     # The recursion is here.
53930     if test -n "$ac_sub_configure"; then
53931       # Make the cache file name correct relative to the subdirectory.
53932       case $cache_file in
53933       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
53934       *) # Relative name.
53935         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
53936       esac
53937
53938       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
53939 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
53940       # The eval makes quoting arguments work.
53941       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
53942            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
53943         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
53944 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
53945    { (exit 1); exit 1; }; }
53946     fi
53947
53948     cd "$ac_popdir"
53949   done
53950 fi
53951
53952
53953 echo
53954 echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
53955 echo ""
53956 echo "  Which GUI toolkit should wxWidgets use?                 ${TOOLKIT_DESC}"
53957 echo "  Should wxWidgets be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
53958 echo "  Should wxWidgets be linked as a shared library?         ${wxUSE_SHARED:-no}"
53959 echo $ECHO_N "  Should wxWidgets support Unicode?                       ${wxUSE_UNICODE:-no}$ECHO_C"
53960 if test "$wxUSE_UNICODE" = "yes"; then
53961     if test "$wxUSE_UNICODE_UTF8" = "yes"; then
53962         echo " (using UTF-8)"
53963     else
53964         echo " (using wchar_t)"
53965     fi
53966 else
53967     echo
53968 fi
53969
53970 echo "  What level of wxWidgets compatibility should be enabled?"
53971 echo "                                       wxWidgets 2.6      ${WXWIN_COMPATIBILITY_2_6:-no}"
53972 echo "                                       wxWidgets 2.8      ${WXWIN_COMPATIBILITY_2_8:-yes}"
53973
53974 echo "  Which libraries should wxWidgets use?"
53975 echo "                                       STL                ${wxUSE_STL}"
53976 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
53977 echo "                                       png                ${wxUSE_LIBPNG-none}"
53978 echo "                                       regex              ${wxUSE_REGEX}"
53979 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
53980 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
53981 echo "                                       xpm                ${wxUSE_LIBXPM-none}"
53982 fi
53983 echo "                                       zlib               ${wxUSE_ZLIB}"
53984 echo "                                       expat              ${wxUSE_EXPAT}"
53985 echo "                                       libmspack          ${wxUSE_LIBMSPACK}"
53986 echo "                                       sdl                ${wxUSE_LIBSDL}"
53987
53988 echo ""
53989